diff --git a/.github/workflows/publish_cli.yml b/.github/workflows/publish_cli.yml index 111062784..49c173b40 100644 --- a/.github/workflows/publish_cli.yml +++ b/.github/workflows/publish_cli.yml @@ -42,6 +42,7 @@ jobs: run: | cp ./README.md ./CLI-${{ matrix.os }}/ cp ./LICENSE.txt ./CLI-${{ matrix.os }}/ + cp -r ./UndertaleModLib/GameSpecificData/ ./CLI-${{ matrix.os }}/GameSpecificData/ - name: Upload ${{ matrix.os }} CLI uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/publish_gui.yml b/.github/workflows/publish_gui.yml index d366c23c2..36eed51d2 100644 --- a/.github/workflows/publish_gui.yml +++ b/.github/workflows/publish_gui.yml @@ -41,6 +41,7 @@ jobs: cp ./README.md ./${{ matrix.os }} cp ./SCRIPTS.md ./${{ matrix.os }} cp ./LICENSE.txt ./${{ matrix.os }} + cp -r ./UndertaleModLib/GameSpecificData/ ./${{ matrix.os }}/GameSpecificData/ - name: Upload ${{ matrix.os }} GUI uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/publish_gui_nightly.yml b/.github/workflows/publish_gui_nightly.yml index 0e6db792f..c61421c8f 100644 --- a/.github/workflows/publish_gui_nightly.yml +++ b/.github/workflows/publish_gui_nightly.yml @@ -45,6 +45,7 @@ jobs: cp ./README.md ./${{ matrix.os }} cp ./SCRIPTS.md ./${{ matrix.os }} cp ./LICENSE.txt ./${{ matrix.os }} + cp -r ./UndertaleModLib/GameSpecificData/ ./${{ matrix.os }}/GameSpecificData/ - name: Create zip for nightly release Windows GUI run: | 7z a -tzip GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}.zip ./${{ matrix.os }}/* -mx0 @@ -90,6 +91,7 @@ jobs: run: | cp ./README.md ./CLI-${{ matrix.os }}/ cp ./LICENSE.txt ./CLI-${{ matrix.os }}/ + cp -r ./UndertaleModLib/GameSpecificData/ ./CLI-${{ matrix.os }}/GameSpecificData/ - name: Create zip for nightly release CLI run: | 7z a -tzip CLI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}.zip ./CLI-${{ matrix.os }}/* -mx0 diff --git a/.github/workflows/publish_gui_release.yml b/.github/workflows/publish_gui_release.yml index cab6845dd..598b3d6ee 100644 --- a/.github/workflows/publish_gui_release.yml +++ b/.github/workflows/publish_gui_release.yml @@ -41,6 +41,7 @@ jobs: cp ./README.md ./${{ matrix.os }} cp ./SCRIPTS.md ./${{ matrix.os }} cp ./LICENSE.txt ./${{ matrix.os }} + cp -r ./UndertaleModLib/GameSpecificData/ ./${{ matrix.os }}/GameSpecificData/ - name: Create zip for stable release Windows GUI run: | 7z a -tzip GUI-${{ matrix.os }}-${{ matrix.configuration }}-isBundled-${{ matrix.bundled }}-isSingleFile-${{ matrix.singlefile }}.zip ./${{ matrix.os }}/* -mx0 diff --git a/.github/workflows/publish_pr.yml b/.github/workflows/publish_pr.yml index ac86e2c47..f34433e33 100644 --- a/.github/workflows/publish_pr.yml +++ b/.github/workflows/publish_pr.yml @@ -43,6 +43,7 @@ jobs: cp ./README.md ./${{ matrix.os }} cp ./SCRIPTS.md ./${{ matrix.os }} cp ./LICENSE.txt ./${{ matrix.os }} + cp -r ./UndertaleModLib/GameSpecificData/ ./${{ matrix.os }}/GameSpecificData/ - name: Upload ${{ matrix.os }} GUI uses: actions/upload-artifact@v4 with: @@ -85,6 +86,7 @@ jobs: run: | cp ./README.md ./CLI-${{ matrix.os }}/ cp ./LICENSE.txt ./CLI-${{ matrix.os }}/ + cp -r ./UndertaleModLib/GameSpecificData/ ./CLI-${{ matrix.os }}/GameSpecificData/ - name: Upload ${{ matrix.os }} CLI uses: actions/upload-artifact@v4 with: diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..af38bac38 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Underanalyzer"] + path = Underanalyzer + url = https://github.com/UnderminersTeam/Underanalyzer.git diff --git a/Underanalyzer b/Underanalyzer new file mode 160000 index 000000000..e669966fb --- /dev/null +++ b/Underanalyzer @@ -0,0 +1 @@ +Subproject commit e669966fbe7c5c3c2e154e741801a1d7c43b70a7 diff --git a/UndertaleModCli/Program.UMTLibInherited.cs b/UndertaleModCli/Program.UMTLibInherited.cs index 4847e967c..8da953b49 100644 --- a/UndertaleModCli/Program.UMTLibInherited.cs +++ b/UndertaleModCli/Program.UMTLibInherited.cs @@ -10,6 +10,7 @@ using System.Threading.Tasks; using Microsoft.CodeAnalysis.CSharp.Scripting; using Microsoft.CodeAnalysis.Scripting; +using Underanalyzer.Decompiler; using UndertaleModLib; using UndertaleModLib.Decompiler; using UndertaleModLib.Models; @@ -293,7 +294,7 @@ public void ReapplyProfileCode() } /// - public async Task GenerateGMLCache(ThreadLocal decompileContext = null, object dialog = null, bool isSaving = false) + public async Task GenerateGMLCache(GlobalDecompileContext decompileContext = null, object dialog = null, bool isSaving = false) { await Task.Delay(1); //dummy await @@ -410,21 +411,23 @@ public string PromptLoadFile(string defaultExt, string filter) } /// - public string GetDecompiledText(string codeName, GlobalDecompileContext context = null) + public string GetDecompiledText(string codeName, GlobalDecompileContext context = null, IDecompileSettings settings = null) { - return GetDecompiledText(Data.Code.ByName(codeName), context); + return GetDecompiledText(Data.Code.ByName(codeName), context, settings); } /// - public string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null) + public string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null, IDecompileSettings settings = null) { if (code.ParentEntry is not null) return $"// This code entry is a reference to an anonymous function within \"{code.ParentEntry.Name.Content}\", decompile that instead."; - GlobalDecompileContext decompileContext = context is null ? new(Data, false) : context; + GlobalDecompileContext decompileContext = context is null ? new(Data) : context; try { - return code != null ? Decompiler.Decompile(code, decompileContext) : ""; + return code != null + ? new Underanalyzer.Decompiler.DecompileContext(decompileContext, code, settings ?? Data.ToolInfo.DecompilerSettings).DecompileToString() + : ""; } catch (Exception e) { @@ -446,7 +449,7 @@ public string GetDisassemblyText(UndertaleCode code) try { - return code != null ? code.Disassemble(Data.Variables, Data.CodeLocals.For(code)) : ""; + return code != null ? code.Disassemble(Data.Variables, Data.CodeLocals?.For(code)) : ""; } catch (Exception e) { @@ -633,17 +636,17 @@ public void ImportASMFile(string fileName, bool doParse = true, bool destroyASM } /// - public void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null) + public void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null, IDecompileSettings settings = null) { UndertaleCode code = Data.Code.ByName(codeName); if (code is null) throw new ScriptException($"No code named \"{codeName}\" was found!"); - ReplaceTextInGML(code, keyword, replacement, caseSensitive, isRegex, context); + ReplaceTextInGML(code, keyword, replacement, caseSensitive, isRegex, context, settings); } /// - public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null) + public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null, IDecompileSettings settings = null) { if (code == null) throw new ArgumentNullException(nameof(code)); if (code.ParentEntry is not null) @@ -652,7 +655,7 @@ public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacem EnsureDataLoaded(); string passBack = ""; - GlobalDecompileContext decompileContext = context is null ? new(Data, false) : context; + GlobalDecompileContext decompileContext = context is null ? new(Data) : context; if (!Data.ToolInfo.ProfileMode) { @@ -661,7 +664,7 @@ public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacem // It would just be recompiling an empty string and messing with null entries seems bad if (code is null) return; - string originalCode = Decompiler.Decompile(code, decompileContext); + string originalCode = new Underanalyzer.Decompiler.DecompileContext(decompileContext, code, settings ?? Data.ToolInfo.DecompilerSettings).DecompileToString(); passBack = GetPassBack(originalCode, keyword, replacement, caseSensitive, isRegex); // No need to compile something unchanged if (passBack == originalCode) @@ -749,7 +752,7 @@ void ImportCode(string codeName, string gmlCode, bool isGML = true, bool doParse else if (code.ParentEntry is not null) return; - if (Data?.GeneralInfo.BytecodeVersion > 14 && Data.CodeLocals.ByName(codeName) == null) + if (Data.CodeLocals is not null && Data.CodeLocals.ByName(codeName) is null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = code.Name; diff --git a/UndertaleModCli/Program.cs b/UndertaleModCli/Program.cs index 67bd20024..b6dc58b48 100644 --- a/UndertaleModCli/Program.cs +++ b/UndertaleModCli/Program.cs @@ -195,7 +195,8 @@ public Program(FileInfo datafile, FileInfo[] scripts, FileInfo output, bool verb typeof(JsonConvert).GetTypeInfo().Assembly, typeof(System.Text.RegularExpressions.Regex).GetTypeInfo().Assembly, typeof(TextureWorker).GetTypeInfo().Assembly, - typeof(ImageMagick.MagickImage).GetTypeInfo().Assembly) + typeof(ImageMagick.MagickImage).GetTypeInfo().Assembly, + typeof(Underanalyzer.Decompiler.DecompileContext).Assembly) // "WithEmitDebugInformation(true)" not only lets us to see a script line number which threw an exception, // but also provides other useful debug info when we run UMT in "Debug". .WithEmitDebugInformation(true); @@ -584,7 +585,8 @@ private void CliQuickInfo() if (!Data.IsYYC()) { Console.WriteLine($"{Data.Code.Count} Code Entries, {Data.Variables.Count} Variables, {Data.Functions.Count} Functions"); - Console.WriteLine($"{Data.CodeLocals.Count} Code locals, {Data.Strings.Count} Strings, {Data.EmbeddedTextures.Count} Embedded Textures"); + var codeLocalsInfo = Data.CodeLocals is not null ? $"{Data.CodeLocals.Count} Code locals, " : ""; + Console.WriteLine($"{codeLocalsInfo}{Data.Strings.Count} Strings, {Data.EmbeddedTextures.Count} Embedded Textures"); } else { @@ -871,4 +873,4 @@ private void ProgressUpdater() Thread.Sleep(100); //10 times per second } } -} \ No newline at end of file +} diff --git a/UndertaleModCli/UndertaleModCli.csproj b/UndertaleModCli/UndertaleModCli.csproj index 67a9fcde8..0ef164e2f 100644 --- a/UndertaleModCli/UndertaleModCli.csproj +++ b/UndertaleModCli/UndertaleModCli.csproj @@ -22,6 +22,7 @@ + diff --git a/UndertaleModLib/Compiler/AssemblyWriter.cs b/UndertaleModLib/Compiler/AssemblyWriter.cs index 0eaa5fa18..48faecf77 100644 --- a/UndertaleModLib/Compiler/AssemblyWriter.cs +++ b/UndertaleModLib/Compiler/AssemblyWriter.cs @@ -21,8 +21,9 @@ public class CodeWriter public List instructions; public uint offset = 0; public Stack typeStack = new Stack(); - public Stack loopContexts = new Stack(); - public Stack otherContexts = new Stack(); + public Stack controlFlowContexts = new Stack(); + public Stack loopContexts = new Stack(); + public Stack funcContexts = new Stack(); public List ErrorMessages = new List(); public List varPatches = new List(); public List funcPatches = new List(); @@ -106,7 +107,7 @@ public List Finish() bool defineArguments = true; if (compileContext.OriginalCode != null) { - UndertaleCodeLocals locals = compileContext.Data?.CodeLocals.For(compileContext.OriginalCode); + UndertaleCodeLocals locals = compileContext.Data?.CodeLocals?.For(compileContext.OriginalCode); if (locals != null) { // Update the code locals of the UndertaleCode @@ -199,42 +200,74 @@ bool hasLocal(string name) } } - foreach (var patch in varPatches) + // Patch variables in the compiled code + foreach (VariablePatch patch in varPatches) { - if (patch.InstType != InstanceType.Local) + // Only process non-local variables (extra check needed for room instance IDs, as InstType can overlap) + if (patch.InstType != InstanceType.Local || patch.VarType == VariableType.Instance) { - var realInstType = patch.InstType; - if (realInstType >= 0) - realInstType = InstanceType.Self; - else if (realInstType == InstanceType.Other) - realInstType = InstanceType.Self; - else if (realInstType == InstanceType.Arg) - realInstType = InstanceType.Builtin; - else if (realInstType == InstanceType.Builtin) - realInstType = InstanceType.Self; // used with @@This@@ - else if (realInstType == InstanceType.Stacktop) - realInstType = InstanceType.Self; // used with @@GetInstance@@ + // Change VARI instance type depending on context + InstanceType variInstanceType = patch.InstType switch + { + >= 0 => InstanceType.Self, + InstanceType.Other => InstanceType.Self, + InstanceType.Arg => InstanceType.Builtin, + InstanceType.Builtin => InstanceType.Self, // used with @@This@@ + InstanceType.Stacktop => InstanceType.Self, // used with @@GetInstance@@ + _ => patch.InstType + }; + + // Room instance ID variables should always be type self (even if inst type is negative) + if (patch.VarType == VariableType.Instance) + { + variInstanceType = InstanceType.Self; + } // 2.3 variable fix // Definitely needs at least some change when ++/-- support is added, // since that does use instance type global - if (CompileContext.GMS2_3 && - patch.VarType == VariableType.Array && - realInstType == InstanceType.Global) - realInstType = InstanceType.Self; - - UndertaleVariable def = variables.EnsureDefined(patch.Name, realInstType, - compileContext.BuiltInList.GlobalArray.ContainsKey(patch.Name) || - compileContext.BuiltInList.GlobalNotArray.ContainsKey(patch.Name) || - compileContext.BuiltInList.Instance.ContainsKey(patch.Name) || - compileContext.BuiltInList.InstanceLimitedEvent.ContainsKey(patch.Name), - compileContext.Data.Strings, compileContext.Data); + if (CompileContext.GMS2_3 && patch.VarType == VariableType.Array && variInstanceType == InstanceType.Global) + { + variInstanceType = InstanceType.Self; + } + + // Define (or locate) variable + UndertaleVariable def = variables.EnsureDefined(patch.Name, variInstanceType, + compileContext.BuiltInList.GlobalArray.ContainsKey(patch.Name) || + compileContext.BuiltInList.GlobalNotArray.ContainsKey(patch.Name) || + compileContext.BuiltInList.Instance.ContainsKey(patch.Name) || + compileContext.BuiltInList.InstanceLimitedEvent.ContainsKey(patch.Name), + compileContext.Data.Strings, compileContext.Data); if (patch.Target.Kind == Opcode.Pop) + { + // Pop instruction, set instruction's destination patch.Target.Destination = new Reference(def, patch.VarType); + } else + { + // All other instructions, just set instruction's value patch.Target.Value = new Reference(def, patch.VarType); + } + + // Perform final adjustments to the instance type if (patch.VarType == VariableType.Normal) + { + if (patch.InstType == InstanceType.Self && compileContext.Data.IsVersionAtLeast(2024, 2)) + { + // For some reason, 2024 versions seem to use builtin instead of self, for simple variables + patch.Target.TypeInst = InstanceType.Builtin; + } + else + { + // For all other normal variables, just use the existing instance type like usual + patch.Target.TypeInst = patch.InstType; + } + } + else if (patch.VarType == VariableType.Instance) + { + // In this case, the instance type is the room object instance ID patch.Target.TypeInst = patch.InstType; + } } } } @@ -244,7 +277,7 @@ bool hasLocal(string name) // The FUNC chunk contains references to builtin functions, and anonymous function definitions called gml_Script_... // The anonymous functions are bound to names by code in Data.GlobalInit // so to get an actual mapping from names to functions, you have to decompile all GlobalInit scripts... - Decompiler.Decompiler.BuildSubFunctionCache(compileContext.Data); + Decompiler.GlobalDecompileContext.BuildGlobalFunctionCache(compileContext.Data); foreach (var patch in funcPatches) { if (patch.isNewFunc) @@ -260,7 +293,7 @@ bool hasLocal(string name) ParentEntry = compileContext.OriginalCode, Offset = patch.Offset, ArgumentsCount = (ushort)patch.ArgCount, - LocalsCount = compileContext.OriginalCode.LocalsCount // todo: use just the locals for the individual script + LocalsCount = (uint?)patch.FuncContext?.ParseInfo?.LocalVars?.Count ?? compileContext.OriginalCode.LocalsCount }; compileContext.OriginalCode.ChildEntries.Add(childEntry); int childEntryIndex = compileContext.Data.Code.IndexOf(compileContext.OriginalCode) + compileContext.OriginalCode.ChildEntries.Count; @@ -269,7 +302,8 @@ bool hasLocal(string name) UndertaleScript childScript = new() { Name = childName, - Code = childEntry + Code = childEntry, + IsConstructor = patch.isNewConstructor }; // If we don't set IsConstructor, the game will crash when creating the struct if (patch.Name.StartsWith("___struct___")) childScript.IsConstructor = true; @@ -284,8 +318,8 @@ bool hasLocal(string name) compileContext.Data.Functions.Add(childFunction); - compileContext.Data.KnownSubFunctions.Add(patch.Name, childFunction); - + compileContext.Data.GlobalFunctions.DefineFunction(patch.Name, childFunction); + continue; } @@ -298,7 +332,10 @@ bool hasLocal(string name) { if (def != null && def.Autogenerated) def = null; - def ??= compileContext.Data.KnownSubFunctions.GetValueOrDefault(patch.Name); + if (def is null && compileContext.Data.GlobalFunctions.TryGetFunction(patch.Name, out Underanalyzer.IGMFunction foundFunction)) + { + def = foundFunction as UndertaleFunction; + } } if (compileContext.ensureFunctionsDefined) @@ -317,7 +354,10 @@ bool hasLocal(string name) { def = compileContext.Data.Functions.ByName(patch.Name); // This code is only reachable using a 2.3 function definition. ("push.i gml_Script_scr_stuff") - def ??= compileContext.Data.KnownSubFunctions.GetValueOrDefault(patch.Name); + if (def is null && compileContext.Data.GlobalFunctions.TryGetFunction(patch.Name, out Underanalyzer.IGMFunction foundFunction)) + { + def = foundFunction as UndertaleFunction; + } if (compileContext.ensureFunctionsDefined) def ??= compileContext.Data.Functions.EnsureDefined(patch.Name, compileContext.Data.Strings, true); @@ -371,29 +411,6 @@ bool hasLocal(string name) } } - public class VariablePatch - { - public UndertaleInstruction Target; - public string Name; - public VariableType VarType; - public InstanceType InstType; - } - - public class FunctionPatch - { - public UndertaleInstruction Target; - public string Name; - public int ArgCount; - public uint Offset; - public bool isNewFunc = false; - } - - public class StringPatch - { - public UndertaleInstruction Target; - public string Content; - } - public class Patch { public List Patches; @@ -457,57 +474,61 @@ public void Add(UndertaleInstruction instr) } } - public class OtherContext + public class VariablePatch { - public enum ContextKind - { - Switch, - With - } + public UndertaleInstruction Target; + public string Name; + public VariableType VarType; + public InstanceType InstType; + } - public ContextKind Kind; - public Patch Break; - public Patch Continue; - public DataType TypeToPop; // switch statements - public bool BreakUsed = false; - public bool ContinueUsed = false; + public class FunctionPatch + { + public UndertaleInstruction Target; + public string Name; + public int ArgCount; + public uint Offset; + public bool isNewFunc = false; + public bool isNewConstructor = false; + public FunctionContext FuncContext; - public OtherContext(Patch @break, Patch @continue, DataType typeToPop) + public FunctionPatch(CodeWriter cw) { - Kind = ContextKind.Switch; - Break = @break; - Continue = @continue; - TypeToPop = typeToPop; + FuncContext = (cw.funcContexts.Count > 0) ? cw.funcContexts.Peek() : null; } + } - public OtherContext(Patch @break, Patch @continue) - { - Kind = ContextKind.With; - Break = @break; - Continue = @continue; - } + public class StringPatch + { + public UndertaleInstruction Target; + public string Content; + } - public Patch UseBreak() - { - BreakUsed = true; - return Break; - } + public class FunctionContext + { + public Stack ControlFlowContexts { get; } + public Stack LoopContexts { get; } + public List NamedArguments { get; } + public Parser.FunctionParseInfo ParseInfo { get; } - public Patch UseContinue() + public FunctionContext(Stack controlFlowContexts, Stack loopContexts, + List namedArguments, Parser.FunctionParseInfo parseInfo) { - ContinueUsed = true; - return Continue; + ControlFlowContexts = controlFlowContexts; + LoopContexts = loopContexts; + NamedArguments = namedArguments; + ParseInfo = parseInfo; } } - public struct LoopContext + public class ControlFlowContext { public Patch Break; public Patch Continue; public bool BreakUsed; public bool ContinueUsed; - public LoopContext(Patch @break, Patch @continue) + public ControlFlowContext(Patch @break, Patch @continue) { Break = @break; Continue = @continue; @@ -528,30 +549,53 @@ public Patch UseContinue() } } - private static Patch HelpUseBreak(ref Stack s) + public class LoopContext : ControlFlowContext { - LoopContext c = s.Pop(); - Patch res = c.UseBreak(); - s.Push(c); - return res; + public LoopContext(Patch @break, Patch @continue) : base(@break, @continue) + { + } } - private static Patch HelpUseContinue(ref Stack s) + + public class RepeatLoopContext : LoopContext { - LoopContext c = s.Pop(); - Patch res = c.UseContinue(); - s.Push(c); - return res; + public RepeatLoopContext(Patch @break, Patch @continue) : base(@break, @continue) + { + } } - private static Patch HelpUseBreak(ref Stack s) + + public class SwitchWithContext : ControlFlowContext + { + public enum ContextKind + { + Switch, + With + } + + public ContextKind Kind; + public DataType TypeToPop; // switch statements + + public SwitchWithContext(Patch @break, Patch @continue, DataType typeToPop) : base(@break, @continue) + { + Kind = ContextKind.Switch; + TypeToPop = typeToPop; + } + + public SwitchWithContext(Patch @break, Patch @continue) : base(@break, @continue) + { + Kind = ContextKind.With; + } + } + + private static Patch HelpUseBreak(ref Stack s) { - OtherContext c = s.Pop(); + ControlFlowContext c = s.Pop(); Patch res = c.UseBreak(); s.Push(c); return res; } - private static Patch HelpUseContinue(ref Stack s) + private static Patch HelpUseContinue(ref Stack s) { - OtherContext c = s.Pop(); + ControlFlowContext c = s.Pop(); Patch res = c.UseContinue(); s.Push(c); return res; @@ -564,7 +608,7 @@ public static CodeWriter AssembleStatement(CompileContext compileContext, Parser return cw; } - private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int remaining = -1) + private static void AssembleStatement(CodeWriter cw, Parser.Statement s) { switch (s.Kind) { @@ -574,7 +618,7 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem { for (int i = 0; i < s.Children.Count; i++) { - AssembleStatement(cw, s.Children[i], s.Children.Count - i); + AssembleStatement(cw, s.Children[i]); } } break; @@ -619,6 +663,25 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem } } break; + case Parser.Statement.StatementKind.FunctionDefAssign: + { + AssembleExpression(cw, s.Children[1], s.Children[0]); + + bool isStructDef = s.Children[0].Text.StartsWith("___struct___"); + cw.varPatches.Add(new VariablePatch() + { + Target = cw.EmitRef(Opcode.Pop, DataType.Variable, DataType.Variable), + Name = s.Children[0].Text, + InstType = isStructDef ? InstanceType.Static : InstanceType.Self, + VarType = VariableType.StackTop + }); + if (!isStructDef) + { + cw.typeStack.Pop(); + cw.Emit(Opcode.Popz, DataType.Variable); + } + break; + } case Parser.Statement.StatementKind.Pre: AssemblePostOrPre(cw, s, false, false); break; @@ -685,8 +748,11 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem endLoopPatch.Add(cw.Emit(Opcode.Bf)); var continuePatch = Patch.Start(); - cw.loopContexts.Push(new LoopContext(endLoopPatch, continuePatch)); + var context = new LoopContext(endLoopPatch, continuePatch); + cw.controlFlowContexts.Push(context); + cw.loopContexts.Push(context); AssembleStatement(cw, s.Children[3]); // body + cw.controlFlowContexts.Pop(); cw.loopContexts.Pop(); continuePatch.Finish(cw); AssembleStatement(cw, s.Children[2]); // code that runs each iteration, usually "i++" or something @@ -712,8 +778,11 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem } Patch endLoopPatch = Patch.Start(); endLoopPatch.Add(cw.Emit(Opcode.Bf)); - cw.loopContexts.Push(new LoopContext(endLoopPatch, conditionPatch)); + var context = new LoopContext(endLoopPatch, conditionPatch); + cw.controlFlowContexts.Push(context); + cw.loopContexts.Push(context); AssembleStatement(cw, s.Children[1]); // body + cw.controlFlowContexts.Pop(); cw.loopContexts.Pop(); conditionPatch.Add(cw.Emit(Opcode.B)); conditionPatch.Finish(cw); @@ -746,7 +815,9 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem .ComparisonKind = ComparisonType.LTE; endPatch.Add(cw.Emit(Opcode.Bt)); - cw.loopContexts.Push(new LoopContext(endPatch, repeatPatch)); + var context = new RepeatLoopContext(endPatch, repeatPatch); + cw.controlFlowContexts.Push(context); + cw.loopContexts.Push(context); Patch startPatch = Patch.StartHere(cw); AssembleStatement(cw, s.Children[1]); // body @@ -755,13 +826,15 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem cw.Emit(Opcode.Push, DataType.Int32).Value = 1; // This is also weird- normally it's pushi.e cw.Emit(Opcode.Sub, DataType.Int32, DataType.Int32); cw.Emit(Opcode.Dup, DataType.Int32).Extra = 0; - cw.Emit(Opcode.Conv, DataType.Int32, DataType.Boolean); + if (!cw.compileContext.Data.IsVersionAtLeast(2022, 11)) + cw.Emit(Opcode.Conv, DataType.Int32, DataType.Boolean); startPatch.Add(cw.Emit(Opcode.Bt)); startPatch.Finish(cw); endPatch.Finish(cw); cw.Emit(Opcode.Popz, DataType.Int32); // Cleans up the stack of the decrementing value, which at this point should be <= 0 + cw.controlFlowContexts.Pop(); cw.loopContexts.Pop(); } break; @@ -776,7 +849,9 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem Patch endPatch = Patch.Start(); Patch repeatPatch = Patch.Start(); - cw.loopContexts.Push(new LoopContext(endPatch, repeatPatch)); + var context = new LoopContext(endPatch, repeatPatch); + cw.controlFlowContexts.Push(context); + cw.loopContexts.Push(context); Patch startPatch = Patch.StartHere(cw); AssembleStatement(cw, s.Children[0]); // body @@ -792,16 +867,16 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem startPatch.Finish(cw); endPatch.Finish(cw); + cw.controlFlowContexts.Pop(); cw.loopContexts.Pop(); } break; case Parser.Statement.StatementKind.Switch: { Patch endPatch = Patch.Start(); - bool isEnclosingLoop = (cw.loopContexts.Count > 0); Patch continueEndPatch = null; - LoopContext enclosingContext = default(LoopContext); - if (isEnclosingLoop) + ControlFlowContext enclosingContext = null; + if (cw.loopContexts.Count > 0) { continueEndPatch = Patch.Start(); enclosingContext = cw.loopContexts.Peek(); @@ -811,7 +886,7 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem AssembleExpression(cw, s.Children[0]); var compareType = cw.typeStack.Pop(); - cw.otherContexts.Push(new OtherContext(endPatch, continueEndPatch, compareType)); + cw.controlFlowContexts.Push(new SwitchWithContext(endPatch, continueEndPatch, compareType)); List> cases = new List>(); Patch defaultPatch = null; @@ -895,8 +970,8 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem } // Write part at end in case a continue statement is used - OtherContext context = cw.otherContexts.Pop(); - if (isEnclosingLoop && context.ContinueUsed) + ControlFlowContext context = cw.controlFlowContexts.Pop(); + if (enclosingContext is not null && context.ContinueUsed) { endPatch.Add(cw.Emit(Opcode.B)); @@ -918,7 +993,7 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem s.Children[0].Kind == Parser.Statement.StatementKind.ExprConstant && ((InstanceType)s.Children[0].Constant.valueNumber).In(InstanceType.Other, InstanceType.Self)) { - cw.funcPatches.Add(new FunctionPatch() + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Call, DataType.Int32), Name = (InstanceType)s.Children[0].Constant.valueNumber == InstanceType.Other ? "@@Other@@" : "@@This@@", @@ -937,7 +1012,9 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem cw.Emit(Opcode.Conv, type, DataType.Int32); } - cw.otherContexts.Push(new OtherContext(endPatch, popEnvPatch)); + var context = new SwitchWithContext(endPatch, popEnvPatch); + cw.controlFlowContexts.Push(context); + cw.loopContexts.Push(context); popEnvPatch.Add(cw.Emit(Opcode.PushEnv)); Patch startPatch = Patch.StartHere(cw); @@ -948,7 +1025,9 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem startPatch.Add(cw.Emit(Opcode.PopEnv)); startPatch.Finish(cw); - if (cw.otherContexts.Pop().BreakUsed) + cw.controlFlowContexts.Pop(); + cw.loopContexts.Pop(); + if (context.BreakUsed) { Patch cleanUpEndPatch = Patch.Start(); cleanUpEndPatch.Add(cw.Emit(Opcode.B)); @@ -968,29 +1047,23 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem } break; case Parser.Statement.StatementKind.Continue: - if (cw.loopContexts.Count == 0 && (cw.otherContexts.Count == 0 || cw.otherContexts.Peek().Continue == null)) + if (cw.loopContexts.Count == 0 && (cw.controlFlowContexts.Count == 0 || cw.controlFlowContexts.Peek().Continue == null)) { AssemblyWriterError(cw, "Continue statement placed outside of any loops.", s.Token); } else { - if (cw.otherContexts.Count > 0 && cw.otherContexts.Peek().Continue != null) - HelpUseContinue(ref cw.otherContexts).Add(cw.Emit(Opcode.B)); - else - HelpUseContinue(ref cw.loopContexts).Add(cw.Emit(Opcode.B)); + HelpUseContinue(ref cw.controlFlowContexts).Add(cw.Emit(Opcode.B)); } break; case Parser.Statement.StatementKind.Break: - if (cw.loopContexts.Count == 0 && cw.otherContexts.Count == 0) + if (cw.loopContexts.Count == 0 && cw.controlFlowContexts.Count == 0) { AssemblyWriterError(cw, "Break statement placed outside of any loops.", s.Token); } else { - if (cw.otherContexts.Count > 0 && cw.otherContexts.Peek().Break != null) - HelpUseBreak(ref cw.otherContexts).Add(cw.Emit(Opcode.B)); - else - HelpUseBreak(ref cw.loopContexts).Add(cw.Emit(Opcode.B)); + HelpUseBreak(ref cw.controlFlowContexts).Add(cw.Emit(Opcode.B)); } break; case Parser.Statement.StatementKind.FunctionCall: @@ -1015,7 +1088,11 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem } // Clean up contexts if necessary - bool useLocalVar = (cw.otherContexts.Count != 0); + bool useLocalVar; + if (CompileContext.GMS2_3) + useLocalVar = cw.controlFlowContexts.Any(c => c is SwitchWithContext or RepeatLoopContext); + else + useLocalVar = cw.controlFlowContexts.Any(c => c is SwitchWithContext); if (useLocalVar) { // Put the return value into a local variable (GM does this as well) @@ -1029,20 +1106,31 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem VarType = VariableType.Normal }); cw.compileContext.LocalVars["$$$$temp$$$$"] = "$$$$temp$$$$"; + if (cw.funcContexts.Count > 0) + { + cw.funcContexts.Peek().ParseInfo.LocalVars.Add("$$$$temp$$$$"); + } } - foreach (OtherContext oc in cw.otherContexts) + foreach (ControlFlowContext c in cw.controlFlowContexts) { - if (oc.Kind == OtherContext.ContextKind.Switch) + if (c is SwitchWithContext sw) { - cw.Emit(Opcode.Popz, oc.TypeToPop); - } - else + if (sw.Kind == SwitchWithContext.ContextKind.Switch) + { + cw.Emit(Opcode.Popz, sw.TypeToPop); + } + else + { + // With + var dropPopenv = cw.Emit(Opcode.PopEnv); + dropPopenv.JumpOffsetPopenvExitMagic = true; + if (cw.compileContext.Data?.GeneralInfo?.BytecodeVersion <= 14) + dropPopenv.JumpOffset = -1048576; // magic for older versions + } + } + else if (CompileContext.GMS2_3 && c is RepeatLoopContext) { - // With - var dropPopenv = cw.Emit(Opcode.PopEnv); - dropPopenv.JumpOffsetPopenvExitMagic = true; - if (cw.compileContext.Data?.GeneralInfo?.BytecodeVersion <= 14) - dropPopenv.JumpOffset = -1048576; // magic for older versions + cw.Emit(Opcode.Popz, DataType.Int32); } } if (useLocalVar) @@ -1066,6 +1154,26 @@ private static void AssembleStatement(CodeWriter cw, Parser.Statement s, int rem case Parser.Statement.StatementKind.Exit: AssembleExit(cw); break; + case Parser.Statement.StatementKind.Enum: + // No assembly logic for this + break; + case Parser.Statement.StatementKind.Throw: + AssembleExpression(cw, s.Children[0]); + if (cw.typeStack.Peek() != DataType.Variable) + { + cw.Emit(Opcode.Conv, cw.typeStack.Pop(), DataType.Variable); + cw.typeStack.Push(DataType.Variable); + } + cw.funcPatches.Add(new FunctionPatch(cw) + { + Target = cw.EmitRef(Opcode.Call, DataType.Int32), + Name = "@@throw@@", + ArgCount = 1 + }); + break; + case Parser.Statement.StatementKind.New: + AssembleNew(cw, s, false); + break; default: AssemblyWriterError(cw, "Expected a statement, none found", s.Token); break; @@ -1136,27 +1244,29 @@ private static void AssemblePostPreStackOperation(CodeWriter cw, bool isSingle, private static void AssembleExit(CodeWriter cw) { - // First switch statements - foreach (OtherContext oc in cw.otherContexts) + foreach (ControlFlowContext c in cw.controlFlowContexts) { - if (oc.Kind == OtherContext.ContextKind.Switch) + if (c is SwitchWithContext sw) { - cw.Emit(Opcode.Popz, oc.TypeToPop); + if (sw.Kind == SwitchWithContext.ContextKind.Switch) + { + cw.Emit(Opcode.Popz, sw.TypeToPop); + } + else + { + // With + var dropPopenv = cw.Emit(Opcode.PopEnv); + dropPopenv.JumpOffsetPopenvExitMagic = true; + if (cw.compileContext.Data?.GeneralInfo?.BytecodeVersion <= 14) + dropPopenv.JumpOffset = -1048576; // magic for older versions + } } - } - - // Then with statements - foreach (OtherContext oc in cw.otherContexts) - { - if (oc.Kind == OtherContext.ContextKind.With) + else if (CompileContext.GMS2_3 && c is RepeatLoopContext) { - var dropPopenv = cw.Emit(Opcode.PopEnv); - dropPopenv.JumpOffsetPopenvExitMagic = true; - if (cw.compileContext.Data?.GeneralInfo?.BytecodeVersion <= 14) - dropPopenv.JumpOffset = -1048576; // magic for older versions + cw.Emit(Opcode.Popz, DataType.Int32); } } - + cw.Emit(Opcode.Exit, DataType.Int32); } @@ -1175,7 +1285,7 @@ private static void AssembleFunctionCall(CodeWriter cw, Parser.Statement fc) } } - cw.funcPatches.Add(new FunctionPatch() + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Call, DataType.Int32), Name = fc.Text, @@ -1198,7 +1308,7 @@ private static void AssembleStructDef(CodeWriter cw, Parser.Statement str) AssembleStatement(cw, str.Children[1]); - cw.funcPatches.Add(new FunctionPatch() + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Call, DataType.Int32), Name = "@@NewGMLObject@@", @@ -1208,6 +1318,50 @@ private static void AssembleStructDef(CodeWriter cw, Parser.Statement str) cw.typeStack.Push(DataType.Variable); } + private static void AssembleNew(CodeWriter cw, Parser.Statement e, bool expression) + { + // Needs to push args onto stack backwards + Parser.Statement fc = e.Children[0]; + for (int i = fc.Children.Count - 1; i >= 0; i--) + { + AssembleExpression(cw, fc.Children[i]); + + // Convert to Variable data type + var typeToConvertFrom = cw.typeStack.Pop(); + if (typeToConvertFrom != DataType.Variable) + { + cw.Emit(Opcode.Conv, typeToConvertFrom, DataType.Variable); + } + } + + // Push reference to constructor function + cw.funcPatches.Add(new FunctionPatch(cw) + { + Target = cw.EmitRef(Opcode.Push, DataType.Int32), + Name = fc.Text, + ArgCount = -1 + }); + cw.Emit(Opcode.Conv, DataType.Int32, DataType.Variable); + + // Create new object + cw.funcPatches.Add(new FunctionPatch(cw) + { + Target = cw.EmitRef(Opcode.Call, DataType.Int32), + Name = "@@NewGMLObject@@", + ArgCount = fc.Children.Count + 1 + }); + + // If in expression, a variable data type is on the stack; otherwise, pop the unused data + if (expression) + { + cw.typeStack.Push(DataType.Variable); + } + else + { + cw.Emit(Opcode.Popz, DataType.Variable); + } + } + private static void AssembleExpression(CodeWriter cw, Parser.Statement e, Parser.Statement funcDefName = null) { switch (e.Kind) @@ -1302,60 +1456,117 @@ private static void AssembleExpression(CodeWriter cw, Parser.Statement e, Parser break; case Parser.Statement.StatementKind.FunctionDef: { - if (e.Children.Count != 2) + if (e.Children.Count < 2 || e.Children.Count > 4) { AssemblyWriterError(cw, "Malformed function assignment.", e.Token); break; } - bool isStructDef = funcDefName.Text.StartsWith("___struct___"); - - Patch startPatch = Patch.StartHere(cw); + bool isConstructor = e.Children.Count >= 3; + Parser.Statement baseCall = null; + if (isConstructor) + { + e.Children.RemoveAt(0); + if (e.Children.Count >= 3) + { + baseCall = e.Children[0]; + e.Children.RemoveAt(0); + } + } + + // Construct new function context + List namedArgs = new(); + foreach (Parser.Statement argName in e.Children[0].Children) + namedArgs.Add(argName.Text); + FunctionContext newFuncContext = new(cw.controlFlowContexts, cw.loopContexts, namedArgs, cw.compileContext.FunctionParseInfo[e]); + + // Branch around function declaration Patch endPatch = Patch.Start(); endPatch.Add(cw.Emit(Opcode.B)); + // we're accessing a subfunction here, so build the cache if needed - Decompiler.Decompiler.BuildSubFunctionCache(cw.compileContext.Data); + Decompiler.GlobalDecompileContext.BuildGlobalFunctionCache(cw.compileContext.Data); - //Attempt to find the function before rushing to create a new one + if (funcDefName is null) + { + AssemblyWriterError(cw, "Anonymous function compilation support does not work yet.", e.Token); + break; + } + + // Attempt to find the function before rushing to create a new one var func = cw.compileContext.Data.Functions.FirstOrDefault(f => f.Name.Content == "gml_Script_" + funcDefName.Text); - if (func != null) - cw.compileContext.Data.KnownSubFunctions.TryAdd(funcDefName.Text, func); - - if (cw.compileContext.Data.KnownSubFunctions.ContainsKey(funcDefName.Text)) + if (func != null && !cw.compileContext.Data.GlobalFunctions.FunctionNameExists(funcDefName.Text)) + { + cw.compileContext.Data.GlobalFunctions.DefineFunction(funcDefName.Text, func); + } + + if (cw.compileContext.Data.GlobalFunctions.TryGetFunction(funcDefName.Text, out Underanalyzer.IGMFunction foundFunction)) { - string subFunctionName = cw.compileContext.Data.KnownSubFunctions[funcDefName.Text].Name.Content; + string subFunctionName = foundFunction.Name.Content; UndertaleCode childEntry = cw.compileContext.OriginalCode.ChildEntries.ByName(subFunctionName); childEntry.Offset = cw.offset * 4; childEntry.ArgumentsCount = (ushort)e.Children[0].Children.Count; - childEntry.LocalsCount = cw.compileContext.OriginalCode.LocalsCount; // todo: use just the locals for the individual script + childEntry.LocalsCount = (uint?)newFuncContext.ParseInfo?.LocalVars?.Count ?? cw.compileContext.OriginalCode.LocalsCount; + + UndertaleScript script = cw.compileContext.Data.Scripts.ByName(childEntry.Name.Content); + if (script is not null) + { + script.IsConstructor = isConstructor; + } } else // we're making a new function baby { - cw.funcPatches.Add(new FunctionPatch() + cw.funcPatches.Add(new FunctionPatch(cw) { Name = funcDefName.Text, Offset = cw.offset * 4, ArgCount = (ushort)e.Children[0].Children.Count, - isNewFunc = true + isNewFunc = true, + isNewConstructor = isConstructor + }); + } + + cw.funcContexts.Push(newFuncContext); + cw.loopContexts = new(); + cw.controlFlowContexts = new(); + + if (baseCall is not null) + { + AssembleFunctionCall(cw, baseCall); + cw.funcPatches.Add(new FunctionPatch(cw) + { + Target = cw.EmitRef(Opcode.Push, DataType.Int32), + Name = baseCall.Text, + ArgCount = -1 + }); + cw.Emit(Opcode.Conv, DataType.Int32, DataType.Variable); + cw.funcPatches.Add(new FunctionPatch(cw) + { + Target = cw.EmitRef(Opcode.Call, DataType.Int32), + Name = "@@CopyStatic@@", + ArgCount = 1 }); } - cw.loopContexts.Push(new LoopContext(endPatch, startPatch)); AssembleStatement(cw, e.Children[1]); // body AssembleExit(cw); - cw.loopContexts.Pop(); endPatch.Finish(cw); - cw.funcPatches.Add(new FunctionPatch() + FunctionContext funcContext = cw.funcContexts.Pop(); + cw.loopContexts = funcContext.LoopContexts; + cw.controlFlowContexts = funcContext.ControlFlowContexts; + + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Push, DataType.Int32), Name = funcDefName.Text, ArgCount = -1 }); cw.Emit(Opcode.Conv, DataType.Int32, DataType.Variable); - if (isStructDef) + + if (isConstructor) { - cw.funcPatches.Add(new FunctionPatch() + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Call, DataType.Int32), Name = "@@NullObject@@", @@ -1367,7 +1578,8 @@ private static void AssembleExpression(CodeWriter cw, Parser.Statement e, Parser cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-1; cw.Emit(Opcode.Conv, DataType.Int32, DataType.Variable); } - cw.funcPatches.Add(new FunctionPatch() + + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Call, DataType.Int32), Name = "method", @@ -1375,12 +1587,18 @@ private static void AssembleExpression(CodeWriter cw, Parser.Statement e, Parser }); cw.typeStack.Push(DataType.Variable); cw.Emit(Opcode.Dup, DataType.Variable).Extra = 0; - if (isStructDef) + + if (funcDefName.Text.StartsWith("___struct___")) cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-16; + else if (cw.compileContext.Data.IsVersionAtLeast(2024) || cw.compileContext.OriginalCode.Name.Content == $"gml_GlobalScript_{funcDefName.Text}") + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-1; else - cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-1; // todo: -6 sometimes? + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-6; } break; + case Parser.Statement.StatementKind.ExprNew: + AssembleNew(cw, e, true); + break; case Parser.Statement.StatementKind.ExprBinaryOp: { // Push the left value onto the stack @@ -1637,7 +1855,7 @@ private static void AssembleExpression(CodeWriter cw, Parser.Statement e, Parser break; case Parser.Statement.StatementKind.ExprFuncName: { - cw.funcPatches.Add(new FunctionPatch() + cw.funcPatches.Add(new FunctionPatch(cw) { Target = cw.EmitRef(Opcode.Push, DataType.Int32), Name = e.Text, @@ -1767,6 +1985,9 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out { if (e.Children[0].Children.Count != 0) { + // Final processing on variable + var processedArray = CheckFor23BuiltinOrArg(cw, e.Children[0].Text, e.Children[0].ID); + if (e.Children[0].Kind == Parser.Statement.StatementKind.ExprFunctionCall) { // Function call @@ -1776,10 +1997,8 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out } // Special array access- instance type needs to be pushed beforehand - if (CompileContext.GMS2_3 && (cw.compileContext.BuiltInList.GlobalArray.ContainsKey(e.Children[0].Text) || cw.compileContext.BuiltInList.GlobalNotArray.ContainsKey(e.Children[0].Text))) - cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)(e.Children[0].Text == "argument" ? InstanceType.Arg : InstanceType.Builtin); // hack x2 - else - cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)e.Children[0].ID; + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)processedArray.NewID; + // Pushing array (incl. 2D) but not popping AssembleArrayPush(cw, e.Children[0], !duplicate); @@ -1815,8 +2034,8 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out cw.varPatches.Add(new VariablePatch() { Target = cw.EmitRef(Opcode.Push, DataType.Variable), - Name = e.Children[0].Text, - InstType = GetIDPrefixSpecial(e.Children[0].ID), + Name = processedArray.NewVarName, + InstType = GetIDPrefixSpecial(processedArray.NewID), VarType = VariableType.Array }); } @@ -1825,43 +2044,58 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out return; } isSingle = true; + + // Get variable type (if self) and instance ID + VariableType varTypeIfSelf = VariableType.Normal; int id = e.Children[0].ID; if (id >= 100000) + { + // This is a room instance ID, encoded as a 16-bit integer apparently + varTypeIfSelf = VariableType.Instance; id -= 100000; + } + string name = e.Children[0].Text; switch (id) { case -1: - if (cw.compileContext.BuiltInList.GlobalArray.ContainsKey(name) || cw.compileContext.BuiltInList.GlobalNotArray.ContainsKey(name)) + var processedSelf = CheckFor23BuiltinOrArg(cw, name, id); + if (processedSelf.NewID != id) { - if (CompileContext.GMS2_3 && - name.In( - "argument0", "argument1", "argument2", "argument3", - "argument4", "argument5", "argument6", "argument7", - "argument8", "argument9", "argument10", "argument11", - "argument12", "argument13", "argument14", "argument15")) + if (processedSelf.NewID == (int)InstanceType.Builtin) { - // 2.3 argument (excuse the condition... the ID seems to be lost, so this is the easiest way to check) + // Builtin global cw.varPatches.Add(new VariablePatch() { - Target = cw.EmitRef(Opcode.Push, DataType.Variable), - Name = name, - InstType = InstanceType.Arg, + Target = cw.EmitRef(useNoSpecificType ? Opcode.Push : Opcode.PushBltn, DataType.Variable), + Name = processedSelf.NewVarName, + InstType = (CompileContext.GMS2_3 && !useNoSpecificType) ? InstanceType.Builtin : InstanceType.Self, VarType = VariableType.Normal }); } else { - // Builtin global + // Argument cw.varPatches.Add(new VariablePatch() { - Target = cw.EmitRef(useNoSpecificType ? Opcode.Push : Opcode.PushBltn, DataType.Variable), - Name = name, - InstType = (CompileContext.GMS2_3 && !useNoSpecificType) ? InstanceType.Builtin : InstanceType.Self, + Target = cw.EmitRef(Opcode.Push, DataType.Variable), + Name = processedSelf.NewVarName, + InstType = (InstanceType)processedSelf.NewID, VarType = VariableType.Normal }); } } + else if (cw.compileContext.BuiltInList.GlobalArray.ContainsKey(name) || cw.compileContext.BuiltInList.GlobalNotArray.ContainsKey(name)) + { + // Builtin global + cw.varPatches.Add(new VariablePatch() + { + Target = cw.EmitRef(useNoSpecificType ? Opcode.Push : Opcode.PushBltn, DataType.Variable), + Name = name, + InstType = (CompileContext.GMS2_3 && !useNoSpecificType) ? InstanceType.Builtin : InstanceType.Self, + VarType = VariableType.Normal + }); + } else { cw.varPatches.Add(new VariablePatch() @@ -1869,7 +2103,7 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out Target = cw.EmitRef(Opcode.Push, DataType.Variable), Name = name, InstType = InstanceType.Self, - VarType = VariableType.Normal + VarType = varTypeIfSelf }); } break; @@ -1939,7 +2173,15 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out cw.typeStack.Push(DataType.Variable); if (notLast) { - cw.Emit(Opcode.Conv, cw.typeStack.Pop(), DataType.Int32); + if (CompileContext.GMS2_3) + { + cw.typeStack.Pop(); + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-9; // stacktop conversion + } + else + { + cw.Emit(Opcode.Conv, cw.typeStack.Pop(), DataType.Int32); + } } else isArray = true; @@ -1960,7 +2202,15 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out cw.typeStack.Push(DataType.Variable); if (next + 1 < e.Children.Count) { - cw.Emit(Opcode.Conv, cw.typeStack.Pop(), DataType.Int32); + if (CompileContext.GMS2_3) + { + cw.typeStack.Pop(); + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-9; // stacktop conversion + } + else + { + cw.Emit(Opcode.Conv, cw.typeStack.Pop(), DataType.Int32); + } } } } @@ -1974,13 +2224,17 @@ private static void AssembleVariablePush(CodeWriter cw, Parser.Statement e, out string variableName = e.Text; if (!fix2.WasIDSet || fix2.ID >= 100000) { - if (cw.compileContext.LocalVars.ContainsKey(variableName)) + if (cw.funcContexts.Count > 0 && cw.funcContexts.Peek().ParseInfo.LocalVars.Contains(variableName)) + { + fix2.ID = (int)InstanceType.Local; + } + else if (cw.funcContexts.Count == 0 && cw.compileContext.LocalVars.ContainsKey(variableName)) { - fix2.ID = -7; // local + fix2.ID = (int)InstanceType.Local; } else { - fix2.ID = -1; // self + fix2.ID = (int)InstanceType.Self; } } fix.Children.Add(fix2); @@ -2024,10 +2278,11 @@ private static void AssembleArrayPush(CodeWriter cw, Parser.Statement a, bool ar else { // Surprise! One small instruction. + var processed = CheckFor23BuiltinOrArg(cw, a.Text, a.ID); cw.varPatches.Add(new VariablePatch() { Target = cw.EmitRef(Opcode.Push, DataType.Variable), - Name = a.Text, + Name = processed.NewVarName, InstType = InstanceType.Self, VarType = arraypushaf ? VariableType.ArrayPushAF : VariableType.ArrayPopAF }); @@ -2069,6 +2324,44 @@ private static InstanceType GetIDPrefixSpecial(int ID) }; } + private static (string NewVarName, int NewID) CheckFor23BuiltinOrArg(CodeWriter cw, string varName, int id) + { + if (CompileContext.GMS2_3) + { + if (cw.funcContexts.Count > 0) + { + FunctionContext topFunctionCtx = cw.funcContexts.Peek(); + int argIndex = topFunctionCtx.NamedArguments.IndexOf(varName); + if (argIndex != -1) + { + // Found a named argument; rename it to builtin variable + return ($"argument{argIndex}", (int)InstanceType.Arg); + } + } + + if (cw.compileContext.BuiltInList.GlobalArray.ContainsKey(varName) || cw.compileContext.BuiltInList.GlobalNotArray.ContainsKey(varName)) + { + if (varName.In( + "argument", + "argument0", "argument1", "argument2", "argument3", + "argument4", "argument5", "argument6", "argument7", + "argument8", "argument9", "argument10", "argument11", + "argument12", "argument13", "argument14", "argument15")) + { + // Found normal argument variable + return (varName, (int)InstanceType.Arg); + } + else + { + // Found builtin variable + return (varName, (int)InstanceType.Builtin); + } + } + } + + return (varName, id); + } + private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, DataType typeToStore, bool skip = false, bool duplicate = false) { if (s.Kind == Parser.Statement.StatementKind.ExprVariableRef) @@ -2081,6 +2374,9 @@ private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, Dat if (s.Children[0].Children.Count != 0) { + // Final processing on variable + var processedArray = CheckFor23BuiltinOrArg(cw, s.Children[0].Text, s.Children[0].ID); + // Special array set- instance type needs to be pushed beforehand if (!skip) { @@ -2090,7 +2386,7 @@ private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, Dat cw.Emit(Opcode.Conv, typeToStore, DataType.Variable); typeToStore = DataType.Variable; } - cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)s.Children[0].ID; + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)processedArray.NewID; AssembleArrayPush(cw, s.Children[0]); } @@ -2118,55 +2414,32 @@ private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, Dat cw.varPatches.Add(new VariablePatch() { Target = cw.EmitRef(Opcode.Pop, popLocation, typeToStore), - Name = s.Children[0].Text, - InstType = GetIDPrefixSpecial(s.Children[0].ID), + Name = processedArray.NewVarName, + InstType = GetIDPrefixSpecial(processedArray.NewID), VarType = VariableType.Array }); } return; } - // Simple common assignment + // Simple common assignment. Get variable type and instance ID + VariableType varTypeIfSelf = VariableType.Normal; int id = s.Children[0].ID; if (id >= 100000) - id -= 100000; - if (CompileContext.GMS2_3 && (cw.compileContext.BuiltInList.GlobalArray.ContainsKey(s.Children[0].Text) || cw.compileContext.BuiltInList.GlobalNotArray.ContainsKey(s.Children[0].Text))) { - if (s.Children[0].Text.In( - "argument0", "argument1", "argument2", "argument3", - "argument4", "argument5", "argument6", "argument7", - "argument8", "argument9", "argument10", "argument11", - "argument12", "argument13", "argument14", "argument15")) - { - cw.varPatches.Add(new VariablePatch() - { - Target = cw.EmitRef(Opcode.Pop, popLocation, typeToStore), - Name = s.Children[0].Text, - InstType = InstanceType.Arg, - VarType = VariableType.Normal - }); - } - else - { - cw.varPatches.Add(new VariablePatch() - { - Target = cw.EmitRef(Opcode.Pop, popLocation, typeToStore), - Name = s.Children[0].Text, - InstType = InstanceType.Builtin, - VarType = VariableType.Normal - }); - } + // This is a room instance ID, encoded as a 16-bit integer apparently + varTypeIfSelf = VariableType.Instance; + id -= 100000; } - else + + var processedCommon = CheckFor23BuiltinOrArg(cw, s.Children[0].Text, id); + cw.varPatches.Add(new VariablePatch() { - cw.varPatches.Add(new VariablePatch() - { - Target = cw.EmitRef(Opcode.Pop, popLocation, typeToStore), - Name = s.Children[0].Text, - InstType = (InstanceType)id, - VarType = VariableType.Normal - }); - } + Target = cw.EmitRef(Opcode.Pop, popLocation, typeToStore), + Name = processedCommon.NewVarName, + InstType = (InstanceType)processedCommon.NewID, + VarType = varTypeIfSelf + }); } else { @@ -2211,7 +2484,18 @@ private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, Dat VarType = s.Children[next].Children.Count != 0 ? VariableType.Array : VariableType.StackTop }); if (next + 1 < s.Children.Count) - cw.Emit(Opcode.Conv, DataType.Variable, DataType.Int32); + { + if (CompileContext.GMS2_3) + { + cw.typeStack.Pop(); + cw.Emit(Opcode.PushI, DataType.Int16).Value = (short)-9; // stacktop conversion + cw.typeStack.Push(DataType.Int32); + } + else + { + cw.Emit(Opcode.Conv, DataType.Variable, DataType.Int32); + } + } } if (!skip) cw.typeStack.Pop(); @@ -2225,17 +2509,21 @@ private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, Dat string variableName = s.Text; if (!fix2.WasIDSet || fix2.ID >= 100000) { - if (cw.compileContext.LocalVars.ContainsKey(variableName)) + if (cw.funcContexts.Count > 0 && cw.funcContexts.Peek().ParseInfo.LocalVars.Contains(variableName)) { - fix2.ID = -7; // local - } + fix2.ID = (int)InstanceType.Local; + } + else if (cw.funcContexts.Count == 0 && cw.compileContext.LocalVars.ContainsKey(variableName)) + { + fix2.ID = (int)InstanceType.Local; + } else if (cw.compileContext.GlobalVars.ContainsKey(variableName)) { - fix2.ID = -5; // global + fix2.ID = (int)InstanceType.Global; } else { - fix2.ID = -1; // self + fix2.ID = (int)InstanceType.Self; } } fix.Children.Add(fix2); @@ -2243,16 +2531,10 @@ private static void AssembleStoreVariable(CodeWriter cw, Parser.Statement s, Dat } else if (s.Kind == Parser.Statement.StatementKind.ExprFuncName) { - bool isStructDef = s.Text.StartsWith("___struct___"); - // Until further notice, I'm assuming this only comes up in 2.3 script definition. - cw.varPatches.Add(new VariablePatch() - { - Target = cw.EmitRef(Opcode.Pop, DataType.Variable, DataType.Variable), - Name = s.Text, - InstType = isStructDef ? InstanceType.Static : InstanceType.Self, - VarType = VariableType.StackTop - }); - if (!isStructDef) cw.Emit(Opcode.Popz, DataType.Variable); + // Technically not fully valid syntax, but permit it as a simple variable + Parser.Statement fix = new Parser.Statement(s); + fix.Kind = Parser.Statement.StatementKind.ExprSingleVariable; + AssembleStoreVariable(cw, fix, typeToStore, skip, duplicate); } else { diff --git a/UndertaleModLib/Compiler/BuiltinList.cs b/UndertaleModLib/Compiler/BuiltinList.cs index 3aff20824..0ded302e8 100644 --- a/UndertaleModLib/Compiler/BuiltinList.cs +++ b/UndertaleModLib/Compiler/BuiltinList.cs @@ -125,7 +125,8 @@ public class BuiltinList public int Argument0ID = 0; public int Argument15ID = 0; - public BuiltinList() { + public BuiltinList() + { Initialize(null); } @@ -2090,7 +2091,7 @@ public void Initialize(UndertaleData data) Functions["buffer_async_group_begin"] = new FunctionInfo(this, 1); Functions["buffer_async_group_end"] = new FunctionInfo(this, 0); Functions["buffer_async_group_option"] = new FunctionInfo(this, 2); - Functions["buffer_get_surface"] = new FunctionInfo(this, (data.IsVersionAtLeast(2, 3, 1) ? 3 : 5)); // be more robust here + Functions["buffer_get_surface"] = new FunctionInfo(this, ((data?.IsVersionAtLeast(2, 3, 1) ?? false) ? 3 : 5)); // be more robust here Functions["buffer_set_surface"] = new FunctionInfo(this, 5); Functions["buffer_set_network_safe"] = new FunctionInfo(this, 2); Functions["buffer_create_from_vertex_buffer"] = new FunctionInfo(this, 3); diff --git a/UndertaleModLib/Compiler/Compiler.cs b/UndertaleModLib/Compiler/Compiler.cs index bc66d386c..064746782 100644 --- a/UndertaleModLib/Compiler/Compiler.cs +++ b/UndertaleModLib/Compiler/Compiler.cs @@ -2,10 +2,9 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using System.Threading.Tasks; using UndertaleModLib.Models; using static UndertaleModLib.Compiler.Compiler.AssemblyWriter; -using AssetRefType = UndertaleModLib.Decompiler.Decompiler.ExpressionAssetRef.RefType; +using static UndertaleModLib.Util.AssetReferenceTypes; namespace UndertaleModLib.Compiler { @@ -22,8 +21,12 @@ public class CompileContext public bool TypedAssetRefs => Data.IsVersionAtLeast(2023, 8); public int LastCompiledArgumentCount = 0; public Dictionary LocalVars = new Dictionary(); - public Dictionary GlobalVars = new Dictionary(); - public Dictionary> Enums = new Dictionary>(); + public Dictionary GlobalVars = new Dictionary(); + public Stack FunctionParseStack = new(); + public Dictionary FunctionParseInfo = new(); + public List<(string, Compiler.Parser.Statement)> EnumStatements = new List<(string, Compiler.Parser.Statement)>(); + public Dictionary> Enums = new Dictionary>(); + public bool FirstPassResolvingEnums = false; public UndertaleCode OriginalCode; public IList OriginalReferencedLocalVars; public BuiltinList BuiltInList => Data.BuiltinList; @@ -44,9 +47,35 @@ public CompileContext(UndertaleData data, UndertaleCode oldCode) OriginalReferencedLocalVars = OriginalCode?.FindReferencedLocalVars(); } + /// + /// Returns the asset index (including encoded reference type, if applicable) of a given identifier, + /// or -1 if no asset/reference is found. + /// public int GetAssetIndexByName(string name) { - return assetIds.TryGetValue(name, out int val) ? val : -1; + // Look up asset names + if (assetIds.TryGetValue(name, out int val)) + { + return val; + } + + // Handle named instance IDs + string instanceIdPrefix = Data.ToolInfo.InstanceIdPrefix(); + if (name.StartsWith(instanceIdPrefix, StringComparison.InvariantCulture)) + { + if (int.TryParse(name[instanceIdPrefix.Length..], out int id) && id >= 100000) + { + if (TypedAssetRefs) + { + // Add type to ID + id = (id & 0xffffff) | ((ConvertFromRefType(Data, RefType.RoomInstance) & 0x7f) << 24); + } + return id; + } + } + + // Nothing found + return -1; } public void OnSuccessfulFinish() @@ -74,7 +103,7 @@ public void OnSuccessfulFinish() UndertaleFunction functionObj = Data.Functions.ByName(scriptName); if (functionObj is not null) Data.Functions.Remove(functionObj); - Data.KnownSubFunctions.Remove(name); + Data.GlobalFunctions.UndefineFunction(name, functionObj); } FunctionsToObliterate.Clear(); } @@ -130,21 +159,21 @@ private void MakeAssetDictionary() assetIds.EnsureCapacity(maxSize); scripts.EnsureCapacity(Data.Scripts?.Count ?? 0); - AddAssetsFromList(Data.GameObjects, AssetRefType.Object); - AddAssetsFromList(Data.Sprites, AssetRefType.Sprite); - AddAssetsFromList(Data.Sounds, AssetRefType.Sound); - AddAssetsFromList(Data.Backgrounds, AssetRefType.Background); - AddAssetsFromList(Data.Paths, AssetRefType.Path); - AddAssetsFromList(Data.Fonts, AssetRefType.Font); - AddAssetsFromList(Data.Timelines, AssetRefType.Timeline); + AddAssetsFromList(Data.GameObjects, RefType.Object); + AddAssetsFromList(Data.Sprites, RefType.Sprite); + AddAssetsFromList(Data.Sounds, RefType.Sound); + AddAssetsFromList(Data.Backgrounds, RefType.Background); + AddAssetsFromList(Data.Paths, RefType.Path); + AddAssetsFromList(Data.Fonts, RefType.Font); + AddAssetsFromList(Data.Timelines, RefType.Timeline); if (!GMS2_3) - AddAssetsFromList(Data.Scripts, AssetRefType.Object /* not actually used */); - AddAssetsFromList(Data.Shaders, AssetRefType.Shader); - AddAssetsFromList(Data.Rooms, AssetRefType.Room); - AddAssetsFromList(Data.AudioGroups, AssetRefType.Sound /* apparently? */); - AddAssetsFromList(Data.AnimationCurves, AssetRefType.AnimCurve); - AddAssetsFromList(Data.Sequences, AssetRefType.Sequence); - AddAssetsFromList(Data.ParticleSystems, AssetRefType.ParticleSystem); + AddAssetsFromList(Data.Scripts, RefType.Script /* not actually used */); + AddAssetsFromList(Data.Shaders, RefType.Shader); + AddAssetsFromList(Data.Rooms, RefType.Room); + AddAssetsFromList(Data.AudioGroups, RefType.Sound /* apparently? */); + AddAssetsFromList(Data.AnimationCurves, RefType.AnimCurve); + AddAssetsFromList(Data.Sequences, RefType.Sequence); + AddAssetsFromList(Data.ParticleSystems, RefType.ParticleSystem); if (Data.Scripts is not null) { @@ -168,7 +197,7 @@ private void MakeAssetDictionary() } } - private void AddAssetsFromList(IList list, AssetRefType type) where T : UndertaleNamedResource + private void AddAssetsFromList(IList list, RefType type) where T : UndertaleNamedResource { if (list == null) return; @@ -180,7 +209,7 @@ private void AddAssetsFromList(IList list, AssetRefType type) where T : Un if (name != null) { // Typed asset refs pack their type into the ID - assetIds[name] = (i & 0xffffff) | (((int)type & 0x7f) << 24); + assetIds[name] = (i & 0xffffff) | ((ConvertFromRefType(Data, type) & 0x7f) << 24); } } } diff --git a/UndertaleModLib/Compiler/Lexer.cs b/UndertaleModLib/Compiler/Lexer.cs index 73443783f..74b63bc9e 100644 --- a/UndertaleModLib/Compiler/Lexer.cs +++ b/UndertaleModLib/Compiler/Lexer.cs @@ -1,9 +1,8 @@ using System; using System.Collections.Generic; -using System.Linq; +using System.Reflection; using System.Runtime.CompilerServices; using System.Text; -using System.Threading.Tasks; namespace UndertaleModLib.Compiler { @@ -166,15 +165,45 @@ private static Token ReadToken(CodeReader cr, bool gms2) return new Token(Token.TokenKind.EOF); } - if (cr.PeekChar() == '#') + while (cr.PeekChar() == '#') { - // Skip preprocessor directive/macro/etc. Maybe support could be added later... but not yet. + int startHashtagIndex = cr.Position; + cr.AdvancePosition(); + + // Read first word to see if it's one we want to skip + StringBuilder firstWordBuilder = new("#", 8); while (!cr.EOF) { - if (cr.PeekChar() == '\n') + char nextChar = cr.PeekChar(); + if ((nextChar < '0' || nextChar > '9') && (nextChar < 'A' || nextChar > 'Z') && + (nextChar < 'a' || nextChar > 'z') && nextChar != '_') + { break; + } + firstWordBuilder.Append(nextChar); cr.AdvancePosition(); } + + string firstWord = firstWordBuilder.ToString(); + if (firstWord == "#macro" || firstWord == "#region" || firstWord == "#endregion") + { + // Skip preprocessor directive/macros/etc + while (!cr.EOF) + { + if (cr.PeekChar() == '\n') + break; + cr.AdvancePosition(); + } + SkipWhitespaceAndComments(cr); + if (cr.EOF) + { + return new Token(Token.TokenKind.EOF); + } + } + else + { + return new Token(Token.TokenKind.Number, firstWord, cr.GetPositionInfo(startHashtagIndex)); + } } char c = cr.PeekChar(); @@ -492,8 +521,10 @@ private static Token ReadIdentifier(CodeReader cr) "globalvar" => new Token(Token.TokenKind.KeywordGlobalVar, cr.GetPositionInfo(index)), "return" => new Token(Token.TokenKind.KeywordReturn, cr.GetPositionInfo(index)), "default" => new Token(Token.TokenKind.KeywordDefault, cr.GetPositionInfo(index)), - "struct" => new Token(Token.TokenKind.KeywordStruct, cr.GetPositionInfo(index)), "function" when CompileContext.GMS2_3 => new Token(Token.TokenKind.KeywordFunction, cr.GetPositionInfo(index)), + "throw" when CompileContext.GMS2_3 => new Token(Token.TokenKind.KeywordThrow, cr.GetPositionInfo(index)), + "constructor" when CompileContext.GMS2_3 => new Token(Token.TokenKind.KeywordConstructor, cr.GetPositionInfo(index)), + "new" when CompileContext.GMS2_3 => new Token(Token.TokenKind.KeywordNew, cr.GetPositionInfo(index)), "for" => new Token(Token.TokenKind.KeywordFor, cr.GetPositionInfo(index)), "case" => new Token(Token.TokenKind.KeywordCase, cr.GetPositionInfo(index)), "switch" => new Token(Token.TokenKind.KeywordSwitch, cr.GetPositionInfo(index)), @@ -698,13 +729,14 @@ private static Token ReadNumberLiteral(CodeReader cr) private static Token ReadHexLiteral(CodeReader cr) { - StringBuilder sb = new StringBuilder(); + StringBuilder sb = new(8); int index = cr.Position; // Read the prefix ($ or 0x) - sb.Append(cr.ReadChar()); - if (cr.PeekChar() == 'x') + char first = cr.ReadChar(); + sb.Append(first); + if (first == '0' && cr.PeekChar() == 'x') sb.Append(cr.ReadChar()); // Read the digits @@ -811,8 +843,10 @@ public enum TokenKind KeywordExit, KeywordBreak, KeywordContinue, - KeywordStruct, // Apparently this exists KeywordFunction, + KeywordThrow, + KeywordConstructor, + KeywordNew, OpenBlock, // { CloseBlock, // } OpenArray, // [ diff --git a/UndertaleModLib/Compiler/Parser.cs b/UndertaleModLib/Compiler/Parser.cs index 6d0d68e93..e441bb1aa 100644 --- a/UndertaleModLib/Compiler/Parser.cs +++ b/UndertaleModLib/Compiler/Parser.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; using System.Text; -using System.Threading.Tasks; using UndertaleModLib.Models; using static UndertaleModLib.Compiler.Compiler.Lexer.Token; @@ -103,6 +103,9 @@ public enum StatementKind SwitchDefault, FunctionCall, FunctionDef, + FunctionDefAssign, + Throw, + New, Break, Continue, Exit, @@ -125,6 +128,7 @@ public enum StatementKind ExprVariableRef, ExprSingleVariable, ExprFuncName, + ExprNew, Token, Discard // optimization stage produces this @@ -242,6 +246,11 @@ public Statement(TokenKind newKind, Lexer.Token copyFrom, ExpressionConstant con } } + public class FunctionParseInfo + { + public HashSet LocalVars { get; } = new(); + } + [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Statement EnsureStatementKind(Statement.StatementKind kind) { @@ -445,7 +454,10 @@ public static Statement ParseTokens(CompileContext context, List to context.LocalVars.Clear(); if ((context.Data?.GeneralInfo?.BytecodeVersion ?? 15) >= 15) context.LocalVars["arguments"] = "arguments"; + context.FunctionParseStack.Clear(); + context.FunctionParseInfo.Clear(); context.GlobalVars.Clear(); + context.EnumStatements.Clear(); context.Enums.Clear(); context.FunctionsToObliterate.Clear(); uuidCounter = 0; @@ -498,11 +510,13 @@ public static Statement ParseTokens(CompileContext context, List to ExpressionConstant constant = null; if (t.Content[0] == '$' || t.Content.StartsWith("0x", StringComparison.InvariantCulture)) { + // General hex number literal long val; try { val = Convert.ToInt64(t.Content.Substring(t.Content[0] == '$' ? 1 : 2), 16); - } catch (Exception) + } + catch (Exception) { ReportCodeError("Invalid hex literal.", t, false); constant = new ExpressionConstant(0); @@ -518,11 +532,23 @@ public static Statement ParseTokens(CompileContext context, List to constant = new ExpressionConstant((double)val); } } + else if (t.Content[0] == '#') + { + // CSS color hex literal - needs to convert from RGB to BGR + if (t.Content.Length != 7 || + !int.TryParse(t.Content[1..], NumberStyles.HexNumber, CultureInfo.InvariantCulture, out int value)) + { + ReportCodeError("Invalid CSS color hex literal. Must have exactly 6 hex characters.", t, false); + constant = new ExpressionConstant(0); + firstPass.Add(new Statement(TokenKind.ProcConstant, t, constant)); + continue; + } + constant = new ExpressionConstant((double)(((value & 0xff) << 16) | (value & 0xff00) | ((value & 0xff0000) >> 16))); + } else { - if (!double.TryParse(t.Content, System.Globalization.NumberStyles.Float, - System.Globalization.CultureInfo.InvariantCulture, - out double val)) + // Double-precision floating point literal + if (!double.TryParse(t.Content, NumberStyles.Float, CultureInfo.InvariantCulture, out double val)) { ReportCodeError("Invalid double number format.", t, false); } @@ -557,6 +583,9 @@ public static Statement ParseTokens(CompileContext context, List to // This should be safe since struct functions should only be used in one place each while (usableStructNames.Count > 0) context.FunctionsToObliterate.Add(usableStructNames.Dequeue()); + + // Resolve all enum values to their constants + ResolveEnumDeclarations(context); return rootBlock; } @@ -660,6 +689,12 @@ private static Statement ParseStatement(CompileContext context) case TokenKind.KeywordFunction: s = ParseFunction(context); break; + case TokenKind.KeywordNew: + s = ParseNew(context, false); + break; + case TokenKind.KeywordThrow: + s = ParseThrow(context); + break; default: // Assumes it's a variable assignment if (remainingStageOne.Count > 0) @@ -686,6 +721,10 @@ private static Statement ParseFunction(CompileContext context) Statement args = new Statement(); bool expressionMode = true; Statement destination = null; + + FunctionParseInfo info = new(); + context.FunctionParseStack.Push(info); + context.FunctionParseInfo[result] = info; if (GetNextTokenKind() == TokenKind.ProcFunction) { @@ -701,11 +740,25 @@ private static Statement ParseFunction(CompileContext context) EnsureTokenKind(TokenKind.OpenParen); + int numNamedArguments = 0; while (remainingStageOne.Count > 0 && !hasError && !IsNextToken(TokenKind.EOF, TokenKind.CloseParen)) { - Statement expr = ParseExpression(context); + numNamedArguments++; + Statement expr = EnsureTokenKind(TokenKind.ProcVariable); if (expr != null) args.Children.Add(expr); + + if (IsNextTokenDiscard(TokenKind.Assign)) + { + Statement defaultValue = ParseExpression(context); + args.Children.Add(defaultValue); + } + else + { + // No default value supplied + args.Children.Add(null); + } + if (!IsNextTokenDiscard(TokenKind.Comma)) { if (!IsNextToken(TokenKind.CloseParen)) @@ -717,21 +770,52 @@ private static Statement ParseFunction(CompileContext context) } result.Children.Add(args); + if (numNamedArguments > 16) + { + ReportCodeError("Only 16 named arguments are allowed per function.", result.Token, false); + } + if (EnsureTokenKind(TokenKind.CloseParen) == null) return null; + if (IsNextTokenDiscard(TokenKind.Colon)) + { + result.Children.Insert(0, ParseFunctionCall(context)); // TODO: variable function calls + result.Children.Insert(0, EnsureTokenKind(TokenKind.KeywordConstructor)); + } + else if (IsNextToken(TokenKind.KeywordConstructor)) + { + result.Children.Insert(0, EnsureTokenKind(TokenKind.KeywordConstructor)); + } - result.Children.Add(ParseStatement(context)); + result.Children.Add(ParseBlock(context)); + + context.FunctionParseStack.Pop(); if (expressionMode) return result; else // Whatever you call non-anonymous definitions { - Statement trueResult = new Statement(Statement.StatementKind.Assign, new Lexer.Token(TokenKind.Assign)); + Statement trueResult = new Statement(Statement.StatementKind.FunctionDefAssign); trueResult.Children.Add(destination); - trueResult.Children.Add(new Statement(Statement.StatementKind.Token, trueResult.Token)); trueResult.Children.Add(result); return trueResult; } } + private static Statement ParseThrow(CompileContext context) + { + Statement result = new(Statement.StatementKind.Throw, EnsureTokenKind(TokenKind.KeywordThrow).Token); + result.Children.Add(ParseExpression(context)); + return result; + } + + private static Statement ParseNew(CompileContext context, bool expression) + { + Statement result = new( + expression ? Statement.StatementKind.ExprNew : Statement.StatementKind.New, + EnsureTokenKind(TokenKind.KeywordNew).Token); + result.Children.Add(ParseFunctionCall(context, true)); // TODO: variable function calls + return result; + } + private static Statement ParseFor(CompileContext context) { Statement result = new Statement(Statement.StatementKind.ForLoop, EnsureTokenKind(TokenKind.KeywordFor).Token); @@ -849,11 +933,8 @@ private static Statement ParseAssign(CompileContext context) private static Statement ParseEnum(CompileContext context) { - ReportCodeError("Enums not currently supported.", true); - return null; - /* Statement result = new Statement(Statement.StatementKind.Enum, EnsureTokenKind(TokenKind.Enum).Token); - Dictionary values = new Dictionary(); + Dictionary values = new Dictionary(); Statement name = EnsureTokenKind(TokenKind.ProcVariable); if (name == null) @@ -863,43 +944,36 @@ private static Statement ParseEnum(CompileContext context) result.Text = name.Text; result.ID = name.ID; - if (EnsureTokenKind(TokenKind.OpenBlock) == null) return null; + if (EnsureTokenKind(TokenKind.OpenBlock) == null) + return null; - if (Enums.ContainsKey(name.Text)) + if (context.Enums.ContainsKey(name.Text)) { ReportCodeError("Enum \"" + name.Text + "\" is defined more than once.", name.Token, true); - } else + } + else { - Enums[name.Text] = values; + context.Enums[name.Text] = values; + context.EnumStatements.Add((name.Text, result)); } - int incrementingValue = 0; while (!hasError && !IsNextToken(TokenKind.CloseBlock)) { Statement val = new Statement(Statement.StatementKind.VariableName, remainingStageOne.Dequeue().Token); result.Children.Add(val); - + if (IsNextTokenDiscard(TokenKind.Assign)) { - Statement expr = ParseExpression(); + Statement expr = ParseExpression(context); val.Children.Add(expr); - Statement optimized = Optimize(expr); - if (expr.Token.Kind == TokenKind.Constant && (expr.Kind != Statement.StatementKind.ExprConstant || - expr.Constant.kind == ExpressionConstant.Kind.Constant || expr.Constant.kind == ExpressionConstant.Kind.Number)) - { - incrementingValue = (int)optimized.Constant.valueNumber; - } else - { - ReportCodeError("Enum value must be an integer constant value.", expr.Token, true); - } } if (values.ContainsKey(val.Text)) { - ReportCodeError("Duplicate enum value found.", val.Token, true); + ReportCodeError("Duplicate enum entry found.", val.Token, true); } - values[val.Text] = incrementingValue++; + values[val.Text] = null; if (!IsNextTokenDiscard(TokenKind.Comma)) { @@ -908,7 +982,131 @@ private static Statement ParseEnum(CompileContext context) } } - return result;*/ + return result; + } + + private static void ResolveEnumDeclarations(CompileContext context) + { + // First pass on all enums + context.FirstPassResolvingEnums = true; + foreach ((string Name, Statement Statement) enumDecl in context.EnumStatements) + { + Dictionary values = context.Enums[enumDecl.Name]; + + // Populate values (with null, if unknown in this first pass) + long? incrementingValue = 0; + foreach (Statement entry in enumDecl.Statement.Children) + { + if (entry.Children.Count == 1) + { + // Read expression, and if it's constant, assign it + Statement value = entry.Children[0] = Optimize(context, entry.Children[0]); + if (value.Kind == Statement.StatementKind.ExprConstant) + { + ExpressionConstant constant = value.Constant; + if (constant == null) + { + ReportCodeError("Invalid constant in enum", value.Token, false); + incrementingValue = null; + } + else + { + if (constant.kind == ExpressionConstant.Kind.Number) + { + incrementingValue = (long)constant.valueNumber; + } + else if (constant.kind == ExpressionConstant.Kind.Int64) + { + incrementingValue = constant.valueInt64; + } + else + { + incrementingValue = null; + } + } + } + else + { + incrementingValue = null; + } + } + + // Assign value to this entry + values[entry.Token.Content] = incrementingValue; + + // Increment to next value (if known) + if (incrementingValue is not null) + { + incrementingValue++; + } + } + } + context.FirstPassResolvingEnums = false; + + // Second pass on all enums + foreach ((string Name, Statement Statement) enumDecl in context.EnumStatements) + { + Dictionary values = context.Enums[enumDecl.Name]; + + // Populate remaining values not covered in first pass + long? incrementingValue = 0; + foreach (Statement entry in enumDecl.Statement.Children) + { + long? fromFirstPass = values[entry.Token.Content]; + if (fromFirstPass is not null) + { + incrementingValue = fromFirstPass + 1; + continue; + } + + if (entry.Children.Count == 1) + { + // Read expression, and make sure it's constant this time + Statement value = entry.Children[0] = Optimize(context, entry.Children[0]); + if (value.Kind != Statement.StatementKind.ExprConstant) + { + ReportCodeError($"Enum entry \"{enumDecl.Name}.{entry.Token.Content}\" failed to resolve to a constant", false); + continue; + } + else + { + ExpressionConstant constant = value.Constant; + if (constant == null) + { + ReportCodeError("Invalid constant in enum", value.Token, false); + incrementingValue = null; + } + else + { + if (constant.kind == ExpressionConstant.Kind.Number) + { + incrementingValue = (long)constant.valueNumber; + } + else if (constant.kind == ExpressionConstant.Kind.Int64) + { + incrementingValue = constant.valueInt64; + } + else + { + incrementingValue = null; + } + } + } + } + + if (incrementingValue is null) + { + ReportCodeError($"Failed to resolve enum entry value \"{enumDecl.Name}.{entry.Token.Content}\"", false); + incrementingValue = 0; + } + + // Assign value to this entry + values[entry.Token.Content] = incrementingValue; + + // Increment to next value + incrementingValue++; + } + } } private static Statement ParseDoUntil(CompileContext context) @@ -1011,6 +1209,10 @@ private static Statement ParseLocalVarDeclare(CompileContext context) Statement variable = new Statement(var) { Kind = Statement.StatementKind.ExprSingleVariable }; result.Children.Add(variable); context.LocalVars[var.Text] = var.Text; + if (context.FunctionParseStack.Count > 0) + { + context.FunctionParseStack.Peek().LocalVars.Add(var.Text); + } // Read assignments if necessary if (remainingStageOne.Count > 0 && IsNextToken(TokenKind.Assign)) @@ -1507,6 +1709,8 @@ private static Statement ParseLowLevel(CompileContext context) return ParseFunctionCall(context, true); case TokenKind.KeywordFunction: return ParseFunction(context); + case TokenKind.KeywordNew: + return ParseNew(context, true); case TokenKind.ProcVariable: { Statement variableRef = ParseSingleVar(context); @@ -1610,7 +1814,8 @@ private static Statement ParseStructLiteral(CompileContext context) varName = "___struct___" + context.OriginalCode.Name.Content + "__" + uuidCounter++.ToString(); i++; - } while (context.Data.KnownSubFunctions.ContainsKey(varName)); + } + while (context.Data.GlobalFunctions.FunctionNameExists(varName)); } int ID = GetVariableID(context, varName, out _); @@ -1626,12 +1831,14 @@ private static Statement ParseStructLiteral(CompileContext context) { ID = procVar.ID, Text = varName }; Statement body = new Statement(); + function.Children.Add(new Statement(Statement.StatementKind.Token, new Lexer.Token(TokenKind.KeywordConstructor))); // ensure it's a constructor function function.Children.Add(args); function.Children.Add(body); - Statement functionAssign = new Statement(Statement.StatementKind.Assign, new Lexer.Token(TokenKind.Assign)); + context.FunctionParseInfo[function] = new(); + + Statement functionAssign = new Statement(Statement.StatementKind.FunctionDefAssign); functionAssign.Children.Add(destination); - functionAssign.Children.Add(new Statement(Statement.StatementKind.Token, functionAssign.Token)); functionAssign.Children.Add(function); result.Children.Add(functionAssign); @@ -1725,6 +1932,18 @@ public static Statement Optimize(CompileContext context, Statement s) // There's nothing to optimize here, don't waste time checking return s; } + else if (s.Kind == Statement.StatementKind.FunctionDef) + { + // Maintain a reference for function declarations + result = s; + for (int i = 0; i < result.Children.Count; i++) + { + if (result.Children[i] == null) + result.Children[i] = new Statement(Statement.StatementKind.Discard); + else + result.Children[i] = Optimize(context, result.Children[i]); + } + } else { result = new Statement(s); @@ -1736,7 +1955,8 @@ public static Statement Optimize(CompileContext context, Statement s) result.Children[i] = Optimize(context, result.Children[i]); } } - } else + } + else result = new Statement(s); Statement child0 = result.Children[0]; @@ -2059,6 +2279,15 @@ public static Statement Optimize(CompileContext context, Statement s) } break; case Statement.StatementKind.ExprVariableRef: + // Optimize enums, if detected + if (result.Children.Count == 2 && + result.Children[0].Kind == Statement.StatementKind.ExprSingleVariable && + result.Children[1].Kind == Statement.StatementKind.ExprSingleVariable) + { + result = OptimizeEnumConstant(context, result, result.Children[0], result.Children[1]); + break; + } + for (int i = 0; i < result.Children.Count; i++) { if (result.Children[i].Children.Count != 2 || result.Children[i].Children[0].Kind != Statement.StatementKind.Token) @@ -2096,7 +2325,38 @@ public static Statement Optimize(CompileContext context, Statement s) ReportCodeError("Case argument must be constant.", result.Token, false); } break; - // todo: parse enum references + case Statement.StatementKind.FunctionDef: + { + // Produce default argument assignments, if they exist + int childrenOffset = result.Children.Count - 2; + Statement args = result.Children[childrenOffset], body = result.Children[childrenOffset + 1]; + for (int i = args.Children.Count - 2; i >= 0; i -= 2) + { + Statement defaultValue = args.Children[i + 1]; + if (defaultValue is not null && defaultValue.Kind != Statement.StatementKind.Discard) + { + Statement ifStmt = new(Statement.StatementKind.If); + Statement compare = new(Statement.StatementKind.ExprBinaryOp, new Lexer.Token(TokenKind.CompareEqual)); + Statement argVariable = new(Statement.StatementKind.ExprSingleVariable, new Lexer.Token(TokenKind.ProcVariable, $"argument{i / 2}")); + Statement undefinedVariable = new(Statement.StatementKind.ExprSingleVariable, new Lexer.Token(TokenKind.ProcVariable, "undefined")); + compare.Children.Add(argVariable); + compare.Children.Add(undefinedVariable); + ifStmt.Children.Add(compare); + Statement assign = new(Statement.StatementKind.Assign); + assign.Children.Add(argVariable); + assign.Children.Add(new Statement(Statement.StatementKind.Assign, new Lexer.Token(TokenKind.Assign))); + assign.Children.Add(defaultValue); + ifStmt.Children.Add(assign); + body.Children.Insert(0, ifStmt); + args.Children.RemoveAt(i + 1); + } + else + { + args.Children.RemoveAt(i + 1); + } + } + } + break; } return result; } @@ -2121,6 +2381,30 @@ private static AccessorInfo GetAccessorInfoFromStatement(CompileContext context, return ai; } + private static Statement OptimizeEnumConstant(CompileContext context, Statement original, Statement enumName, Statement enumEntry) + { + if (context.Enums.TryGetValue(enumName.Token.Content, out Dictionary values)) + { + if (values.TryGetValue(enumEntry.Token.Content, out long? value) && value is not null) + { + Statement newConstant = new(Statement.StatementKind.ExprConstant) + { + Constant = new ExpressionConstant((long)value) + }; + return newConstant; + } + else + { + if (!context.FirstPassResolvingEnums) + { + ReportCodeError($"Failed to resolve enum entry \"{enumName.Token.Content}.{enumEntry.Token.Content}\"", false); + } + } + } + + return original; + } + // This is probably the messiest function. I can't think of any easy ways to clean it right now though. private static Statement OptimizeBinaryOp(Statement s) { @@ -2847,7 +3131,6 @@ private static bool IsKeyword(TokenKind t) TokenKind.KeywordIf, TokenKind.KeywordRepeat, TokenKind.KeywordReturn, - TokenKind.KeywordStruct, TokenKind.KeywordSwitch, TokenKind.KeywordThen, TokenKind.KeywordUntil, diff --git a/UndertaleModLib/Decompiler/Assembler.cs b/UndertaleModLib/Decompiler/Assembler.cs index 9c22dda6d..5f38a3ed0 100644 --- a/UndertaleModLib/Decompiler/Assembler.cs +++ b/UndertaleModLib/Decompiler/Assembler.cs @@ -172,11 +172,25 @@ public static UndertaleInstruction AssembleOne(string source, IList(data.Variables.EnsureDefined(line, + UndertaleInstruction.InstanceType.Self, false, data.Strings, data)); + } + else if (line.StartsWith("[function]")) + { + line = line.Substring("[function]".Length); + instr.Value = new UndertaleInstruction.Reference(data.Functions.ByName(line)); + } else - instr.Value = new UndertaleInstruction.Reference(f); + { + var f = data.Functions.ByName(line); + if (f == null) + instr.Value = (int)ParseResourceName(line, data); + else + instr.Value = new UndertaleInstruction.Reference(f); + } } break; case UndertaleInstruction.DataType.Int64: @@ -404,97 +418,131 @@ private static UndertaleResourceById ParseS private static UndertaleInstruction.Reference ParseVariableReference(string line, IList vars, Dictionary localvars, ref UndertaleInstruction.InstanceType instance, UndertaleInstruction instr, UndertaleData data = null) { - string str = line; + ReadOnlySpan str = line.AsSpan(); + int strPosition = 0; + + // Variable type, and instance type as stored in VARI chunk, adjusted based on context UndertaleInstruction.VariableType type = UndertaleInstruction.VariableType.Normal; - UndertaleInstruction.InstanceType realinstance = instance; - if (str[0] != '[') + UndertaleInstruction.InstanceType variInstanceType = instance; + + // Parse instance type, if at the beginning + if (str[strPosition] != '[') { - string inst = null; - int instdot = str.IndexOf('.', StringComparison.InvariantCulture); - if (instdot >= 0) - { - inst = str.Substring(0, instdot); - str = str.Substring(instdot + 1); - if (inst == "") - throw new Exception("Whoops?"); - } - if (inst != null) + // Read up until first dot character + int instanceTypeDot = str.IndexOf('.'); + if (instanceTypeDot >= 0) { - short instnum; - if (Int16.TryParse(inst, out instnum)) + ReadOnlySpan instanceTypeStr = str[..instanceTypeDot]; + if (short.TryParse(instanceTypeStr, out short instNum)) { - instance = (UndertaleInstruction.InstanceType)instnum; + // This is a valid 16-bit integer, probably an object or room instance ID + instance = (UndertaleInstruction.InstanceType)instNum; } else { - instance = (UndertaleInstruction.InstanceType)Enum.Parse(typeof(UndertaleInstruction.InstanceType), inst, true); + // Otherwise, this should always be one of the valid instance type enum values + instance = (UndertaleInstruction.InstanceType)Enum.Parse(typeof(UndertaleInstruction.InstanceType), instanceTypeStr, true); } } else { + // Instance type is missing seemingly, so just use undefined instance = UndertaleInstruction.InstanceType.Undefined; } - realinstance = instance; - if (realinstance >= 0) - realinstance = UndertaleInstruction.InstanceType.Self; - else if (realinstance == UndertaleInstruction.InstanceType.Other) - realinstance = UndertaleInstruction.InstanceType.Self; - else if (realinstance == UndertaleInstruction.InstanceType.Arg) - realinstance = UndertaleInstruction.InstanceType.Builtin; - else if (realinstance == UndertaleInstruction.InstanceType.Builtin) - realinstance = UndertaleInstruction.InstanceType.Self; // used with @@This@@ - else if (realinstance == UndertaleInstruction.InstanceType.Stacktop) - realinstance = UndertaleInstruction.InstanceType.Self; // used with @@GetInstance@@ + // Adjust VARI instance type based on existing type + variInstanceType = instance switch + { + >= 0 => UndertaleInstruction.InstanceType.Self, + UndertaleInstruction.InstanceType.Other => UndertaleInstruction.InstanceType.Self, + UndertaleInstruction.InstanceType.Arg => UndertaleInstruction.InstanceType.Builtin, + UndertaleInstruction.InstanceType.Builtin => UndertaleInstruction.InstanceType.Self, // used with @@This@@ + UndertaleInstruction.InstanceType.Stacktop => UndertaleInstruction.InstanceType.Self, // used with @@GetInstance@@ + _ => instance + }; + + // Set up for parsing after the dot + strPosition = instanceTypeDot + 1; } - else + + // Parse variable type, if present here, as well as the alternate location of the instance type, if present (directly after it) + if (strPosition < str.Length && str[strPosition] == '[') { - int typeend = str.IndexOf(']', StringComparison.InvariantCulture); - if (typeend >= 0) + // Read up until closing bracket character + int variableTypeEnd = str[(strPosition + 1)..].IndexOf(']') + (strPosition + 1); + if (variableTypeEnd >= (strPosition + 1)) { - string typestr = str.Substring(1, typeend - 1); - str = str.Substring(typeend + 1); - type = (UndertaleInstruction.VariableType)Enum.Parse(typeof(UndertaleInstruction.VariableType), typestr, true); + // Variable type should always be one of the enum values + ReadOnlySpan variableTypeStr = str[(strPosition + 1)..variableTypeEnd]; + type = (UndertaleInstruction.VariableType)Enum.Parse(typeof(UndertaleInstruction.VariableType), variableTypeStr, true); - int instanceEnd = str.IndexOf('.', StringComparison.InvariantCulture); - if (instanceEnd >= 0) + // Parse instance type, if present + int instanceTypeDot = str[(variableTypeEnd + 1)..].IndexOf('.') + (variableTypeEnd + 1); + if (instanceTypeDot >= (variableTypeEnd + 1)) { - string instancestr = str.Substring(0, instanceEnd); - str = str.Substring(instanceEnd + 1); - realinstance = (UndertaleInstruction.InstanceType)Enum.Parse(typeof(UndertaleInstruction.InstanceType), instancestr, true); - } else + // This instance type should always be one of the enum values + ReadOnlySpan instanceTypeStr = str[(variableTypeEnd + 1)..instanceTypeDot]; + variInstanceType = (UndertaleInstruction.InstanceType)Enum.Parse(typeof(UndertaleInstruction.InstanceType), instanceTypeStr, true); + + // Set up parsing after the dot + strPosition = instanceTypeDot + 1; + } + else { - if (type == UndertaleInstruction.VariableType.Array || + // Older versions of the assembly syntax did not print out instance types for array/stacktop references, which loses info in GMS 2.3+ + if (type == UndertaleInstruction.VariableType.Array || type == UndertaleInstruction.VariableType.StackTop) { throw new Exception("Old instruction format is incompatible (missing instance type in array or stacktop)"); } - if (realinstance >= 0) - realinstance = UndertaleInstruction.InstanceType.Self; - else if (realinstance == UndertaleInstruction.InstanceType.Other) - realinstance = UndertaleInstruction.InstanceType.Self; + // Adjust VARI instance type based on existing type + if (variInstanceType >= 0) + { + variInstanceType = UndertaleInstruction.InstanceType.Self; + } + else if (variInstanceType == UndertaleInstruction.InstanceType.Other) + { + variInstanceType = UndertaleInstruction.InstanceType.Self; + } + + // Set up parsing after the variable type's closing bracket + strPosition = variableTypeEnd + 1; } } else + { + // Invalid formatting, objectively throw new Exception("Missing ']' character in variable reference"); + } } + // In older versions, VARI does not assign instance types properly, so account for that if (data?.GeneralInfo?.BytecodeVersion <= 14) - realinstance = UndertaleInstruction.InstanceType.Undefined; + { + variInstanceType = UndertaleInstruction.InstanceType.Undefined; + } - UndertaleVariable varobj; - if (realinstance == UndertaleInstruction.InstanceType.Local) + // Locate variable from either local variables, or VARI chunk + UndertaleVariable locatedVariable; + string variableName = str[strPosition..].ToString(); + if (variInstanceType == UndertaleInstruction.InstanceType.Local && data?.CodeLocals is not null) { - varobj = localvars.ContainsKey(str) ? localvars[str] : null; + locatedVariable = localvars.ContainsKey(variableName) ? localvars[variableName] : null; } else { - varobj = vars.Where((x) => x.Name.Content == str && x.InstanceType == realinstance).FirstOrDefault(); + locatedVariable = vars.Where((x) => x.Name.Content == variableName && x.InstanceType == variInstanceType).FirstOrDefault(); + } + + // If nothing is found, throw an error, as we cannot properly assemble it + if (locatedVariable == null) + { + throw new Exception($"Failed to find existing variable: {variInstanceType.ToString().ToLower(CultureInfo.InvariantCulture)}.{variableName}"); } - if (varobj == null) - throw new Exception("Bad variable: " + realinstance.ToString().ToLower(CultureInfo.InvariantCulture) + "." + str); - return new UndertaleInstruction.Reference(varobj, type); + + // Return reference to be used in instruction + return new UndertaleInstruction.Reference(locatedVariable, type); } } } diff --git a/UndertaleModLib/Decompiler/AssetTypeResolver.cs b/UndertaleModLib/Decompiler/AssetTypeResolver.cs deleted file mode 100644 index 480e0ea6c..000000000 --- a/UndertaleModLib/Decompiler/AssetTypeResolver.cs +++ /dev/null @@ -1,2048 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler -{ - public enum AssetIDType - { - Other = 0, - Color, - KeyboardKey, - MouseButton, - Enum_MouseCursor, - Enum_HAlign, - Enum_VAlign, - Enum_GameSpeed, // GMS2 only - Enum_OSType, - Enum_GamepadButton, - Enum_PathEndAction, - Enum_BufferKind, - Enum_BufferType, - Enum_BufferSeek, - Enum_Steam_UGC_FileType, - Enum_Steam_UGC_List, - Enum_Steam_UGC_QueryType, - Enum_Steam_UGC_MatchType, - Enum_Steam_UGC_SortOrder, - Enum_Steam_LeaderBoard_Sort, - Enum_Steam_LeaderBoard_Display, - Enum_Steam_Overlay, - e__VW, // The constant used in __view_get and __view_set compatibility scripts - e__BG, // The constant used in __background_get and __background_set compatibility scripts - Boolean, - - Sprite, - Background, - Sound, - Font, - Path, - Timeline, - Room, - GameObject, // or GameObjectInstance or InstanceType, these are all interchangable - Script, - Shader, - AnimCurve, - Sequence, - ParticleSystem, - - EventType, // For event_perform - - Macro, // Bytecode <= 14 has macros in the Constants field of OPTN, only useful for Undertale 1.00 - ContextDependent, // Can be anything, depends on the function and/or other arguments - - TileSet, // Identical to AssetIDType.Background, used internally for GMS2 to prevent tileset functions from resolving incorrectly. - Layer // GMS2 - } - - public enum HAlign - { - fa_left = 0, - fa_center = 1, - fa_right = 2 - } - - public enum VAlign - { - fa_top = 0, - fa_middle = 1, - fa_bottom = 2 - } - - public enum GameSpeed - { - gamespeed_fps, - gamespeed_microseconds - } - - public enum MouseCursor - { - cr_size_all = -22, - cr_handpoint = -21, - cr_appstart = -19, // I have no idea why they aren't aligned. - cr_drag = -12, - cr_hourglass = -11, - cr_uparrow = -10, - cr_size_we = -9, - cr_size_nwse = -8, - cr_size_ns = -7, - cr_size_nesw = -6, - cr_beam = -4, - cr_cross = -3, - cr_arrow = -2, - cr_none = -1, - cr_default = 0 - } - - public enum OSType - { - os_windows = 0, // legacy constant os_win32 is equal to os_windows - os_macosx = 1, - os_psp = 2, - os_ios = 3, - os_android = 4, - os_symbian = 5, - os_linux = 6, - os_winphone = 7, - os_tizen = 8, - os_win8native = 9, - os_wiiu = 10, - os_3ds = 11, - os_psvita = 12, - os_bb10 = 13, - os_ps4 = 14, - os_xboxone = 15, - os_ps3 = 16, - os_xbox360 = 17, - os_uwp = 18, - os_amazon = 19, // the same as android but... different? - os_switch_beta = 20, // this one was used while switch support was in beta and changed later? In newer runtimes 20 is now os_tvos... - os_switch = 21, - os_unknown = -1 - } - - public enum GamepadButton - { - gp_face1 = 32769, - gp_face2 = 32770, - gp_face3 = 32771, - gp_face4 = 32772, - gp_shoulderl = 32773, - gp_shoulderlb = 32775, - gp_shoulderr = 32774, - gp_shoulderrb = 32776, - gp_select = 32777, - gp_start = 32778, - gp_stickl = 32779, - gp_stickr = 32780, - gp_padu = 32781, - gp_padd = 32782, - gp_padl = 32783, - gp_padr = 32784, - gp_axislh = 32785, - gp_axislv = 32786, - gp_axisrh = 32787, - gp_axisrv = 32788, - } - - public enum PathEndAction - { - path_action_stop = 0, - path_action_restart = 1, - path_action_continue = 2, - path_action_reverse = 3 - } - - public enum BufferKind - { - buffer_fixed = 0, - buffer_grow = 1, - buffer_wrap = 2, - buffer_fast = 3, - buffer_vbuffer = 4, - buffer_network = 5 - } - - public enum BufferType - { - buffer_u8 = 1, - buffer_s8 = 2, - buffer_u16 = 3, - buffer_s16 = 4, - buffer_u32 = 5, - buffer_s32 = 6, - buffer_f16 = 7, - buffer_f32 = 8, - buffer_f64 = 9, - buffer_bool = 10, - buffer_string = 11, - buffer_u64 = 12, - buffer_text = 13 - } - - public enum BufferSeek - { - buffer_seek_start = 0, - buffer_seek_relative = 1, - buffer_seek_end = 2 - } - - public enum MouseButton - { - mb_any = -1, - mb_none, - mb_left, - mb_right, - mb_middle - } - - public enum e__VW - { - XView = 0, - YView = 1, - WView = 2, - HView = 3, - Angle = 4, - HBorder = 5, - VBorder = 6, - HSpeed = 7, - VSpeed = 8, - Object = 9, - Visible = 10, - XPort = 11, - YPort = 12, - WPort = 13, - HPort = 14, - Camera = 15, - SurfaceID = 16, - } - public enum e__BG - { - Visible = 0, - Foreground = 1, - Index = 2, - X = 3, - Y = 4, - Width = 5, - Height = 6, - HTiled = 7, - VTiled = 8, - XScale = 9, - YScale = 10, - HSpeed = 11, - VSpeed = 12, - Blend = 13, - Alpha = 14 - } - - public enum Boolean - { - @false = 0, - @true = 1 - } - - public enum Steam_UGC_FileType - { - ugc_filetype_community, - ugc_filetype_microtrans - } - - public enum Steam_UGC_MatchType - { - ugc_match_Items, - ugc_match_Items_Mtx, - ugc_match_Items_ReadyToUse, - ugc_match_Collections, - ugc_match_Artwork, - ugc_match_Videos, - ugc_match_Screenshots, - ugc_match_AllGuides, - ugc_match_WebGuides, - ugc_match_IntegratedGuides, - ugc_match_UsableInGame, - ugc_match_ControllerBindings, - } - - public enum Steam_UGC_QueryType - { - ugc_query_RankedByVote, - ugc_query_RankedByPublicationDate, - ugc_query_AcceptedForGameRankedByAcceptanceDate, - ugc_query_RankedByTrend, - ugc_query_FavoritedByFriendsRankedByPublicationDate, - ugc_query_CreatedByFriendsRankedByPublicationDate, - ugc_query_RankedByNumTimesReported, - ugc_query_CreatedByFollowedUsersRankedByPublicationDate, - ugc_query_NotYetRated, - ugc_query_RankedByTotalVotesAsc, - ugc_query_RankedByVotesUp, - ugc_query_RankedByTextSearch, - } - - public enum Steam_UGC_List - { - ugc_list_Published, - ugc_list_VotedOn, - ugc_list_VotedUp, - ugc_list_VotedDown, - ugc_list_WillVoteLater, - ugc_list_Favorited, - ugc_list_Subscribed, - ugc_list_UsedOrPlayed, - ugc_list_Followed - } - - public enum Steam_UGC_SortOrder - { - ugc_sortorder_CreationOrderDesc, - ugc_sortorder_CreationOrderAsc, - ugc_sortorder_TitleAsc, - ugc_sortorder_LastUpdatedDesc, - ugc_sortorder_SubscriptionDateDesc, - ugc_sortorder_VoteScoreDesc, - ugc_sortorder_ForModeration - } - - public enum Steam_LeaderBoard_Sort - { - lb_sort_none, - lb_sort_ascending, - lb_sort_descending, - } - - public enum Steam_LeaderBoard_Display - { - lb_disp_none, - lb_disp_numeric, - lb_disp_time_sec, - lb_disp_time_ms, - } - - public enum Steam_Overlay - { - ov_friends, - ov_community, - ov_players, - ov_settings, - ov_gamegroup, - ov_achievements, - } - - // Subtypes are pulled from the builtin list case frankly I - // don't care enough to type them all out manually. - // There's like a hundred subtypes. - public enum Enum_EventType - { - ev_create, - ev_destroy, - ev_alarm, - ev_step, - ev_collision, - ev_keyboard, - ev_mouse, - ev_other, - ev_draw, - ev_keypress, - ev_keyrelease, - ev_trigger, - - // GMS2 - ev_cleanup, - ev_gesture, - ev_pre_create, - } - - public class AssetTypeResolver - { - public static Dictionary builtin_funcs; // keys are function names - - public static Dictionary> builtin_var_overrides; // keys are code block names or object names. In the resulting dictionary keys are variable names. - public static Dictionary builtin_vars; // keys are variable names - - public static Dictionary return_types; // keys are script names (< GMS2.3) or member function variable names (>= GMS2.3) - - internal static bool AnnotateTypesForFunctionCall(string function_name, AssetIDType[] arguments, DecompileContext context) - { - return AnnotateTypesForFunctionCall(function_name, arguments, context, null); - } - - internal static bool AnnotateTypesForFunctionCall(string function_name, AssetIDType[] arguments, DecompileContext context, Decompiler.FunctionCall function) - { - Dictionary scriptArgs = context.GlobalContext.ScriptArgsCache; - - bool overloaded = false; - // Scripts overload builtins because in GMS2 some functions are just backwards-compatibility scripts - if (scriptArgs.ContainsKey(function_name) && scriptArgs[function_name] != null) - { - overloaded = true; - for (int i = 0; i < arguments.Length && i < scriptArgs[function_name].Length; i++) - arguments[i] = scriptArgs[function_name][i]; - } - - function_name = function_name.Replace("color", "colour", StringComparison.InvariantCulture); // Just GameMaker things... both are valid :o - - if(context.GlobalContext.Data?.IsGameMaker2() ?? false) - { - // Backgrounds don't exist in GMS2 - for (int i = 0; i < arguments.Length; i++) - { - if (arguments[i] == AssetIDType.Background) - arguments[i] = AssetIDType.Sprite; - } - } - - if (builtin_funcs.ContainsKey(function_name)) - { - AssetIDType[] func_types = builtin_funcs[function_name]; - - if (context.GlobalContext.Data?.IsGameMaker2() ?? false) - { - // Backgrounds don't exist in GMS2 - for (int i = 0; i < func_types.Length; i++) - { - if (func_types[i] == AssetIDType.Background) - func_types[i] = AssetIDType.Sprite; - } - } - - if (overloaded) - { - // Copy the array to make sure we don't overwrite existing known types - func_types = (AssetIDType[]) func_types.Clone(); - AssetIDType scriptArgType; - - for (int i = 0; i < arguments.Length && i < func_types.Length && i < scriptArgs[function_name].Length; i++) - { - scriptArgType = scriptArgs[function_name][i]; - - // Merge types together - if (func_types[i] == AssetIDType.Other && scriptArgType != AssetIDType.Other) - func_types[i] = scriptArgType; - // Conflicting types - do not resolve - else if (func_types[i] != AssetIDType.Other && scriptArgType != AssetIDType.Other && func_types[i] != scriptArgType) - func_types[i] = AssetIDType.Other; - // func_types[i] is correct, do not replace - } - } - for (int i = 0; i < arguments.Length && i < func_types.Length; i++) - arguments[i] = func_types[i]; - return true; - } - if (function_name == "script_execute") - { - // This needs a special case - if (arguments.Length < 1) - throw new Exception("Bad call to " + function_name + " with " + arguments.Length + " arguments (instead of at least 1)"); - arguments[0] = AssetIDType.Script; - - // Attempt to resolve the arguments of the script being called. - // This is done by reading the literal values passed to the function and resolving - // the first argument as a function, then recursively calling the asset resolver on it. - // There's probably a better way to do this. - - if (function != null) - { - if (function.Arguments[0] is Decompiler.ExpressionCast) - { - var firstArg = (function.Arguments[0] as Decompiler.ExpressionCast).Argument; - if ((firstArg is Decompiler.ExpressionConstant) && firstArg.Type == UndertaleInstruction.DataType.Int16) - { - short script_id = (short) (firstArg as Decompiler.ExpressionConstant).Value; - if (script_id >= 0 && script_id < context.GlobalContext.Data.Scripts.Count) - { - var script = context.GlobalContext.Data.Scripts[script_id]; - AssetIDType[] args = new AssetIDType[arguments.Length-1]; - AnnotateTypesForFunctionCall(script.Name.Content, args, context); - Array.Copy(args, 0, arguments, 1, args.Length); - return true; - } - } - } - } - if (scriptArgs.ContainsKey(function_name) && scriptArgs[function_name] != null) - { - for (int i = 0; i < arguments.Length && i < scriptArgs[function_name].Length; i++) - arguments[1 + i] = scriptArgs[function_name][i]; - } - return true; - } - return overloaded; - } - - internal static AssetIDType AnnotateTypeForVariable(DecompileContext context, string variable_name) - { - var overrides = GetTypeOverridesFor(context.TargetCode.Name.Content); - if (overrides.ContainsKey(variable_name)) - return overrides[variable_name]; - - if (context.Object != null) - { - overrides = GetTypeOverridesFor(context.Object.Name.Content); - if (overrides.ContainsKey(variable_name)) - return overrides[variable_name]; - } - - - if (builtin_vars.ContainsKey(variable_name)) - return builtin_vars[variable_name]; - return AssetIDType.Other; - } - - internal static AssetIDType AnnotateTypeForScript(string script_name) - { - if (return_types.ContainsKey(script_name)) - return return_types[script_name]; - return AssetIDType.Other; - } - - internal static Dictionary GetTypeOverridesFor(DecompileContext context) - { - return GetTypeOverridesFor(context.TargetCode.Name.Content); - } - - internal static Dictionary GetTypeOverridesFor(string code_entry_name) - { - lock(builtin_var_overrides) - { - if (!builtin_var_overrides.ContainsKey(code_entry_name)) - builtin_var_overrides.Add(code_entry_name, new Dictionary()); - - return builtin_var_overrides[code_entry_name]; - } - } - - internal static void AddOverrideFor(string code_entry_name, string variable_name, AssetIDType type) - { - var overrides = GetTypeOverridesFor(code_entry_name); - overrides[variable_name] = type; - } - - public static int? FindConstValue(string const_name) - { - if (const_name.Length >= 1 && Char.IsDigit(const_name[0])) - return null; // that is not a constant - if (const_name.Length >= 1 && const_name[0] == '-') - return null; // that is not a constant either - - // By avoiding Enum.TryParse, we avoid exception spam in the console, and there isn't any speed loss. - if (Enum.IsDefined(typeof(OSType), const_name)) - return (int)Enum.Parse(typeof(OSType), const_name); - if (Enum.IsDefined(typeof(GamepadButton), const_name)) - return (int)Enum.Parse(typeof(GamepadButton), const_name); - if (Enum.IsDefined(typeof(MouseButton), const_name)) - return (int)Enum.Parse(typeof(MouseButton), const_name); - if (Enum.IsDefined(typeof(MouseCursor), const_name)) - return (int)Enum.Parse(typeof(MouseCursor), const_name); - if (Enum.IsDefined(typeof(HAlign), const_name)) - return (int)Enum.Parse(typeof(HAlign), const_name); - if (Enum.IsDefined(typeof(VAlign), const_name)) - return (int)Enum.Parse(typeof(VAlign), const_name); - if (Enum.IsDefined(typeof(GameSpeed), const_name)) - return (int)Enum.Parse(typeof(GameSpeed), const_name); - if (Enum.IsDefined(typeof(e__VW), const_name)) - return (int)Enum.Parse(typeof(e__VW), const_name); - if (Enum.IsDefined(typeof(e__BG), const_name)) - return (int)Enum.Parse(typeof(e__BG), const_name); - if (Enum.IsDefined(typeof(EventSubtypeKey), const_name)) - return Convert.ToInt32((uint)Enum.Parse(typeof(EventSubtypeKey), const_name)); - if (Enum.IsDefined(typeof(Enum_EventType), const_name)) - return (int)Enum.Parse(typeof(Enum_EventType), const_name); - - return null; - } - - // Properly initializes per-project/game - public static void InitializeTypes(UndertaleData data) - { - - ContextualAssetResolver.Initialize(data); - - return_types = new Dictionary(); - - builtin_funcs = new Dictionary - { - { "action_create_object", new[] { AssetIDType.GameObject, AssetIDType.Other, AssetIDType.Other } }, - { "instance_activate_object", new[] { AssetIDType.GameObject } }, - { "script_exists", new[] { AssetIDType.Script } }, - { "script_get_name", new[] { AssetIDType.Script } }, - // script_execute handled separately - - { "instance_change", new[] { AssetIDType.GameObject, AssetIDType.Boolean } }, - { "instance_copy", new[] { AssetIDType.Boolean } }, - { "instance_create", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "instance_destroy", new[] { AssetIDType.GameObject, AssetIDType.Boolean } }, - { "instance_exists", new[] { AssetIDType.GameObject } }, - { "instance_find", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - { "instance_furthest", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "instance_nearest", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "instance_number", new[] { AssetIDType.GameObject } }, - { "instance_place", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "instance_position", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "instance_deactivate_all", new[] { AssetIDType.Boolean } }, - { "application_surface_enable", new[] { AssetIDType.Boolean } }, - { "application_surface_draw_enable", new[] { AssetIDType.Boolean } }, - { "instance_deactivate_object", new[] { AssetIDType.GameObject } }, - { "instance_activate_region", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean } }, - { "instance_deactivate_region", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean , AssetIDType.Boolean } }, - - { "instance_activate_layer", new[] { AssetIDType.Layer } }, // GMS2 - { "instance_deactivate_layer", new[] { AssetIDType.Layer } }, // GMS2 - { "instance_create_depth", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, // GMS2 - { "instance_create_layer", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, // GMS2 - - { "sprite_get_name", new[] { AssetIDType.Sprite } }, - { "sprite_get_number", new[] { AssetIDType.Sprite } }, - { "sprite_get_width", new[] { AssetIDType.Sprite } }, - { "sprite_get_height", new[] { AssetIDType.Sprite } }, - { "sprite_get_xoffset", new[] { AssetIDType.Sprite } }, - { "sprite_get_yoffset", new[] { AssetIDType.Sprite } }, - { "sprite_get_bbox_bottom", new[] { AssetIDType.Sprite } }, - { "sprite_get_bbox_left", new[] { AssetIDType.Sprite } }, - { "sprite_get_bbox_right", new[] { AssetIDType.Sprite } }, - { "sprite_get_bbox_top", new[] { AssetIDType.Sprite } }, - { "sprite_get_tpe", new[] { AssetIDType.Sprite, AssetIDType.Other } }, - { "sprite_get_texture", new[] { AssetIDType.Sprite, AssetIDType.Other } }, - { "sprite_get_uvs", new[] { AssetIDType.Sprite, AssetIDType.Other } }, - - { "sprite_exists", new[] { AssetIDType.Sprite } }, - { "sprite_add", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_replace", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_duplicate", new[] { AssetIDType.Sprite } }, - { "sprite_assign", new[] { AssetIDType.Sprite, AssetIDType.Sprite } }, - { "sprite_merge", new[] { AssetIDType.Sprite, AssetIDType.Sprite } }, - { "sprite_create_from_surface", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_add_from_surface", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Boolean } }, - { "sprite_collision_mask", new[] { AssetIDType.Sprite, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_set_offset", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_delete", new[] { AssetIDType.Sprite } }, - { "sprite_set_alpha_from_sprite", new[] { AssetIDType.Sprite, AssetIDType.Sprite } }, - { "sprite_set_cache_size", new[] { AssetIDType.Sprite, AssetIDType.Other } }, - { "sprite_set_cache_size_ext", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_save", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other } }, - { "sprite_save_strip", new[] { AssetIDType.Sprite, AssetIDType.Other } }, - { "sprite_flush", new[] { AssetIDType.Sprite } }, - { "sprite_flush_multi", new[] { AssetIDType.Sprite } }, // sprite ARRAY - { "sprite_prefetch", new[] { AssetIDType.Sprite } }, - { "sprite_prefetch_multi", new[] { AssetIDType.Sprite } }, // sprite ARRAY - - { "background_get_name", new[] { AssetIDType.Background } }, - { "background_get_width", new[] { AssetIDType.Background } }, - { "background_get_height", new[] { AssetIDType.Background } }, - { "background_get_texture", new[] { AssetIDType.Background } }, - { "background_get_uvs", new[] { AssetIDType.Background } }, - { "background_exists", new[] { AssetIDType.Background } }, - { "background_add", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "background_replace", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "background_duplicate", new[] { AssetIDType.Background } }, - { "background_assign", new[] { AssetIDType.Background, AssetIDType.Background } }, - { "background_create_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Color } }, - { "background_create_gradient", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "background_create_from_surface", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "background_set_alpha_from_background", new[] { AssetIDType.Background, AssetIDType.Background } }, - { "background_save", new[] { AssetIDType.Background, AssetIDType.Other } }, - { "background_delete", new[] { AssetIDType.Background } }, - { "background_flush", new[] { AssetIDType.Background } }, - { "background_flush_multi", new[] { AssetIDType.Background } }, // array - { "background_prefetch", new[] { AssetIDType.Background } }, - { "background_prefetch_multi", new[] { AssetIDType.Background } }, // array - - // only a few relevant ones for tiles - { "tile_add", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "tile_set_background", new[] { AssetIDType.Other, AssetIDType.Background } }, - { "tile_set_blend", new[] { AssetIDType.Other, AssetIDType.Color } }, - - { "audio_exists", new[] { AssetIDType.Sound } }, - { "audio_get_name", new[] { AssetIDType.Sound } }, - { "audio_get_type", new[] { AssetIDType.Sound } }, - { "audio_play_sound", new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Boolean } }, - { "audio_play_sound_at", new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other } }, - { "audio_pause_sound", new[] { AssetIDType.Sound } }, - { "audio_pause_all", Array.Empty() }, - { "audio_resume_sound", new[] { AssetIDType.Sound } }, - { "audio_resume_all", Array.Empty() }, - { "audio_stop_sound", new[] { AssetIDType.Sound } }, - { "audio_stop_all", Array.Empty() }, - { "audio_is_playing", new[] { AssetIDType.Sound } }, - { "audio_is_paused", new[] { AssetIDType.Sound } }, - { "audio_create_streaam", new[] { AssetIDType.Other } }, - { "audio_destroy_streaam", new[] { AssetIDType.Other } }, - - { "audio_sound_set_track_position", new[] { AssetIDType.Sound, AssetIDType.Other } }, - { "audio_sound_get_track_position", new[] { AssetIDType.Sound } }, - { "audio_sound_length", new[] { AssetIDType.Sound } }, - { "audio_sound_pitch", new[] { AssetIDType.Sound, AssetIDType.Other } }, - { "audio_sound_get_pitch", new[] { AssetIDType.Sound } }, - { "audio_falloff_set_model", new[] { AssetIDType.Other } }, - { "audio_sound_gain", new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other } }, - { "audio_sound_get_gain", new[] { AssetIDType.Sound } }, - { "audio_master_gain", new[] { AssetIDType.Other } }, - { "audio_play_sound_on", new[] { AssetIDType.Other, AssetIDType.Sound, AssetIDType.Boolean, AssetIDType.Other } }, - { "audio_play_in_sync_group", new[] { AssetIDType.Other, AssetIDType.Sound } }, - // TODO? I don't know if the ones with only asset type Other are worth adding here - - // Legacy sound functions - { "sound_exists", new[] { AssetIDType.Sound } }, - { "sound_get_name", new[] { AssetIDType.Sound } }, - { "sound_play", new[] { AssetIDType.Sound } }, - { "sound_loop", new[] { AssetIDType.Sound } }, - { "sound_stop", new[] { AssetIDType.Sound } }, - { "sound_stop_all", Array.Empty() }, - { "sound_isplaying", new[] { AssetIDType.Sound } }, - { "sound_volume", new[] { AssetIDType.Sound, AssetIDType.Other } }, - { "sound_fade", new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other } }, - { "sound_global_volume", new[] { AssetIDType.Other } }, - // Deprecated legacy functions (wait what) - { "sound_add", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "sound_replace", new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "sound_delete", new[] { AssetIDType.Sound } }, - - { "font_get_name", new[] { AssetIDType.Font } }, - { "font_get_fontname", new[] { AssetIDType.Font } }, - { "font_get_first", new[] { AssetIDType.Font } }, - { "font_get_last", new[] { AssetIDType.Font } }, - { "font_get_italic", new[] { AssetIDType.Font } }, - { "font_get_bold", new[] { AssetIDType.Font } }, - { "font_get_size", new[] { AssetIDType.Font } }, - { "font_get_texture", new[] { AssetIDType.Font } }, - { "font_get_uvs", new[] { AssetIDType.Font } }, - - { "font_set_cache_size", new[] { AssetIDType.Font, AssetIDType.Other } }, - { "font_exists", new[] { AssetIDType.Font } }, - { "font_add", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "font_add_sprite", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "font_add_sprite_ext", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "font_replace", new[] { AssetIDType.Font, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "font_replace_sprite", new[] { AssetIDType.Font, AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "font_replace_sprite_ext", new[] { AssetIDType.Font, AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "font_delete", new[] { AssetIDType.Font } }, - - { "path_start", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Enum_PathEndAction, AssetIDType.Other } }, - { "path_end", Array.Empty() }, - - { "path_exists", new[] { AssetIDType.Path } }, - { "path_get_closed", new[] { AssetIDType.Path } }, - { "path_get_kind", new[] { AssetIDType.Path } }, - { "path_get_length", new[] { AssetIDType.Path } }, - { "path_get_name", new[] { AssetIDType.Path } }, - { "path_get_number", new[] { AssetIDType.Path } }, - { "path_get_point_speed", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_get_point_x", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_get_point_y", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_get_precision", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_get_speed", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_get_x", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_get_y", new[] { AssetIDType.Path, AssetIDType.Other} }, - - { "path_add", Array.Empty() }, - { "path_add_point", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "path_change_point", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "path_insert_point", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "path_delete_point", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_clear_points", new[] { AssetIDType.Path } }, - { "path_append", new[] { AssetIDType.Path, AssetIDType.Path } }, - { "path_assign", new[] { AssetIDType.Path, AssetIDType.Path } }, - { "path_delete", new[] { AssetIDType.Path } }, - { "path_duplicate", new[] { AssetIDType.Path } }, - { "path_flip", new[] { AssetIDType.Path } }, - { "path_mirror", new[] { AssetIDType.Path } }, - { "path_reverse", new[] { AssetIDType.Path } }, - { "path_rotate", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_scale", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other } }, - { "path_set_closed", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_set_kind", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_set_precision", new[] { AssetIDType.Path, AssetIDType.Other } }, - { "path_shift", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other } }, - - { "timeline_exists", new[] { AssetIDType.Timeline } }, - { "timeline_get_name", new[] { AssetIDType.Timeline } }, - { "timeline_delete", new[] { AssetIDType.Timeline } }, - { "timeline_moment_add_script", new[] { AssetIDType.Timeline, AssetIDType.Other, AssetIDType.Other } }, - { "timeline_moment_clear", new[] { AssetIDType.Timeline, AssetIDType.Other } }, - { "timeline_clear", new[] { AssetIDType.Timeline } }, - { "timeline_size", new[] { AssetIDType.Timeline } }, - { "timeline_max_moment", new[] { AssetIDType.Timeline } }, - - { "room_exists", new[] { AssetIDType.Room } }, - { "room_next", new[] { AssetIDType.Room } }, - { "room_previous", new[] { AssetIDType.Room } }, - { "room_get_name", new[] { AssetIDType.Room } }, - - { "room_goto", new[] { AssetIDType.Room } }, - { "room_goto_next", Array.Empty() }, - { "room_goto_previous", Array.Empty() }, - { "room_restart", Array.Empty() }, - - { "room_add", Array.Empty() }, - { "room_duplicate", new[] { AssetIDType.Room } }, - { "room_assign", new[] { AssetIDType.Room, AssetIDType.Room } }, - { "room_instance_add", new[] { AssetIDType.Room, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "room_instance_clear", new[] { AssetIDType.Room } }, - { "room_tile_add", new[] { AssetIDType.Room, AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "room_tile_add_ext", new[] { AssetIDType.Room, AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "room_tile_clear", new[] { AssetIDType.Room } }, - { "room_set_background", new[] { AssetIDType.Room, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "room_set_background_colour", new[] { AssetIDType.Room, AssetIDType.Color, AssetIDType.Other } }, - { "room_set_height", new[] { AssetIDType.Room, AssetIDType.Other } }, - { "room_set_width", new[] { AssetIDType.Room, AssetIDType.Other } }, - { "room_set_persistent", new[] { AssetIDType.Room, AssetIDType.Other } }, - { "room_set_view_enabled", new[] { AssetIDType.Room, AssetIDType.Other } }, - - { "room_set_viewport", new[] { AssetIDType.Room, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, // GMS2 only - { "room_get_viewport", new[] { AssetIDType.Room, AssetIDType.Other } }, // GMS2 only - { "room_get_camera", new[] { AssetIDType.Room, AssetIDType.Other } }, // GMS2 only - { "room_set_camera", new[] { AssetIDType.Room, AssetIDType.Other, AssetIDType.Other } }, // GMS2 only - - // GMS2 viewport compatibility scripts - { "__view_get", new[] { AssetIDType.Other, AssetIDType.Other } }, // Don't ask why this is here I was going somewhere with this - { "__view_set", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.ContextDependent } }, - - { "object_exists", new[] { AssetIDType.GameObject } }, - { "object_get_depth", new[] { AssetIDType.GameObject } }, - { "object_get_mask", new[] { AssetIDType.GameObject } }, - { "object_get_name", new[] { AssetIDType.GameObject } }, - { "object_get_parent", new[] { AssetIDType.GameObject } }, - { "object_get_persistent", new[] { AssetIDType.GameObject } }, - { "object_get_solid", new[] { AssetIDType.GameObject } }, - { "object_get_sprite", new[] { AssetIDType.GameObject } }, - { "object_get_visible", new[] { AssetIDType.GameObject } }, - { "object_get_physics", new[] { AssetIDType.GameObject } }, - { "object_is_ancestor", new[] { AssetIDType.GameObject, AssetIDType.GameObject } }, - { "object_set_depth", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - { "object_set_mask", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - { "object_set_persistent", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - { "object_set_solid", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - { "object_set_sprite", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - { "object_set_visible", new[] { AssetIDType.GameObject, AssetIDType.Other } }, - - // Event functions - { "event_perform_object", new[] { AssetIDType.GameObject, AssetIDType.EventType, AssetIDType.ContextDependent } }, - { "event_perform", new[] { AssetIDType.EventType, AssetIDType.ContextDependent } }, - - { "merge_colour", new[] { AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - - // incomplete - { "draw_clear", new[] { AssetIDType.Color } }, - { "draw_clear_alpha", new[] { AssetIDType.Color, AssetIDType.Other } }, - { "draw_set_colour", new[] { AssetIDType.Color } }, - - { "draw_circle_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_ellipse_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_line_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color } }, - { "draw_line_width_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color } }, - { "draw_point_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Color } }, - { "draw_rectangle", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean } }, - { "draw_rectangle_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_roundrect_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_roundrect_colour_ext", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_healthbar", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_set_alpha", new[] { AssetIDType.Other } }, - - { "draw_set_blend_mode", new[] { AssetIDType.ContextDependent } }, - { "draw_set_blend_mode_ext", new[] { AssetIDType.ContextDependent, AssetIDType.ContextDependent } }, - { "gpu_set_blendmode", new[] { AssetIDType.ContextDependent } }, - { "gpu_set_blendmode_ext", new[] { AssetIDType.ContextDependent, AssetIDType.ContextDependent } }, - - { "d3d_set_fog", new[] { AssetIDType.Boolean, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other } }, - { "gpu_set_fog", new[] { AssetIDType.Boolean, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other } }, - - { "layer_script_begin", new[] { AssetIDType.Other, AssetIDType.Script } }, - { "layer_background_create", new[] { AssetIDType.Other, AssetIDType.Sprite } }, - { "layer_background_blend", new[] { AssetIDType.Other, AssetIDType.Color } }, - { "layer_background_visible", new[] { AssetIDType.Other, AssetIDType.Boolean } }, - { "layer_sprite_change", new[] { AssetIDType.Other, AssetIDType.Sprite } }, - { "gpu_set_blendenable", new[] { AssetIDType.Boolean } }, - { "layer_script_end", new[] { AssetIDType.Other, AssetIDType.Script } }, - { "draw_sprite", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_sprite_ext", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_sprite_general", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_sprite_part", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_sprite_part_ext", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_sprite_stretched", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_sprite_stretched_ext", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_sprite_pos", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_sprite_tiled", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_sprite_tiled_ext", new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - - { "draw_background", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other } }, - { "draw_background_ext", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_background_part", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_background_part_ext", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_background_stretched", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "draw_background_stretched_ext", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_background_tiled", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other } }, - { "draw_background_tiled_ext", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_background_general", new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - - { "draw_set_font", new[] { AssetIDType.Font } }, - { "draw_set_halign", new[] { AssetIDType.Enum_HAlign } }, - { "draw_set_valign", new[] { AssetIDType.Enum_VAlign } }, - { "draw_text_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_text_ext_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_text_transformed_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - { "draw_text_transformed_ext_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Color, AssetIDType.Other } }, - - { "draw_vertex_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - { "draw_vertex_texture_colour", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - - { "distance_to_object", new[] { AssetIDType.GameObject } }, - - { "place_meeting", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "position_meeting", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "position_change", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Other } }, - { "collision_circle", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Other, AssetIDType.Other } }, - { "collision_ellipse", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Other, AssetIDType.Other } }, - { "collision_line", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Boolean, AssetIDType.Boolean } }, - { "collision_point", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Other, AssetIDType.Other } }, - { "collision_rectangle", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Other, AssetIDType.Other } }, - - { "mp_linear_step", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "mp_linear_step_object", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "mp_linear_path", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "mp_linear_path_object", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "mp_potential_settings", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "mp_potential_step", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "mp_potential_step_object", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - { "mp_potential_path", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "mp_potential_path_object", new[] { AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject } }, - // mp_grid only relevant ones because I'm lazy - { "mp_grid_path", new[] { AssetIDType.Other, AssetIDType.Path, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean } }, - { "mp_grid_add_instances", new[] { AssetIDType.Other, AssetIDType.GameObject, AssetIDType.Other } }, - - // TODO: 3D drawing, didn't bother - - // TODO: surface drawing - { "draw_surface_ext", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other } }, - - { "shader_is_compiled", new[] { AssetIDType.Shader } }, - { "shader_set", new[] { AssetIDType.Shader } }, - { "shader_get_uniform", new[] { AssetIDType.Shader, AssetIDType.Other } }, - { "shader_get_sampler_index", new[] { AssetIDType.Shader, AssetIDType.Other } }, - { "shader_enable_corner_id", new[] { AssetIDType.Boolean } }, - - // { "shader_current", new AssetIDType[] { } }, returns shader. - - // Interpolation - { "texture_set_interpolation", new[] { AssetIDType.Boolean } }, - { "texture_set_tiled", new[] { AssetIDType.Boolean } }, - { "gpu_set_texfilter", new[] { AssetIDType.Boolean } }, // GMS2 equivalent of texture_set_interpolation. - - // TODO: GMS2 tilemaps - { "tileset_get_texture", new[] { AssetIDType.TileSet } }, - { "tileset_get_uvs", new[] { AssetIDType.TileSet } }, - - // TODO: GMS2 layers - - // GMS2 only equivalents of room_speed. - { "game_get_speed", new[] { AssetIDType.Enum_GameSpeed } }, - { "game_set_speed", new[] { AssetIDType.Other, AssetIDType.Enum_GameSpeed } }, - - // window_ functions - { "window_set_cursor", new[] { AssetIDType.Enum_MouseCursor } }, - { "window_set_fullscreen", new[] { AssetIDType.Boolean } }, - { "window_set_color", new[] { AssetIDType.Color } }, - - { "io_clear", Array.Empty() }, - { "keyboard_check", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_check_pressed", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_check_released", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_check_direct", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_clear", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_key_press", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_key_release", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_set_map", new[] { AssetIDType.KeyboardKey, AssetIDType.KeyboardKey } }, - { "keyboard_get_map", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_unset_map", new[] { AssetIDType.KeyboardKey } }, - { "keyboard_set_numlock", new[] { AssetIDType.Boolean } }, - { "keyboard_get_numlock", Array.Empty() }, - - // Mouse functions - { "mouse_check_button", new[] { AssetIDType.MouseButton } }, - { "mouse_check_button_pressed", new[] { AssetIDType.MouseButton } }, - { "mouse_check_button_released", new[] { AssetIDType.MouseButton } }, - { "mouse_clear", new[] { AssetIDType.MouseButton } }, - - // Device Mouse functions - { "device_mouse_check_button", new[] { AssetIDType.Other, AssetIDType.MouseButton } }, - { "device_mouse_check_button_pressed", new[] { AssetIDType.Other, AssetIDType.MouseButton } }, - { "device_mouse_check_button_released", new[] { AssetIDType.Other, AssetIDType.MouseButton } }, - { "device_mouse_dbclick_enable", new[] { AssetIDType.Boolean } }, - - { "gamepad_button_value", new[] { AssetIDType.Other, AssetIDType.Enum_GamepadButton } }, - { "gamepad_button_check", new[] { AssetIDType.Other, AssetIDType.Enum_GamepadButton } }, - { "gamepad_button_check_pressed", new[] { AssetIDType.Other, AssetIDType.Enum_GamepadButton } }, - { "gamepad_button_check_released", new[] { AssetIDType.Other, AssetIDType.Enum_GamepadButton } }, - { "gamepad_axis_value", new[] { AssetIDType.Other, AssetIDType.Enum_GamepadButton } }, - { "gamepad_set_color", new[] { AssetIDType.Other, AssetIDType.Color } }, // PS4 only, DualShock pads have an LED panel. - - { "buffer_create", new[] { AssetIDType.Other, AssetIDType.Enum_BufferKind, AssetIDType.Other } }, - { "buffer_create_from_vertex_buffer", new[] { AssetIDType.Other, AssetIDType.Enum_BufferKind, AssetIDType.Other } }, - { "buffer_create_from_vertex_buffer_ext", new[] { AssetIDType.Other, AssetIDType.Enum_BufferKind, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "buffer_read", new[] { AssetIDType.Other, AssetIDType.Enum_BufferType } }, - { "buffer_write", new[] { AssetIDType.Other, AssetIDType.Enum_BufferType, AssetIDType.Other } }, - { "buffer_peek", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Enum_BufferType } }, - { "buffer_poke", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Enum_BufferType, AssetIDType.Other } }, - { "buffer_fill", new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Enum_BufferType, AssetIDType.Other, AssetIDType.Other } }, - { "buffer_sizeof", new[] { AssetIDType.Enum_BufferType } }, - { "buffer_seek", new[] { AssetIDType.Other, AssetIDType.Enum_BufferSeek, AssetIDType.Other } }, - - // Steam functions - { "steam_ugc_create_item", new[] { AssetIDType.Other, AssetIDType.Enum_Steam_UGC_FileType } }, - { "steam_ugc_create_query_user", new[] { AssetIDType.Enum_Steam_UGC_List, AssetIDType.Enum_Steam_UGC_MatchType, AssetIDType.Enum_Steam_UGC_SortOrder, AssetIDType.Other } }, - { "steam_ugc_create_query_user_ex", new[] { AssetIDType.Enum_Steam_UGC_List, AssetIDType.Enum_Steam_UGC_MatchType, AssetIDType.Enum_Steam_UGC_SortOrder, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - { "steam_ugc_create_query_all", new[] { AssetIDType.Enum_Steam_UGC_QueryType, AssetIDType.Enum_Steam_UGC_MatchType, AssetIDType.Other } }, - { "steam_ugc_create_query_all_ex", new[] { AssetIDType.Enum_Steam_UGC_QueryType, AssetIDType.Enum_Steam_UGC_MatchType, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other } }, - - { "steam_ugc_query_set_cloud_filename_filter", new[] { AssetIDType.Other, AssetIDType.Boolean } }, - { "steam_ugc_query_set_match_any_tag", new[] { AssetIDType.Other, AssetIDType.Boolean } }, - { "steam_ugc_query_set_return_long_description", new[] { AssetIDType.Other, AssetIDType.Boolean } }, - { "steam_ugc_query_set_return_total_only", new[] { AssetIDType.Other, AssetIDType.Boolean } }, - { "steam_ugc_query_set_allow_cached_response", new[] { AssetIDType.Other, AssetIDType.Boolean } }, - - { "steam_create_leaderboard", new[] { AssetIDType.Other, AssetIDType.Enum_Steam_LeaderBoard_Sort, AssetIDType.Enum_Steam_LeaderBoard_Display } }, - - { "steam_activate_overlay", new[] { AssetIDType.Enum_Steam_Overlay } }, - - // Also big TODO: Implement Boolean type for all these functions - - // Special internal functions - { "@@GetInstance@@", new[] { AssetIDType.GameObject } }, - }; - - builtin_var_overrides = new Dictionary>(); - - if (data?.Code != null) - { - foreach (var code in data.Code) - builtin_var_overrides[code.Name.Content] = new Dictionary(); - } - - builtin_vars = new Dictionary - { - // only the relevant ones because I'm sick of writing this - { "background_index", AssetIDType.Background }, // array - { "background_colour", AssetIDType.Color }, // array - { "view_object", AssetIDType.GameObject }, // array - { "path_index", AssetIDType.Path }, - { "room_persistent", AssetIDType.Boolean }, - { "room_first", AssetIDType.Room }, - { "room_last", AssetIDType.Room }, - { "room", AssetIDType.Room }, - { "object_index", AssetIDType.GameObject }, - { "sprite_index", AssetIDType.Sprite }, - { "mask_index", AssetIDType.Sprite }, - { "image_blend", AssetIDType.Color }, - { "event_object", AssetIDType.GameObject }, - { "keyboard_key", AssetIDType.KeyboardKey }, - { "keyboard_lastkey", AssetIDType.KeyboardKey }, - { "mouse_button", AssetIDType.MouseButton }, - { "mouse_last_button", AssetIDType.MouseButton }, - { "os_type", AssetIDType.Enum_OSType }, - { "timeline_index", AssetIDType.Timeline }, - { "path_endaction", AssetIDType.Enum_PathEndAction }, - { "view_enabled", AssetIDType.Boolean }, - { "view_visible", AssetIDType.Boolean }, - { "visible", AssetIDType.Boolean } - - }; - - // TODO: make proper file/manifest for all games to use, not just UT/DR, and also not these specific names - string lowerName = data?.GeneralInfo?.DisplayName?.Content.ToLower(CultureInfo.InvariantCulture); - - // Just Undertale - if (lowerName != null && lowerName.StartsWith("undertale", StringComparison.InvariantCulture)) - { - - //AddOverrideFor("gml_Object_obj_wizardorb_chaser_Alarm_0", "pop", AssetIDType.Script); - - AddOverrideFor("gml_Object_obj_fakeborderdraw_Draw_0", "op", AssetIDType.GameObject); - AddOverrideFor("gml_Object_obj_vertcroissant_Step_0", "op", AssetIDType.GameObject); - - return_types["scr_getmusindex"] = AssetIDType.Sound; - return_types["scr_getsprite"] = AssetIDType.Sprite; - return_types["caster_load"] = AssetIDType.Sound; - - // Sometimes used as a bool, should not matter though and be an improvement overall. - builtin_vars.Add("king", AssetIDType.GameObject); - builtin_funcs["SCR_TEXTSETUP"] = new[] { AssetIDType.Font, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - // I should confirm adding this causes no adverse effects later. - builtin_vars.Add("myroom", AssetIDType.Room); - // gml_Object_obj_dummytrigger_Collision_1576 - builtin_vars.Add("dummy", AssetIDType.GameObject); - // gml_Object_obj_asriel_swordarm_Create_0 - builtin_vars.Add("sm", AssetIDType.GameObject); - // This should do something to fix the piano room - builtin_vars.Add("sprite_id", AssetIDType.Sprite); - builtin_funcs["scr_getsprite"] = new[] { AssetIDType.Sprite }; - // gml_Object_obj_barabody_Create_0 - builtin_vars.Add("hand1pic", AssetIDType.Sprite); - builtin_vars.Add("hand2pic", AssetIDType.Sprite); - builtin_vars.Add("headpic", AssetIDType.Sprite); - // gml_Object_obj_asgoreb_body_Create_0 - builtin_vars.Add("bodypic", AssetIDType.Sprite); - // gml_Object_obj_castroll_Draw_0 - builtin_vars.Add("do_room_goto", AssetIDType.Boolean); - builtin_vars.Add("do_room_goto_target", AssetIDType.Room); - } - - // Just Deltarune - if (lowerName != null && (lowerName == "survey_program" || lowerName.StartsWith("deltarune", StringComparison.InvariantCulture) || lowerName == "deltarune chapter 1 & 2")) - { - builtin_vars.Add("actreadysprite", AssetIDType.Sprite); - builtin_vars.Add("actsprite", AssetIDType.Sprite); - builtin_vars.Add("defendsprite", AssetIDType.Sprite); - builtin_vars.Add("attackreadysprite", AssetIDType.Sprite); - builtin_vars.Add("attacksprite", AssetIDType.Sprite); - builtin_vars.Add("itemsprite", AssetIDType.Sprite); - builtin_vars.Add("itemreadysprite", AssetIDType.Sprite); - builtin_vars.Add("spellreadysprite", AssetIDType.Sprite); - builtin_vars.Add("spellsprite", AssetIDType.Sprite); - builtin_vars.Add("defeatsprite", AssetIDType.Sprite); - builtin_vars.Add("victorysprite", AssetIDType.Sprite); - builtin_vars.Add("dsprite_blush", AssetIDType.Sprite); - builtin_vars.Add("usprite_blush", AssetIDType.Sprite); - builtin_vars.Add("lsprite_blush", AssetIDType.Sprite); - builtin_vars.Add("rsprite_blush", AssetIDType.Sprite); - builtin_vars.Add("heartsprite", AssetIDType.Sprite); - builtin_vars.Add("msprite", AssetIDType.Sprite); - builtin_vars.Add("particlesprite", AssetIDType.Sprite); - builtin_vars.Add("s_sprite", AssetIDType.Sprite); - builtin_vars.Add("shopkeepsprite", AssetIDType.Sprite); - builtin_vars.Add("slidesprite", AssetIDType.Sprite); - builtin_vars.Add("smsprite", AssetIDType.Sprite); - builtin_vars.Add("sparedsprite", AssetIDType.Sprite); - builtin_vars.Add("sussprite", AssetIDType.Sprite); - // "targetsprite" seems to be unused but just in case - builtin_vars.Add("targetsprite", AssetIDType.Sprite); - builtin_vars.Add("thissprite", AssetIDType.Sprite); - builtin_vars.Add("touchsprite", AssetIDType.Sprite); - builtin_vars.Add("sprite_type", AssetIDType.Sprite); - builtin_vars.Add("darkzone", AssetIDType.Boolean); - builtin_vars.Add("darkmode", AssetIDType.Boolean); - builtin_vars.Add("darkify", AssetIDType.Boolean); - builtin_vars.Add("noroom", AssetIDType.Boolean); - builtin_vars.Add("loop", AssetIDType.Boolean); - builtin_vars.Add("__loadedroom", AssetIDType.Room); - builtin_vars.Add("roomchoice", AssetIDType.Room); - builtin_vars.Add("writersnd", AssetIDType.Sound); - builtin_vars.Add("sndchange", AssetIDType.Boolean); - builtin_vars.Add("muschange", AssetIDType.Boolean); - builtin_vars.Add("audchange", AssetIDType.Boolean); - builtin_vars.Add("sndplay", AssetIDType.Boolean); - builtin_vars.Add("sound_played", AssetIDType.Boolean); - builtin_vars.Add("chalksound", AssetIDType.Boolean); - builtin_vars.Add("grabsounded", AssetIDType.Boolean); - builtin_vars.Add("hatsounded", AssetIDType.Boolean); - builtin_vars.Add("soundplayed", AssetIDType.Boolean); - builtin_vars.Add("windsound", AssetIDType.Boolean); - builtin_vars.Add("playtextsound", AssetIDType.Boolean); - builtin_vars.Add("textsound", AssetIDType.Sound); - builtin_vars.Add("selectnoise", AssetIDType.Boolean); - builtin_vars.Add("movenoise", AssetIDType.Boolean); - builtin_vars.Add("grazenoise", AssetIDType.Boolean); - builtin_vars.Add("selnoise", AssetIDType.Boolean); - builtin_vars.Add("damagenoise", AssetIDType.Boolean); - builtin_vars.Add("laznoise", AssetIDType.Boolean); - builtin_vars.Add("stepnoise", AssetIDType.Boolean); - builtin_vars.Add("bumpnoise", AssetIDType.Boolean); - builtin_vars.Add("burstnoise", AssetIDType.Boolean); - builtin_vars.Add("BACKNOISE", AssetIDType.Boolean); - builtin_vars.Add("DEATHNOISE", AssetIDType.Boolean); - builtin_vars.Add("gnoise", AssetIDType.Boolean); - builtin_vars.Add("firstnoise", AssetIDType.Boolean); - builtin_vars.Add("dmgnoise", AssetIDType.Boolean); - builtin_vars.Add("usable", AssetIDType.Boolean); - builtin_vars.Add("tempkeyitemusable", AssetIDType.Boolean); - builtin_vars.Add("spellusable", AssetIDType.Boolean); - builtin_vars.Add("NAMEFADE_COMPLETE", AssetIDType.Boolean); - builtin_vars.Add("dancekris", AssetIDType.GameObject); - builtin_vars.Add("noiseskip", AssetIDType.Boolean); - builtin_vars.Add("attacked", AssetIDType.Boolean); - builtin_vars.Add("attack_qual", AssetIDType.Boolean); - builtin_vars.Add("attacking", AssetIDType.Boolean); - builtin_vars.Add("attackedkris", AssetIDType.Boolean); - builtin_vars.Add("attacks", AssetIDType.Boolean); - builtin_vars.Add("battleend", AssetIDType.Boolean); - builtin_vars.Add("battlemoder", AssetIDType.Boolean); - builtin_vars.Add("becamebattle", AssetIDType.Boolean); - builtin_vars.Add("seriousbattle", AssetIDType.Boolean); - // Deltarune console versions. - builtin_vars.Add("_border_image", AssetIDType.Sprite); - // A little bit wrong, but probably fine. - builtin_vars.Add("cango", AssetIDType.Boolean); - builtin_vars.Add("canact", AssetIDType.Boolean); - builtin_vars.Add("CANCEL", AssetIDType.Boolean); - builtin_vars.Add("cancelwalk", AssetIDType.Boolean); - builtin_vars.Add("cancelattack", AssetIDType.Boolean); - builtin_vars.Add("canchoose", AssetIDType.Boolean); - builtin_vars.Add("canclick", AssetIDType.Boolean); - builtin_vars.Add("cancollide", AssetIDType.Boolean); - builtin_vars.Add("candodge", AssetIDType.Boolean); - builtin_vars.Add("candraw", AssetIDType.Boolean); - builtin_vars.Add("canequip", AssetIDType.Boolean); - builtin_vars.Add("canpress", AssetIDType.Boolean); - builtin_vars.Add("cant", AssetIDType.Boolean); - builtin_vars.Add("depthcancel", AssetIDType.Boolean); - builtin_vars.Add("defend_command", AssetIDType.Boolean); - builtin_vars.Add("automiss", AssetIDType.Boolean); - builtin_vars.Add("awoke", AssetIDType.Boolean); - builtin_vars.Add("act_command", AssetIDType.Boolean); - builtin_vars.Add("acted", AssetIDType.Boolean); - builtin_vars.Add("activated", AssetIDType.Boolean); - builtin_vars.Add("activatethrow", AssetIDType.Boolean); - builtin_vars.Add("addflag", AssetIDType.Boolean); - builtin_vars.Add("addup", AssetIDType.Boolean); - builtin_vars.Add("afford", AssetIDType.Boolean); - builtin_vars.Add("aftercon", AssetIDType.Boolean); - builtin_vars.Add("ALREADY", AssetIDType.Boolean); - builtin_vars.Add("ambushed", AssetIDType.Boolean); - builtin_vars.Add("permashake", AssetIDType.Boolean); - builtin_vars.Add("aster", AssetIDType.Boolean); - builtin_vars.Add("autoaster", AssetIDType.Boolean); - builtin_vars.Add("autoed", AssetIDType.Boolean); - builtin_vars.Add("betray", AssetIDType.Boolean); - builtin_vars.Add("abovemaxhp", AssetIDType.Boolean); - builtin_vars.Add("abletotarget", AssetIDType.Boolean); - builtin_vars.Add("accept", AssetIDType.Boolean); - builtin_vars.Add("actual", AssetIDType.Boolean); - builtin_vars.Add("currentsong", AssetIDType.Sound); - builtin_vars.Add("batmusic", AssetIDType.Sound); - builtin_vars.Add("beanie", AssetIDType.Boolean); - builtin_vars.Add("beaten", AssetIDType.Boolean); - builtin_vars.Add("becomeflash", AssetIDType.Boolean); - builtin_vars.Add("becomesleep", AssetIDType.Boolean); - builtin_vars.Add("sleeping", AssetIDType.Boolean); - builtin_vars.Add("bellcon", AssetIDType.Boolean); - builtin_vars.Add("belowzero", AssetIDType.Boolean); - //builtin_vars.Add("noiseskip", AssetIDType.Boolean); - // Colors weave into a spire of flame - builtin_vars.Add("mycolor", AssetIDType.Color); - builtin_vars.Add("colorchange", AssetIDType.Boolean); - builtin_vars.Add("xcolor", AssetIDType.Color); - builtin_vars.Add("skippable", AssetIDType.Boolean); - builtin_vars.Add("charcolor", AssetIDType.Color); - builtin_vars.Add("hpcolor", AssetIDType.Color); - builtin_vars.Add("bcolor", AssetIDType.Color); - builtin_vars.Add("flashcolor", AssetIDType.Color); - builtin_vars.Add("smcolor", AssetIDType.Color); - builtin_vars.Add("dcolor", AssetIDType.Color); - builtin_vars.Add("basecolor", AssetIDType.Color); - builtin_vars.Add("_abilitycolor", AssetIDType.Color); - builtin_vars.Add("mnamecolor1", AssetIDType.Color); - builtin_vars.Add("mnamecolor2", AssetIDType.Color); - builtin_vars.Add("scolor", AssetIDType.Color); - builtin_vars.Add("arrowcolor", AssetIDType.Color); - builtin_vars.Add("particlecolor", AssetIDType.Color); - builtin_vars.Add("linecolor", AssetIDType.Color); - builtin_vars.Add("fadecolor", AssetIDType.Color); - builtin_vars.Add("color", AssetIDType.Color); - // Scripts - builtin_funcs["SCR_TEXTSETUP"] = new[] { AssetIDType.Font, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - } - - // Both UT and DR - if (lowerName != null && (lowerName.StartsWith("undertale", StringComparison.InvariantCulture) || lowerName == "survey_program" || lowerName.StartsWith("deltarune", StringComparison.InvariantCulture))) - { - AddOverrideFor("gml_Script_scr_getbuttonsprite", "control", AssetIDType.Enum_GamepadButton); - AddOverrideFor("gml_Script_scr_getbuttonsprite", "button", AssetIDType.Enum_GamepadButton); - - // Don't use this. It will not recompile. - // AddOverrideFor("gml_Object_obj_shop3_Draw_0", "mycolor", AssetIDType.Macro); - - return_types["scr_getbuttonsprite"] = AssetIDType.Sprite; - - // gml_Object_obj_vulkinbody_UNDERTALE_Create_0 - // Seems to be used a lot as a regular value between the values of around 0-20. - AddOverrideFor("obj_vulkinbody", "face", AssetIDType.Sprite); - - AddOverrideFor("gml_Script_scr_setfont", "newfont", AssetIDType.Font); - - //builtin_vars.Add("face", AssetIDType.Sprite); - - builtin_vars.Add("myfont", AssetIDType.Font); - - // Hope this script works! - builtin_funcs["scr_bouncer"] = new[] { AssetIDType.GameObject, AssetIDType.Other, AssetIDType.Other }; - - // Deltarune Chapter 2 asset resolutions: - // Seems to be x, y, measure of distance (maybe) - - builtin_funcs["gml_Script_c_soundplay_wait"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_pitch_time"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_sprite_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_soundplay_wait"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_pitch_time"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["draw_sprite_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - - builtin_funcs["gml_Script__background_set"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_c_addxy"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color }; - builtin_funcs["gml_Script_c_autodepth"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_autofacing"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_autowalk"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_fadeout"] = new[] { AssetIDType.Other }; - builtin_funcs["gml_Script_c_fadeout_color"] = new[] { AssetIDType.Other, AssetIDType.Color }; - builtin_funcs["gml_Script_c_instance"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["gml_Script_c_msgzurasu"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_pan"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_c_pannable"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_panobj"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["gml_Script_c_panspeed"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_c_script_instance"] = new[] { AssetIDType.GameObject, AssetIDType.Script, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_c_script_instance_stop"] = new[] { AssetIDType.GameObject, AssetIDType.Script }; - builtin_funcs["gml_Script_c_setxy"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_c_shakestep_x"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_soundplay"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_c_soundplay_x"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_c_sprite"] = new[] { AssetIDType.Sprite }; - builtin_funcs["gml_Script_c_stickto"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["gml_Script_c_visible"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_wait"] = new[] { AssetIDType.Other }; - builtin_funcs["gml_Script_c_walkdirect"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_c_walkdirect_wait"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_d3d_set_fog_ch1"] = new[] { AssetIDType.Boolean, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_background_ext_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_background_part_ext_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_background_tiled_ext_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_enable_alphablend_ch1"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_draw_enable_alphablend"] = new[] { AssetIDType.Boolean }; - builtin_funcs["draw_enable_alphablend"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_draw_monster_body_part"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_monster_body_part_ext"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_sprite_ext_centerscale"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_sprite_ext_flash"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_sprite_skew_ext_cute"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_text_outline"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_i_ex"] = new[] { AssetIDType.GameObject }; - builtin_funcs["gml_Script_instance_create_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["gml_Script_msgsetloc"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_mus_loop"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_mus_loop_ext"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_safe_delete"] = new[] { AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_84_debug"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_scr_act_charsprite"] = new[] { AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Boolean }; - builtin_funcs["gml_Script_scr_anim"] = new[] { AssetIDType.Sprite, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_anim_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_battle"] = new[] { AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_battle_marker"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_bullet_create"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_bulletspawner"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_caterpillar_facing_ch1"] = new[] { AssetIDType.Other }; - builtin_funcs["gml_Script_scr_custom_afterimage"] = new[] { AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_custom_afterimage_ext"] = new[] { AssetIDType.GameObject, AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_dark_marker"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_dark_marker_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_dark_marker_depth"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_debug_keycheck"] = new[] { AssetIDType.KeyboardKey }; - builtin_funcs["gml_Script_scr_draw_background_ps4_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_draw_outline_ext"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_draw_sprite_crop_ext"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_ds_list_write"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_enemyblcon"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_following_afterimage"] = new[] { AssetIDType.GameObject, AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_forcefield"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Boolean }; - builtin_funcs["gml_Script_scr_fx_housesquare"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Color }; - builtin_funcs["gml_Script_scr_guardpeek"] = new[] { AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_marker"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_marker_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_mercyadd"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_monster_add"] = new[] { AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_monster_change"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_move_to_point_over_time"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_pan_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_pan_to_obj"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_pan_to_obj_ch1"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_script_delayed"] = new[] { AssetIDType.Script, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_textsetup"] = new[] { AssetIDType.Font, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_textsetup_ch1"] = new[] { AssetIDType.Font, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_snd_is_playing"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_loop"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_loop_ch1"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_pitch"] = new[] { AssetIDType.Sound, AssetIDType.Other }; - builtin_funcs["gml_Script_snd_play"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_play_ch1"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_play_pitch"] = new[] { AssetIDType.Sound, AssetIDType.Other }; - builtin_funcs["gml_Script_snd_play_x"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_snd_stop"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_stop_ch1"] = new[] { AssetIDType.Sound }; - builtin_funcs["gml_Script_snd_volume"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_act_charsprite"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean }; - builtin_funcs["gml_Script_draw_sprite_part_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_draw_sprite_part_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["draw_sprite_part_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_draw_sprite_part_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_draw_sprite_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["draw_sprite_ext_glow"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_draw_sprite_tiled_area"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Boolean }; - builtin_funcs["gml_Script_c_actorsetsprites"] = new[] { AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Sprite, AssetIDType.Sprite, AssetIDType.Sprite }; - builtin_funcs["gml_Script_c_actortoobject"] = new[] { AssetIDType.GameObject }; - builtin_funcs["gml_Script_scr_marker_animated"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Other }; - builtin_funcs["scr_marker_animated"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Other }; - builtin_funcs["gml_Script_c_jump_sprite"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Sprite }; - builtin_funcs["gml_Script_scr_dark_marker_animated"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Boolean }; - builtin_funcs["scr_act_charsprite"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean }; - builtin_funcs["scr_draw_sprite_tiled_area"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Boolean }; - builtin_funcs["c_actorsetsprites"] = new[] { AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Sprite, AssetIDType.Sprite, AssetIDType.Sprite }; - builtin_funcs["c_actortoobject"] = new[] { AssetIDType.GameObject }; - builtin_funcs["c_jump_sprite"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Sprite }; - builtin_funcs["scr_dark_marker_animated"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Boolean }; - builtin_funcs["_background_set"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["c_addxy"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color }; - builtin_funcs["c_autodepth"] = new[] { AssetIDType.Boolean }; - builtin_funcs["c_autofacing"] = new[] { AssetIDType.Boolean }; - builtin_funcs["c_autowalk"] = new[] { AssetIDType.Boolean }; - builtin_funcs["c_fadeout"] = new[] { AssetIDType.Other }; - builtin_funcs["c_fadeout_color"] = new[] { AssetIDType.Other, AssetIDType.Color }; - builtin_funcs["c_instance"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["c_msgzurasu"] = new[] { AssetIDType.Boolean }; - builtin_funcs["c_pan"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_pannable"] = new[] { AssetIDType.Boolean }; - builtin_funcs["c_panobj"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["c_panspeed"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_script_instance"] = new[] { AssetIDType.GameObject, AssetIDType.Script, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_script_instance_stop"] = new[] { AssetIDType.GameObject, AssetIDType.Script }; - builtin_funcs["c_setxy"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_shakestep_x"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean }; - builtin_funcs["c_soundplay"] = new[] { AssetIDType.Sound }; - builtin_funcs["c_soundplay_x"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_sprite"] = new[] { AssetIDType.Sprite }; - builtin_funcs["c_stickto"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["c_visible"] = new[] { AssetIDType.Boolean }; - builtin_funcs["c_wait"] = new[] { AssetIDType.Other }; - builtin_funcs["c_walkdirect"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["c_walkdirect_wait"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["d3d_set_fog_ch1"] = new[] { AssetIDType.Boolean, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["draw_background_ext_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["draw_background_part_ext_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["draw_background_tiled_ext_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["draw_enable_alphablend_ch1"] = new[] { AssetIDType.Boolean }; - builtin_funcs["draw_monster_body_part"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["draw_monster_body_part_ext"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["draw_sprite_ext_centerscale"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["draw_sprite_ext_flash"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other }; - builtin_funcs["draw_sprite_skew_ext_cute"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["draw_text_outline"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["i_ex"] = new[] { AssetIDType.GameObject }; - builtin_funcs["instance_create_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["msgsetloc"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["mus_loop"] = new[] { AssetIDType.Sound }; - builtin_funcs["mus_loop_ext"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["gml_Script_scr_bullet_inherit_ch1"] = new[] { AssetIDType.GameObject }; - builtin_funcs["scr_bullet_inherit_ch1"] = new[] { AssetIDType.GameObject }; - builtin_funcs["safe_delete"] = new[] { AssetIDType.GameObject }; - builtin_funcs["scr_84_debug"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_texture_set_interpolation"] = new[] { AssetIDType.Boolean }; - builtin_funcs["texture_set_interpolation"] = new[] { AssetIDType.Boolean }; - builtin_funcs["gml_Script_texture_set_interpolation_ch1"] = new[] { AssetIDType.Boolean }; - builtin_funcs["texture_set_interpolation_ch1"] = new[] { AssetIDType.Boolean }; - builtin_funcs["scr_act_charsprite"] = new[] { AssetIDType.Other, AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Boolean }; - builtin_funcs["scr_anim"] = new[] { AssetIDType.Sprite, AssetIDType.Other }; - builtin_funcs["scr_anim_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other }; - builtin_funcs["scr_battle"] = new[] { AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_battle_marker"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["scr_bullet_create"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["scr_bulletspawner"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["scr_caterpillar_facing_ch1"] = new[] { AssetIDType.Other }; - builtin_funcs["scr_custom_afterimage"] = new[] { AssetIDType.Sprite }; - builtin_funcs["scr_custom_afterimage_ext"] = new[] { AssetIDType.GameObject, AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_dark_marker"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["scr_dark_marker_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["scr_dark_marker_depth"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["scr_debug_keycheck"] = new[] { AssetIDType.KeyboardKey }; - builtin_funcs["scr_draw_background_ps4_ch1"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_draw_outline_ext"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_draw_sprite_crop_ext"] = new[] { AssetIDType.Sprite, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_ds_list_write"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_enemyblcon"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_following_afterimage"] = new[] { AssetIDType.GameObject, AssetIDType.GameObject }; - builtin_funcs["scr_forcefield"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Boolean, AssetIDType.Boolean }; - builtin_funcs["scr_fx_housesquare"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Color }; - builtin_funcs["scr_guardpeek"] = new[] { AssetIDType.GameObject }; - builtin_funcs["scr_marker"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["scr_marker_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Sprite }; - builtin_funcs["scr_mercyadd"] = new[] { AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_monster_add"] = new[] { AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["scr_monster_change"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.GameObject }; - builtin_funcs["scr_move_to_point_over_time"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_pan_ch1"] = new[] { AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_pan_to_obj"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["scr_pan_to_obj_ch1"] = new[] { AssetIDType.GameObject, AssetIDType.Other }; - builtin_funcs["scr_script_delayed"] = new[] { AssetIDType.Script, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_textsetup"] = new[] { AssetIDType.Font, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_textsetup_ch1"] = new[] { AssetIDType.Font, AssetIDType.Color, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other, AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["snd_is_playing"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_loop"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_loop_ch1"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_pitch"] = new[] { AssetIDType.Sound, AssetIDType.Other }; - builtin_funcs["snd_play"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_play_ch1"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_play_pitch"] = new[] { AssetIDType.Sound, AssetIDType.Other }; - builtin_funcs["snd_play_x"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["snd_stop"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_stop_ch1"] = new[] { AssetIDType.Sound }; - builtin_funcs["snd_volume"] = new[] { AssetIDType.Sound, AssetIDType.Other, AssetIDType.Other }; - builtin_funcs["scr_valid_room"] = new[] { AssetIDType.Room, AssetIDType.Other }; - - builtin_vars.Add("_instruments", AssetIDType.Sound); - builtin_vars.Add("_instrumentsB", AssetIDType.Sound); - builtin_vars.Add("_instrumentsAlt", AssetIDType.Sound); - builtin_vars.Add("doorSound", AssetIDType.Sound); - builtin_vars.Add("doorSound2", AssetIDType.Sound); - builtin_vars.Add("pushSound", AssetIDType.Sound); - builtin_vars.Add("firstsound", AssetIDType.Sound); - builtin_vars.Add("lastsound", AssetIDType.Sound); - builtin_vars.Add("voiceclips", AssetIDType.Sound); - - builtin_vars.Add("roome", AssetIDType.Room); - builtin_vars.Add("room_index", AssetIDType.Room); - builtin_vars.Add("room_offset", AssetIDType.Room); - builtin_vars.Add("door_destination", AssetIDType.Room); - - builtin_vars.Add("source", AssetIDType.GameObject); - builtin_vars.Add("sourceobject", AssetIDType.GameObject); - //builtin_vars.Add("target", AssetIDType.GameObject); - builtin_vars.Add("writergod", AssetIDType.GameObject); - AddOverrideFor("obj_carcutscene", "k", AssetIDType.GameObject); - AddOverrideFor("obj_carcutscene_ch1", "k", AssetIDType.GameObject); - builtin_vars.Add("childBullet", AssetIDType.GameObject); - builtin_vars.Add("body_obj", AssetIDType.GameObject); - builtin_vars.Add("sneo", AssetIDType.GameObject); - builtin_vars.Add("swatchbc", AssetIDType.GameObject); - builtin_vars.Add("animator", AssetIDType.GameObject); - - builtin_vars.Add("new_color", AssetIDType.Color); - builtin_vars.Add("base_colors", AssetIDType.Color); - builtin_vars.Add("COL_A", AssetIDType.Color); - builtin_vars.Add("COL_B", AssetIDType.Color); - builtin_vars.Add("COL_PLUS", AssetIDType.Color); - builtin_vars.Add("stats_amount", AssetIDType.Color); - builtin_vars.Add("housecolor", AssetIDType.Color); - builtin_vars.Add("partblend", AssetIDType.Color); - builtin_vars.Add("drawcolor", AssetIDType.Color); - builtin_vars.Add("shockwave_color", AssetIDType.Color); - builtin_vars.Add("bird_color", AssetIDType.Color); - builtin_vars.Add("startcolor", AssetIDType.Color); - builtin_vars.Add("targetColor", AssetIDType.Color); - builtin_vars.Add("override_color", AssetIDType.Color); - - builtin_vars.Add("control", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("button0", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("button1", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("button2", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("input_g", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("gamepad_controls", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("new_gamepad_key", AssetIDType.Enum_GamepadButton); - builtin_vars.Add("_control", AssetIDType.Enum_GamepadButton); - - builtin_vars.Add("input_k", AssetIDType.KeyboardKey); - -/* - builtin_vars.Add("_pacified", AssetIDType.Boolean); - builtin_vars.Add("_spared", AssetIDType.Boolean); - builtin_vars.Add("_violenced", AssetIDType.Boolean); - builtin_vars.Add("_frozened", AssetIDType.Boolean); -*/ - builtin_vars.Add("nitro", AssetIDType.Boolean); - builtin_vars.Add("confirm", AssetIDType.Boolean); - builtin_vars.Add("attack_succeeded", AssetIDType.Boolean); - builtin_vars.Add("phase3_hit_check", AssetIDType.Boolean); - builtin_vars.Add("beat_phase2_no_damage_taken_check", AssetIDType.Boolean); - builtin_vars.Add("beat_phase1_no_damage_taken_check", AssetIDType.Boolean); - builtin_vars.Add("has_tutorial_kick_hit_player", AssetIDType.Boolean); - builtin_vars.Add("freezable", AssetIDType.Boolean); - builtin_vars.Add("charcan", AssetIDType.Boolean); - builtin_vars.Add("kktalked", AssetIDType.Boolean); - builtin_vars.Add("capntalked", AssetIDType.Boolean); - builtin_vars.Add("moveswapped", AssetIDType.Boolean); - builtin_vars.Add("cause_explosion", AssetIDType.Boolean); - builtin_vars.Add("exploded", AssetIDType.Boolean); - builtin_vars.Add("make_simple_bullet", AssetIDType.Boolean); - builtin_vars.Add("dance_active", AssetIDType.Boolean); - builtin_vars.Add("spawnVirus", AssetIDType.Boolean); - builtin_vars.Add("spawning", AssetIDType.Boolean); - builtin_vars.Add("caralert", AssetIDType.Boolean); - builtin_vars.Add("shotready", AssetIDType.Boolean); - builtin_vars.Add("deleteCars", AssetIDType.Boolean); - builtin_vars.Add("clear_traffic", AssetIDType.Boolean); - builtin_vars.Add("onroad", AssetIDType.Boolean); - builtin_vars.Add("quizloop", AssetIDType.Boolean); - builtin_vars.Add("quizmode", AssetIDType.Boolean); - builtin_vars.Add("gif_recording", AssetIDType.Boolean); - builtin_vars.Add("quicksaved", AssetIDType.Boolean); - builtin_vars.Add("paused", AssetIDType.Boolean); - builtin_vars.Add("dbselect", AssetIDType.Boolean); - builtin_vars.Add("drawfeet", AssetIDType.Boolean); - builtin_vars.Add("moving", AssetIDType.Boolean); - builtin_vars.Add("duckmode", AssetIDType.Boolean); - builtin_vars.Add("dancing", AssetIDType.Boolean); - builtin_vars.Add("hasCandy", AssetIDType.Boolean); - builtin_vars.Add("allowAll", AssetIDType.Boolean); - builtin_vars.Add("partvisible", AssetIDType.Boolean); - builtin_vars.Add("breaking", AssetIDType.Boolean); - builtin_vars.Add("destroyable", AssetIDType.Boolean); - builtin_vars.Add("skipintro", AssetIDType.Boolean); - builtin_vars.Add("peeking", AssetIDType.Boolean); - builtin_vars.Add("destroyonhit", AssetIDType.Boolean); - builtin_vars.Add("spawned", AssetIDType.Boolean); - builtin_vars.Add("turnSignal", AssetIDType.Boolean); - builtin_vars.Add("dothis", AssetIDType.Boolean); - builtin_vars.Add("stuck", AssetIDType.Boolean); - builtin_vars.Add("save_loaded", AssetIDType.Boolean); - builtin_vars.Add("save_ready", AssetIDType.Boolean); - builtin_vars.Add("ignoredepth", AssetIDType.Boolean); - builtin_vars.Add("drawshadow", AssetIDType.Boolean); - builtin_vars.Add("tracking", AssetIDType.Boolean); - builtin_vars.Add("haventusedspell", AssetIDType.Boolean); - builtin_vars.Add("back", AssetIDType.Boolean); - builtin_vars.Add("spare_used", AssetIDType.Boolean); - builtin_vars.Add("touched", AssetIDType.Boolean); - builtin_vars.Add("interactshower", AssetIDType.Boolean); - builtin_vars.Add("windowswitcher", AssetIDType.Boolean); - builtin_vars.Add("cutsceneshow", AssetIDType.Boolean); - builtin_vars.Add("showdebug", AssetIDType.Boolean); - builtin_vars.Add("writedisplay", AssetIDType.Boolean); - builtin_vars.Add("displaymode", AssetIDType.Boolean); - builtin_vars.Add("oldway", AssetIDType.Boolean); - builtin_vars.Add("special", AssetIDType.Boolean); - builtin_vars.Add("sameattacker", AssetIDType.Boolean); - builtin_vars.Add("sameattack", AssetIDType.Boolean); - builtin_vars.Add("bosscheck", AssetIDType.Boolean); - builtin_vars.Add("dheld", AssetIDType.Boolean); - builtin_vars.Add("uheld", AssetIDType.Boolean); - builtin_vars.Add("rheld", AssetIDType.Boolean); - builtin_vars.Add("lheld", AssetIDType.Boolean); - builtin_vars.Add("edgedebug", AssetIDType.Boolean); - builtin_vars.Add("solve", AssetIDType.Boolean); - builtin_vars.Add("noface", AssetIDType.Boolean); - builtin_vars.Add("drawshine", AssetIDType.Boolean); - builtin_vars.Add("weird", AssetIDType.Boolean); - builtin_vars.Add("freeze", AssetIDType.Boolean); - builtin_vars.Add("fightmode", AssetIDType.Boolean); - builtin_vars.Add("show_door_open", AssetIDType.Boolean); - builtin_vars.Add("disable_face", AssetIDType.Boolean); - builtin_vars.Add("enable_face", AssetIDType.Boolean); - builtin_vars.Add("end_game", AssetIDType.Boolean); - builtin_vars.Add("float", AssetIDType.Boolean); - builtin_vars.Add("checkPress", AssetIDType.Boolean); - builtin_vars.Add("pressable", AssetIDType.Boolean); - builtin_vars.Add("init_forcefields", AssetIDType.Boolean); - builtin_vars.Add("auto_continue", AssetIDType.Boolean); - builtin_vars.Add("no_silhouette", AssetIDType.Boolean); - builtin_vars.Add("allow_move", AssetIDType.Boolean); - builtin_vars.Add("grazed", AssetIDType.Boolean); - builtin_vars.Add("pressed", AssetIDType.Boolean); - builtin_vars.Add("border_fade_in", AssetIDType.Boolean); - builtin_vars.Add("border_fade_out", AssetIDType.Boolean); - builtin_vars.Add("rideactgo", AssetIDType.Boolean); - builtin_vars.Add("forgiveLoop", AssetIDType.Boolean); - builtin_vars.Add("readyToGo", AssetIDType.Boolean); - builtin_vars.Add("shouldActivate", AssetIDType.Boolean); - builtin_vars.Add("destroyoffscreen", AssetIDType.Boolean); - builtin_vars.Add("autocancel", AssetIDType.Boolean); - builtin_vars.Add("destroyoncomplete", AssetIDType.Boolean); - builtin_vars.Add("spelluse", AssetIDType.Boolean); - builtin_vars.Add("animdone", AssetIDType.Boolean); - builtin_vars.Add("bigcar", AssetIDType.Boolean); - //builtin_vars.Add("forceypos", AssetIDType.Boolean); - builtin_vars.Add("bump", AssetIDType.Boolean); - builtin_vars.Add("drawpremonition", AssetIDType.Boolean); - builtin_vars.Add("premonition", AssetIDType.Boolean); - builtin_vars.Add("queenmode", AssetIDType.Boolean); - builtin_vars.Add("arcade", AssetIDType.Boolean); - builtin_vars.Add("arcadebaseballused", AssetIDType.Boolean); - builtin_vars.Add("playerhitbykick", AssetIDType.Boolean); - builtin_vars.Add("finalbaseballused", AssetIDType.Boolean); - builtin_vars.Add("has_boss_done_pattern7", AssetIDType.Boolean); - builtin_vars.Add("dead", AssetIDType.Boolean); - builtin_vars.Add("filefound", AssetIDType.Boolean); - builtin_vars.Add("loadcompletion", AssetIDType.Boolean); - builtin_vars.Add("COMPLETEFILE_PREV", AssetIDType.Boolean); - builtin_vars.Add("input_pressed", AssetIDType.Boolean); - builtin_vars.Add("input_held", AssetIDType.Boolean); - builtin_vars.Add("input_released", AssetIDType.Boolean); - builtin_vars.Add("return_title", AssetIDType.Boolean); - builtin_vars.Add("d_cancel", AssetIDType.Boolean); - builtin_vars.Add("killactive", AssetIDType.Boolean); - builtin_vars.Add("gameover", AssetIDType.Boolean); - builtin_vars.Add("font_set", AssetIDType.Boolean); - builtin_vars.Add("playcheck", AssetIDType.Boolean); - builtin_vars.Add("play", AssetIDType.Boolean); - builtin_vars.Add("mouthmove", AssetIDType.Boolean); - builtin_vars.Add("spellanim", AssetIDType.Boolean); - builtin_vars.Add("textwait", AssetIDType.Boolean); - builtin_vars.Add("noneleft", AssetIDType.Boolean); - builtin_vars.Add("actingsimul", AssetIDType.Boolean); - builtin_vars.Add("halt", AssetIDType.Boolean); - builtin_vars.Add("drawaster", AssetIDType.Boolean); - builtin_vars.Add("formatted", AssetIDType.Boolean); - builtin_vars.Add("forcebutton1", AssetIDType.Boolean); - //builtin_vars.Add("inv", AssetIDType.Boolean); - builtin_vars.Add("actsimulsus", AssetIDType.Boolean); - builtin_vars.Add("actsimulral", AssetIDType.Boolean); - builtin_vars.Add("actsimulnoe", AssetIDType.Boolean); - builtin_vars.Add("actsimul", AssetIDType.Boolean); - builtin_vars.Add("actingsus", AssetIDType.Boolean); - builtin_vars.Add("actingral", AssetIDType.Boolean); - builtin_vars.Add("actingnoe", AssetIDType.Boolean); - builtin_vars.Add("shakereduct", AssetIDType.Boolean); - builtin_vars.Add("_playsound", AssetIDType.Boolean); - builtin_vars.Add("haveit", AssetIDType.Boolean); - builtin_vars.Add("removed", AssetIDType.Boolean); - builtin_vars.Add("_noroominventory", AssetIDType.Boolean); - builtin_vars.Add("_pocketed", AssetIDType.Boolean); - builtin_vars.Add("replaceable", AssetIDType.Boolean); - builtin_vars.Add("invert", AssetIDType.Boolean); - builtin_vars.Add("is_dualshock", AssetIDType.Boolean); - builtin_vars.Add("isString", AssetIDType.Boolean); - builtin_vars.Add("charauto", AssetIDType.Boolean); - builtin_vars.Add("auto_length", AssetIDType.Boolean); - builtin_vars.Add("simultotal_funny", AssetIDType.Boolean); - builtin_vars.Add("actingsingle", AssetIDType.Boolean); - builtin_vars.Add("talked", AssetIDType.Boolean); - builtin_vars.Add("acting", AssetIDType.Boolean); - builtin_vars.Add("__noactors", AssetIDType.Boolean); - builtin_vars.Add("fatal", AssetIDType.Boolean); - builtin_vars.Add("recruitable", AssetIDType.Boolean); - builtin_vars.Add("__frozen", AssetIDType.Boolean); - builtin_vars.Add("debug", AssetIDType.Boolean); - builtin_vars.Add("oldcalculation", AssetIDType.Boolean); - builtin_vars.Add("chemg_god_mode", AssetIDType.Boolean); - builtin_vars.Add("debug_inv", AssetIDType.Boolean); - builtin_vars.Add("gamepad_shoulderlb_reassign", AssetIDType.Boolean); - builtin_vars.Add("ladef", AssetIDType.Boolean); - builtin_vars.Add("armorconverted", AssetIDType.Boolean); - builtin_vars.Add("armorchar1temp", AssetIDType.Boolean); - builtin_vars.Add("armorchar2temp", AssetIDType.Boolean); - builtin_vars.Add("armorchar3temp", AssetIDType.Boolean); - builtin_vars.Add("armorchar4temp", AssetIDType.Boolean); - builtin_vars.Add("weaponchar1temp", AssetIDType.Boolean); - builtin_vars.Add("weaponchar2temp", AssetIDType.Boolean); - builtin_vars.Add("weaponchar3temp", AssetIDType.Boolean); - builtin_vars.Add("weaponchar4temp", AssetIDType.Boolean); - builtin_vars.Add("legacy", AssetIDType.Boolean); - builtin_vars.Add("jp_data_loaded", AssetIDType.Boolean); - builtin_vars.Add("ingame", AssetIDType.Boolean); - builtin_vars.Add("skipped", AssetIDType.Boolean); - builtin_vars.Add("draw_screen", AssetIDType.Boolean); - builtin_vars.Add("gamepad_active", AssetIDType.Boolean); - builtin_vars.Add("screen_border_active", AssetIDType.Boolean); - builtin_vars.Add("window_center_toggle", AssetIDType.Boolean); - builtin_vars.Add("fullscreen_toggle", AssetIDType.Boolean); - builtin_vars.Add("keyboard_active", AssetIDType.Boolean); - builtin_vars.Add("_isConsole", AssetIDType.Boolean); - builtin_vars.Add("pausing", AssetIDType.Boolean); - builtin_vars.Add("store_prompt", AssetIDType.Boolean); - builtin_vars.Add("visit_shop", AssetIDType.Boolean); - builtin_vars.Add("loaded", AssetIDType.Boolean); - builtin_vars.Add("commerce_dialog_open", AssetIDType.Boolean); - builtin_vars.Add("beenset", AssetIDType.Boolean); - builtin_vars.Add("menuOpened", AssetIDType.Boolean); - builtin_vars.Add("game_won", AssetIDType.Boolean); - builtin_vars.Add("timeruse", AssetIDType.Boolean); - builtin_vars.Add("leapmode", AssetIDType.Boolean); - //builtin_vars.Add("chapter_return", AssetIDType.Boolean); - builtin_vars.Add("m_quit", AssetIDType.Boolean); - builtin_vars.Add("border_select", AssetIDType.Boolean); - builtin_vars.Add("check_border", AssetIDType.Boolean); - builtin_vars.Add("disable_border", AssetIDType.Boolean); - builtin_vars.Add("cancelnoise", AssetIDType.Boolean); - builtin_vars.Add("_disable_border", AssetIDType.Boolean); - builtin_vars.Add("restart", AssetIDType.Boolean); - //builtin_vars.Add("battlemode", AssetIDType.Boolean); - builtin_vars.Add("init", AssetIDType.Boolean); - builtin_vars.Add("autobattle", AssetIDType.Boolean); - builtin_vars.Add("acttoenemytalktransition", AssetIDType.Boolean); // Probably, haven't checked - builtin_vars.Add("STARTGAME", AssetIDType.Boolean); - builtin_vars.Add("SELNOISE", AssetIDType.Boolean); - builtin_vars.Add("temp_comment_is_interesting", AssetIDType.Boolean); - builtin_vars.Add("FILECHECK", AssetIDType.Boolean); - builtin_vars.Add("input_enabled", AssetIDType.Boolean); - builtin_vars.Add("INCOMPLETE_LOAD", AssetIDType.Boolean); - builtin_vars.Add("is_console", AssetIDType.Boolean); - builtin_vars.Add("CANQUIT", AssetIDType.Boolean); - builtin_vars.Add("BGMADE", AssetIDType.Boolean); - builtin_vars.Add("finished", AssetIDType.Boolean); - builtin_vars.Add("is_active", AssetIDType.Boolean); - builtin_vars.Add("spam_car", AssetIDType.Boolean); - builtin_vars.Add("show_queen", AssetIDType.Boolean); - builtin_vars.Add("queen_animate", AssetIDType.Boolean); - builtin_vars.Add("actor_visible", AssetIDType.Boolean); - builtin_vars.Add("drawcustom", AssetIDType.Boolean); - builtin_vars.Add("alwayswalking", AssetIDType.Boolean); - builtin_vars.Add("prepopulate", AssetIDType.Boolean); - builtin_vars.Add("walking", AssetIDType.Boolean); - builtin_vars.Add("speedadjust", AssetIDType.Boolean); - builtin_vars.Add("fresh", AssetIDType.Boolean); - builtin_vars.Add("canactnoe", AssetIDType.Boolean); - builtin_vars.Add("canactral", AssetIDType.Boolean); - builtin_vars.Add("canactsus", AssetIDType.Boolean); - builtin_vars.Add("skip", AssetIDType.Boolean); - builtin_vars.Add("stayVisible", AssetIDType.Boolean); - builtin_vars.Add("playsound", AssetIDType.Boolean); - builtin_vars.Add("noAlertSound", AssetIDType.Boolean); - - builtin_vars.Add("hitbox", AssetIDType.Sprite); - builtin_vars.Add("sprite", AssetIDType.Sprite); - builtin_vars.Add("writerimg", AssetIDType.Sprite); - builtin_vars.Add("_sprite", AssetIDType.Sprite); - builtin_vars.Add("specialsprite", AssetIDType.Sprite); - builtin_vars.Add("o_boxingqueen_janky_sprite_index", AssetIDType.Sprite); - builtin_vars.Add("character_sprite", AssetIDType.Sprite); - builtin_vars.Add("victorySprite", AssetIDType.Sprite); - builtin_vars.Add("contentsprite", AssetIDType.Sprite); - builtin_vars.Add("sprite_palette", AssetIDType.Sprite); - builtin_vars.Add("head_sprite", AssetIDType.Sprite); - builtin_vars.Add("pilot_sprite", AssetIDType.Sprite); - builtin_vars.Add("default_sprite_front", AssetIDType.Sprite); - builtin_vars.Add("default_sprite_back", AssetIDType.Sprite); - builtin_vars.Add("hurt_sprite_front", AssetIDType.Sprite); - builtin_vars.Add("hurt_sprite_back", AssetIDType.Sprite); - builtin_vars.Add("hurt_character_sprite", AssetIDType.Sprite); - builtin_vars.Add("raspr", AssetIDType.Sprite); - builtin_vars.Add("suspr", AssetIDType.Sprite); - builtin_vars.Add("car_sprite", AssetIDType.Sprite); - builtin_vars.Add("hsprite", AssetIDType.Sprite); - builtin_vars.Add("vsprite", AssetIDType.Sprite); - builtin_vars.Add("menuSprite", AssetIDType.Sprite); - builtin_vars.Add("actor_startsprite", AssetIDType.Sprite); - builtin_vars.Add("actor_endsprite", AssetIDType.Sprite); - builtin_vars.Add("button_sprite", AssetIDType.Sprite); - builtin_vars.Add("endanimation", AssetIDType.Sprite); - builtin_vars.Add("lastSprite", AssetIDType.Sprite); - builtin_vars.Add("myLastSprite", AssetIDType.Sprite); - builtin_vars.Add("mySprite", AssetIDType.Sprite); - builtin_vars.Add("current_sprites", AssetIDType.Sprite); - builtin_vars.Add("fireworksprite", AssetIDType.Sprite); - builtin_vars.Add("customSprite", AssetIDType.Sprite); - builtin_vars.Add("queen_sprite", AssetIDType.Sprite); - builtin_vars.Add("pic", AssetIDType.Sprite); - builtin_vars.Add("picb", AssetIDType.Sprite); - builtin_vars.Add("leftTurnSprite", AssetIDType.Sprite); - builtin_vars.Add("rightTurnSprite", AssetIDType.Sprite); - builtin_vars.Add("topsprite", AssetIDType.Sprite); - builtin_vars.Add("frozensprite", AssetIDType.Sprite); - builtin_vars.Add("layersprites", AssetIDType.Sprite); - builtin_vars.Add("cursor_sprite", AssetIDType.Sprite); - builtin_vars.Add("rimsprite", AssetIDType.Sprite); - builtin_vars.Add("flashSprite", AssetIDType.Sprite); - builtin_vars.Add("spriteindex1", AssetIDType.Sprite); - builtin_vars.Add("spriteindex2", AssetIDType.Sprite); - builtin_vars.Add("shieldpiece_sprite_index", AssetIDType.Sprite); - builtin_vars.Add("shieldpiece_alpha", AssetIDType.Sprite); - builtin_vars.Add("sabersprite", AssetIDType.Sprite); - builtin_vars.Add("idlesprite", AssetIDType.Sprite); - builtin_vars.Add("puzzle_icon", AssetIDType.Sprite); - builtin_vars.Add("item0pic", AssetIDType.Sprite); - builtin_vars.Add("item1pic", AssetIDType.Sprite); - builtin_vars.Add("item2pic", AssetIDType.Sprite); - builtin_vars.Add("item3pic", AssetIDType.Sprite); - builtin_vars.Add("top", AssetIDType.Sprite); - builtin_vars.Add("sparesprite", AssetIDType.Sprite); - builtin_vars.Add("_rollSprites", AssetIDType.Sprite); - builtin_vars.Add("_sprites", AssetIDType.Sprite); - builtin_vars.Add("_spritesTea", AssetIDType.Sprite); - builtin_vars.Add("fruit", AssetIDType.Sprite); - builtin_vars.Add("chsprite", AssetIDType.Sprite); - builtin_vars.Add("_headsprite", AssetIDType.Sprite); - builtin_vars.Add("partsprite", AssetIDType.Sprite); - - builtin_vars.Add("fleetsize", AssetIDType.Other); - builtin_vars.Add("ar", AssetIDType.Other); - builtin_vars.Add("as", AssetIDType.Other); - builtin_vars.Add("be", AssetIDType.Other); - builtin_vars.Add("char", AssetIDType.Other); - builtin_vars.Add("choice", AssetIDType.Other); - builtin_vars.Add("direction", AssetIDType.Other); - builtin_vars.Add("encounterno", AssetIDType.Other); - builtin_vars.Add("flag", AssetIDType.Other); - builtin_vars.Add("gi", AssetIDType.Other); - builtin_vars.Add("gold", AssetIDType.Other); - builtin_vars.Add("hg", AssetIDType.Other); - builtin_vars.Add("la", AssetIDType.Other); - builtin_vars.Add("lhp", AssetIDType.Other); - builtin_vars.Add("na", AssetIDType.Other); - builtin_vars.Add("nl", AssetIDType.Other); - builtin_vars.Add("no", AssetIDType.Other); - builtin_vars.Add("plot", AssetIDType.Other); - builtin_vars.Add("qu", AssetIDType.Other); - builtin_vars.Add("sa", AssetIDType.Other); - builtin_vars.Add("side", AssetIDType.Other); - builtin_vars.Add("st", AssetIDType.Other); - builtin_vars.Add("sw", AssetIDType.Other); - builtin_vars.Add("to", AssetIDType.Other); - builtin_vars.Add("un", AssetIDType.Other); - builtin_vars.Add("walkpoint", AssetIDType.Other); - builtin_vars.Add("xx", AssetIDType.Other); - builtin_vars.Add("yy", AssetIDType.Other); - - // Undertale 1.05+ and Deltarune console versions. - builtin_funcs["scr_draw_background_ps4"] = new[] { AssetIDType.Background, AssetIDType.Other, AssetIDType.Other }; - builtin_vars.Add("room_id", AssetIDType.Room); - - builtin_vars.Add("currentroom", AssetIDType.Room); - builtin_vars.Add("dsprite", AssetIDType.Sprite); - builtin_vars.Add("usprite", AssetIDType.Sprite); - builtin_vars.Add("lsprite", AssetIDType.Sprite); - builtin_vars.Add("rsprite", AssetIDType.Sprite); - builtin_vars.Add("dtsprite", AssetIDType.Sprite); - builtin_vars.Add("utsprite", AssetIDType.Sprite); - builtin_vars.Add("ltsprite", AssetIDType.Sprite); - builtin_vars.Add("rtsprite", AssetIDType.Sprite); - builtin_vars.Add("normalsprite", AssetIDType.Sprite); - builtin_vars.Add("hurtsprite", AssetIDType.Sprite); - builtin_vars.Add("hurtsound", AssetIDType.Sound); - // New built in vars found by Grossley - builtin_vars.Add("interact", AssetIDType.Other); - // Test me! - builtin_vars.Add("sound0", AssetIDType.Sound); - // From v1.11 Undertale comparison, not tested unlike v1.001! - builtin_vars.Add("asprite", AssetIDType.Sprite); - builtin_vars.Add("bsprite", AssetIDType.Sprite); - builtin_vars.Add("tailobj", AssetIDType.GameObject); - builtin_vars.Add("heart", AssetIDType.GameObject); - builtin_vars.Add("draedmode", AssetIDType.Boolean); - // Deltarune - builtin_vars.Add("haveauto", AssetIDType.Boolean); - builtin_vars.Add("goahead", AssetIDType.Boolean); - builtin_vars.Add("is_auto_susie", AssetIDType.Boolean); - builtin_vars.Add("techwon", AssetIDType.Boolean); - builtin_vars.Add("itemed", AssetIDType.Boolean); - builtin_vars.Add("critical", AssetIDType.Boolean); - builtin_vars.Add("tile_fade", AssetIDType.Boolean); - builtin_vars.Add("boss", AssetIDType.Boolean); - builtin_vars.Add("skipvictory", AssetIDType.Boolean); - builtin_vars.Add("victory", AssetIDType.Boolean); - builtin_vars.Add("fighting", AssetIDType.Boolean); - builtin_vars.Add("charmove", AssetIDType.Boolean); - builtin_vars.Add("charcantarget", AssetIDType.Boolean); - builtin_vars.Add("chardead", AssetIDType.Boolean); - builtin_vars.Add("targeted", AssetIDType.Boolean); - builtin_vars.Add("havechar", AssetIDType.Boolean); - builtin_vars.Add("noreturn", AssetIDType.Boolean); - builtin_vars.Add("timeron", AssetIDType.Boolean); - builtin_vars.Add("flash", AssetIDType.Boolean); - builtin_vars.Add("mercydraw", AssetIDType.Boolean); - builtin_vars.Add("tireddraw", AssetIDType.Boolean); - builtin_vars.Add("pacify_glow", AssetIDType.Boolean); - builtin_vars.Add("drawsus", AssetIDType.Boolean); - builtin_vars.Add("drawral", AssetIDType.Boolean); - builtin_vars.Add("susblend", AssetIDType.Color); - builtin_vars.Add("ralblend", AssetIDType.Color); - builtin_vars.Add("hurt", AssetIDType.Boolean); - builtin_vars.Add("skipme", AssetIDType.Boolean); - builtin_vars.Add("darken", AssetIDType.Boolean); - builtin_vars.Add("combatdarken", AssetIDType.Boolean); - builtin_vars.Add("stepped", AssetIDType.Boolean); - //warned being a bool is probably mostly correct. - builtin_vars.Add("warned", AssetIDType.Boolean); - builtin_vars.Add("tired", AssetIDType.Boolean); - builtin_vars.Add("fixed", AssetIDType.Boolean); - builtin_vars.Add("nexttry", AssetIDType.Boolean); - builtin_vars.Add("floating", AssetIDType.Boolean); - builtin_vars.Add("bodyfade", AssetIDType.Boolean); - builtin_vars.Add("selected", AssetIDType.Boolean); - builtin_vars.Add("hurk", AssetIDType.Boolean); - builtin_vars.Add("persistent", AssetIDType.Boolean); - builtin_vars.Add("dhaver", AssetIDType.Boolean); - builtin_vars.Add("walk", AssetIDType.Boolean); - builtin_vars.Add("fun", AssetIDType.Boolean); - builtin_vars.Add("runmove", AssetIDType.Boolean); - builtin_vars.Add("frozen", AssetIDType.Boolean); - builtin_vars.Add("hadfrozen", AssetIDType.Boolean); - builtin_vars.Add("offscreen_frozen", AssetIDType.Boolean); - builtin_vars.Add("ignoresolid", AssetIDType.Boolean); - builtin_vars.Add("eraser", AssetIDType.Boolean); - builtin_vars.Add("bikeflip", AssetIDType.Boolean); - builtin_vars.Add("checked", AssetIDType.Boolean); - builtin_vars.Add("secondtime", AssetIDType.Boolean); - builtin_vars.Add("ralsei_lecture", AssetIDType.Boolean); - builtin_vars.Add("choiced", AssetIDType.Boolean); - builtin_vars.Add("FINISH", AssetIDType.Boolean); - builtin_vars.Add("LOCK", AssetIDType.Boolean); - builtin_vars.Add("locked", AssetIDType.Boolean); - builtin_vars.Add("ERASE", AssetIDType.Boolean); - builtin_vars.Add("fastmode", AssetIDType.Boolean); - builtin_vars.Add("fadeplease", AssetIDType.Boolean); - builtin_vars.Add("active", AssetIDType.Boolean); - builtin_vars.Add("alpha_changed", AssetIDType.Boolean); - builtin_vars.Add("charinstance", AssetIDType.GameObject); - builtin_vars.Add("reset", AssetIDType.Boolean); - // globals pertaining to monsters in Deltarune - builtin_vars.Add("monsterstatus", AssetIDType.Boolean); - builtin_vars.Add("monster", AssetIDType.Boolean); - // Cutscene - builtin_vars.Add("cutscene", AssetIDType.Boolean); - builtin_vars.Add("black", AssetIDType.Boolean); - builtin_vars.Add("monsterinstancetype", AssetIDType.GameObject); - //builtin_vars.Add("itemed", AssetIDType.Boolean); - //builtin_vars.Add("itemed", AssetIDType.Boolean); - //builtin_vars.Add("itemed", AssetIDType.Boolean); - //builtin_vars.Add("itemed", AssetIDType.Boolean); - //Undertale - builtin_vars.Add("background_color", AssetIDType.Color); - builtin_vars.Add("myblend", AssetIDType.Color); - builtin_vars.Add("object0", AssetIDType.GameObject); - builtin_vars.Add("part1", AssetIDType.GameObject); - builtin_vars.Add("pap", AssetIDType.GameObject); - builtin_vars.Add("fileerased", AssetIDType.Sprite); - builtin_vars.Add("catty", AssetIDType.GameObject); - builtin_vars.Add("bratty", AssetIDType.GameObject); - builtin_vars.Add("creator", AssetIDType.GameObject); - // It's not 100% accurate to resolve this way but it seems like this variable only gets directly assigned values and is used as a bool, it should be fine. - builtin_vars.Add("parent", AssetIDType.GameObject); - // These are not so consistent... ;-; - // From v1.001 Undertale via comparison - // A TIER quality - builtin_vars.Add("onionsprite", AssetIDType.Sprite); - builtin_vars.Add("headsprite", AssetIDType.Sprite); - builtin_vars.Add("breaksprite", AssetIDType.Sprite); - builtin_vars.Add("foodimg", AssetIDType.Sprite); - builtin_vars.Add("facespr", AssetIDType.Sprite); - builtin_vars.Add("bombsprite", AssetIDType.Sprite); - builtin_vars.Add("mysprite", AssetIDType.Sprite); - builtin_vars.Add("arms", AssetIDType.Sprite); - builtin_vars.Add("levelpic", AssetIDType.Sprite); - builtin_vars.Add("image", AssetIDType.Sprite); - builtin_vars.Add("song_index", AssetIDType.Sound); - builtin_vars.Add("thischara", AssetIDType.GameObject); - // B TIER quality - builtin_vars.Add("tspr5", AssetIDType.Sprite); - builtin_vars.Add("tspr3", AssetIDType.Sprite); - builtin_vars.Add("tspr2", AssetIDType.Sprite); - builtin_vars.Add("tspr1", AssetIDType.Sprite); - builtin_vars.Add("tspr4", AssetIDType.Sprite); - builtin_vars.Add("snapper", AssetIDType.GameObject); - builtin_vars.Add("subject", AssetIDType.GameObject); - builtin_vars.Add("clip", AssetIDType.GameObject); - // C TIER quality - builtin_vars.Add("sound1", AssetIDType.Sound); - builtin_vars.Add("sound2", AssetIDType.Sound); - } - - // In 2.3.7+, booleans don't need to be typed. - // Turn any boolean types (other than overrides) into AssetIDType.Other - // so integers don't turn into booleans when they shouldn't - if (data.IsVersionAtLeast(2, 3, 7)) - { - foreach (KeyValuePair kvp in builtin_vars) - { - if (kvp.Value == AssetIDType.Boolean) - builtin_vars.Remove(kvp.Key); - } - foreach (KeyValuePair kvp in return_types) - { - if (kvp.Value == AssetIDType.Boolean) - builtin_vars.Remove(kvp.Key); - } - foreach (KeyValuePair kvp in builtin_funcs) - { - AssetIDType[] arr = kvp.Value; - for (int i = 0; i < arr.Length; i++) - { - if (arr[i] == AssetIDType.Boolean) - arr[i] = AssetIDType.Other; - } - } - } - } - } -} diff --git a/UndertaleModLib/Decompiler/ContextualAssetResolver.cs b/UndertaleModLib/Decompiler/ContextualAssetResolver.cs deleted file mode 100644 index 91954f59d..000000000 --- a/UndertaleModLib/Decompiler/ContextualAssetResolver.cs +++ /dev/null @@ -1,261 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using UndertaleModLib.Compiler; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler -{ - public class ContextualAssetResolver - { - // Is there a better way to do this? - // Probably - public static Dictionary> resolvers; - public static Dictionary> variable_resolvers; - - internal static Dictionary> event_subtypes; - internal static Dictionary blend_modes, gamepad_controls; - internal static Dictionary macros; - - public static void Initialize(UndertaleData data) - { - // TODO: make this nicer by not hacking - // into the builtin list - event_subtypes = new Dictionary>(); - gamepad_controls = new Dictionary(); - blend_modes = new Dictionary(); - macros = new Dictionary(); - - // Don't use - // Error because of loading audiogroup - if (data.GeneralInfo != null) - { - if (data.GeneralInfo.BytecodeVersion <= 14) - { - foreach (var constant in data.Options.Constants) - { - if (!constant.Name.Content.StartsWith("@@", StringComparison.InvariantCulture)) - macros[constant.Value.Content] = constant.Name.Content; - } - } - } - - var builtins = data.BuiltinList; - var constants = builtins.Constants; - - Func GetEventTypeFromSubtype = (string subtype) => - { - if (subtype.Contains("gesture", StringComparison.InvariantCulture)) - return Enum_EventType.ev_gesture; - if (subtype.Contains("gui", StringComparison.InvariantCulture) || subtype.Contains("draw", StringComparison.InvariantCulture)) // DrawGUI events are apparently just prefixed with ev_gui... - return Enum_EventType.ev_draw; - if (subtype.Contains("step", StringComparison.InvariantCulture)) - return Enum_EventType.ev_step; - // End me - if (subtype.Contains("user", StringComparison.InvariantCulture) || subtype.Contains("game_", StringComparison.InvariantCulture) || - subtype.Contains("room_", StringComparison.InvariantCulture) || subtype.Contains("animation_end", StringComparison.InvariantCulture) || - subtype.Contains("lives", StringComparison.InvariantCulture) || subtype.Contains("end_of_path", StringComparison.InvariantCulture) || - subtype.Contains("health", StringComparison.InvariantCulture) || subtype.Contains("close_button", StringComparison.InvariantCulture) || - subtype.Contains("outside", StringComparison.InvariantCulture) || subtype.Contains("boundary", StringComparison.InvariantCulture)) - return Enum_EventType.ev_other; - - // ev_close_button is handled above and the various joystick events are - // skipped in the loop - if (subtype.Contains("button", StringComparison.InvariantCulture) || subtype.Contains("mouse", StringComparison.InvariantCulture) || - subtype.Contains("global", StringComparison.InvariantCulture) || subtype.Contains("press", StringComparison.InvariantCulture) || - subtype.Contains("release", StringComparison.InvariantCulture)) - return Enum_EventType.ev_mouse; - - - // Note: events with arbitrary subtypes (keyboard, create, precreate, destroy, etc) - // are not handled here. - // It also appears to be impossible to manually trigger joystick events? - - // idk what exception to use - throw new NotImplementedException("No event type for subtype " + subtype); - }; - - Func> GetDictForEventType = (Enum_EventType type) => - { - // These 3 resolve to the same thing - if (type == Enum_EventType.ev_keypress || type == Enum_EventType.ev_keyrelease) - type = Enum_EventType.ev_keyboard; - - if (!event_subtypes.ContainsKey(type)) - event_subtypes[type] = new Dictionary(); - - return event_subtypes[type]; - }; - - // This is going to get bulky really quickly - foreach (string constant in constants.Keys) - { - if (constant.StartsWith("vk_", StringComparison.InvariantCulture)) - GetDictForEventType(Enum_EventType.ev_keyboard)[(int)constants[constant]] = constant; - else if (constant.StartsWith("bm_") && !constant.Contains("colour", StringComparison.InvariantCulture)) - blend_modes[(int)constants[constant]] = constant; - else if (constant.StartsWith("gp_", StringComparison.InvariantCulture)) - gamepad_controls[(int)constants[constant]] = constant; - else if (constant.StartsWith("ev_") && !Enum.IsDefined(typeof(Enum_EventType), constant) && !constant.Contains("joystick", StringComparison.InvariantCulture)) - GetDictForEventType(GetEventTypeFromSubtype(constant))[(int)constants[constant]] = constant; - } - - - // Uncurse this some time - Func ConvertToConstExpression = (expr) => - { - if (expr is Decompiler.ExpressionCast) - expr = (expr as Decompiler.ExpressionCast).Argument; - - if (expr is Decompiler.ExpressionConstant) - return expr as Decompiler.ExpressionConstant; - - return null; - }; - - Func GetTypeInt = (expr) => - { - var constExpr = ConvertToConstExpression(expr); - - if (constExpr == null) - return null; - - return AssetTypeResolver.FindConstValue(Decompiler.ExpressionConstant.ConvertToEnumStr(constExpr.Value)); - }; - - Func resolve_event_perform = (context, func, index, self) => - { - int? typeInt = GetTypeInt(func.Arguments[index - 1]); - - if(typeInt != null) - { - Enum_EventType type = (Enum_EventType)typeInt; - int? initialVal = Decompiler.ExpressionConstant.ConvertToInt(self.Value); - if (initialVal == null) - return null; - - int val = initialVal.Value; - - var subtypes = event_subtypes; - if (type == Enum_EventType.ev_collision && val >= 0 && val < data.GameObjects.Count) - return data.GameObjects[val].Name.Content; - else if (type == Enum_EventType.ev_keyboard || type == Enum_EventType.ev_keypress || type == Enum_EventType.ev_keyrelease) - { - string key = self.GetAsKeyboard(context); - if (key != null) - return key; - } - else if (subtypes.ContainsKey(type)) - { - var mappings = subtypes[type]; - if (mappings.ContainsKey(val)) - return mappings[val]; - } - } - - return null; - }; - - // TODO: Finish context-dependent variable resolution - variable_resolvers = new Dictionary>() - { - { "scr_getbuttonsprite", (context, varname, value) => - { - return null; - } - } - }; - - resolvers = new Dictionary>() - { - // TODO: __background* compatibility scripts - { "event_perform", resolve_event_perform }, - { "event_perform_object", resolve_event_perform }, - { "draw_set_blend_mode", (context, func, index, self) => - { - int? val = Decompiler.ExpressionConstant.ConvertToInt(self.Value); - if (val != null) - { - switch(val) - { - case 0: return "bm_normal"; - case 1: return "bm_add"; - case 2: return "bm_max"; - case 3: return "bm_subtract"; - } - } - return null; - } - }, - { "gpu_set_blendmode", (context, func, index, self) => - { - int? val = Decompiler.ExpressionConstant.ConvertToInt(self.Value); - if (val != null) - { - switch(val) - { - case 0: return "bm_normal"; - case 1: return "bm_add"; - case 2: return "bm_max"; - case 3: return "bm_subtract"; - } - } - return null; - } - }, - { "draw_set_blend_mode_ext", (context, func, index, self) => - { - int? val = Decompiler.ExpressionConstant.ConvertToInt(self.Value); - if (val == null) - return null; - - return blend_modes.ContainsKey(val.Value) ? blend_modes[val.Value] : null; - } - }, - { "gpu_set_blendmode_ext", (context, func, index, self) => - { - int? val = Decompiler.ExpressionConstant.ConvertToInt(self.Value); - if (val == null) - return null; - - return blend_modes.ContainsKey(val.Value) ? blend_modes[val.Value] : null; - } - }, - { "__view_set", (context, func, index, self) => - { - var first = ConvertToConstExpression(func.Arguments[0]); - if (first == null) - return null; - - int type = Decompiler.ExpressionConstant.ConvertToInt(first.Value) ?? -1; - int? val = Decompiler.ExpressionConstant.ConvertToInt(self.Value); - - if (val == null) - return null; - - switch(type) - { - case 9: - { - if (val < 0) - return ((UndertaleInstruction.InstanceType)self.Value).ToString().ToLower(CultureInfo.InvariantCulture); - else if (val < data.GameObjects.Count) - return data.GameObjects[val.Value].Name.Content; - - } break; - - case 10: - { - if (val == 0) - return "false"; - else if (val == 1) - return "true"; - } break; - } - return null; - } - }, - }; - } - } -} diff --git a/UndertaleModLib/Decompiler/DecompileContext.cs b/UndertaleModLib/Decompiler/DecompileContext.cs deleted file mode 100644 index e23d31678..000000000 --- a/UndertaleModLib/Decompiler/DecompileContext.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -/// -/// The DecompileContext is bound to the currently decompiled code block -/// -public class DecompileContext -{ - public GlobalDecompileContext GlobalContext; - public UndertaleCode TargetCode; - public UndertaleGameObject Object; - public static bool GMS2_3; - public bool BooleanTypeEnabled => GlobalContext.Data?.IsVersionAtLeast(2, 3, 7) ?? false; - public bool AssetResolutionEnabled => !GlobalContext.Data.IsVersionAtLeast(2023, 8); - - public DecompileContext(GlobalDecompileContext globalContext, UndertaleCode code, bool computeObject = true) - { - GlobalContext = globalContext; - TargetCode = code; - - if (code.ParentEntry != null) - throw new InvalidOperationException("This code block represents a function nested inside " + code.ParentEntry.Name + " - decompile that instead"); - - if (computeObject && globalContext.Data is not null) - { - // TODO: This is expensive, move it somewhere else as a dictionary - // and have it update when events/objects are modified. - - // Currently using for loops on purpose, as foreach has memory issues due to IEnumerable - for (int i = 0; i < globalContext.Data.GameObjects.Count; i++) - { - UndertaleGameObject obj = globalContext.Data.GameObjects[i]; - for (int j = 0; j < obj.Events.Count; j++) - { - var eventList = obj.Events[j]; - for (int k = 0; k < eventList.Count; k++) - { - UndertaleGameObject.Event subEvent = eventList[k]; - for (int l = 0; l < subEvent.Actions.Count; l++) - { - UndertaleGameObject.EventAction ev = subEvent.Actions[l]; - if (ev.CodeId != code) continue; - Object = obj; - return; - } - } - } - } - } - } - - #region Struct management - public List ArgumentReplacements; - public bool DecompilingStruct; - #endregion - - #region Indentation management - public const string Indent = " "; - private int _indentationLevel = 0; - private string _indentation = ""; - - public int IndentationLevel - { - get - { - return _indentationLevel; - } - set - { - _indentationLevel = value; - - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < IndentationLevel; i++) - { - sb.Append(Indent); - } - _indentation = sb.ToString(); - } - } - public string Indentation => _indentation; - #endregion - - #region Temp var management - /// - /// Maps a temp var to a place where it was created - /// - public Dictionary TempVarMap = new Dictionary(); - /// - /// If used for auto-naming temp vars - /// - public int TempVarId { get; private set; } - public Decompiler.AssignmentStatement CompilerTempVar; - - public Decompiler.TempVar NewTempVar() - { - return new Decompiler.TempVar(++TempVarId); - } - #endregion - - #region Local var management - public HashSet LocalVarDefines = new HashSet(); - #endregion - - #region GMS 2.3+ Function management - /// - /// Set containing already-decompiled child code entries. - /// Used to prevent decompiling the same child entry multiple times. - /// Only applies to function entries, struct and constructors are unaffected. - /// - public ISet AlreadyProcessed = new HashSet(); - #endregion - - #region Asset type resolution - /// - /// Contains the resolved asset type for every variable - /// - public Dictionary assetTypes = new Dictionary(); - public Decompiler.DirectFunctionCall currentFunction; // TODO: clean up this hack - #endregion - - #region Decompilation results - /// - /// Contains the result of decompiling this code block. - /// This is a map from an entry point address to a list of statements. - /// Needs to be here to access it in ToString for inline function definitions. - /// - public Dictionary> Statements { get; internal set; } - #endregion - - /// - /// Allows to disable the anonymous code name resolution to prevent recursion - /// - public bool DisableAnonymousFunctionNameResolution = false; -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Decompiler.cs b/UndertaleModLib/Decompiler/Decompiler.cs deleted file mode 100644 index 0c211f296..000000000 --- a/UndertaleModLib/Decompiler/Decompiler.cs +++ /dev/null @@ -1,1664 +0,0 @@ -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using UndertaleModLib.Models; -using UndertaleModLib.Util; - -namespace UndertaleModLib.Decompiler -{ - public static partial class Decompiler - { - // Color dictionary for resolving. - public static readonly Dictionary ColorDictionary = new Dictionary - { - [16776960] = "c_aqua", - [0] = "c_black", - [16711680] = "c_blue", - [4210752] = "c_dkgray", - [16711935] = "c_fuchsia", - [8421504] = "c_gray", - [32768] = "c_green", - [65280] = "c_lime", - //[12632256] = "c_ltgray", - [128] = "c_maroon", - [8388608] = "c_navy", - [32896] = "c_olive", - [8388736] = "c_purple", - [255] = "c_red", - [12632256] = "c_silver", - [8421376] = "c_teal", - [16777215] = "c_white", // maximum color value - [65535] = "c_yellow", - [4235519] = "c_orange" - }; - - static int GetTypeSize(UndertaleInstruction.DataType type) - { - switch (type) - { - case UndertaleInstruction.DataType.Int16: - case UndertaleInstruction.DataType.Int32: - return 4; - case UndertaleInstruction.DataType.Double: // Fallthrough - case UndertaleInstruction.DataType.Int64: - return 8; - case UndertaleInstruction.DataType.Variable: - return 16; - default: - throw new NotImplementedException("Unknown size for data type " + type); - } - } - static int GetTypeSize(Expression e) - { - if (e is ExpressionVar || e is ExpressionTempVar) - return GetTypeSize(UndertaleInstruction.DataType.Variable); - if (e is FunctionCall) // function call returns an internal variable - return GetTypeSize(UndertaleInstruction.DataType.Variable); - if (e is FunctionDefinition) - return GetTypeSize(UndertaleInstruction.DataType.Variable); - if (e is ExpressionTwo exprTwo) - return GetTypeSize(exprTwo.Type2); // for add.i.v, the output is a var - return GetTypeSize(e.Type); - } - - // The core function to decompile a specific block. - internal static void DecompileFromBlock(DecompileContext context, Dictionary blocks, Block block, List tempvars, Stack>> workQueue) - { - if (block.TempVarsOnEntry != null && (block.nextBlockTrue != null || block.nextBlockFalse != null)) - { - // Reroute tempvars to alias them to our ones - if (block.TempVarsOnEntry.Count != tempvars.Count) - { - throw new Exception("Reentered block with different amount of vars on stack (Entry: " + block.TempVarsOnEntry.Count + ", Actual Count: " + tempvars.Count + ")"); - } - else - { - for (int i = 0; i < tempvars.Count; i++) - { - tempvars[i].Var = block.TempVarsOnEntry[i].Var; - } - } - } - - // Don't decompile more than once - if (block.Statements != null) - return; - - // Recover stack tempvars which may be needed - block.TempVarsOnEntry = tempvars; - Stack stack = new Stack(); - foreach (TempVarReference var in tempvars) - stack.Push(new ExpressionTempVar(var, var.Var.Type)); - - // Iterate through all of the sta - List statements = new List(); - bool end = false; - bool returned = false; - for (int i = 0; i < block.Instructions.Count; i++) - { - if (end) - throw new Exception("Expected end of block, but still has instructions"); - - var instr = block.Instructions[i]; - switch (instr.Kind) - { - case UndertaleInstruction.Opcode.Neg: - case UndertaleInstruction.Opcode.Not: - stack.Push(new ExpressionOne(instr.Kind, instr.Type1, stack.Pop())); - break; - - case UndertaleInstruction.Opcode.Dup: - if (instr.ComparisonKind != 0) - { - // This is the GMS 2.3+ stack move / swap instruction - if (instr.Type1 == UndertaleInstruction.DataType.Variable) - { - // This variant seems to do literally nothing...? - break; - } - - int bytesToTake = instr.Extra * 4; - Stack taken = new Stack(); - while (bytesToTake > 0) - { - Expression e = stack.Pop(); - taken.Push(e); - bytesToTake -= GetTypeSize(e); - if (bytesToTake < 0) - throw new InvalidOperationException("The stack got misaligned? Error 0"); - } - - int b2 = (byte)instr.ComparisonKind & 0x7F; - if ((b2 & 0b111) != 0) - throw new InvalidOperationException("Don't know what to do with this"); - int bytesToMove = (b2 >> 3) * 4; - Stack moved = new Stack(); - while (bytesToMove > 0) - { - Expression e = stack.Pop(); - moved.Push(e); - bytesToMove -= GetTypeSize(e); - if (bytesToMove < 0) - throw new InvalidOperationException("The stack got misaligned? Error 1"); - } - - while (taken.Count > 0) - stack.Push(taken.Pop()); - while (moved.Count > 0) - stack.Push(moved.Pop()); - - break; - } - - // Normal dup instruction - - List topExpressions1 = new List(); - List topExpressions2 = new List(); - int bytesToDuplicate = (instr.Extra + 1) * GetTypeSize(instr.Type1); - while (bytesToDuplicate > 0) - { - var item = stack.Pop(); - - if (item.IsDuplicationSafe()) - { - item.WasDuplicated = true; - topExpressions1.Add(item); - topExpressions2.Add(item); - } - else - { - TempVar var = context.NewTempVar(); - var.Type = item.Type; - TempVarReference varref = new TempVarReference(var); - statements.Add(new TempVarAssignmentStatement(varref, item)); - - topExpressions1.Add(new ExpressionTempVar(varref, varref.Var.Type) { WasDuplicated = true }); - topExpressions2.Add(new ExpressionTempVar(varref, instr.Type1) { WasDuplicated = true }); - } - - bytesToDuplicate -= GetTypeSize(item); - if (bytesToDuplicate < 0) - throw new InvalidOperationException("The stack got misaligned? Error 2: Attempted to duplicate " - + GetTypeSize(item) - + " bytes, only found " - + (bytesToDuplicate + GetTypeSize(item))); - } - topExpressions1.Reverse(); - topExpressions2.Reverse(); - for (int j = 0; j < topExpressions1.Count; j++) - stack.Push(topExpressions1[j]); - for (int j = 0; j < topExpressions2.Count; j++) - stack.Push(topExpressions2[j]); - break; - - case UndertaleInstruction.Opcode.Ret: - case UndertaleInstruction.Opcode.Exit: - // 2.3 scripts add exits to every script, even those that lack a return - // This detects that type of exit using the next block. - Block nextBlock = null; - if (DecompileContext.GMS2_3 && instr.Kind == UndertaleInstruction.Opcode.Exit) - { - uint[] blockAddresses = blocks.Keys.ToArray(); - Array.Sort(blockAddresses); - int nextBlockIndex = Array.IndexOf(blockAddresses, block.Address ?? 0) + 1; - if (blockAddresses.Length > nextBlockIndex) - { - uint nextBlockAddress = blockAddresses[nextBlockIndex]; - nextBlock = blocks[nextBlockAddress]; - } - } - - if (!(nextBlock is not null - && nextBlock.Instructions.Count > 0 - && nextBlock.Instructions[0].Kind == UndertaleInstruction.Opcode.Push - && nextBlock.Instructions[0].Value is UndertaleInstruction.Reference)) - { - ReturnStatement stmt = new ReturnStatement(instr.Kind == UndertaleInstruction.Opcode.Ret ? stack.Pop() : null); - /* - This shouldn't be necessary: all unused things on the stack get converted to tempvars at the end anyway, and this fixes decompilation of repeat() - See #85 - - foreach (var expr in stack.Reverse()) - if (!(expr is ExpressionTempVar)) - statements.Add(expr); - stack.Clear(); - */ - statements.Add(stmt); - } - end = true; - returned = true; - break; - - case UndertaleInstruction.Opcode.Popz: - Expression popped = stack.Pop(); - if (!popped.IsDuplicationSafe()) // <- not duplication safe = has side effects and needs to be listed in the output - statements.Add(popped); - break; - - case UndertaleInstruction.Opcode.Conv: - { - Expression val = stack.Pop(); - if (context.BooleanTypeEnabled && instr.Type1 == UndertaleInstruction.DataType.Boolean) - val.CastToBoolean(context); - stack.Push(new ExpressionCast(instr.Type2, val)); - } - break; - - case UndertaleInstruction.Opcode.Mul: - case UndertaleInstruction.Opcode.Div: - case UndertaleInstruction.Opcode.Rem: - case UndertaleInstruction.Opcode.Mod: - case UndertaleInstruction.Opcode.Add: - case UndertaleInstruction.Opcode.Sub: - case UndertaleInstruction.Opcode.And: - case UndertaleInstruction.Opcode.Or: - case UndertaleInstruction.Opcode.Xor: - case UndertaleInstruction.Opcode.Shl: - case UndertaleInstruction.Opcode.Shr: - Expression a2 = stack.Pop(); - Expression a1 = stack.Pop(); - stack.Push(new ExpressionTwo(instr.Kind, instr.Type1, instr.Type2, a1, a2)); - break; - - case UndertaleInstruction.Opcode.Cmp: - Expression aa2 = stack.Pop(); - if (context.BooleanTypeEnabled && instr.Type1 == UndertaleInstruction.DataType.Boolean) - aa2.CastToBoolean(context); - Expression aa1 = stack.Pop(); - if (context.BooleanTypeEnabled && instr.Type2 == UndertaleInstruction.DataType.Boolean) - aa1.CastToBoolean(context); - stack.Push(new ExpressionCompare(instr.ComparisonKind, aa1, aa2)); - break; - - case UndertaleInstruction.Opcode.B: - end = true; - break; - - case UndertaleInstruction.Opcode.Bt: - case UndertaleInstruction.Opcode.Bf: - { - Expression val = stack.Pop(); - if (context.BooleanTypeEnabled && val.Type == UndertaleInstruction.DataType.Int16) - val.CastToBoolean(context); - block.ConditionStatement = val; - end = true; - } - break; - - case UndertaleInstruction.Opcode.PushEnv: - if (DecompileContext.GMS2_3 == true) - { - Expression expr = stack.Pop(); - - // -9 signifies stacktop - if (expr is ExpressionConstant c && - c.Type == UndertaleInstruction.DataType.Int16 && (short)c.Value == -9) - expr = stack.Pop(); - - statements.Add(new PushEnvStatement(expr)); - } - else - statements.Add(new PushEnvStatement(stack.Pop())); - end = true; - break; - - case UndertaleInstruction.Opcode.PopEnv: - if (!instr.JumpOffsetPopenvExitMagic) - statements.Add(new PopEnvStatement()); - // For JumpOffsetPopenvExitMagic: - // This is just an instruction to make sure the pushenv/popenv stack is cleared on early function return - // Works kinda like 'break', but doesn't have a high-level representation as it's immediately followed by a 'return' - end = true; - break; - - case UndertaleInstruction.Opcode.Pop: - { - if (instr.Destination == null) - { - // pop.e.v 5/6, strange magic stack operation - // TODO: this is probably an older version of the GMS2.3+ swap hidden in dup, but I'm not gonna touch it if it works - Expression e1 = stack.Pop(); - Expression e2 = stack.Pop(); - for (int j = 0; j < instr.SwapExtra - 4; j++) - stack.Pop(); - stack.Push(e2); - stack.Push(e1); - break; - } - ExpressionVar target = new ExpressionVar(instr.Destination.Target, new ExpressionConstant(UndertaleInstruction.DataType.Int16, instr.TypeInst), instr.Destination.Type); - Expression val = null; - if (instr.Type1 != UndertaleInstruction.DataType.Int32 && instr.Type1 != UndertaleInstruction.DataType.Variable) - throw new Exception("Unrecognized pop instruction, doesn't conform to pop.i.X, pop.v.X, or pop.e.v"); - if (instr.Type1 == UndertaleInstruction.DataType.Int32) - val = stack.Pop(); - switch (target.VarType) - { - case UndertaleInstruction.VariableType.Normal: - case UndertaleInstruction.VariableType.Instance: - break; - case UndertaleInstruction.VariableType.StackTop: - target.InstType = stack.Pop(); - break; - case UndertaleInstruction.VariableType.Array: - Tuple ind = ExpressionVar.Decompile2DArrayIndex(stack.Pop()); - target.ArrayIndices = new List { ind.Item1 }; - if (ind.Item2 != null) - target.ArrayIndices.Add(ind.Item2); - target.InstType = stack.Pop(); - break; - default: - throw new NotImplementedException("Don't know how to decompile variable type " + target.VarType); - } - - // Check if instance type is "StackTop" - ExpressionConstant instanceTypeConstExpr = null; - if (target.InstType is ExpressionConstant c1) { - instanceTypeConstExpr = c1; - } else if (target.InstType is ExpressionTempVar tempVar) { - TempVarAssignmentStatement assignment = context.TempVarMap[tempVar.Var.Var.Name]; - if (assignment != null && assignment.Value is ExpressionConstant c2) { - instanceTypeConstExpr = c2; - } - } - if (instanceTypeConstExpr != null && - instanceTypeConstExpr.Type == UndertaleInstruction.DataType.Int16 && - (short)instanceTypeConstExpr.Value == (short)UndertaleInstruction.InstanceType.Stacktop) { - target.InstType = stack.Pop(); - } - - if (instr.Type1 == UndertaleInstruction.DataType.Variable) - val = stack.Pop(); - if (val != null) - { - if (context.BooleanTypeEnabled && instr.Type2 == UndertaleInstruction.DataType.Boolean) - val.CastToBoolean(context); - if ((target.VarType == UndertaleInstruction.VariableType.StackTop || target.VarType == UndertaleInstruction.VariableType.Array) && target.InstType.WasDuplicated) - { - // Almost safe to assume that this is a +=, -=, etc. - // Need to confirm a few things first. It's not certain, could be ++ even. - if (val is ExpressionTwo) - { - var two = (val as ExpressionTwo); - if (two.Opcode != UndertaleInstruction.Opcode.Rem && // Not possible in GML, but possible in bytecode. Don't deal with these, - two.Opcode != UndertaleInstruction.Opcode.Shl && // frankly we don't care enough. - two.Opcode != UndertaleInstruction.Opcode.Shr) - { - var arg = two.Argument1; - if (arg is ExpressionVar) - { - var v = arg as ExpressionVar; - if (v.Var == target.Var && v.InstType == target.InstType && - ((v.ArrayIndices == null && target.ArrayIndices == null) || - v.ArrayIndices?.SequenceEqual(target.ArrayIndices) == true) && // even if null - (!(two.Argument2 is ExpressionConstant) || // Also check to make sure it's not a ++ or -- - (!((two.Argument2 as ExpressionConstant).IsPushE && ExpressionConstant.ConvertToInt((two.Argument2 as ExpressionConstant).Value) == 1)))) - { - if (!(context.GlobalContext.Data?.GeneralInfo?.BytecodeVersion > 14 && v.Opcode != UndertaleInstruction.Opcode.Push && instr.Destination.Target.InstanceType != UndertaleInstruction.InstanceType.Self)) - { - statements.Add(new OperationEqualsStatement(target, two.Opcode, two.Argument2)); - break; - } - } - } - } - } - } - } - else - Debug.Fail("Pop value is null."); - statements.Add(new AssignmentStatement(target, val)); - } - break; - - case UndertaleInstruction.Opcode.Push: - case UndertaleInstruction.Opcode.PushLoc: - case UndertaleInstruction.Opcode.PushGlb: - case UndertaleInstruction.Opcode.PushBltn: - case UndertaleInstruction.Opcode.PushI: - if (instr.Value is UndertaleInstruction.Reference) - { - ExpressionVar pushTarget = new ExpressionVar((instr.Value as UndertaleInstruction.Reference).Target, new ExpressionConstant(UndertaleInstruction.DataType.Int16, instr.TypeInst), (instr.Value as UndertaleInstruction.Reference).Type); - pushTarget.Opcode = instr.Kind; - switch(pushTarget.VarType) - { - case UndertaleInstruction.VariableType.Normal: - case UndertaleInstruction.VariableType.Instance: - break; - case UndertaleInstruction.VariableType.StackTop: - pushTarget.InstType = stack.Pop(); - break; - case UndertaleInstruction.VariableType.Array: - Tuple ind = ExpressionVar.Decompile2DArrayIndex(stack.Pop()); - pushTarget.ArrayIndices = new List() { ind.Item1 }; - if (ind.Item2 != null) - pushTarget.ArrayIndices.Add(ind.Item2); - pushTarget.InstType = stack.Pop(); - break; - case UndertaleInstruction.VariableType.ArrayPopAF: - case UndertaleInstruction.VariableType.ArrayPushAF: - pushTarget.ArrayIndices = new List() { stack.Pop() }; - pushTarget.InstType = stack.Pop(); - break; - default: - throw new NotImplementedException("Don't know how to decompile variable type " + pushTarget.VarType); - } - if (pushTarget.InstType is ExpressionConstant c && - c.Type == UndertaleInstruction.DataType.Int16 && (short)c.Value == -9) - pushTarget.InstType = stack.Pop(); - stack.Push(pushTarget); - } - else - { - bool isPushE = (instr.Kind == UndertaleInstruction.Opcode.Push && instr.Type1 == UndertaleInstruction.DataType.Int16); - Expression pushTarget = new ExpressionConstant(instr.Type1, instr.Value, isPushE); - if (isPushE && pushTarget.Type == UndertaleInstruction.DataType.Int16 && Convert.ToInt32((pushTarget as ExpressionConstant).Value) == 1) - { - // Check for expression ++ or -- - if (((i >= 1 && block.Instructions[i - 1].Kind == UndertaleInstruction.Opcode.Dup && block.Instructions[i - 1].Type1 == UndertaleInstruction.DataType.Variable) || - (i >= 2 && block.Instructions[i - 2].Kind == UndertaleInstruction.Opcode.Dup && block.Instructions[i - 2].Type1 == UndertaleInstruction.DataType.Variable && - block.Instructions[i - 1].Kind == UndertaleInstruction.Opcode.Pop && block.Instructions[i - 1].Type1 == UndertaleInstruction.DataType.Int16 && block.Instructions[i - 1].Type2 == UndertaleInstruction.DataType.Variable)) && - (i + 1 < block.Instructions.Count && (block.Instructions[i + 1].Kind == UndertaleInstruction.Opcode.Add || block.Instructions[i + 1].Kind == UndertaleInstruction.Opcode.Sub))) - { - // We've detected a post increment/decrement (i.e., x = y++) - // Remove duplicate from stack - stack.Pop(); - - // Do the magic - stack.Push(new ExpressionPost(block.Instructions[i + 1].Kind, stack.Pop())); - - while (i < block.Instructions.Count && (block.Instructions[i].Kind != UndertaleInstruction.Opcode.Pop || (block.Instructions[i].Type1 == UndertaleInstruction.DataType.Int16 && block.Instructions[i].Type2 == UndertaleInstruction.DataType.Variable))) - i++; - } - else if (i + 2 < block.Instructions.Count && (block.Instructions[i + 1].Kind == UndertaleInstruction.Opcode.Add || block.Instructions[i + 1].Kind == UndertaleInstruction.Opcode.Sub) && - block.Instructions[i + 2].Kind == UndertaleInstruction.Opcode.Dup && block.Instructions[i + 2].Type1 == UndertaleInstruction.DataType.Variable) - { - // We've detected a pre increment/decrement (i.e., x = ++y) - // Do the magic - stack.Push(new ExpressionPre(block.Instructions[i + 1].Kind, stack.Pop())); - - while (i < block.Instructions.Count && block.Instructions[i].Kind != UndertaleInstruction.Opcode.Pop) - i++; - var _inst = block.Instructions[i]; - if (_inst.Type1 == UndertaleInstruction.DataType.Int16 && _inst.Type2 == UndertaleInstruction.DataType.Variable) - { - Expression e = stack.Pop(); - stack.Pop(); - stack.Push(e); - i++; - } - } - else - { - stack.Push(pushTarget); - } - } - else - { - stack.Push(pushTarget); - } - } - break; - - case UndertaleInstruction.Opcode.Call: - { - List args = new List(); - for (int j = 0; j < instr.ArgumentsCount; j++) - args.Add(stack.Pop()); - - if (instr.Function.Target.Name.Content == "method" && args.Count == 2) - { - // Special case - method creation - // See if the body should be inlined - - Expression arg1 = args[0]; - while (arg1 is ExpressionCast cast) - arg1 = cast.Argument; - Expression arg2 = args[1]; - while (arg2 is ExpressionCast cast) - arg2 = cast.Argument; - - if (arg2 is ExpressionConstant argCode && argCode.Type == UndertaleInstruction.DataType.Int32 && - argCode.Value is UndertaleInstruction.Reference argCodeFunc) - { - UndertaleCode functionBody = context.GlobalContext.Data.Code.First(x => x.Name.Content == argCodeFunc.Target.Name.Content); - - FunctionDefinition.FunctionType type = FunctionDefinition.FunctionType.Function; - bool processChildEntry; - - if (arg1 is DirectFunctionCall call && call.Function.Name.Content == "@@NullObject@@") - { - type = FunctionDefinition.FunctionType.Constructor; - processChildEntry = true; - } - else - processChildEntry = context.AlreadyProcessed.Add(functionBody); - - if (context.TargetCode.ChildEntries.Contains(functionBody) && processChildEntry) - { - // This function is somewhere inside this UndertaleCode block - // inline the definition - Block functionBodyEntryBlock = blocks[functionBody.Offset / 4]; - stack.Push(new FunctionDefinition(argCodeFunc.Target, functionBody, functionBodyEntryBlock, type)); - workQueue.Push(new Tuple>(functionBodyEntryBlock, new List())); - break; - } - } - } - - UndertaleCode callTargetBody = context.GlobalContext.Data?.Code.FirstOrDefault(x => x.Name.Content == instr.Function.Target.Name.Content); - if (callTargetBody != null && callTargetBody.ParentEntry != null && !context.DisableAnonymousFunctionNameResolution) - { - // Special case: this is a direct reference to a method variable - // Figure out what its actual name is - - static string FindActualNameForAnonymousCodeObject(DecompileContext context, UndertaleCode anonymousCodeObject) - { - // Decompile the parent object, and find the anonymous function assignment - DecompileContext childContext = new DecompileContext(context.GlobalContext, anonymousCodeObject.ParentEntry); - childContext.DisableAnonymousFunctionNameResolution = true; // prevent recursion - we don't even need the names in the child block - try - { - Dictionary blocks2 = PrepareDecompileFlow(anonymousCodeObject.ParentEntry, new List() { 0 }); - DecompileFromBlock(childContext, blocks2, blocks2[0]); - // This hack handles decompilation of code entries getting shorter, but not longer or out of place. - // Probably is no longer needed since we now update Length mostly-correctly - Block lastBlock; - if (!blocks2.TryGetValue(anonymousCodeObject.Length / 4, out lastBlock)) - lastBlock = blocks2[blocks2.Keys.Max()]; - List statements = HLDecompile(childContext, blocks2, blocks2[0], lastBlock); - foreach (Statement stmt2 in statements) - { - if (stmt2 is AssignmentStatement assign && - assign.Value is FunctionDefinition funcDef && - funcDef.FunctionBodyCodeEntry == anonymousCodeObject) - { - if (funcDef.FunctionBodyEntryBlock.Address == anonymousCodeObject.Offset / 4) - return assign.Destination.Var.Name.Content; - else - return string.Empty; //throw new Exception("Non-matching offset: " + funcDef.FunctionBodyEntryBlock.Address.ToString() + " versus " + (anonymousCodeObject.Offset / 4).ToString() + " (got name " + assign.Destination.Var.Name.Content + ")"); - } - } - throw new Exception("Unable to find the var name for anonymous code object " + anonymousCodeObject.Name.Content); - } - catch (Exception e) - { - context.GlobalContext.DecompilerWarnings.Add("/*\nWARNING: Recursive script decompilation (for member variable name resolution) failed for " + anonymousCodeObject.Name.Content + "\n\n" + e.ToString() + "\n*/"); - return string.Empty; - } - } - - string funcName; - if (!context.GlobalContext.AnonymousFunctionNameCache.TryGetValue(instr.Function.Target, out funcName)) - { - funcName = FindActualNameForAnonymousCodeObject(context, callTargetBody); - context.GlobalContext.AnonymousFunctionNameCache.Add(instr.Function.Target, funcName); - } - if (funcName != string.Empty) - { - stack.Push(new DirectFunctionCall(funcName, instr.Function.Target, instr.Type1, args)); - break; - } - } - - stack.Push(new DirectFunctionCall(instr.Function.Target, instr.Type1, args)); - } - break; - - case UndertaleInstruction.Opcode.CallV: - { - Expression func = stack.Pop(); - Expression func_this = stack.Pop(); - List args = new List(); - for (int j = 0; j < instr.Extra; j++) - args.Add(stack.Pop()); - stack.Push(new IndirectFunctionCall(func_this, func, instr.Type1, args)); - } - break; - - case UndertaleInstruction.Opcode.Break: - // GMS 2.3 sub-opcodes - if (DecompileContext.GMS2_3 == true) - { - switch ((short)instr.Value) - { - case -2: // GMS2.3+, pushaf - { - // TODO, work out more specifics here, like ++ - Expression ind = stack.Pop(); - Expression target = stack.Pop(); - if (target is ExpressionVar targetVar) - { - if (targetVar.VarType != UndertaleInstruction.VariableType.ArrayPushAF && targetVar.VarType != UndertaleInstruction.VariableType.ArrayPopAF) // The popaf arrays support pushaf as well, judging by how they are used with dup - throw new InvalidOperationException("Tried to pushaf on var of type " + targetVar.VarType); - - ExpressionVar newVar = new ExpressionVar(targetVar.Var, targetVar.InstType, targetVar.VarType); - newVar.Opcode = instr.Kind; - newVar.ArrayIndices = new List(targetVar.ArrayIndices); - newVar.ArrayIndices.Add(ind); - stack.Push(newVar); - } - else - throw new InvalidOperationException("Tried to pushaf on something that is not a var"); - } - break; - case -3: // GMS2.3+, popaf - { - // TODO, work out more specifics here, like ++ - Expression ind = stack.Pop(); - Expression target = stack.Pop(); - if (target is ExpressionVar targetVar) - { - if (targetVar.VarType != UndertaleInstruction.VariableType.ArrayPopAF) - throw new InvalidOperationException("Tried to popaf on var of type " + targetVar.VarType); - - ExpressionVar newVar = new ExpressionVar(targetVar.Var, targetVar.InstType, targetVar.VarType); - newVar.Opcode = instr.Kind; - newVar.ArrayIndices = new List(targetVar.ArrayIndices); - newVar.ArrayIndices.Add(ind); - - Expression value = stack.Pop(); - statements.Add(new AssignmentStatement(newVar, value)); - } - else - throw new InvalidOperationException("Tried to popaf on something that is not a var"); - } - break; - case -4: // GMS2.3+, pushac - { - Expression ind = stack.Pop(); - Expression target = stack.Pop(); - if (target is ExpressionVar targetVar) - { - if (targetVar.VarType != UndertaleInstruction.VariableType.ArrayPushAF && targetVar.VarType != UndertaleInstruction.VariableType.ArrayPopAF) - throw new InvalidOperationException("Tried to pushac on var of type " + targetVar.VarType); - - ExpressionVar newVar = new ExpressionVar(targetVar.Var, targetVar.InstType, targetVar.VarType); - newVar.Opcode = instr.Kind; - newVar.ArrayIndices = new List(targetVar.ArrayIndices); - newVar.ArrayIndices.Add(ind); - stack.Push(newVar); - } - else - throw new InvalidOperationException("Tried to pushac on something that is not a var"); - } - break; - case -5: // GMS2.3+, setowner - // Stop 'setowner' values from leaking into the decompiled output as tempvars. - // Used in the VM to let copy-on-write functionality work, but unnecessary for decompilation - stack.Pop(); - /* - var statement = stack.Pop(); - object owner; - if (statement is ExpressionConstant) - owner = (statement as ExpressionConstant).Value?.ToString(); - else - owner = statement.ToString(context); - statements.Add(new CommentStatement("setowner: " + (owner ?? ""))); - */ - break; - case -10: // GMS2.3+, chknullish - - // TODO: Implement nullish operator in decompiled output. - // Appearance in assembly is: - - /* - * chknullish - * bf [block2] - * - * :[block1] - * popz.v - * - * - * :[block2] - * - */ - - // Note that this operator peeks from the stack, it does not pop directly. - break; - case -11: // GM 2023.8+, pushref - if (instr.Function != null) - { - stack.Push(new ExpressionConstant(UndertaleInstruction.DataType.Int32, instr.Function)); - break; - } - stack.Push(new ExpressionAssetRef(instr.IntArgument)); - break; - } - } - - // chkindex is used for checking bounds in 2D arrays - // I'm not sure of the specifics but I guess it causes a debug breakpoint if the top of the stack is >= 32000 - // anyway, that's not important when decompiling to high-level code so just ignore it - break; - } - } - - // Convert everything that remains on the stack to a temp var - List leftovers = new List(); - for (int i = stack.Count - 1; i >= 0; i--) - { - if (i < tempvars.Count) - { - Expression val = stack.Pop(); - if (!(val is ExpressionTempVar) || (val as ExpressionTempVar).Var != tempvars[i]) { - var assignment = new TempVarAssignmentStatement(tempvars[i], val); - statements.Add(assignment); - - if (val is ExpressionConstant) { - context.TempVarMap[tempvars[i].Var.Name] = assignment; - } - } - - leftovers.Add(tempvars[i]); - } - else - { - Expression val = stack.Pop(); - TempVar var = context.NewTempVar(); - var.Type = val.Type; - TempVarReference varref = new TempVarReference(var); - var assignment = new TempVarAssignmentStatement(varref, val); - statements.Add(assignment); - leftovers.Add(varref); - - if (val is ExpressionConstant) { - context.TempVarMap[var.Name] = assignment; - } - } - } - leftovers.Reverse(); - - block.Statements = statements; - // If we returned from this block, don't go to the "next" block, because that's totally wrong. - if (!returned) - { - if (block.nextBlockFalse != null) - workQueue.Push(new Tuple>(block.nextBlockFalse, leftovers)); - if (block.nextBlockTrue != null) - workQueue.Push(new Tuple>(block.nextBlockTrue, leftovers)); - } - else if (block.nextBlockFalse != null && block.nextBlockFalse.nextBlockFalse == null) - { - // Last block- make an exception for this one. - workQueue.Push(new Tuple>(block.nextBlockFalse, leftovers)); - } - } - - public static void DecompileFromBlock(DecompileContext context, Dictionary blocks, Block block) - { - Stack>> workQueue = new Stack>>(); - workQueue.Push(new Tuple>(block, new List())); - while (workQueue.Count > 0) - { - var item = workQueue.Pop(); - DecompileFromBlock(context, blocks, item.Item1, item.Item2, workQueue); - } - } - - public static Dictionary DecompileFlowGraph(UndertaleCode code, List entryPoints) - { - Dictionary blockByAddress = new Dictionary(); - foreach(uint entryPoint in entryPoints) - blockByAddress[entryPoint] = new Block(entryPoint); - Block entryBlock = new Block(null); - Block finalBlock = new Block(code.Length / 4); - blockByAddress[code.Length / 4] = finalBlock; - Block currentBlock = entryBlock; - - foreach (var instr in code.Instructions) - { - if (blockByAddress.ContainsKey(instr.Address)) - { - if (currentBlock != null) - { - currentBlock.conditionalExit = false; - currentBlock.nextBlockTrue = blockByAddress[instr.Address]; - currentBlock.nextBlockFalse = blockByAddress[instr.Address]; - blockByAddress[instr.Address].entryPoints.Add(currentBlock); - } - currentBlock = blockByAddress[instr.Address]; - } - - if (currentBlock == null) - { - blockByAddress[instr.Address] = currentBlock = new Block(instr.Address); - } - - currentBlock.Instructions.Add(instr); - - Func GetBlock = (uint addr) => - { - Block nextBlock; - if (!blockByAddress.TryGetValue(addr, out nextBlock)) - { - if (addr <= instr.Address) - { - // We have a jump into INSIDE one of previous blocks - // This is likely a loop or something - // We'll have to split that block into two - - // First, find the block we have to split - Block blockToSplit = null; - foreach (var block in blockByAddress) - { - if (block.Key < addr && (blockToSplit == null || block.Key > blockToSplit.Address)) - blockToSplit = block.Value; - } - - // Now, split the list of instructions into two - List instrBefore = new List(); - List instrAfter = new List(); - foreach (UndertaleInstruction inst in blockToSplit.Instructions) - { - if (inst.Address < addr) - instrBefore.Add(inst); - else - instrAfter.Add(inst); - } - - // Create the newly split block - Block newBlock = new Block(addr); - blockToSplit.Instructions = instrBefore; - newBlock.Instructions = instrAfter; - newBlock.conditionalExit = blockToSplit.conditionalExit; - newBlock.nextBlockTrue = blockToSplit.nextBlockTrue; - newBlock.nextBlockFalse = blockToSplit.nextBlockFalse; - blockToSplit.conditionalExit = false; - blockToSplit.nextBlockTrue = newBlock; - blockToSplit.nextBlockFalse = newBlock; - blockByAddress[addr] = newBlock; - return newBlock; - } - else - { - blockByAddress.Add(addr, nextBlock = new Block(addr)); - } - } - return nextBlock; - }; - - if (instr.Kind == UndertaleInstruction.Opcode.B) - { - uint addr = (uint)(instr.Address + instr.JumpOffset); - Block nextBlock = GetBlock(addr); - currentBlock.conditionalExit = false; - currentBlock.nextBlockTrue = nextBlock; - currentBlock.nextBlockFalse = nextBlock; - currentBlock = null; - } - else if (instr.Kind == UndertaleInstruction.Opcode.Bt || instr.Kind == UndertaleInstruction.Opcode.Bf) - { - Block nextBlockIfMet = GetBlock((uint)(instr.Address + instr.JumpOffset)); - Block nextBlockIfNotMet = GetBlock(instr.Address + 1); - currentBlock.conditionalExit = true; - currentBlock.nextBlockTrue = instr.Kind == UndertaleInstruction.Opcode.Bt ? nextBlockIfMet : nextBlockIfNotMet; - currentBlock.nextBlockFalse = instr.Kind == UndertaleInstruction.Opcode.Bt ? nextBlockIfNotMet : nextBlockIfMet; - currentBlock = null; - } - else if (instr.Kind == UndertaleInstruction.Opcode.PushEnv || instr.Kind == UndertaleInstruction.Opcode.PopEnv) - { - Block nextBlock = GetBlock(instr.Address + 1); - currentBlock.conditionalExit = false; - currentBlock.nextBlockTrue = nextBlock; - currentBlock.nextBlockFalse = nextBlock; - currentBlock = null; - } - else if (instr.Kind == UndertaleInstruction.Opcode.Ret || instr.Kind == UndertaleInstruction.Opcode.Exit) - { - Block nextBlock = GetBlock(instr.Address + 1); - currentBlock.conditionalExit = false; - currentBlock.nextBlockTrue = nextBlock; - currentBlock.nextBlockFalse = nextBlock; - currentBlock = null; - } - } - if (currentBlock != null) - { - currentBlock.nextBlockTrue = finalBlock; - currentBlock.nextBlockFalse = finalBlock; - } - foreach (var block in blockByAddress.Values) - { - if (block.nextBlockTrue != null && !block.nextBlockTrue.entryPoints.Contains(block)) - block.nextBlockTrue.entryPoints.Add(block); - if (block.nextBlockFalse != null && !block.nextBlockFalse.entryPoints.Contains(block)) - block.nextBlockFalse.entryPoints.Add(block); - } - return blockByAddress; - } - - // Based on http://www.backerstreet.com/decompiler/loop_analysis.php - public static Dictionary> ComputeReverseDominators(Dictionary blocks, Block entryBlock) - { - Block[] blockList = blocks.Values.ToArray(); - CustomBitArray[] dominators = new CustomBitArray[blockList.Length]; - - int entryBlockId = -1; - { - int i; - for (i = 0; i < blockList.Length; i++) - { - Block b = blockList[i]; - b._CachedIndex = i; - - CustomBitArray ba; - - if (blockList[i] == entryBlock) - { - entryBlockId = i; - ba = new CustomBitArray(blockList.Length); - ba.SetTrue(i); - dominators[i] = ba; - break; - } - - ba = new CustomBitArray(blockList.Length); - ba.SetAllTrue(); - dominators[i] = ba; - } - for (i++; i < blockList.Length; i++) - { - blockList[i]._CachedIndex = i; - CustomBitArray ba = new CustomBitArray(blockList.Length); - ba.SetAllTrue(); - dominators[i] = ba; - } - } - - bool changed; - Block[] reverseUse1 = { null }; - Block[] reverseUse2 = { null, null }; - do - { - changed = false; - for (int i = 0; i < blockList.Length; i++) - { - if (i == entryBlockId) - continue; - - Block b = blockList[i]; - - Block[] e; - if (b.conditionalExit) - { - reverseUse2[0] = b.nextBlockTrue; - reverseUse2[1] = b.nextBlockFalse; - e = reverseUse2; - } - else - { - reverseUse1[0] = b.nextBlockTrue; - e = reverseUse1; - } - - foreach (Block pred in e) - changed |= pred != null && dominators[i].And(dominators[pred._CachedIndex], i); - } - } while (changed); - - Dictionary> result = new Dictionary>(blockList.Length); - for (var i = 0; i < blockList.Length; i++) - { - CustomBitArray curr = dominators[i]; - result[blockList[i]] = new List(4); - for (var j = 0; j < blockList.Length; j++) - { - if (curr.Get(j)) - result[blockList[i]].Add(blockList[j]); - } - } - - return result; - } - - private static List NaturalLoopForEdge(Block header, Block tail) - { - Stack workList = new Stack(16); - List loopBlocks = new List(8); - - loopBlocks.Add(header); - if (header != tail) - { - loopBlocks.Add(tail); - workList.Push(tail); - } - - while (workList.Count > 0) - { - Block block = workList.Pop(); - foreach (Block pred in block.entryPoints) - { - if (!loopBlocks.Contains(pred)) - { - loopBlocks.Add(pred); - workList.Push(pred); - } - } - } - - return loopBlocks; - } - - private static Dictionary> ComputeNaturalLoops(Dictionary blocks, Block entryBlock) - { - Dictionary> loopSet = new Dictionary>(); - - foreach (var block in blocks.Values) - { - // Every successor that dominates its predecessor - // must be the header of a loop. - // That is, block -> succ is a back edge. - - // Future update: We're going to take a much more efficient but assuming - // route that the compiler outputs in a specific order, which it always should - - if (block.nextBlockTrue != null && !loopSet.ContainsKey(block.nextBlockTrue)) - { - if (block.nextBlockTrue.Address <= block.Address) - loopSet.Add(block.nextBlockTrue, NaturalLoopForEdge(block.nextBlockTrue, block)); - } - if (block.nextBlockFalse != null && block.nextBlockTrue != block.nextBlockFalse && !loopSet.ContainsKey(block.nextBlockFalse)) - { - if (block.nextBlockFalse.Address <= block.Address) - loopSet.Add(block.nextBlockFalse, NaturalLoopForEdge(block.nextBlockFalse, block)); - } - } - - return loopSet; - } - - public static Block FindFirstMeetPoint(Block ifStart, Dictionary> reverseDominators) - { - DebugUtil.Assert(ifStart.conditionalExit, "If start does not have a conditional exit"); - var commonDominators = reverseDominators[ifStart.nextBlockTrue].Intersect(reverseDominators[ifStart.nextBlockFalse]); - - // Find the closest one of them - List visited = new List(); - visited.Add(ifStart); - Queue q = new Queue(); - q.Enqueue(ifStart.nextBlockTrue); - q.Enqueue(ifStart.nextBlockFalse); - while (q.Count > 0) - { - Block b = q.Dequeue(); - if (commonDominators.Contains(b)) - return b; - visited.Add(b); - if (b.nextBlockTrue != null && !visited.Contains(b.nextBlockTrue) && !q.Contains(b.nextBlockTrue)) - q.Enqueue(b.nextBlockTrue); - if (b.nextBlockFalse != null && !visited.Contains(b.nextBlockFalse) && !q.Contains(b.nextBlockFalse)) - q.Enqueue(b.nextBlockFalse); - } - return null; - } - - // Process the base decompilation: clean up, make it readable, identify structures - private static BlockHLStatement HLDecompileBlocks(DecompileContext context, ref Block block, Dictionary blocks, Dictionary> loops, Dictionary> reverseDominators, List alreadyVisited, Block currentLoop = null, Block stopAt = null, Block breakTo = null, bool decompileTheLoop = false, uint depth = 0) - { - if (depth > 200) - throw new Exception("Excessive recursion while processing blocks."); - - BlockHLStatement output = new BlockHLStatement(); - - Block lastBlock = null; - bool popenvDrop = false; - while (block != stopAt && block != null) - { - lastBlock = block; - - if (loops.ContainsKey(block) && !decompileTheLoop) - { - if (block == currentLoop) - { - output.Statements.Add(new ContinueHLStatement()); - break; - } - else - { - LoopHLStatement statement = new LoopHLStatement() { Block = HLDecompileBlocks(context, ref block, blocks, loops, reverseDominators, alreadyVisited, block, null, block.nextBlockFalse, true, depth + 1) }; - output.Statements.Add(statement); - continue; - } - } - else if (currentLoop != null && !loops[currentLoop].Contains(block) && decompileTheLoop) - { - break; - } - - if (block.Statements == null) - { - // This is possible with unused blocks (due to return) - block = stopAt; - continue; - } - - if (!alreadyVisited.Contains(block)) - alreadyVisited.Add(block); - - - for (int i = 0; i < block.Statements.Count; i++) - { - Statement stmt = block.Statements[i]; - if (!(stmt is PushEnvStatement) && !(stmt is PopEnvStatement)) - output.Statements.Add(stmt); - } - - if (output.Statements.Count >= 1 && output.Statements[output.Statements.Count - 1] is TempVarAssignmentStatement && - block.Instructions.Count >= 1 && block.Instructions[block.Instructions.Count - 1].Kind == UndertaleInstruction.Opcode.Bt && - block.conditionalExit && block.ConditionStatement is ExpressionCompare && - (block.ConditionStatement as ExpressionCompare).Opcode == UndertaleInstruction.ComparisonType.EQ) - { - // Switch statement - Expression switchExpression = (output.Statements[output.Statements.Count - 1] as TempVarAssignmentStatement).Value; - TempVar switchTempVar = (output.Statements[output.Statements.Count - 1] as TempVarAssignmentStatement).Var.Var; - output.Statements.RemoveAt(output.Statements.Count - 1); - - Block meetPoint = FindFirstMeetPoint(block, reverseDominators); - if (meetPoint == null) - throw new Exception("End of switch not found"); - - Dictionary> caseEntries = new Dictionary>(); - while (block != meetPoint) - { - Expression caseExpr = null; - if (block.ConditionStatement != null) - { - ExpressionCompare cmp = (ExpressionCompare)block.ConditionStatement; - if (cmp.Argument1 != switchExpression && - (!(cmp.Argument1 is ExpressionTempVar) || !(switchExpression is ExpressionTempVar) || (cmp.Argument1 as ExpressionTempVar).Var.Var != (switchExpression as ExpressionTempVar).Var.Var) && - (!(cmp.Argument1 is ExpressionTempVar) || (cmp.Argument1 as ExpressionTempVar).Var.Var != switchTempVar)) - throw new Exception("Malformed switch statement: bad condition var (" + cmp.Argument1.ToString(context) + ")"); - if (cmp.Opcode != UndertaleInstruction.ComparisonType.EQ) - throw new Exception("Malformed switch statement: bad contition type (" + cmp.Opcode.ToString().ToUpper(CultureInfo.InvariantCulture) + ")"); - caseExpr = cmp.Argument2; - } - - if (!caseEntries.ContainsKey(block.nextBlockTrue)) - caseEntries.Add(block.nextBlockTrue, new List()); - caseEntries[block.nextBlockTrue].Add(caseExpr); - - if (!block.conditionalExit) - { - // Seems to be "default", and we simply want to go to the exit now. - // This is a little hack, but it should fully work. The compiler always - // emits "default" at the end it looks like. Also this navigates down the - // "false" branching paths over others- this should lead to the correct - // block. Without this, branching at the start of "default" will break - // this switch detection. - while (block.nextBlockTrue != meetPoint) - { - if (block.nextBlockFalse != null) - block = block.nextBlockFalse; - else if (block.nextBlockTrue != null) - block = block.nextBlockTrue; - else - break; - } - - break; - } - - block = block.nextBlockFalse; - } - - List cases = new List(); - HLSwitchCaseStatement defaultCase = null; - - for (var i = 0; i < caseEntries.Count; i++) - { - var x = caseEntries.ElementAt(i); - Block temp = x.Key; - - Block switchEnd = DetermineSwitchEnd(temp, caseEntries.Count > (i + 1) ? caseEntries.ElementAt(i + 1).Key : null, meetPoint); - - HLSwitchCaseStatement result = new HLSwitchCaseStatement(x.Value, HLDecompileBlocks(context, ref temp, blocks, loops, reverseDominators, alreadyVisited, currentLoop, switchEnd, switchEnd, false, depth + 1)); - cases.Add(result); - if (result.CaseExpressions.Contains(null)) - defaultCase = result; - - DebugUtil.Assert(temp == switchEnd, "temp != switchEnd"); - } - - - if (defaultCase != null && defaultCase.Block.Statements.Count == 0) - { - // Handles default case. - UndertaleInstruction breakInstruction = context.TargetCode.GetInstructionFromAddress((uint)block.Address + 1); - - if (breakInstruction.Kind == UndertaleInstruction.Opcode.B) - { - // This is the default-case meet-point if it is b. - uint instructionId = ((uint)block.Address + 1 + (uint)breakInstruction.JumpOffset); - if (!blocks.ContainsKey(instructionId)) - Debug.Fail("Switch statement default: Bad target [" + block.Address + ", " + breakInstruction.JumpOffset + "]: " + breakInstruction.ToString()); - Block switchEnd = blocks[instructionId]; - - Block start = meetPoint; - defaultCase.Block = HLDecompileBlocks(context, ref start, blocks, loops, reverseDominators, alreadyVisited, currentLoop, switchEnd, switchEnd, false, depth + 1); - block = start; // Start changed in HLDecompileBlocks. - } - else - { - // If there is no default-case, remove the default break, since that creates different bytecode. - cases.Remove(defaultCase); - } - } - else - { - block = block.nextBlockTrue; - } - - output.Statements.Add(new HLSwitchStatement(switchExpression, cases)); - continue; - } - - if (block.Statements.Count > 0 && block.Statements.Last() is PushEnvStatement) - { - DebugUtil.Assert(!block.conditionalExit, "Block ending with pushenv does not have a conditional exit"); - PushEnvStatement stmt = (block.Statements.Last() as PushEnvStatement); - block = block.nextBlockTrue; - output.Statements.Add(new WithHLStatement() - { - NewEnv = stmt.NewEnv, - Block = HLDecompileBlocks(context, ref block, blocks, loops, reverseDominators, alreadyVisited, null, stopAt, null, false, depth + 1) - }); - if (block == null) - break; - } - else if (block.Statements.Count > 0 && block.Statements.Last() is PopEnvStatement) - { - DebugUtil.Assert(!block.conditionalExit, "Block ending in popenv does not have a conditional exit"); - break; - } - - if (popenvDrop) - break; - - if (block.conditionalExit && block.ConditionStatement != null) // If statement - { - Block meetPoint = FindFirstMeetPoint(block, reverseDominators); - if (meetPoint == null) - throw new Exception("End of if not found"); - - IfHLStatement cond = new IfHLStatement(); - cond.condition = block.ConditionStatement; - - Block blTrue = block.nextBlockTrue, blFalse = block.nextBlockFalse; - cond.trueBlock = HLDecompileBlocks(context, ref blTrue, blocks, loops, reverseDominators, alreadyVisited, currentLoop, meetPoint, breakTo, false, depth + 1); - cond.falseBlock = HLDecompileBlocks(context, ref blFalse, blocks, loops, reverseDominators, alreadyVisited, currentLoop, meetPoint, breakTo, false, depth + 1); - output.Statements.Add(cond); // Add the if statement. - block = meetPoint; - } - else - { - // Don't continue if there's a return/exit, except for last block - if (block.Instructions.Count == 0) - block = block.nextBlockTrue; - else - { - var last = block.Instructions.Last(); - var lastKind = last.Kind; - if (lastKind == UndertaleInstruction.Opcode.PopEnv && last.JumpOffsetPopenvExitMagic) - { - block = block.nextBlockTrue; - popenvDrop = true; - } else - block = ((lastKind != UndertaleInstruction.Opcode.Ret && lastKind != UndertaleInstruction.Opcode.Exit) - || (block.nextBlockTrue != null && block.nextBlockTrue.nextBlockFalse == null)) ? block.nextBlockTrue : stopAt; - } - } - } - - if (breakTo != null && lastBlock?.nextBlockFalse == breakTo && lastBlock?.Instructions.Last()?.Kind == UndertaleInstruction.Opcode.B) - output.Statements.Add(new BreakHLStatement()); - - return output; - } - - private static Statement UnCast(Statement statement) - { - if (statement is ExpressionCast cast) - return UnCast(cast.Argument); - - return statement; - } - - private static bool TestNumber(Statement statement, int number) - { - statement = UnCast(statement); - return (statement is ExpressionConstant constant) && constant.EqualsNumber(number); - } - - // A bool-like can be either 1, 0, true or false. - private static bool TestBoolLike(Statement statement, bool boolean) - { - statement = UnCast(statement); - return (statement is ExpressionConstant constant) && constant.EqualsBoolLike(boolean); - } - - public static List HLDecompile(DecompileContext context, Dictionary blocks, Block entryPoint, Block rootExitPoint) - { - Dictionary> loops = ComputeNaturalLoops(blocks, entryPoint); - var reverseDominators = ComputeReverseDominators(blocks, rootExitPoint); - Block bl = entryPoint; - return (HLDecompileBlocks(context, ref bl, blocks, loops, reverseDominators, new List()).CleanBlockStatement(context)).Statements; - } - - public static Dictionary PrepareDecompileFlow(UndertaleCode code, List entryPoints) - { - if (code.ParentEntry != null) - throw new InvalidOperationException("This code block represents a function nested inside " + code.ParentEntry.Name + " - decompile that instead"); - code.UpdateAddresses(); - - Dictionary blocks = DecompileFlowGraph(code, entryPoints); - - return blocks; - } - - public static Dictionary PrepareDecompileFlow(UndertaleCode code) - { - List entryPoints = new List(); - entryPoints.Add(0); - foreach (UndertaleCode duplicate in code.ChildEntries) - entryPoints.Add(duplicate.Offset / 4); - - return PrepareDecompileFlow(code, entryPoints); - } - - private static string MakeLocalVars(DecompileContext context, string decompiledCode) - { - // Mark local variables as local. - UndertaleCode code = context.TargetCode; - StringBuilder tempBuilder = new StringBuilder(); - UndertaleCodeLocals locals = context.GlobalContext.Data?.CodeLocals.For(code); - - List possibleVars = new List(); - if (locals != null) - { - foreach (var local in locals.Locals) - possibleVars.Add(local.Name.Content); - } - else - { - // Time to search through this thing manually. - for (int i = 0; i < code.Instructions.Count; i++) - { - var inst = code.Instructions[i]; - if (inst.Kind == UndertaleInstruction.Opcode.PushLoc) - { - string name = (inst.Value as UndertaleInstruction.Reference)?.Target?.Name?.Content; - if (name != null && !possibleVars.Contains(name)) - possibleVars.Add(name); - } - else if (inst.Kind == UndertaleInstruction.Opcode.Pop && inst.TypeInst == UndertaleInstruction.InstanceType.Local) - { - string name = inst.Destination.Target?.Name?.Content; - if (name != null && !possibleVars.Contains(name)) - possibleVars.Add(name); - } - } - } - - foreach (var possibleName in possibleVars) - { - if (possibleName == "arguments" || possibleName == "$$$$temp$$$$" || context.LocalVarDefines.Contains(possibleName)) - continue; - - if (tempBuilder.Length > 0) - tempBuilder.Append(", "); - - tempBuilder.Append(possibleName); - } - - // Add tempvars to locals - string oldStr = tempBuilder.ToString(); - for (int i = 0; i < context.TempVarId; i++) - { - string tempVarName = TempVar.MakeTemporaryVarName(i + 1); - if (decompiledCode.Contains(tempVarName) && !oldStr.Contains(tempVarName)) - { - if (tempBuilder.Length > 0) - tempBuilder.Append(", "); - tempBuilder.Append(tempVarName); - } - } - - string result = ""; - if (tempBuilder.Length > 0) - result = "var " + tempBuilder.ToString() + ";\n"; - return result; - } - - public static string Decompile(UndertaleCode code, GlobalDecompileContext globalContext, Action msgDelegate = null) - { - globalContext.DecompilerWarnings.Clear(); - DecompileContext context = new DecompileContext(globalContext, code); - - if (msgDelegate is not null) - msgDelegate("Building the cache of all sub-functions..."); - BuildSubFunctionCache(globalContext.Data); - if (msgDelegate is not null) - msgDelegate("Decompiling, please wait... This can take a while on complex scripts."); - - try - { - if (globalContext.Data != null && globalContext.Data.ToolInfo.ProfileMode) - { - string GMLPath = Path.Combine(globalContext.Data.ToolInfo.AppDataProfiles, - globalContext.Data.ToolInfo.CurrentMD5, "Temp", code.Name.Content + ".gml"); - if (File.Exists(GMLPath)) - return File.ReadAllText(GMLPath); - } - } - catch - { - // Just ignore the exception and decompile normally - } - - Dictionary blocks = PrepareDecompileFlow(code); - DecompileFromBlock(context, blocks, blocks[0]); - DoTypePropagation(context, blocks); - context.Statements = new Dictionary>(); - context.Statements.Add(0, HLDecompile(context, blocks, blocks[0], blocks[code.Length / 4])); - foreach (UndertaleCode duplicate in code.ChildEntries) - context.Statements.Add(duplicate.Offset / 4, HLDecompile(context, blocks, blocks[duplicate.Offset / 4], blocks[code.Length / 4])); - - // Write code. - context.IndentationLevel = 0; - StringBuilder sb = new StringBuilder(); - foreach (var warn in globalContext.DecompilerWarnings) - sb.Append(warn + "\n"); - foreach (var stmt in context.Statements[0]) - { - // Ignore initial struct definitions, they clutter - // decompiled output and generally make code more - // confusing to read. - if (stmt is AssignmentStatement assign && assign.IsStructDefinition) - continue; - - sb.Append(stmt.ToString(context) + "\n"); - } - - globalContext.DecompilerWarnings.Clear(); - context.Statements = null; - - string decompiledCode = sb.ToString(); - return MakeLocalVars(context, decompiledCode) + decompiledCode; - } - - public static void BuildSubFunctionCache(UndertaleData data) - { - // Find all functions defined in GlobalScripts - // Use the cache so this only gets calculated once - if (data == null || !data.IsVersionAtLeast(2, 3) || data.KnownSubFunctions != null) - return; - - // There's no "ConcurrentHashSet<>"; values aren't used. - ConcurrentDictionary processingCodeList = new(); - byte elapsedSec = 1; - Task mainTask = Task.Run(() => - { - HashSet codeNames = new(data.Code.Select(c => c.Name?.Content)); - foreach (var func in data.Functions) - { - if (codeNames.Contains(func.Name.Content)) - func.Autogenerated = true; - } - data.KnownSubFunctions = new Dictionary(); - GlobalDecompileContext globalDecompileContext = new GlobalDecompileContext(data, false); - - // TODO: Is this necessary? - // Doesn't the latter `Parallel.ForEach()` already cover this? - foreach (var func in data.Functions) - { - if (func.Name.Content.StartsWith("gml_Script_")) - { - var funcName = func.Name.Content[("gml_Script_".Length)..]; - data.KnownSubFunctions.TryAdd(funcName, func); - } - } - - Parallel.ForEach(data.GlobalInitScripts, globalScript => - { - UndertaleCode scriptCode = globalScript.Code; - processingCodeList[scriptCode.Name.Content] = null; - try - { - DecompileContext childContext = new DecompileContext(globalDecompileContext, scriptCode, false); - childContext.DisableAnonymousFunctionNameResolution = true; - Dictionary blocks2 = PrepareDecompileFlow(scriptCode, new List() { 0 }); - DecompileFromBlock(childContext, blocks2, blocks2[0]); - List statements = HLDecompile(childContext, blocks2, blocks2[0], blocks2[scriptCode.Length / 4]); - foreach (Statement stmt2 in statements) - { - if (stmt2 is AssignmentStatement assign && - assign.Value is FunctionDefinition funcDef) - { - lock (data.KnownSubFunctions) - { - data.KnownSubFunctions.TryAdd(assign.Destination.Var.Name.Content, funcDef.Function); - } - } - } - } - catch (Exception e) - { - Debug.WriteLine(e.ToString()); - } - processingCodeList.Remove(scriptCode.Name.Content, out _); - }); - elapsedSec = 3 * 60; - }); - - Task timeoutTask = Task.Run(async () => - { - while (true) - { - await Task.Delay(1000); - - if (++elapsedSec > 3 * 60) - return; - } - }); - - // If the timeout task ended earlier than the main task - if (Task.WaitAny(mainTask, timeoutTask) == 1) - { - throw new TimeoutException("The building cache process hung.\n" + - "The function code entries that didn't manage to decompile:\n" + - String.Join('\n', processingCodeList.Keys) + "\n\n" + - "You should save the game data (if it's necessary) and re-open the app.\n"); - } - } - - private static void DoTypePropagation(DecompileContext context, Dictionary blocks) - { - foreach (var b in blocks.Values.Cast().Reverse()) - { - if (b.Statements != null) // With returns not allowing all blocks coverage, make sure it's even been processed - foreach (var s in b.Statements.Cast().Reverse()) - s.DoTypePropagation(context, AssetIDType.Other); - - b.ConditionStatement?.DoTypePropagation(context, AssetIDType.Other); - } - } - - private static Block DetermineSwitchEnd(Block start, Block end, Block meetPoint) - { - if (end == null) - return meetPoint; - - Queue blocks = new Queue(); - // Preventing the same block and its children from being queued repeatedly - // becomes increasingly important on large switches. The HashSet should give - // good performance while preventing this type of duplication. - HashSet usedBlocks = new HashSet(); - - blocks.Enqueue(start); - usedBlocks.Add(start); - while (blocks.Count > 0) - { - Block test = blocks.Dequeue(); - - if (test == end) - return end; - if (test == meetPoint) - return meetPoint; - if (!usedBlocks.Contains(test.nextBlockTrue)) - { - blocks.Enqueue(test.nextBlockTrue); - usedBlocks.Add(test.nextBlockTrue); - } - if (!usedBlocks.Contains(test.nextBlockFalse)) - { - blocks.Enqueue(test.nextBlockFalse); - usedBlocks.Add(test.nextBlockFalse); - } - - } - - return meetPoint; - } - - public static string ExportFlowGraph(Dictionary blocks) - { - StringBuilder sb = new StringBuilder(); - sb.AppendLine("digraph G {"); - foreach (var pair in blocks) - { - var block = pair.Value; - sb.Append(" block_" + pair.Key + " [label=\""); - sb.Append("[" + block.ToString() + ", Exit: " + block.conditionalExit + (block.nextBlockTrue != null ? ", T: " + block.nextBlockTrue.Address : "") + (block.nextBlockFalse != null ? ", F: " + block.nextBlockFalse.Address : "") + "]\n"); - foreach (var instr in block.Instructions) - sb.Append(instr.ToString().Replace("\"", "\\\"", StringComparison.InvariantCulture) + "\\n"); - sb.Append('"'); - sb.Append(pair.Key == 0 ? ", color=\"blue\"" : ""); - sb.AppendLine(", shape=\"box\"];"); - } - sb.AppendLine(""); - foreach (var block in blocks) - { - if (block.Value.conditionalExit) - { - if (block.Value.nextBlockTrue != null) - sb.AppendLine(" block_" + block.Key + " -> block_" + block.Value.nextBlockTrue.Address + " [color=\"green\"];"); - if (block.Value.nextBlockFalse != null) - sb.AppendLine(" block_" + block.Key + " -> block_" + block.Value.nextBlockFalse.Address + " [color=\"red\"];"); - } - else - { - if (block.Value.nextBlockTrue != null) - sb.AppendLine(" block_" + block.Key + " -> block_" + block.Value.nextBlockTrue.Address + ";"); - } - } - sb.AppendLine("}"); - return sb.ToString(); - } - } -} diff --git a/UndertaleModLib/Decompiler/DoubleToString.cs b/UndertaleModLib/Decompiler/DoubleToString.cs deleted file mode 100644 index 0c85a6d34..000000000 --- a/UndertaleModLib/Decompiler/DoubleToString.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Text; - -namespace UndertaleModLib.Decompiler -{ - // Inspired from https://stackoverflow.com/a/49663470, but reimplemented to be more readable. - public static class DoubleToString - { - // This small lookup dictionary is for readability sake. So that if someone opens up a code entry, - // they don't see "var foo = 0.66666666666" but instead "var foo = 2/3". The values have been mostly taken from Undertale/Deltarune. - public static Dictionary PredefinedValues { get; private set; } = new Dictionary() - { - { 3.141592653589793, "pi" }, - { 6.283185307179586, "(2 * pi)" }, - { 12.566370614359172, "(4 * pi)" }, - { 31.41592653589793, "(10 * pi)" }, - { 0.3333333333333333, "(1/3)" }, - { 0.6666666666666666, "(2/3)" }, - { 1.3333333333333333, "(4/3)" }, - { 23.333333333333332, "(70/3)" }, - { 73.33333333333333, "(220/3)" }, - { 206.66666666666666, "(620/3)" }, - { 0.06666666666666667, "(1/15)" }, - { 0.03333333333333333, "(1/30)" }, - { 0.008333333333333333, "(1/120)" }, - { 51.42857142857143, "(360/7)" }, - { 1.0909090909090908, "(12/11)" }, - { 0.9523809523809523, "(20/21)" } - }; - - public static string StringOf(double number) - { - // This function ensures that a double that is converted to a string is later parsed back into the same numeric value. - if (PredefinedValues.TryGetValue(number, out string res)) - return res; - - ReadOnlySpan numberAsSpan = number.ToString("G", CultureInfo.InvariantCulture).AsSpan(); // This can sometimes return a scientific notation - int indexOfE = numberAsSpan.IndexOf("E".AsSpan()); - if (indexOfE < 0) - return numberAsSpan.ToString(); - - // This converts the scientific notation to standard form/fixed point notation - // As of time of writing this comment, C# does not offer a way to print fixed point notation while - // preserving full precision, but only having the smallest amount of numbers to represent the digit. - // You may ask "But why not use F or F17?". And the answer is, that for everything but R and G, the precision is hard-capped to 15 (according to MSDN: Double.ToString()). - // Thus we use G, and then manually convert this to fixed point notation. - - // For anyone unaware of the general algorithm: you get the exponent 'n', then move the decimal point n times to the right if it's positive / left if it's negative. - ReadOnlySpan exponentAsSpan = numberAsSpan.Slice(indexOfE + 1); - int exponent = Int32.Parse(exponentAsSpan); - - StringBuilder builder = new(); - int indexOfFirstDigitAfterDecimalPoint = number < 0 ? 3 : 2; - // Get digits before exponent - - // i.e. "-1.2E2"/"1.2E2". Our "E" has to be at least 3/2 places in. "-1.E2"/"1.E2" would not have any decimals at all. - // Also a safety measure in case we get a string like "1E2". - int numDecimals = indexOfE - indexOfFirstDigitAfterDecimalPoint; - if (numDecimals < 0) - numDecimals = 0; - - // If the number is not negative, that means that the first character is a digit, that we want to copy. - if (number >= 0) - { - builder.Append(numberAsSpan[0]); - } - // If the number is negative and the exponent is negative, that means that we will have to prepend 0's, - // which means we can't copy the '-' (first) character in that case. - else - { - if (exponent >= 0) - builder.Append(numberAsSpan[0]); - builder.Append(numberAsSpan[1]); - } - - // If we have decimal digits, append them too. - if (numDecimals > 0) - { - builder.Append(numberAsSpan.Slice(indexOfFirstDigitAfterDecimalPoint, numDecimals)); - } - - - // Move our "decimal point". - if (exponent >= 0) - { - exponent -= numDecimals; - builder.Append('0', exponent); - } - else - { - exponent = (-exponent - 1); // -1, because we're manually inserting a "0." - builder.Insert(0, "0", exponent); - builder.Insert(0, "0."); - if (number < 0) - builder.Insert(0, '-'); - } - - return builder.ToString(); - } - } -} diff --git a/UndertaleModLib/Decompiler/GameSpecificResolver.cs b/UndertaleModLib/Decompiler/GameSpecificResolver.cs new file mode 100644 index 000000000..0b9590c24 --- /dev/null +++ b/UndertaleModLib/Decompiler/GameSpecificResolver.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text.Json; +using System.Text.RegularExpressions; + +namespace UndertaleModLib.Decompiler; + +/// +/// Class that helps load game-specific data, which tailor some features (such as the decompiler) to specific games. +/// +public class GameSpecificResolver +{ + /// + /// Base app directory used for locating the "GameSpecificData" directory, which should be immediately inside. + /// + public static string BaseDirectory { get; set; } = AppContext.BaseDirectory; + + private enum ConditionResult + { + Ignore, + Accept, + Reject + } + + private static readonly Dictionary> _conditionEvaluators = new() + { + ["Always"] = (UndertaleData data, string value) => + { + return ConditionResult.Accept; + }, + + ["DisplayName.Regex"] = (UndertaleData data, string value) => + { + string displayName = data?.GeneralInfo?.DisplayName?.Content; + if (displayName is null) + { + return ConditionResult.Ignore; + } + + Match m = Regex.Match(displayName, value, RegexOptions.CultureInvariant); + if (m.Success) + { + return ConditionResult.Accept; + } + + return ConditionResult.Ignore; + }, + }; + private static readonly List _definitions = new(); + private static bool _loadedDefinitions = false; + + public class GameSpecificCondition + { + /// + /// Represents the kind of condition to be evaluated. + /// + public string ConditionKind { get; set; } + + /// + /// Value to be used during evaluation of condition, if applicable. + /// + public string Value { get; set; } + } + + public class GameSpecificDefinition + { + /// + /// Integer representing the order this definition should be evaluated/loaded in. + /// The lower this number is, the earlier this definition will be evaluated and loaded. + /// + /// + /// Built-in definitions currently use values 0 (for GameMaker builtins) and 1 (for games). + /// + public int LoadOrder { get; set; } = 100; + + /// + /// List of conditions that will be evaluated sequentially, to match this game-specific definition. + /// + public List Conditions { get; set; } + + /// + /// Filename to be loaded as an Underanalyzer game-specific config, when this definition successfully matches. + /// If empty, null, or the file is otherwise nonexistent, this will be ignored. + /// + public string UnderanalyzerFilename { get; set; } + + /// + /// Evaluates this game-specific definition against the given game data, returning whether this definition should be loaded. + /// + /// True if this definition should be loaded; false otherwise. + public bool Evaluate(UndertaleData data) + { + foreach (var condition in Conditions) + { + switch (_conditionEvaluators[condition.ConditionKind](data, condition.Value)) + { + case ConditionResult.Accept: + return true; + case ConditionResult.Reject: + return false; + case ConditionResult.Ignore: + // Pass-through to next condition + break; + } + } + + // Default to reject + return false; + } + + /// + /// Loads this game-specific definition. + /// + public void Load(UndertaleData data) + { + if (!string.IsNullOrEmpty(UnderanalyzerFilename)) + { + string underanalyzerPath = Path.Combine(BaseDirectory, "GameSpecificData", "Underanalyzer", UnderanalyzerFilename); + if (File.Exists(underanalyzerPath)) + { + data.GameSpecificRegistry.DeserializeFromJson(File.ReadAllText(underanalyzerPath)); + } + } + } + } + + /// + /// Forces a full reload of all game-specific definition files. + /// + public static void ReloadDefinitions() + { + // Mark definitions as loaded, and reset existing definitions + _loadedDefinitions = true; + + // Scan directory for files, if it exists + string dir = Path.Combine(BaseDirectory, "GameSpecificData", "Definitions"); + if (Directory.Exists(dir)) + { + foreach (string file in Directory.EnumerateFiles(dir, "*.json", SearchOption.TopDirectoryOnly)) + { + _definitions.Add(JsonSerializer.Deserialize(File.ReadAllText(file))); + } + } + + // Sort all definitions by their load order + _definitions.Sort((a, b) => a.LoadOrder); + } + + /// + /// Loads game-specific definitions, if not loaded already. Call to force a full reload. + /// + public static void LoadDefinitions() + { + if (!_loadedDefinitions) + { + ReloadDefinitions(); + } + } + + /// + /// Initializes the registry of game-specific data for the given game. + /// + public static void Initialize(UndertaleData data) + { + // Ensure all definitions are loaded + LoadDefinitions(); + + // Initialize empty game-specific registry for decompiler + data.GameSpecificRegistry = new(); + + // Evaluate all definitions, and load all successful ones + foreach (var definition in _definitions) + { + if (definition.Evaluate(data)) + { + definition.Load(data); + } + } + } +} diff --git a/UndertaleModLib/Decompiler/GlobalDecompileContext.cs b/UndertaleModLib/Decompiler/GlobalDecompileContext.cs index 136c32f0f..8699ab860 100644 --- a/UndertaleModLib/Decompiler/GlobalDecompileContext.cs +++ b/UndertaleModLib/Decompiler/GlobalDecompileContext.cs @@ -1,45 +1,212 @@ using System.Collections.Generic; +using System.Diagnostics; +using System; +using Underanalyzer; +using Underanalyzer.Decompiler; +using Underanalyzer.Decompiler.GameSpecific; using UndertaleModLib.Models; +using Underanalyzer.Compiler; namespace UndertaleModLib.Decompiler; /// -/// The DecompileContext is global for the entire decompilation run, or possibly multiple runs. It caches the decompilation results which don't change often -/// to speedup decompilation. +/// A global game context to track data used by GML decompilation and compilation. /// -public class GlobalDecompileContext +/// +/// Can be used for multiple runs of both the Underanalyzer decompiler and compiler, and is generally thread-safe. +/// +public class GlobalDecompileContext : IGameContext { public UndertaleData Data; - public bool EnableStringLabels; + // Implementation of Underanalyzer properties + public bool UsingGMLv2 => Data?.IsVersionAtLeast(2, 3) ?? false; + public bool Bytecode14OrLower => (Data?.GeneralInfo?.BytecodeVersion ?? 15) <= 14; + public bool UsingGMS2OrLater => Data?.IsVersionAtLeast(2) ?? false; + public bool UsingFinallyBeforeThrow => !(Data?.IsVersionAtLeast(2024, 6) ?? false); + public IGlobalFunctions GlobalFunctions => Data?.GlobalFunctions; + public bool UsingTypedBooleans => Data?.IsVersionAtLeast(2, 3, 7) ?? false; + public bool UsingAssetReferences => Data?.IsVersionAtLeast(2023, 8) ?? false; + public bool UsingRoomInstanceReferences => Data?.IsVersionAtLeast(2024, 2) ?? false; + public bool UsingLogicalShortCircuit => Data?.ShortCircuit ?? true; + public bool UsingExtraRepeatInstruction => Data?.IsNonLTSVersionAtLeast(2022, 11) ?? true; + public bool UsingConstructorSetStatic => Data?.IsVersionAtLeast(2024, 11) ?? false; + public bool UsingReentrantStatic => !(Data?.IsVersionAtLeast(2024, 11) ?? false); + public bool UsingNewFunctionVariables => Data?.IsVersionAtLeast(2024, 2) ?? false; + public bool UsingSelfToBuiltin => Data?.IsVersionAtLeast(2024, 2) ?? false; + public bool UsingGlobalConstantFunction => Data?.IsVersionAtLeast(2023, 11) ?? false; + public bool UsingObjectFunctionForesight => Data?.IsVersionAtLeast(2024, 11) ?? false; + public bool UsingBetterTryBreakContinue => Data?.IsVersionAtLeast(2024, 11) ?? false; + public GameSpecificRegistry GameSpecificRegistry => Data?.GameSpecificRegistry; + public IBuiltins Builtins => throw new NotImplementedException(); // to be implemented in compiler branch + public ICodeBuilder CodeBuilder => throw new NotImplementedException(); // to be implemented in compiler branch - public List DecompilerWarnings = new List(); + public GlobalDecompileContext(UndertaleData data) + { + Data = data; + BuildGlobalFunctionCache(data); + } /// - /// A cache of resolved function argument types. This is kept here because decompiling is slow, and there is no need to do it every time - /// unless the code has changed. + /// Builds the GlobalFunctions cache, required for Underanalyzer's decompiler to recognize function names in global scope. /// - public Dictionary ScriptArgsCache = new Dictionary(); + public static void BuildGlobalFunctionCache(UndertaleData data) + { + if (data == null || data.GlobalFunctions != null) + { + // Nothing to calculate + return; + } - /// - /// A cache of function to actual name mapping. GMS2.3+ sometimes (usually when dealing with global scripts) calls method functions - /// using the legacy call operator, passing the anonymous function directly. This dictionary contains a map from UndertaleFunction - /// to its actual name, obtained by decompiling the parent CodeObject and looking for the assignment to global variable with function - /// name. - /// - public Dictionary AnonymousFunctionNameCache = new Dictionary(); + if (!data.IsVersionAtLeast(2, 3)) + { + // Make an empty instance + data.GlobalFunctions = new GlobalFunctions(); + return; + } + + // Use Underanalyzer's built-in global function finder + try + { + data.GlobalFunctions = new GlobalFunctions(GetGlobalScriptCodeEntries(data)); + } + catch (Exception ex) + { + Debug.WriteLine(ex.ToString()); + + // If an error occurs, just default to empty + data.GlobalFunctions = new GlobalFunctions(); + } + + // TODO: add extension functions to global functions lookup + } + + // Enumerates over all global script code entries + private static IEnumerable GetGlobalScriptCodeEntries(UndertaleData data) + { + foreach (UndertaleGlobalInit script in data.GlobalInitScripts) + { + yield return script.Code; + } + } + + // Implementation of Underanalyzer methods + public string GetAssetName(AssetType assetType, int assetIndex) + { + if (assetIndex < 0) + { + return null; + } + + switch (assetType) + { + case AssetType.Object: + if (assetIndex >= Data.GameObjects.Count) + { + return null; + } + return Data.GameObjects[assetIndex].Name?.Content; + case AssetType.Sprite: + if (assetIndex >= Data.Sprites.Count) + { + return null; + } + return Data.Sprites[assetIndex].Name?.Content; + case AssetType.Sound: + if (assetIndex >= Data.Sounds.Count) + { + return null; + } + return Data.Sounds[assetIndex].Name?.Content; + case AssetType.Room: + if (assetIndex >= Data.Rooms.Count) + { + return null; + } + return Data.Rooms[assetIndex].Name?.Content; + case AssetType.Background: + if (assetIndex >= Data.Backgrounds.Count) + { + return null; + } + return Data.Backgrounds[assetIndex].Name?.Content; + case AssetType.Path: + if (assetIndex >= Data.Paths.Count) + { + return null; + } + return Data.Paths[assetIndex].Name?.Content; + case AssetType.Script: + if (assetIndex >= Data.Scripts.Count) + { + return null; + } + return Data.Scripts[assetIndex].Name?.Content; + case AssetType.Font: + if (assetIndex >= Data.Fonts.Count) + { + return null; + } + return Data.Fonts[assetIndex].Name?.Content; + case AssetType.Timeline: + if (assetIndex >= Data.Timelines.Count) + { + return null; + } + return Data.Timelines[assetIndex].Name?.Content; + case AssetType.Shader: + if (assetIndex >= Data.Shaders.Count) + { + return null; + } + return Data.Shaders[assetIndex].Name?.Content; + case AssetType.Sequence: + if (assetIndex >= Data.Sequences.Count) + { + return null; + } + return Data.Sequences[assetIndex].Name?.Content; + case AssetType.AnimCurve: + if (assetIndex >= Data.AnimationCurves.Count) + { + return null; + } + return Data.AnimationCurves[assetIndex].Name?.Content; + case AssetType.ParticleSystem: + if (assetIndex >= Data.ParticleSystems.Count) + { + return null; + } + return Data.ParticleSystems[assetIndex].Name?.Content; + case AssetType.RoomInstance: + if (assetIndex < 100000) + { + return null; + } + return $"{Data.ToolInfo.InstanceIdPrefix()}{assetIndex}"; + } + + return null; + } + + public bool GetAssetId(string assetName, out int assetId) + { + // TODO: to be implemented in compiler branch + assetId = 0; + return false; + } - public GlobalDecompileContext(UndertaleData data, bool enableStringLabels) + public bool GetScriptId(string scriptName, out int assetId) { - this.Data = data; - this.EnableStringLabels = enableStringLabels; + // TODO: to be implemented in compiler branch + assetId = 0; + return false; } - public void ClearDecompilationCache() + public bool GetScriptIdByFunctionName(string functionName, out int assetId) { - // This will not be done automatically, because it would cause significant slowdown having to recalculate this each time, and there's no reason to reset it if it's decompiling a bunch at once. - // But, since it is possible to invalidate this data, we add this here so we'll be able to invalidate it if we need to. - ScriptArgsCache.Clear(); - AnonymousFunctionNameCache.Clear(); + // TODO: to be implemented in compiler branch + assetId = 0; + return false; } -} \ No newline at end of file +} diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.AssignmentStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.AssignmentStatement.cs deleted file mode 100644 index a62cbd0e0..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.AssignmentStatement.cs +++ /dev/null @@ -1,163 +0,0 @@ -using System; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - /// - /// Represents a high-level assignment statement. - /// - public class AssignmentStatement : Statement - { - /// - /// The variable that will get something assigned to. - /// - public ExpressionVar Destination; - /// - /// The value that will be assigned. - /// - public Expression Value; - - /// - /// Whether the destination variable is a local variable. - /// - public bool IsLocalVariable; - - private bool _isStructDefinition, _checkedForDefinition; - - /// - /// Whether the destination variable is a struct. - /// - public bool IsStructDefinition - { - get - { - // Quick hack - if (_checkedForDefinition) - return _isStructDefinition; - - try - { - if (Destination.Var.Name.Content.StartsWith("___struct___", StringComparison.InvariantCulture)) - { - Expression val = Value; - while (val is ExpressionCast cast) - val = cast; - - if (val is FunctionDefinition def) - { - def.PromoteToStruct(); - _isStructDefinition = true; - } - } - } - catch (Exception) { } - _checkedForDefinition = true; - return _isStructDefinition; - } - } - - public AssignmentStatement(ExpressionVar destination, Expression value) - { - Destination = destination; - Value = value; - } - - public override string ToString(DecompileContext context) - { - bool gms2 = context.GlobalContext.Data?.IsGameMaker2() ?? false; - - if (gms2 && IsStructDefinition) - return ""; - - string varName = Destination.ToString(context); - - if (gms2 && !IsLocalVariable) - { - var data = context.GlobalContext.Data; - var locals = data?.CodeLocals.For(context.TargetCode); - // Stop decompiler from erroring on missing CodeLocals - if (locals is not null && locals.HasLocal(varName) && context.LocalVarDefines.Add(varName)) - IsLocalVariable = true; - } - - // Someone enlighten me on structs, I'm steering clear for now. - // And find the "right" way to do this. - if (Value is FunctionDefinition functionVal && functionVal.Subtype != FunctionDefinition.FunctionType.Struct) - { - functionVal.IsStatement = true; - return functionVal.ToString(context); - } - - string varPrefix = (IsLocalVariable && !context.DecompilingStruct) ? "var " : ""; - - // Check for possible ++, --, or operation equal (for single vars) - if (Value is ExpressionTwo two && (two.Argument1 is ExpressionVar) && - (two.Argument1 as ExpressionVar).Var == Destination.Var) - { - if (two.Argument2 is ExpressionConstant c && c.IsPushE && ExpressionConstant.ConvertToInt(c.Value) == 1) - return varName + (two.Opcode == UndertaleInstruction.Opcode.Add ? "++" : "--"); - - // Not ++ or --, could potentially be an operation equal - bool checkEqual(ExpressionVar a, ExpressionVar b) - { - if (a.InstType.GetType() != b.InstType.GetType()) - return false; - ExpressionConstant ac = (a.InstType as ExpressionConstant), bc = (b.InstType as ExpressionConstant); - bool res = ac.Value.Equals(bc.Value) && ac.IsPushE == bc.IsPushE && ac.Type == bc.Type && ac.WasDuplicated == bc.WasDuplicated && - a.VarType == b.VarType; - res &= (a.ArrayIndices != null) == (b.ArrayIndices != null); - if (a.ArrayIndices != null) - { - res &= a.ArrayIndices.Count == b.ArrayIndices.Count; - if (res) - { - for (int i = 0; i < a.ArrayIndices.Count; i++) - res &= a.ArrayIndices[i] == b.ArrayIndices[i]; - } - } - return res; - } - if (Destination.InstType is ExpressionConstant) - { - ExpressionVar v1 = (ExpressionVar)two.Argument1; - if (checkEqual(Destination, v1) && two.Opcode != UndertaleInstruction.Opcode.Shl && two.Opcode != UndertaleInstruction.Opcode.Shr && two.Opcode != UndertaleInstruction.Opcode.Rem) - { - if (!(context.GlobalContext.Data?.GeneralInfo?.BytecodeVersion > 14 && v1.Opcode != UndertaleInstruction.Opcode.Push && Destination.Var.InstanceType != UndertaleInstruction.InstanceType.Self)) - return String.Format("{0}{1} {2}= {3}", varPrefix, varName, Expression.OperationToPrintableString(two.Opcode), two.Argument2.ToString(context)); - } - } - } - - // Since parenthesized is now the default output of ExpressionTwo (mainly math operations) - // It is specifically safe in variable assignment to not parenthesize this (e.g. "foo = a + b") - string stringOfValue; - if (Value is ExpressionTwo expressionTwoVal) - stringOfValue = expressionTwoVal.ToStringNoParens(context); - else - stringOfValue = Value.ToString(context); - - return String.Format("{0}{1}{2} {3}", varPrefix, varName, context.DecompilingStruct ? ":" : " =", stringOfValue); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Expression expr = Destination.CleanExpression(context, block); - - if (expr is ExpressionVar expvar) - Destination = expvar; - - Value = Value.CleanExpression(context, block); - if (Destination.Var.Name?.Content == "$$$$temp$$$$") - context.CompilerTempVar = this; - - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Value.DoTypePropagation(context, Destination.DoTypePropagation(context, suggestedType)); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.Block.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.Block.cs deleted file mode 100644 index bb4d977a4..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.Block.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Collections.Generic; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - /// - /// Represents a block node of instructions from GML bytecode (for control flow). - /// - public class Block - { - public uint? Address; - public List Instructions = new List(); - public List Statements = null; - public Expression ConditionStatement = null; - public bool conditionalExit; - public Block nextBlockTrue; - public Block nextBlockFalse; - public List entryPoints = new List(); - internal List TempVarsOnEntry; - - public int _CachedIndex; - - public Block(uint? address) - { - Address = address; - } - - public override string ToString() - { - return "Block " + Address; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.BlockHLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.BlockHLStatement.cs deleted file mode 100644 index f8f5cdcef..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.BlockHLStatement.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System.Collections.Generic; -using System.Text; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class BlockHLStatement : HLStatement - { - public List Statements = new List(); - - public string ToString(DecompileContext context, bool canSkipBrackets = true, bool forceSkipBrackets = false) - { - context.IndentationLevel++; - if (canSkipBrackets && CanSkipBrackets(this)) - { - string res = DecompileContext.Indent + Statements[0].ToString(context); - context.IndentationLevel--; - return res; - } - else - { - StringBuilder sb = new StringBuilder(); - if (!forceSkipBrackets) - sb.Append("{\n"); - foreach (var stmt in Statements) - { - if (stmt is AssignmentStatement assign && assign.IsStructDefinition) - continue; - - sb.Append(context.Indentation); - string resultStr = stmt.ToString(context); - sb.Append(resultStr).Append('\n'); - } - context.IndentationLevel--; - if (!forceSkipBrackets) - sb.Append(context.Indentation + "}"); - return sb.ToString().Trim('\n'); - } - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - for (var i = 0; i < Statements.Count; i++) - { - var count = Statements.Count; - var Result = Statements[i]?.CleanStatement(context, this); // Yes, this uses "this" and not "block". - i -= (count - Statements.Count); // If removed. - Statements[i] = Result; - } - return this; - } - - public BlockHLStatement CleanBlockStatement(DecompileContext context) - { - return CleanStatement(context, null) as BlockHLStatement; - } - - public override string ToString(DecompileContext context) - { - return ToString(context, true); - } - - private static bool CanSkipBrackets(BlockHLStatement blockStatement) - { - if (blockStatement == null || blockStatement.Statements.Count != 1) - return false; // Nope! Need brackets! - - Statement statement = blockStatement.Statements[0]; - return !(statement is IfHLStatement || statement is LoopHLStatement || statement is HLSwitchStatement || statement is WithHLStatement); // Nesting these can cause issues. - } - }; -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.BreakHLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.BreakHLStatement.cs deleted file mode 100644 index 0003546e7..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.BreakHLStatement.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class BreakHLStatement : HLStatement - { - public override string ToString(DecompileContext context) - { - return "break"; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - return this; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.CommentStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.CommentStatement.cs deleted file mode 100644 index fd04ebe0d..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.CommentStatement.cs +++ /dev/null @@ -1,35 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - /// - /// Represents a code comment, for debugging use (or minor error reporting). - /// - public class CommentStatement : Statement - { - /// - /// The code comment. - /// - public string Message; - - public CommentStatement(string message) - { - Message = message; - } - - public override string ToString(DecompileContext context) - { - return "// " + Message; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return suggestedType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ContinueHLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ContinueHLStatement.cs deleted file mode 100644 index c175d82e6..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ContinueHLStatement.cs +++ /dev/null @@ -1,17 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class ContinueHLStatement : HLStatement - { - public override string ToString(DecompileContext context) - { - return "continue"; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - return this; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.DirectFunctionCall.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.DirectFunctionCall.cs deleted file mode 100644 index a2910435f..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.DirectFunctionCall.cs +++ /dev/null @@ -1,182 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class DirectFunctionCall : FunctionCall - { - internal string OverridenName = string.Empty; - internal UndertaleFunction Function; - - public DirectFunctionCall(string overridenName, UndertaleFunction function, UndertaleInstruction.DataType returnType, List args) : base(returnType, args) - { - this.OverridenName = overridenName; - this.Function = function; - } - - public DirectFunctionCall(UndertaleFunction function, UndertaleInstruction.DataType returnType, List args) : base(returnType, args) - { - this.Function = function; - } - - public override string ToString(DecompileContext context) - { - StringBuilder argumentString = new StringBuilder(); - - if (Function.Name.Content == "@@NewGMLObject@@") // Creating a new "object" via a constructor OR this is a struct definition - { - context.currentFunction = this; - - string constructor; - var actualArgs = Arguments.Skip(1).ToList(); - if (Arguments[0] is FunctionDefinition def) - { - if (def.Subtype == FunctionDefinition.FunctionType.Struct) // Struct moment - { - def.PopulateArguments(actualArgs); - return def.ToString(context); - } - else - constructor = def.FunctionBodyCodeEntry.Name.Content; - } - else - constructor = Arguments[0].ToString(context); - - if (constructor.StartsWith("gml_Script_", StringComparison.InvariantCulture)) - constructor = constructor.Substring(11); - if (constructor.EndsWith(context.TargetCode.Name.Content, StringComparison.InvariantCulture)) - constructor = constructor.Substring(0, constructor.Length - context.TargetCode.Name.Content.Length - 1); - - if (AssetTypeResolver.builtin_funcs.TryGetValue(constructor, out AssetIDType[] types)) - { - int index = 0; - foreach (var arg in actualArgs) - arg.DoTypePropagation(context, types[index++]); - } - - // Don't ask - if (Arguments[0] is ExpressionCast cast && - cast.Argument is ExpressionConstant constant && - constant.Value is UndertaleInstruction.Reference reference) - { - var call = new DirectFunctionCall(reference.Target, ReturnType, actualArgs) { - OverridenName = constructor - }; - - return "new " + call.ToString(context); - } - else - { - foreach (Expression exp in actualArgs) - { - context.currentFunction = this; - if (argumentString.Length > 0) - argumentString.Append(", "); - argumentString.Append(exp.ToString(context)); - } - } - context.currentFunction = null; - - return String.Format("new {0}({1})", constructor, argumentString); - } - else - { - if (Arguments.Count == 1 && Arguments[0] is ExpressionTwo expTwo) - { - context.currentFunction = this; - argumentString.Append(expTwo.ToStringNoParens(context)); - } - else - { - foreach (Expression exp in Arguments) - { - context.currentFunction = this; - if (argumentString.Length > 0) - argumentString.Append(", "); - argumentString.Append(exp.ToString(context)); - - } - } - context.currentFunction = null; - - if (Function.Name.Content == "@@NewGMLArray@@") // Inline array definitions - return "[" + argumentString.ToString() + "]"; - - return String.Format("{0}({1})", OverridenName != string.Empty ? OverridenName : Function.Name.Content, argumentString.ToString()); - } - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - // Special case for these functions which don't have any purpose in decompiled code - if (Function?.Name?.Content == "@@This@@") - { - return new ExpressionConstant(UndertaleInstruction.DataType.Variable, "self"); - } - if (Function?.Name?.Content == "@@Other@@") - { - return new ExpressionConstant(UndertaleInstruction.DataType.Variable, "other"); - } - if (Function?.Name?.Content == "@@GetInstance@@") - { - Statement res = Arguments[0]; - if (res is ExpressionCast cast) - return cast.Argument; - return res; - } - for (var i = 0; i < Arguments.Count; i++) - Arguments[i] = Arguments[i]?.CleanExpression(context, block); - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - string funcName = OverridenName != string.Empty ? OverridenName : Function.Name.Content; - var script_code = context.GlobalContext.Data?.Scripts.ByName(funcName)?.Code; - if (script_code != null && !context.GlobalContext.ScriptArgsCache.ContainsKey(funcName)) - { - context.GlobalContext.ScriptArgsCache.Add(funcName, null); // stop the recursion from looping - DecompileContext childContext; - try - { - if (script_code.ParentEntry != null) - { - childContext = new DecompileContext(context.GlobalContext, script_code.ParentEntry); - Dictionary blocks = Decompiler.PrepareDecompileFlow(script_code.ParentEntry, new List() { script_code.Offset / 4 }); - Decompiler.DecompileFromBlock(childContext, blocks, blocks[script_code.Offset / 4]); - Decompiler.DoTypePropagation(childContext, blocks); // TODO: This should probably put suggestedType through the "return" statement at the other end - } - else - { - childContext = new DecompileContext(context.GlobalContext, script_code); - Dictionary blocks = Decompiler.PrepareDecompileFlow(script_code, new List() { 0 }); - Decompiler.DecompileFromBlock(childContext, blocks, blocks[0]); - Decompiler.DoTypePropagation(childContext, blocks); // TODO: This should probably put suggestedType through the "return" statement at the other end - } - context.GlobalContext.ScriptArgsCache[funcName] = new AssetIDType[15]; - for (int i = 0; i < 15; i++) - { - var v = childContext.assetTypes.Where((x) => x.Key.Name.Content == "argument" + i); - context.GlobalContext.ScriptArgsCache[funcName][i] = v.Any() ? v.First().Value : AssetIDType.Other; - } - } - catch (Exception e) - { - context.GlobalContext.DecompilerWarnings.Add("/*\nWARNING: Recursive script decompilation (for asset type resolution) failed for " + Function.Name.Content + "\n\n" + e.ToString() + "\n*/"); - } - } - - AssetIDType[] args = new AssetIDType[Arguments.Count]; - AssetTypeResolver.AnnotateTypesForFunctionCall(funcName, args, context, this); - for (var i = 0; i < Arguments.Count; i++) - Arguments[i].DoTypePropagation(context, args[i]); - - return suggestedType; // TODO: maybe we should handle returned values too? - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.Expression.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.Expression.cs deleted file mode 100644 index 77ae417ff..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.Expression.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System.Globalization; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - /// - /// Represents all expressions. - /// - public abstract class Expression : Statement - { - /// - /// What type this expression evaluates to. - /// - public UndertaleInstruction.DataType Type; - - - public bool WasDuplicated = false; - - // Helper function to convert opcode operations to "printable" strings. - public static string OperationToPrintableString(UndertaleInstruction.Opcode op) - { - return op switch - { - UndertaleInstruction.Opcode.Mul => "*", - UndertaleInstruction.Opcode.Div => "/", - UndertaleInstruction.Opcode.Rem => "div", - UndertaleInstruction.Opcode.Mod => "%", - UndertaleInstruction.Opcode.Add => "+", - UndertaleInstruction.Opcode.Sub => "-", - UndertaleInstruction.Opcode.And => "&", - UndertaleInstruction.Opcode.Or => "|", - UndertaleInstruction.Opcode.Xor => "^", - UndertaleInstruction.Opcode.Neg => "-", - UndertaleInstruction.Opcode.Not => "~", - UndertaleInstruction.Opcode.Shl => "<<", - UndertaleInstruction.Opcode.Shr => ">>", - _ => op.ToString().ToUpper(CultureInfo.InvariantCulture), - }; - } - - // Helper function to convert opcode comparisons to "printable" strings. - public static string OperationToPrintableString(UndertaleInstruction.ComparisonType op) - { - return op switch - { - UndertaleInstruction.ComparisonType.LT => "<", - UndertaleInstruction.ComparisonType.LTE => "<=", - UndertaleInstruction.ComparisonType.EQ => "==", - UndertaleInstruction.ComparisonType.NEQ => "!=", - UndertaleInstruction.ComparisonType.GTE => ">=", - UndertaleInstruction.ComparisonType.GT => ">", - _ => op.ToString().ToUpper(CultureInfo.InvariantCulture), - }; - } - - internal virtual bool IsDuplicationSafe() - { - return false; - } - - - // Casts this expression to a GMS2.3.7+ boolean. - internal virtual void CastToBoolean(DecompileContext context) - { - Type = UndertaleInstruction.DataType.Boolean; - } - - public Expression CleanExpression(DecompileContext context, BlockHLStatement block) - { - return CleanStatement(context, block) as Expression; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionAssetRef.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionAssetRef.cs deleted file mode 100644 index d156e13aa..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionAssetRef.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Collections; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a reference to an asset in the resource tree, used in 2023.8+ only - public class ExpressionAssetRef : Expression - { - // NOTE: Also see generalized "ResourceType" enum. This has slightly differing values, though - public enum RefType - { - Object = 0, - Sprite = 1, - Sound = 2, - Room = 3, - Background = 4, - Path = 5, - // missing 6 - Font = 7, - Timeline = 8, - // missing 9 - Shader = 10, - Sequence = 11, - AnimCurve = 12, - ParticleSystem = 13 - } - - public int AssetIndex; - public RefType AssetRefType; - - public ExpressionAssetRef(int encodedResourceIndex) - { - Type = UndertaleInstruction.DataType.Variable; - - // Break down index - first 24 bits are the ID, the rest is the ref type - AssetIndex = encodedResourceIndex & 0xffffff; - AssetRefType = (RefType)(encodedResourceIndex >> 24); - } - - public ExpressionAssetRef(int resourceIndex, RefType resourceType) - { - Type = UndertaleInstruction.DataType.Variable; - AssetIndex = resourceIndex; - AssetRefType = resourceType; - } - - internal override bool IsDuplicationSafe() - { - return true; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - return this; - } - public override string ToString(DecompileContext context) - { - if (context.GlobalContext.Data != null) - { - IList assetList = null; - switch (AssetRefType) - { - case RefType.Sprite: - assetList = (IList)context.GlobalContext.Data.Sprites; - break; - case RefType.Background: - assetList = (IList)context.GlobalContext.Data.Backgrounds; - break; - case RefType.Sound: - assetList = (IList)context.GlobalContext.Data.Sounds; - break; - case RefType.Font: - assetList = (IList)context.GlobalContext.Data.Fonts; - break; - case RefType.Path: - assetList = (IList)context.GlobalContext.Data.Paths; - break; - case RefType.Timeline: - assetList = (IList)context.GlobalContext.Data.Timelines; - break; - case RefType.Room: - assetList = (IList)context.GlobalContext.Data.Rooms; - break; - case RefType.Object: - assetList = (IList)context.GlobalContext.Data.GameObjects; - break; - case RefType.Shader: - assetList = (IList)context.GlobalContext.Data.Shaders; - break; - case RefType.AnimCurve: - assetList = (IList)context.GlobalContext.Data.AnimationCurves; - break; - case RefType.Sequence: - assetList = (IList)context.GlobalContext.Data.Sequences; - break; - case RefType.ParticleSystem: - assetList = (IList)context.GlobalContext.Data.ParticleSystems; - break; - } - - if (assetList != null && AssetIndex >= 0 && AssetIndex < assetList.Count) - return ((UndertaleNamedResource)assetList[AssetIndex]).Name.Content; - } - return $"/* ERROR: missing {AssetRefType} asset, using ID instead */ {AssetIndex}"; - } - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - // Convert type to corresponding AssetIDType equivalent - return AssetRefType switch - { - RefType.Object => AssetIDType.GameObject, - RefType.Sprite => AssetIDType.Sprite, - RefType.Sound => AssetIDType.Sound, - RefType.Room => AssetIDType.Room, - RefType.Background => AssetIDType.Background, - RefType.Path => AssetIDType.Path, - RefType.Font => AssetIDType.Font, - RefType.Timeline => AssetIDType.Timeline, - RefType.Shader => AssetIDType.Shader, - RefType.Sequence => AssetIDType.Sequence, - RefType.AnimCurve => AssetIDType.AnimCurve, - RefType.ParticleSystem => AssetIDType.ParticleSystem, - _ => throw new NotImplementedException($"Missing ref type {AssetRefType}") - }; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionCast.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionCast.cs deleted file mode 100644 index 4fc0f2787..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionCast.cs +++ /dev/null @@ -1,39 +0,0 @@ -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents an expression converted to one of another data type - makes no difference on high-level code. - public class ExpressionCast : Expression - { - public Expression Argument; - - public ExpressionCast(UndertaleInstruction.DataType targetType, Expression argument) - { - this.Type = targetType; - this.Argument = argument; - } - - internal override bool IsDuplicationSafe() - { - return Argument.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Argument = Argument?.CleanExpression(context, block); - return this; - } - - public override string ToString(DecompileContext context) - { - return Argument.ToString(context); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Argument.DoTypePropagation(context, suggestedType); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionCompare.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionCompare.cs deleted file mode 100644 index 6d60a3289..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionCompare.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a binary comparison expression. - public class ExpressionCompare : Expression - { - public UndertaleInstruction.ComparisonType Opcode; - public Expression Argument1; - public Expression Argument2; - - public ExpressionCompare(UndertaleInstruction.ComparisonType opcode, Expression argument1, Expression argument2) - { - this.Opcode = opcode; - this.Type = UndertaleInstruction.DataType.Boolean; - this.Argument1 = argument1; - this.Argument2 = argument2; - } - - internal override bool IsDuplicationSafe() - { - return Argument1.IsDuplicationSafe() && Argument2.IsDuplicationSafe(); - } - - public override string ToString(DecompileContext context) - { - string arg1 = Argument1.ToString(context); - if (Argument1 is ExpressionCompare compare1) - arg1 = compare1.ToStringWithParen(context); - string arg2 = Argument2.ToString(context); - if (Argument2 is ExpressionCompare compare2) - arg2 = compare2.ToStringWithParen(context); - - return String.Format("{0} {1} {2}", arg1, OperationToPrintableString(Opcode), arg2); - } - - public string ToStringWithParen(DecompileContext context) - { - return "(" + ToString(context) + ")"; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Argument1 = Argument1?.CleanExpression(context, block); - Argument2 = Argument2?.CleanExpression(context, block); - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - // TODO: This should be probably able to go both ways... - Argument2.DoTypePropagation(context, Argument1.DoTypePropagation(context, suggestedType)); - - /* - if (Opcode != UndertaleInstruction.ComparisonType.EQ && Opcode != UndertaleInstruction.ComparisonType.NEQ) - { - if (Argument1 is ExpressionConstant arg1) - if (arg1.AssetType == AssetIDType.Script) - arg1.AssetType = AssetIDType.Other; - - if (Argument2 is ExpressionConstant arg2) - if (arg2.AssetType == AssetIDType.Script) - arg2.AssetType = AssetIDType.Other; - }*/ - - return AssetIDType.Other; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionConstant.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionConstant.cs deleted file mode 100644 index 9b59863dc..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionConstant.cs +++ /dev/null @@ -1,315 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a base constant expression, such as a number (no operations). - public class ExpressionConstant : Expression - { - public object Value; - public bool IsPushE; - internal AssetIDType AssetType = AssetIDType.Other; - - public ExpressionConstant(UndertaleInstruction.DataType type, object value, bool isPushE = false) - { - Type = type; - Value = value; - IsPushE = isPushE; - } - - internal override bool IsDuplicationSafe() - { - return true; - } - - internal override void CastToBoolean(DecompileContext context) - { - if (Type == UndertaleInstruction.DataType.Int16 && Value is (short)0 or (short)1) - { - Type = UndertaleInstruction.DataType.Boolean; - Value = Convert.ToBoolean(Value); - } - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Value = (Value as Statement)?.CleanStatement(context, block) ?? Value; - return this; - } - - public bool EqualsNumber(int TestNumber) - { - return (Value is Int16 || Value is Int32) && Convert.ToInt32(Value) == TestNumber; - } - - public bool EqualsBoolLike(bool TestBool) - { - if (Value is Int16 || Value is Int32) - return Convert.ToInt32(Value) == Convert.ToInt32(TestBool); - return (Value is bool boolValue) && boolValue == TestBool; - } - - // Helper function to carefully check if an object is in fact an integer, for asset types. - public static int? ConvertToInt(object val) - { - if (val is int || val is short || val is ushort || val is bool || val is UndertaleInstruction.InstanceType) - { - return Convert.ToInt32(val); - } - else if (val is double) - { - var v = Convert.ToDouble(val); - int res = (int)v; - if (v == res) - return res; - } - else if (val is float) - { - var v = Convert.ToSingle(val); - int res = (int)v; - if (v == res) - return res; - } - return null; - } - - // Helper function, using the one above, to convert an object into its respective asset type enum, if possible. - public static string ConvertToEnumStr(object val) - { - int? intVal = ConvertToInt(val); - if (intVal == null) - return val.ToString(); - return ((T)(object)intVal).ToString(); - } - - public override string ToString(DecompileContext context) - { - if (Value is float f) // More accurate, larger range, double to string. - return DoubleToString.StringOf(f); - - if (Value is Int64 i && i <= int.MaxValue && i >= int.MinValue) // Decompiler accuracy improvement. - { - return "(" + i + " << 0)"; - } - - if (Value is double d) // More accurate, larger range, double to string. - return DoubleToString.StringOf(d); - - if (Value is bool b) - return b ? "true" : "false"; - - if (Value is Statement statement) - return statement.ToString(context); - - if (Value is UndertaleResourceById resource) // Export string. - { - string resultStr = resource.Resource.ToString(context.GlobalContext.Data?.IsGameMaker2() ?? false); - if (context.GlobalContext.EnableStringLabels) - resultStr += resource.GetMarkerSuffix(); - return resultStr; - } - - // Archie: If statements are inefficient! Use a switch jump table! - if (AssetType == AssetIDType.GameObject && !(Value is Int64)) // When the value is Int64, an example value is 343434343434. It is unknown what it represents, but it's not an InstanceType. - { - int? val = ConvertToInt(Value); - if (val != null && val < 0 && val >= -16) - return ((UndertaleInstruction.InstanceType)Value).ToString().ToLower(CultureInfo.InvariantCulture); - } - else switch (AssetType) // Need to put else because otherwise it gets terribly unoptimized with GameObject type - { - case AssetIDType.e__VW: - return "e__VW." + ConvertToEnumStr(Value); - case AssetIDType.e__BG: - return "e__BG." + ConvertToEnumStr(Value); - - case AssetIDType.Enum_HAlign: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_VAlign: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_GameSpeed: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_OSType: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_GamepadButton: - return ConvertToEnumStr(Value); - case AssetIDType.MouseButton: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_MouseCursor: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_PathEndAction: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_BufferKind: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_BufferType: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_BufferSeek: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_UGC_FileType: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_UGC_List: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_UGC_MatchType: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_UGC_QueryType: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_UGC_SortOrder: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_Overlay: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_LeaderBoard_Display: - return ConvertToEnumStr(Value); - case AssetIDType.Enum_Steam_LeaderBoard_Sort: - return ConvertToEnumStr(Value); - case AssetIDType.Boolean: - return ConvertToEnumStr(Value); - case AssetIDType.EventType: - return ConvertToEnumStr(Value); - case AssetIDType.ContextDependent: - { - var func = context.currentFunction; - if (func != null && (ContextualAssetResolver.resolvers?.ContainsKey(func.Function.Name.Content) ?? false)) - { - List actualArguments = new List(); - foreach (var arg in func.Arguments) - { - if (arg is ExpressionCast) - actualArguments.Add((arg as ExpressionCast).Argument); - else - actualArguments.Add(arg); - } - string result = ContextualAssetResolver.resolvers[func.Function.Name.Content](context, func, actualArguments.IndexOf(this), this); - if (result != null) - return result; - } - } - break; - - case AssetIDType.Color: - if (Value is IFormattable formattable && !(Value is float) && !(Value is double) && !(Value is decimal)) - { - int vint = Convert.ToInt32(Value); - if (vint < 0) // negative value. - return vint.ToString(); - else // guaranteed to be an unsigned int. - { - uint vuint = (uint)vint; - if (Decompiler.ColorDictionary.ContainsKey(vuint)) - return Decompiler.ColorDictionary[vuint]; - else - return (context.GlobalContext.Data?.IsGameMaker2() ?? false ? "0x" : "$") + formattable.ToString("X6", CultureInfo.InvariantCulture); // not a known color and not negative. - } - } - break; - - case AssetIDType.KeyboardKey: - { - string key = GetAsKeyboard(context); - if (key != null) - return key; - } - break; - // Don't use this. - // It will not recompile. - case AssetIDType.Macro: - throw new NotImplementedException();/* - { - var macros = ContextualAssetResolver.macros; - var key = Value?.ToString(); - - if (key != null & macros.ContainsKey(key)) - return macros[key]; - } - break;*/ - } - - if ((context.AssetResolutionEnabled || AssetType == AssetIDType.Script) && context.GlobalContext.Data != null && AssetType != AssetIDType.Other) - { - IList assetList = null; - switch (AssetType) - { - case AssetIDType.Sprite: - assetList = (IList)context.GlobalContext.Data.Sprites; - break; - case AssetIDType.TileSet: - case AssetIDType.Background: - assetList = (IList)context.GlobalContext.Data.Backgrounds; - break; - case AssetIDType.Sound: - assetList = (IList)context.GlobalContext.Data.Sounds; - break; - case AssetIDType.Font: - assetList = (IList)context.GlobalContext.Data.Fonts; - break; - case AssetIDType.Path: - assetList = (IList)context.GlobalContext.Data.Paths; - break; - case AssetIDType.Timeline: - assetList = (IList)context.GlobalContext.Data.Timelines; - break; - case AssetIDType.Room: - assetList = (IList)context.GlobalContext.Data.Rooms; - break; - case AssetIDType.GameObject: - assetList = (IList)context.GlobalContext.Data.GameObjects; - break; - case AssetIDType.Shader: - assetList = (IList)context.GlobalContext.Data.Shaders; - break; - case AssetIDType.Script: - assetList = (IList)context.GlobalContext.Data.Scripts; - break; - } - - if (!(Value is Int64)) // It is unknown what Int64 data represents, but it's not this. - { - int? tryVal = ConvertToInt(Value); - int val; - if (tryVal != null) - { - val = tryVal ?? -1; - if (assetList != null && val >= 0 && val < assetList.Count) - return ((UndertaleNamedResource)assetList[val]).Name.Content; - } - } - } - - return ((Value as IFormattable)?.ToString(null, CultureInfo.InvariantCulture) ?? Value.ToString()); - } - - // Helper function - public string GetAsKeyboard(DecompileContext context) - { - int? tryVal = ConvertToInt(Value); - if (tryVal != null) - { - int val = tryVal ?? -1; - - bool isAlphaNumeric = val >= (int)EventSubtypeKey.Digit0 && val <= (int)EventSubtypeKey.Z; - if (isAlphaNumeric) - return "ord(\"" + (char)val + "\")"; - - if (val >= 0 && Enum.IsDefined(typeof(EventSubtypeKey), (uint)val)) - return ((EventSubtypeKey)val).ToString(); // Either return the key enum, or the right alpha-numeric key-press. - - if (!Char.IsControl((char)val) && !Char.IsLower((char)val) && val > 0) // The special keys overlay with the uppercase letters (ugh) - return "ord(" + (((char)val) == '\'' ? (context.GlobalContext.Data?.IsGameMaker2() ?? false ? "\"\\\"\"" : "'\"'") - : (((char)val) == '\\' ? (context.GlobalContext.Data?.IsGameMaker2() ?? false ? "\"\\\\\"" : "\"\\\"") - : "\"" + (char)val + "\"")) + ")"; - } - return null; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - if (AssetType == AssetIDType.Other) - AssetType = suggestedType; - return AssetType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionOne.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionOne.cs deleted file mode 100644 index 36d85a8e2..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionOne.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a unary expression. - public class ExpressionOne : Expression - { - public UndertaleInstruction.Opcode Opcode; - public Expression Argument; - - public ExpressionOne(UndertaleInstruction.Opcode opcode, UndertaleInstruction.DataType targetType, Expression argument) - { - this.Opcode = opcode; - this.Type = targetType; - this.Argument = argument; - } - - internal override bool IsDuplicationSafe() - { - return Argument.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Argument = Argument?.CleanExpression(context, block); - return this; - } - - public override string ToString(DecompileContext context) - { - string op = OperationToPrintableString(Opcode); - if (Opcode == UndertaleInstruction.Opcode.Not && Type == UndertaleInstruction.DataType.Boolean) - op = "!"; // This is a logical negation instead, see #93 - string arg = Argument.ToString(context); - if (arg.Contains(' ', StringComparison.InvariantCulture)) - return String.Format("({0}({1}))", op, arg); - return String.Format("({0}{1})", op, arg); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Argument.DoTypePropagation(context, suggestedType); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionPost.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionPost.cs deleted file mode 100644 index 2c396da8f..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionPost.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents post increments and decrements, such as a++ and a--. - public class ExpressionPost : Expression - { - public UndertaleInstruction.Opcode Opcode; - public Expression Variable; - - public ExpressionPost(UndertaleInstruction.Opcode opcode, Expression variable) - { - Opcode = opcode; - Variable = variable; - } - - internal override bool IsDuplicationSafe() - { - return Variable.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Variable = Variable?.CleanStatement(context, block) as Expression; - return this; - } - - public override string ToString(DecompileContext context) - { - return Variable.ToString(context) + (Opcode == UndertaleInstruction.Opcode.Add ? "++" : "--"); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Variable.DoTypePropagation(context, suggestedType); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionPre.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionPre.cs deleted file mode 100644 index e9afad720..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionPre.cs +++ /dev/null @@ -1,40 +0,0 @@ -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents pre increments and decrements, such as ++a and --a. - public class ExpressionPre : Expression - { - public UndertaleInstruction.Opcode Opcode; - public Expression Variable; - - public ExpressionPre(UndertaleInstruction.Opcode opcode, Expression variable) - { - Opcode = opcode; - Variable = variable; - } - - internal override bool IsDuplicationSafe() - { - return Variable.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Variable = Variable?.CleanExpression(context, block); - return this; - } - - public override string ToString(DecompileContext context) - { - return (Opcode == UndertaleInstruction.Opcode.Add ? "++" : "--") + Variable.ToString(context); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Variable.DoTypePropagation(context, suggestedType); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTempVar.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTempVar.cs deleted file mode 100644 index e288cfaf8..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTempVar.cs +++ /dev/null @@ -1,55 +0,0 @@ -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a tempvar inside of an expression. - public class ExpressionTempVar : Expression - { - public TempVarReference Var; - - public ExpressionTempVar(TempVarReference var, UndertaleInstruction.DataType targetType) - { - this.Var = var; - this.Type = targetType; - } - - internal override bool IsDuplicationSafe() - { - return true; - } - - public override string ToString(DecompileContext context) - { - return Var.Var.Name; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - TempVarAssignmentStatement tempVarStatement = context.TempVarMap[Var.Var.Name]; - if (tempVarStatement != null) - { - block.Statements.Remove(tempVarStatement); - return tempVarStatement.Value.CleanStatement(context, block); - } - - return this; - } - - internal override void CastToBoolean(DecompileContext context) { - Type = UndertaleInstruction.DataType.Boolean; - if (context.TempVarMap.ContainsKey(Var.Var.Name)) - { - context.TempVarMap[Var.Var.Name].Value.CastToBoolean(context); - } - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - if (Var.Var.AssetType == AssetIDType.Other) - Var.Var.AssetType = suggestedType; - return Var.Var.AssetType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTernary.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTernary.cs deleted file mode 100644 index 4ece77be7..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTernary.cs +++ /dev/null @@ -1,52 +0,0 @@ -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // This is basically ExpressionTwo, but allows for using symbols like && or || without creating new opcodes. - public class ExpressionTernary : Expression - { - public Expression Condition; - public Expression TrueExpression; - public Expression FalseExpression; - - public ExpressionTernary(UndertaleInstruction.DataType targetType, Expression Condition, Expression argument1, Expression argument2) - { - this.Type = targetType; - this.Condition = Condition; - this.TrueExpression = argument1; - this.FalseExpression = argument2; - } - - internal override bool IsDuplicationSafe() - { - return Condition.IsDuplicationSafe() && TrueExpression.IsDuplicationSafe() && FalseExpression.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Condition = Condition?.CleanExpression(context, block); - TrueExpression = TrueExpression?.CleanExpression(context, block); - FalseExpression = FalseExpression?.CleanExpression(context, block); - return this; - } - - public override string ToString(DecompileContext context) - { - string condStr = Condition.ToString(context); - if (TestBoolLike(TrueExpression, true) && TestBoolLike(FalseExpression, false)) - return condStr; // Default values, yes = true, no = false. - - return "(" + condStr + " ? " + TrueExpression.ToString(context) + " : " + FalseExpression.ToString(context) + ")"; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - // The most likely, but probably rarely happens - AssetIDType t = TrueExpression.DoTypePropagation(context, suggestedType); - FalseExpression.DoTypePropagation(context, AssetIDType.Other); - return t; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTwo.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTwo.cs deleted file mode 100644 index ed22fc6f2..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTwo.cs +++ /dev/null @@ -1,115 +0,0 @@ -using System; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a binary expression. - public class ExpressionTwo : Expression - { - public UndertaleInstruction.Opcode Opcode; - public UndertaleInstruction.DataType Type2; - public Expression Argument1; - public Expression Argument2; - - public ExpressionTwo(UndertaleInstruction.Opcode opcode, UndertaleInstruction.DataType targetType, UndertaleInstruction.DataType type2, Expression argument1, Expression argument2) - { - this.Opcode = opcode; - this.Type = targetType; - this.Type2 = type2; - this.Argument1 = argument1; - this.Argument2 = argument2; - } - - internal override bool IsDuplicationSafe() - { - return Argument1.IsDuplicationSafe() && Argument2.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Argument1 = Argument1?.CleanExpression(context, block); - Argument2 = Argument2?.CleanExpression(context, block); - return this; - } - - private string AddParensIfNeeded(Expression argument, DecompileContext context, bool isSecond) - { - string arg = argument.ToString(context); - bool needsParens; - if (arg[0] != '(' && - argument is not ExpressionConstant && - arg.Contains(' ', StringComparison.InvariantCulture)) - needsParens = true; - else - needsParens = false; - - - if (argument is ExpressionTwo argumentAsBinaryExpression) - { - int outerPriorityLevel = Opcode switch - { - UndertaleInstruction.Opcode.Mul or UndertaleInstruction.Opcode.Div => 2, - UndertaleInstruction.Opcode.Add or UndertaleInstruction.Opcode.Sub => 1, - _ => 0, - }; - - // First, no parentheses on this type - arg = argumentAsBinaryExpression.ToStringNoParens(context); - - int argPriorityLevel = argumentAsBinaryExpression.Opcode switch - { - UndertaleInstruction.Opcode.Mul or UndertaleInstruction.Opcode.Div => 2, - UndertaleInstruction.Opcode.Add or UndertaleInstruction.Opcode.Sub => 1, - _ => 0, - }; - - // The second argument needs parentheses even if the operation level is equal, not just less; e.g. a - (b + c) - // Even some cases that match mathematically will recompile differently without right-hand parentheses e.g. a + (b + c) - if (isSecond) - argPriorityLevel--; - - // Suppose we have "(arg1a argOp arg1b) opcode argument2", and are wondering whether the depicted parentheses are needed - // If the argument's opcode is more highly-prioritized than our own, such as it being multiplication - // while we use addition, then no parentheses are required. - // If the argument's opcode doesn't fall into typical math rules (that is, I don't know my full order of operations) - // Assume it has lower priority and needs parentheses to clarify. - // Parentheses are also not needed for operations of the same level, especially string concatenation. - needsParens = (outerPriorityLevel > argPriorityLevel); - if (outerPriorityLevel == 0) - needsParens = true; // Better safe than sorry - - } - - return (needsParens ? String.Format("({0})", arg) : arg); - } - - public string ToStringNoParens(DecompileContext context) - { - string arg1 = AddParensIfNeeded(Argument1, context, false); - string arg2 = AddParensIfNeeded(Argument2, context, true); - - if (Opcode == UndertaleInstruction.Opcode.Or || Opcode == UndertaleInstruction.Opcode.And) - { - // If both arguments are a boolean type, this is a non-short-circuited logical condition - if (Type == UndertaleInstruction.DataType.Boolean && Type2 == UndertaleInstruction.DataType.Boolean) - return String.Format("{0} {1}{1} {2}", arg1, OperationToPrintableString(Opcode), arg2); - } - return String.Format("{0} {1} {2}", arg1, OperationToPrintableString(Opcode), arg2); - } - - public override string ToString(DecompileContext context) - { - return String.Format("({0})", ToStringNoParens(context)); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - // The most likely, but probably rarely happens - AssetIDType t = Argument1.DoTypePropagation(context, suggestedType); - Argument2.DoTypePropagation(context, AssetIDType.Other); - return t; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTwoSymbol.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTwoSymbol.cs deleted file mode 100644 index fdbc0f4e7..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionTwoSymbol.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // This is basically ExpressionTwo, but allows for using symbols like && or || without creating new opcodes. - public class ExpressionTwoSymbol : Expression - { - public string Symbol; - public Expression Argument1; - public Expression Argument2; - - public ExpressionTwoSymbol(string symbol, UndertaleInstruction.DataType targetType, Expression argument1, Expression argument2) - { - this.Symbol = symbol; - this.Type = targetType; - this.Argument1 = argument1; - this.Argument2 = argument2; - } - - internal override bool IsDuplicationSafe() - { - return Argument1.IsDuplicationSafe() && Argument2.IsDuplicationSafe(); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Argument1 = Argument1?.CleanExpression(context, block); - Argument2 = Argument2?.CleanExpression(context, block); - return this; - } - - public override string ToString(DecompileContext context) - { - string arg1; - if (Argument1 is ExpressionTwoSymbol && (Argument1 as ExpressionTwoSymbol).Symbol == Symbol) - arg1 = (Argument1 as ExpressionTwoSymbol).ToStringNoParen(context); - else - arg1 = Argument1.ToString(context); - string arg2; - if (Argument2 is ExpressionTwoSymbol && (Argument2 as ExpressionTwoSymbol).Symbol == Symbol) - arg2 = (Argument2 as ExpressionTwoSymbol).ToStringNoParen(context); - else - arg2 = Argument2.ToString(context); - return String.Format("({0} {1} {2})", arg1, Symbol, arg2); - } - - public string ToStringNoParen(DecompileContext context) - { - string arg1; - if (Argument1 is ExpressionTwoSymbol && (Argument1 as ExpressionTwoSymbol).Symbol == Symbol) - arg1 = (Argument1 as ExpressionTwoSymbol).ToStringNoParen(context); - else - arg1 = Argument1.ToString(context); - string arg2; - if (Argument2 is ExpressionTwoSymbol && (Argument2 as ExpressionTwoSymbol).Symbol == Symbol) - arg2 = (Argument2 as ExpressionTwoSymbol).ToStringNoParen(context); - else - arg2 = Argument2.ToString(context); - return String.Format("{0} {1} {2}", arg1, Symbol, arg2); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - // The most likely, but probably rarely happens - AssetIDType t = Argument1.DoTypePropagation(context, suggestedType); - Argument2.DoTypePropagation(context, AssetIDType.Other); - return t; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionVar.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionVar.cs deleted file mode 100644 index da2cef959..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ExpressionVar.cs +++ /dev/null @@ -1,162 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a variable in an expression, of any type. - public class ExpressionVar : Expression - { - public UndertaleVariable Var; - public Expression InstType; // UndertaleInstruction.InstanceType - public UndertaleInstruction.VariableType VarType; - public List ArrayIndices = null; - public UndertaleInstruction.Opcode Opcode; - - public ExpressionVar(UndertaleVariable var, Expression instType, UndertaleInstruction.VariableType varType) - { - Var = var; - InstType = instType; - VarType = varType; - } - - internal override bool IsDuplicationSafe() - { - bool res = (InstType?.IsDuplicationSafe() ?? true); - - if (ArrayIndices == null) - return res; - foreach (Expression e in ArrayIndices) - res &= (e?.IsDuplicationSafe() ?? true); - - return res; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - if (Var.Name?.Content == "$$$$temp$$$$" && context.CompilerTempVar != null) - { - block.Statements.Remove(context.CompilerTempVar); - return context.CompilerTempVar.Value.CleanStatement(context, block); - } - - InstType = InstType?.CleanExpression(context, block); - if (ArrayIndices == null) - return this; - foreach (Expression e in ArrayIndices) - e?.CleanExpression(context, block); - return this; - } - - public static Tuple Decompile2DArrayIndex(Expression index) - { - Expression ind1 = index; - Expression ind2 = null; - if (ind1 is ExpressionTwo && (ind1 as ExpressionTwo).Opcode == UndertaleInstruction.Opcode.Add) - { - var arg1 = (ind1 as ExpressionTwo).Argument1; - var arg2 = (ind1 as ExpressionTwo).Argument2; - if (arg1 is ExpressionTwo && (arg1 as ExpressionTwo).Opcode == UndertaleInstruction.Opcode.Mul) - { - var arg11 = (arg1 as ExpressionTwo).Argument1; - var arg12 = (arg1 as ExpressionTwo).Argument2; - if (arg12 is ExpressionConstant && (arg12 as ExpressionConstant).Value is int && (int)(arg12 as ExpressionConstant).Value == 32000) - { - ind1 = arg11; - ind2 = arg2; - } - } - } - return new Tuple(ind1, ind2); - } - - public override string ToString(DecompileContext context) - { - string name = Var.Name.Content; - if (ArrayIndices != null) - { - if (DecompileContext.GMS2_3 == true) - { - if (name == "argument" && context.DecompilingStruct && context.ArgumentReplacements != null && ArrayIndices.Count == 1) - { - var replacements = context.ArgumentReplacements; - if (int.TryParse(ArrayIndices[0].ToString(context), out int index) && index >= 0 && index < replacements.Count && this != replacements[index]) - return replacements[index].ToString(context); - } - foreach (Expression e in ArrayIndices) - name += "[" + e.ToString(context) + "]"; - - } - else - { - if (ArrayIndices.Count == 2 && ArrayIndices[0] != null && ArrayIndices[1] != null) - name += "[" + ArrayIndices[0].ToString(context) + ", " + ArrayIndices[1].ToString(context) + "]"; - else if (ArrayIndices[0] != null) - name += "[" + ArrayIndices[0].ToString(context) + "]"; - } - } - - // NOTE: The "var" prefix is handled in Decompiler.Decompile. - - if (VarType == UndertaleInstruction.VariableType.Instance) - { - if (InstType is ExpressionConstant c) - { - int? val = ExpressionConstant.ConvertToInt(c.Value); - if (val == null) - throw new InvalidOperationException("Unable to parse the instance ID to int"); - // TODO: This is a reference to an object instance in the room. Resolving these is non-trivial since you don't exactly have a reference to the room where this script is used when decompiling... - return (val + 100000) + "." + name; - } - else throw new InvalidOperationException("Instance variable type used with non-const InstType"); // TODO: can this happen? - } - if (InstType is ExpressionConstant constant) // Only use "global." and "other.", not "self." or "local.". GMS doesn't recognize those. - { - string prefix = InstType.ToString(context) + "."; - if (!(constant.Value is Int64)) - { - int? val = ExpressionConstant.ConvertToInt(constant.Value); - if (val != null) - { - if (constant.AssetType == AssetIDType.GameObject && val < 0) - { - UndertaleInstruction.InstanceType instanceType = (UndertaleInstruction.InstanceType)val; - prefix = (instanceType == UndertaleInstruction.InstanceType.Global || instanceType == UndertaleInstruction.InstanceType.Other) ? prefix.ToLower(CultureInfo.InvariantCulture) : ""; - } - } - } - return prefix + name; - } - else if (InstType is ExpressionCast cast && !(cast.Argument is ExpressionVar)) - { - return "(" + InstType.ToString(context) + ")." + name; // Make sure to put parentheses around these cases - } - - return InstType.ToString(context) + "." + name; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - InstType?.DoTypePropagation(context, AssetIDType.GameObject); - if (ArrayIndices != null) - { - foreach (Expression e in ArrayIndices) - e?.DoTypePropagation(context, AssetIDType.Other); - } - - AssetIDType current = context.assetTypes.ContainsKey(Var) ? context.assetTypes[Var] : AssetIDType.Other; - if (current == AssetIDType.Other && suggestedType != AssetIDType.Other) - current = suggestedType; - AssetIDType builtinSuggest = AssetTypeResolver.AnnotateTypeForVariable(context, Var.Name.Content); - if (builtinSuggest != AssetIDType.Other) - current = builtinSuggest; - - if ((VarType != UndertaleInstruction.VariableType.Array || (ArrayIndices != null && !(ArrayIndices[0] is ExpressionConstant)))) - context.assetTypes[Var] = current; // This is a messy fix to arrays messing up exported variable types. - return current; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.FunctionCall.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.FunctionCall.cs deleted file mode 100644 index ff0adb1ad..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.FunctionCall.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System.Collections.Generic; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a high-level function or script call. - public abstract class FunctionCall : Expression - { - internal UndertaleInstruction.DataType ReturnType; - internal List Arguments; - - protected FunctionCall(UndertaleInstruction.DataType returnType, List args) - { - this.ReturnType = returnType; - this.Arguments = args; - } - - internal override bool IsDuplicationSafe() - { - // Function calls are never duplication safe - they can have side effects - return false; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.FunctionDefinition.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.FunctionDefinition.cs deleted file mode 100644 index 09a3af1c2..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.FunctionDefinition.cs +++ /dev/null @@ -1,192 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents an inline function definition - public class FunctionDefinition : Expression - { - public enum FunctionType - { - Function, - Constructor, - Struct - } - - public UndertaleFunction Function { get; private set; } - public UndertaleCode FunctionBodyCodeEntry { get; private set; } - public Block FunctionBodyEntryBlock { get; private set; } - public FunctionType Subtype { get; private set; } - public bool IsStatement = false; // I know it's an expression, yes. But I'm not duplicating the rest. - - internal List Arguments; - - public FunctionDefinition(UndertaleFunction target, UndertaleCode functionBodyCodeEntry, Block functionBodyEntryBlock, FunctionType type) - { - Subtype = type; - Function = target; - FunctionBodyCodeEntry = functionBodyCodeEntry; - FunctionBodyEntryBlock = functionBodyEntryBlock; - } - - public void PromoteToStruct() - { - if (Subtype == FunctionType.Function) - throw new InvalidOperationException("Cannot promote function to struct"); - - Subtype = FunctionType.Struct; - } - - public void PopulateArguments(params Expression[] arguments) - { - PopulateArguments(arguments.ToList()); - } - - public void PopulateArguments(List arguments) - { - if (Subtype != FunctionType.Struct) - throw new InvalidOperationException("Cannot populate arguments of non-struct"); - - if (Arguments == null) - Arguments = new List(); - - Arguments.AddRange(arguments); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - return this; - } - - public override string ToString(DecompileContext context) - { - StringBuilder sb = new StringBuilder(); - if (context.Statements.ContainsKey(FunctionBodyEntryBlock.Address.Value)) - { - FunctionDefinition def; - var oldDecompilingStruct = context.DecompilingStruct; - var oldReplacements = context.ArgumentReplacements; - - if (Subtype == FunctionType.Struct) - context.DecompilingStruct = true; - else - { - context.DecompilingStruct = false; - sb.Append("function"); - if (IsStatement) - { - sb.Append(" "); - - // For further optimization, we could *probably* create a dictionary that's just flipped KVPs (assuming there are no dup. values). - // Doing so would save the need for LINQ and what-not. Not that big of an issue, but still an option. - Dictionary subFuncs = context.GlobalContext.Data.KnownSubFunctions; - KeyValuePair kvp = subFuncs.FirstOrDefault(x => x.Value == Function); - - // If we found an associated sub-function, use the key as the name. - if (kvp.Key != null) - sb.Append(kvp.Key); - else - { - //Attempt to find function names before going with the last functions' name - bool gotFuncName = false; - if (Function.Name.Content.StartsWith("gml_Script_")) - { - string funcName = Function.Name.Content.Substring("gml_Script_".Length); - if (context.Statements[0].Any(x => x is AssignmentStatement && (x as AssignmentStatement).Destination.Var.Name.Content == funcName)) - { - sb.Append(funcName); - gotFuncName = true; - } - } - if(!gotFuncName) - sb.Append((context.Statements[0].Last() as AssignmentStatement).Destination.Var.Name.Content); - } - } - sb.Append("("); - for (int i = 0; i < FunctionBodyCodeEntry.ArgumentsCount; ++i) - { - if (i != 0) - sb.Append(", "); - sb.Append("argument"); - sb.Append(i); - } - sb.Append(") "); - if (Subtype == FunctionType.Constructor) - sb.Append("constructor "); - sb.Append("//"); - sb.Append(Function.Name.Content); - } - - var statements = context.Statements[FunctionBodyEntryBlock.Address.Value]; - int numNotReturn = statements.FindAll(stmt => !(stmt is ReturnStatement)).Count; - - if (numNotReturn > 0 || Subtype != FunctionType.Struct) - { - sb.Append("\n"); - sb.Append(context.Indentation); - sb.Append("{\n"); - context.IndentationLevel++; - context.ArgumentReplacements = Arguments; - - int count = 0; - foreach (Statement stmt in statements) - { - count++; - if ((Subtype != FunctionType.Function && stmt is ReturnStatement) || (stmt is AssignmentStatement assign && assign.IsStructDefinition)) - continue; - - sb.Append(context.Indentation); - - // See #614 - // This is not the place to monkey patch this - // issue, but it's like 2am and quite frankly - // I don't care anymore. - def = null; - if (stmt is FunctionDefinition) - def = stmt as FunctionDefinition; - else if (stmt is TempVarAssignmentStatement reference && reference.Value is FunctionDefinition) - def = reference.Value as FunctionDefinition; - - if (def?.Function == Function) - { - //sb.Append("// Error decompiling function: function contains its own declaration???\n"); - sb.Append("\n"); - break; - } - else - { - sb.Append(stmt.ToString(context)); - if (Subtype == FunctionType.Struct && count < numNotReturn) - sb.Append(","); - } - sb.Append("\n"); - } - context.ArgumentReplacements = oldReplacements; - context.IndentationLevel--; - sb.Append(context.Indentation); - sb.Append("}"); - if(!oldDecompilingStruct) - sb.Append("\n"); - } - else - sb.Append("{}"); - context.DecompilingStruct = oldDecompilingStruct; - } - else - { - sb.Append(Function.Name.Content); - } - return sb.ToString(); - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return suggestedType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.HLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.HLStatement.cs deleted file mode 100644 index 2b334c42f..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.HLStatement.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public abstract class HLStatement : Statement - { - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - throw new NotImplementedException(); - } - }; -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.HLSwitchCaseStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.HLSwitchCaseStatement.cs deleted file mode 100644 index d0acb1fc4..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.HLSwitchCaseStatement.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System.Collections.Generic; -using System.Text; -using UndertaleModLib.Util; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class HLSwitchCaseStatement : HLStatement - { - public List CaseExpressions; - public BlockHLStatement Block; - - public HLSwitchCaseStatement(List caseExpressions, BlockHLStatement block) - { - DebugUtil.Assert(caseExpressions.Count > 0, "Switch statement lacks any cases."); - this.CaseExpressions = caseExpressions; - this.Block = block; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - for (var i = 0; i < CaseExpressions.Count; i++) - CaseExpressions[i] = CaseExpressions[i]?.CleanExpression(context, block); - Block = Block?.CleanBlockStatement(context); - return this; - } - - public override string ToString(DecompileContext context) - { - StringBuilder sb = new StringBuilder(); - for (int i = 0; i < CaseExpressions.Count; i++) - { - Expression caseExpr = CaseExpressions[i]; - if (i != 0) - sb.Append(context.Indentation); - if (caseExpr != null) - sb.Append("case " + caseExpr.ToString(context) + ":\n"); - else - sb.Append("default:\n"); - } - if (Block.Statements.Count > 0) - { - sb.Append(Block.ToString(context, false, true)); - } - return sb.ToString(); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.HLSwitchStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.HLSwitchStatement.cs deleted file mode 100644 index a188853f0..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.HLSwitchStatement.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Collections.Generic; -using System.Text; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class HLSwitchStatement : HLStatement - { - private Expression SwitchExpression; - private List Cases; - - public HLSwitchStatement(Expression switchExpression, List cases) - { - this.SwitchExpression = switchExpression; - this.Cases = cases; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - SwitchExpression = SwitchExpression?.CleanExpression(context, block); - for (var i = 0; i < Cases.Count; i++) - Cases[i] = Cases[i]?.CleanStatement(context, block) as HLSwitchCaseStatement; - - return this; - } - - public override string ToString(DecompileContext context) - { - StringBuilder sb = new StringBuilder(); - sb.Append("switch " + SwitchExpression.ToString(context) + "\n"); - sb.Append(context.Indentation + "{\n"); - context.IndentationLevel++; - foreach (var casee in Cases) - { - sb.Append(context.Indentation + casee.ToString(context)); - sb.Append('\n'); - } - context.IndentationLevel--; - sb.Append(context.Indentation + "}\n"); - return sb.ToString(); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.IfHLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.IfHLStatement.cs deleted file mode 100644 index 96152f7d6..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.IfHLStatement.cs +++ /dev/null @@ -1,174 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class IfHLStatement : HLStatement - { - public Expression condition; - public BlockHLStatement trueBlock; - public List> elseConditions = new List>(); - public BlockHLStatement falseBlock; - - public bool HasElseIf { get => elseConditions != null && elseConditions.Count > 0; } - public bool HasElse { get => falseBlock != null && falseBlock.Statements.Count > 0; } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - condition = condition?.CleanExpression(context, block); - trueBlock = trueBlock?.CleanBlockStatement(context); - falseBlock = falseBlock?.CleanBlockStatement(context); - - int myIndex = block.Statements.IndexOf(this); - - // Prevents if (tempvar - 1), when it should be if (tempvar) - if ((condition as ExpressionCast)?.Argument is ExpressionTwo && myIndex > 0) - { - ExpressionTwo conditionExpression = ((ExpressionCast)condition).Argument as ExpressionTwo; - Statement lastStatement = block.Statements[myIndex - 1]; - - if (conditionExpression.Argument1 is ExpressionTempVar tempVar && lastStatement is TempVarAssignmentStatement statement && conditionExpression.Argument2 is ExpressionConstant - && tempVar.Var.Var == statement.Var.Var) - condition = conditionExpression.Argument1; - } - - // Use if -> else if, instead of nesting ifs. - while (falseBlock.Statements.Count == 1 && falseBlock.Statements[0] is IfHLStatement nestedIf) // The condition of one if statement. - { - elseConditions.Add(new ValueTuple(nestedIf.condition, nestedIf.trueBlock)); - elseConditions.AddRange(nestedIf.elseConditions); - falseBlock = nestedIf.falseBlock; - } - - // Collapse conditions into && + || + ternary. - if (HasElse && !HasElseIf && trueBlock.Statements.Count == 1 && falseBlock.Statements.Count == 1) - { - TempVarAssignmentStatement trueAssign = trueBlock.Statements[0] as TempVarAssignmentStatement; - TempVarAssignmentStatement falseAssign = falseBlock.Statements[0] as TempVarAssignmentStatement; - - if (trueAssign != null && falseAssign != null && trueAssign.Var.Var == falseAssign.Var.Var) - { - TempVarAssignmentStatement newAssign; - if (TestBoolLike(trueAssign.Value, true) && (falseAssign.Var.Var.Type == UndertaleInstruction.DataType.Boolean || falseAssign.Value.Type == UndertaleInstruction.DataType.Boolean)) - newAssign = new TempVarAssignmentStatement(trueAssign.Var, new ExpressionTwoSymbol("||", UndertaleInstruction.DataType.Boolean, condition, falseAssign.Value)); - else if (TestBoolLike(falseAssign.Value, false) && (trueAssign.Var.Var.Type == UndertaleInstruction.DataType.Boolean || trueAssign.Value.Type == UndertaleInstruction.DataType.Boolean)) - newAssign = new TempVarAssignmentStatement(trueAssign.Var, new ExpressionTwoSymbol("&&", UndertaleInstruction.DataType.Boolean, condition, trueAssign.Value)); - else - newAssign = new TempVarAssignmentStatement(trueAssign.Var, new ExpressionTernary(trueAssign.Value.Type, condition, trueAssign.Value, falseAssign.Value)); - - context.TempVarMap[newAssign.Var.Var.Name] = newAssign; - return newAssign; - } - } - - // Create repeat loops. - if (HasElse && !HasElseIf && trueBlock.Statements.Count == 0 && falseBlock.Statements.Count == 1 && falseBlock.Statements[0] is LoopHLStatement - && condition is ExpressionCompare && myIndex > 0 && block.Statements[myIndex - 1] is TempVarAssignmentStatement) - { - ExpressionCompare compareCondition = condition as ExpressionCompare; - LoopHLStatement loop = falseBlock.Statements[0] as LoopHLStatement; - TempVarAssignmentStatement priorAssignment = block.Statements[myIndex - 1] as TempVarAssignmentStatement; - Expression startValue = priorAssignment.Value; - - List loopCode = loop.Block.Statements; - if (priorAssignment != null && - loop.IsWhileLoop && - loop.Condition == null && - //loopCode.Count > 2 && - compareCondition.Opcode == UndertaleInstruction.ComparisonType.LTE && - TestNumber(compareCondition.Argument2, 0) && - compareCondition.Argument1.ToString(context) == startValue.ToString(context)) - { - TempVarAssignmentStatement repeatAssignment = null; - IfHLStatement loopCheckStatement = null; - bool hasBreak = false; - List insideElseBlock = null; - - if (loopCode.Count > 2) - { - repeatAssignment = loopCode[loopCode.Count - 2] as TempVarAssignmentStatement; - loopCheckStatement = loopCode[loopCode.Count - 1] as IfHLStatement; - } - - if ((repeatAssignment == null || loopCheckStatement == null) && - loopCode[loopCode.Count - 1] is IfHLStatement wrapperIfStatement && - wrapperIfStatement.HasElse - ) // single-level break detection - { - insideElseBlock = wrapperIfStatement.falseBlock.Statements; - wrapperIfStatement.trueBlock.Statements.Add(new BreakHLStatement()); - if (insideElseBlock.Count > 2) - { - repeatAssignment = insideElseBlock[insideElseBlock.Count - 2] as TempVarAssignmentStatement; - loopCheckStatement = insideElseBlock[insideElseBlock.Count - 1] as IfHLStatement; - hasBreak = true; - } - } - - if (repeatAssignment != null && loopCheckStatement != null) - { // tempVar = (tempVar -1); -> if (tempVar) continue -> break - - // if (tempVar) {continue} else {empty} - - if (loopCheckStatement.trueBlock.Statements.Count == 1 - && !loopCheckStatement.HasElse - && !loopCheckStatement.HasElseIf - && loopCheckStatement.trueBlock.Statements[0] is ContinueHLStatement - && loopCheckStatement.condition.ToString(context) == repeatAssignment.Value.ToString(context)) - { - (hasBreak ? insideElseBlock : loopCode).Remove(repeatAssignment); - (hasBreak ? insideElseBlock : loopCode).Remove(loopCheckStatement); - block.Statements.Remove(priorAssignment); - - loop.RepeatStartValue = startValue; - return loop; - } - } - } - } - - for (int i = 0; i < elseConditions.Count; i++) - { - var pair = elseConditions[i]; - pair.Item1 = pair.Item1?.CleanExpression(context, block); - pair.Item2 = pair.Item2?.CleanBlockStatement(context); - } - - - return this; - } - - public override string ToString(DecompileContext context) - { - StringBuilder sb = new StringBuilder(); - string cond; - if (condition is ExpressionCompare) - cond = (condition as ExpressionCompare).ToStringWithParen(context); - else - cond = condition.ToString(context); - sb.Append("if " + cond + "\n"); - sb.Append(context.Indentation + trueBlock.ToString(context)); - - foreach (ValueTuple tuple in elseConditions) - { - if (tuple.Item1 is ExpressionCompare) - cond = (tuple.Item1 as ExpressionCompare).ToStringWithParen(context); - else - cond = tuple.Item1.ToString(context); - sb.Append("\n" + context.Indentation + "else if " + cond + "\n"); - sb.Append(context.Indentation + tuple.Item2.ToString(context)); - } - - if (HasElse) - { - sb.Append("\n" + context.Indentation + "else\n"); - sb.Append(context.Indentation + falseBlock.ToString(context)); - } - return sb.ToString(); - } - }; -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.IndirectFunctionCall.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.IndirectFunctionCall.cs deleted file mode 100644 index 5825f2d26..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.IndirectFunctionCall.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class IndirectFunctionCall : FunctionCall - { - internal Expression FunctionThis; - internal Expression Function; - - public IndirectFunctionCall(Expression func_this, Expression func, UndertaleInstruction.DataType returnType, List args) : base(returnType, args) - { - this.FunctionThis = func_this; - this.Function = func; - } - - public override string ToString(DecompileContext context) - { - StringBuilder argumentString = new StringBuilder(); - foreach (Expression exp in Arguments) - { - if (argumentString.Length > 0) - argumentString.Append(", "); - argumentString.Append(exp.ToString(context)); - } - - if (Function is FunctionDefinition) - return String.Format("{0}({1})", Function.ToString(context), argumentString.ToString()); - - return String.Format("{0}.{1}({2})", FunctionThis.ToString(context), Function.ToString(context), argumentString.ToString()); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - FunctionThis = (Expression)FunctionThis?.CleanStatement(context, block); - Function = (Expression)Function?.CleanStatement(context, block); - for (var i = 0; i < Arguments.Count; i++) - Arguments[i] = Arguments[i]?.CleanExpression(context, block); - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - FunctionThis.DoTypePropagation(context, AssetIDType.GameObject); - Function.DoTypePropagation(context, suggestedType); - AssetIDType[] args = new AssetIDType[Arguments.Count]; - for (var i = 0; i < Arguments.Count; i++) - Arguments[i].DoTypePropagation(context, args[i]); - - return suggestedType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.LoopHLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.LoopHLStatement.cs deleted file mode 100644 index c80248d4b..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.LoopHLStatement.cs +++ /dev/null @@ -1,146 +0,0 @@ -using System; -using System.Linq; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class LoopHLStatement : HLStatement - { - // Loop block - public BlockHLStatement Block; - - // While / for condition - public Statement Condition; - - // While loop - public bool IsWhileLoop { get => !IsForLoop && !IsRepeatLoop && !IsDoUntilLoop; } - public bool IsDoUntilLoop; - - // For loop - public bool IsForLoop { get => InitializeStatement != null && StepStatement != null && Condition != null; } - public AssignmentStatement InitializeStatement; - public AssignmentStatement StepStatement; - - // Repeat loop - public bool IsRepeatLoop { get => RepeatStartValue != null; } - public Statement RepeatStartValue; - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - int myIndex = block.Statements.IndexOf(this); - Block = Block?.CleanBlockStatement(context); - Condition = Condition?.CleanStatement(context, block); - InitializeStatement = InitializeStatement?.CleanStatement(context, block) as AssignmentStatement; - StepStatement = StepStatement?.CleanStatement(context, block) as AssignmentStatement; - RepeatStartValue = RepeatStartValue?.CleanStatement(context, block); - - if (IsWhileLoop) - { - // While loops have conditions. - if (Block.Statements.Count == 1) - { - Statement firstStatement = Block.Statements[0]; - - if (firstStatement is IfHLStatement) - { - IfHLStatement ifStatement = (IfHLStatement)firstStatement; - if (ifStatement.falseBlock is BlockHLStatement statement && statement.Statements.Count == 0 && !ifStatement.HasElseIf) - { - Condition = ifStatement.condition; - Block.Statements.Remove(firstStatement); // Remove if statement. - Block.Statements.InsertRange(0, ifStatement.trueBlock.Statements); // Add if contents. - } - } - } - - // If it's been shoved into an if else, take it out of there. - //TODO: This is disabled until further notice. The problem is that for loops that do this can use continues. The issue there is we don't have an easy way to remove the increment from the decompile at the moment. - /*if (Block.Statements.Count > 0 && Block.Statements.Last() is IfHLStatement) - { - IfHLStatement ifStatement = Block.Statements.Last() as IfHLStatement; - BlockHLStatement blockStatement = ifStatement.falseBlock as BlockHLStatement; - - if (blockStatement != null && blockStatement.Statements.Count > 0 && blockStatement.Statements.Last() is ContinueHLStatement) - { - blockStatement.Statements.Remove(blockStatement.Statements.Last()); - Block.Statements.AddRange(blockStatement.Statements); - ifStatement.falseBlock.Statements.Clear(); - } - }*/ - - // Remove redundant continues at the end of the loop. - if (Block.Statements.Count > 0) - { - Statement lastStatement = Block.Statements.Last(); - if (lastStatement is ContinueHLStatement) - Block.Statements.Remove(lastStatement); - } - - // Convert into a for loop. - if (myIndex > 0 && block.Statements[myIndex - 1] is AssignmentStatement assignment - && Block.Statements.Count > 0 && Block.Statements.Last() is AssignmentStatement increment - && Condition is ExpressionCompare compare) - { - UndertaleVariable variable = assignment.Destination.Var; - - if (((compare.Argument1 is ExpressionVar exprVar && (exprVar.Var == variable)) || (compare.Argument2 is ExpressionVar exprVar2 && (exprVar2.Var == variable))) && increment.Destination.Var == variable) - { - block.Statements.Remove(assignment); - InitializeStatement = assignment; - Block.Statements.Remove(increment); - StepStatement = increment; - } - } - - if (Condition == null) - { - if (Block.Statements.Last() is IfHLStatement) - { - IfHLStatement ifStatement = Block.Statements.Last() as IfHLStatement; - if (ifStatement.trueBlock.Statements.Count == 0 && ifStatement.falseBlock.Statements.Count == 1 && ifStatement.falseBlock.Statements[0] is ContinueHLStatement && ifStatement.elseConditions.Count == 0) - { - IsDoUntilLoop = true; - Condition = ifStatement.condition; - Block.Statements.Remove(ifStatement); - } - } - } - } - - return this; - } - - public override string ToString(DecompileContext context) - { - if (IsRepeatLoop) - { - bool needsParen = RepeatStartValue is ExpressionConstant || RepeatStartValue is ExpressionCompare; - return "repeat " + (needsParen ? "(" : "") + RepeatStartValue.ToString(context) + (needsParen ? ")" : "") + "\n" + context.Indentation + Block.ToString(context); - } - - if (IsForLoop) - { - string conditionStr = Condition.ToString(context); // Cut off parenthesis for the condition. - if (conditionStr.StartsWith("(", StringComparison.InvariantCulture) && conditionStr.EndsWith(")", StringComparison.InvariantCulture)) - conditionStr = conditionStr.Substring(1, conditionStr.Length - 2); - - return "for (" + InitializeStatement.ToString(context) + "; " + conditionStr + "; " + StepStatement.ToString(context) + ")\n" + context.Indentation + Block.ToString(context); - } - - string cond; - if (Condition is ExpressionCompare) - cond = (Condition as ExpressionCompare).ToStringWithParen(context); - else if (IsDoUntilLoop) - cond = Condition?.ToString(context) ?? "(false)"; - else - cond = Condition != null ? Condition.ToString(context) : "(true)"; - - if (IsDoUntilLoop) - return "do\n" + context.Indentation + Block.ToString(context, false) + " until " + cond + ";"; - - return "while " + cond + "\n" + context.Indentation + Block.ToString(context); - } - }; -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.OperationEqualsStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.OperationEqualsStatement.cs deleted file mode 100644 index 857a4548c..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.OperationEqualsStatement.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a high-level operation-equals statement, such as a += 1. - public class OperationEqualsStatement : Statement - { - public ExpressionVar Destination; - public UndertaleInstruction.Opcode Operation; - public Expression Value; - - public OperationEqualsStatement(ExpressionVar destination, UndertaleInstruction.Opcode operation, Expression value) - { - Destination = destination; - Operation = operation; - Value = value; - } - - public override string ToString(DecompileContext context) - { - return String.Format("{0} {1}= {2}", Destination.ToString(context), Expression.OperationToPrintableString(Operation), Value.ToString(context)); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Value = Value?.CleanExpression(context, block); - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Value.DoTypePropagation(context, Destination.DoTypePropagation(context, suggestedType)); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.PopEnvStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.PopEnvStatement.cs deleted file mode 100644 index be3f2e783..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.PopEnvStatement.cs +++ /dev/null @@ -1,24 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a with statement ending (popping from or clearing the env stack). - // This is not seen in high-level output. - public class PopEnvStatement : Statement - { - public override string ToString(DecompileContext context) - { - return "popenv"; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return suggestedType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.PushEnvStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.PushEnvStatement.cs deleted file mode 100644 index 3abd091db..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.PushEnvStatement.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a with statement beginning (pushing to the env stack). - // This is not seen in high-level output. - public class PushEnvStatement : Statement - { - public Expression NewEnv; - - public PushEnvStatement(Expression newEnv) - { - this.NewEnv = newEnv; - } - - public override string ToString(DecompileContext context) - { - return "pushenv " + NewEnv; - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - NewEnv = NewEnv?.CleanExpression(context, block); - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - NewEnv.DoTypePropagation(context, AssetIDType.GameObject); - return suggestedType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.ReturnStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.ReturnStatement.cs deleted file mode 100644 index d0d0fa22c..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.ReturnStatement.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Linq; -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Represents a high-level return statement, or an exit in Studio version < 2 if there is no value. - public class ReturnStatement : Statement - { - public Expression Value; - - public ReturnStatement(Expression value) - { - Value = value; - } - - public override string ToString(DecompileContext context) - { - if (Value != null) - { - if (AssetTypeResolver.return_types.ContainsKey(context.TargetCode.Name.Content)) - Value.DoTypePropagation(context, AssetTypeResolver.return_types[context.TargetCode.Name.Content]); - if (context.GlobalContext.Data != null && !DecompileContext.GMS2_3) - { - // We might be decompiling a legacy script - resolve it's name - UndertaleScript script = context.GlobalContext.Data.Scripts.FirstOrDefault(x => x.Code == context.TargetCode); - if (script != null && AssetTypeResolver.return_types.ContainsKey(script.Name.Content)) - Value.DoTypePropagation(context, AssetTypeResolver.return_types[script.Name.Content]); - } - - string cleanVal = Value.ToString(context); - if (cleanVal.EndsWith("\n", StringComparison.InvariantCulture)) - cleanVal = cleanVal.Substring(0, cleanVal.Length - 1); - - return "return " + cleanVal + ";"; - } - else - return (context.GlobalContext.Data?.IsGameMaker2() ?? false ? "return;" : "exit"); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Value = Value?.CleanExpression(context, block); - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - return Value?.DoTypePropagation(context, suggestedType) ?? suggestedType; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.Statement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.Statement.cs deleted file mode 100644 index cb2cdd499..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.Statement.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - /// - /// Represents all kinds of high-level decompilation results, to be stringified at the end. - /// - public abstract class Statement - { - /// - /// Creates a string representation of the statement. - /// - /// The decompile context of the current code entry. - /// A string representation of the statement. - public abstract string ToString(DecompileContext context); - - - internal abstract AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType); - public abstract Statement CleanStatement(DecompileContext context, BlockHLStatement block); - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVar.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVar.cs deleted file mode 100644 index 27aed3248..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVar.cs +++ /dev/null @@ -1,27 +0,0 @@ -using UndertaleModLib.Models; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - /// - /// Represents an unnamed value that gets passed around the stack. - /// Theoretically, these should be cleaned up and removed by the end of decompilation. - /// - public class TempVar - { - public string Name; - public UndertaleInstruction.DataType Type; - internal AssetIDType AssetType; - - public TempVar(int id) - { - Name = MakeTemporaryVarName(id); - } - - public static string MakeTemporaryVarName(int id) - { - return "_temp_local_var_" + id; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVarAssignmentStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVarAssignmentStatement.cs deleted file mode 100644 index 539aa238a..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVarAssignmentStatement.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; - -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // Assignment statement for tempvars. - public class TempVarAssignmentStatement : Statement - { - public TempVarReference Var; - public Expression Value; - - public bool HasVarKeyword; - - public TempVarAssignmentStatement(TempVarReference var, Expression value) - { - Var = var; - Value = value; - } - - public override string ToString(DecompileContext context) - { - //TODO: why is there a GMS2Check for this? var exists in gms1.4 as well - if (context.GlobalContext.Data?.IsGameMaker2() ?? false && !HasVarKeyword && context.LocalVarDefines.Add(Var.Var.Name)) - HasVarKeyword = true; - - return String.Format("{0}{1} = {2}", (HasVarKeyword ? "var " : ""), Var.Var.Name, Value.ToString(context)); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - Value = Value?.CleanExpression(context, block); - - if (Var != null && Var.Var != null && Var.Var.Name != null) - { - if ((Value as ExpressionTempVar)?.Var?.Var?.Name == Var.Var.Name) // This is literally set to itself. No thank you. - { - block.Statements.Remove(context.TempVarMap[Var.Var.Name]); - return context.TempVarMap[Var.Var.Name].CleanStatement(context, block); - } - - context.TempVarMap[Var.Var.Name] = this; - } - return this; - } - - internal override AssetIDType DoTypePropagation(DecompileContext context, AssetIDType suggestedType) - { - if (Var.Var.AssetType == AssetIDType.Other) - Var.Var.AssetType = suggestedType; - return Value.DoTypePropagation(context, Var.Var.AssetType); - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVarReference.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVarReference.cs deleted file mode 100644 index c8449e3c7..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.TempVarReference.cs +++ /dev/null @@ -1,15 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - // A reference class for tempvars. - public class TempVarReference - { - public TempVar Var; - - public TempVarReference(TempVar var) - { - Var = var; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/Decompiler/Instructions/Decompiler.WithHLStatement.cs b/UndertaleModLib/Decompiler/Instructions/Decompiler.WithHLStatement.cs deleted file mode 100644 index de97e1ae8..000000000 --- a/UndertaleModLib/Decompiler/Instructions/Decompiler.WithHLStatement.cs +++ /dev/null @@ -1,22 +0,0 @@ -namespace UndertaleModLib.Decompiler; - -public static partial class Decompiler -{ - public class WithHLStatement : HLStatement - { - public Expression NewEnv; - public BlockHLStatement Block; - - public override string ToString(DecompileContext context) - { - return "with (" + NewEnv.ToString(context) + ")\n" + context.Indentation + Block.ToString(context); - } - - public override Statement CleanStatement(DecompileContext context, BlockHLStatement block) - { - NewEnv = NewEnv?.CleanExpression(context, block); - Block = Block?.CleanBlockStatement(context); - return this; - } - } -} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/Definitions/deltarune.json b/UndertaleModLib/GameSpecificData/Definitions/deltarune.json new file mode 100644 index 000000000..ab08e0218 --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Definitions/deltarune.json @@ -0,0 +1,14 @@ +{ + "LoadOrder": 1, + "Conditions": [ + { + "ConditionKind": "DisplayName.Regex", + "Value": "(?i)^SURVEY_PROGRAM$" + }, + { + "ConditionKind": "DisplayName.Regex", + "Value": "(?i)^deltarune" + } + ], + "UnderanalyzerFilename": "deltarune.json" +} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/Definitions/gamemaker.json b/UndertaleModLib/GameSpecificData/Definitions/gamemaker.json new file mode 100644 index 000000000..dcf9cae1e --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Definitions/gamemaker.json @@ -0,0 +1,9 @@ +{ + "LoadOrder": 0, + "Conditions": [ + { + "ConditionKind": "Always" + } + ], + "UnderanalyzerFilename": "gamemaker.json" +} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/Definitions/undertale.json b/UndertaleModLib/GameSpecificData/Definitions/undertale.json new file mode 100644 index 000000000..3f63150ee --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Definitions/undertale.json @@ -0,0 +1,10 @@ +{ + "LoadOrder": 1, + "Conditions": [ + { + "ConditionKind": "DisplayName.Regex", + "Value": "(?i)^undertale" + } + ], + "UnderanalyzerFilename": "undertale.json" +} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/README.txt b/UndertaleModLib/GameSpecificData/README.txt new file mode 100644 index 000000000..d29b42d13 --- /dev/null +++ b/UndertaleModLib/GameSpecificData/README.txt @@ -0,0 +1,5 @@ +This folder contains data for specific games, to improve the modding experience when using certain features. + +Games are defined in the "Definitions" sub-folder, where they are given conditions to match the game(s) they target. Any JSON files from this folder are loaded automatically, if available. + +GML decompiler configs are contained within the "Underanalyzer" sub-folder, referenced from the original definition files. (These are loaded on-demand.) diff --git a/UndertaleModLib/GameSpecificData/Underanalyzer/deltarune.json b/UndertaleModLib/GameSpecificData/Underanalyzer/deltarune.json new file mode 100644 index 000000000..e2852c51f --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Underanalyzer/deltarune.json @@ -0,0 +1,879 @@ +{ + "Types": { + "Enums": { + }, + "Constants": { + }, + "General": { + "Deltarune.Asset.ZeroOrSprite": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "MatchNot", + "ConditionalType": "Integer", + "ConditionalValue": "0" + }, + "Asset.Sprite" + ] + }, + { + "MacroType": "Match", + "ConditionalType": "Integer", + "ConditionalValue": "0" + } + ] + }, + "Deltarune.Asset.OneOrSprite": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "MatchNot", + "ConditionalType": "Integer", + "ConditionalValue": "1" + }, + "Asset.Sprite" + ] + }, + { + "MacroType": "Match", + "ConditionalType": "Integer", + "ConditionalValue": "1" + } + ] + }, + "Deltarune.Asset.ZeroOneOrSprite": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "MatchNot", + "ConditionalType": "Integer", + "ConditionalValue": "0" + }, + { + "MacroType": "MatchNot", + "ConditionalType": "Integer", + "ConditionalValue": "1" + } + ] + }, + "Asset.Sprite" + ] + }, + { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Match", + "ConditionalType": "Integer", + "ConditionalValue": "0" + }, + { + "MacroType": "Match", + "ConditionalType": "Integer", + "ConditionalValue": "1" + } + ] + } + ] + }, + "Deltarune.Asset.ZeroOrObject": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "MatchNot", + "ConditionalType": "Integer", + "ConditionalValue": "0" + }, + "Asset.Object" + ] + }, + { + "MacroType": "Match", + "ConditionalType": "Integer", + "ConditionalValue": "0" + } + ] + } + } + }, + "GlobalNames": { + "Variables": { + "actor": "Asset.Object", + "attachedobj": "Asset.Object", + "usprite": "Asset.Sprite", + "rsprite": "Asset.Sprite", + "dsprite": "Asset.Sprite", + "lsprite": "Asset.Sprite", + "utsprite": "Asset.Sprite", + "rtsprite": "Asset.Sprite", + "dtsprite": "Asset.Sprite", + "ltsprite": "Asset.Sprite", + "idlesprite": "Asset.Sprite", + "hurtsprite": "Asset.Sprite", + "sparedsprite": "Asset.Sprite", + "sprite_palette": "Asset.Sprite", + "smsprite": "Asset.Sprite", + "menuSprite": "Asset.Sprite", + "chsprite": "Asset.Sprite", + "character_sprite": "Asset.Sprite", + "button_sprite": "Asset.Sprite", + "_sprite": "Asset.Sprite", + "thissprite": "Asset.Sprite", + "slidesprite": "Asset.Sprite", + "contentsprite": "Asset.Sprite", + "timer_sprite": "Asset.Sprite", + "head_sprite": "Asset.Sprite", + "pilot_sprite": "Asset.Sprite", + "kr_sprite": "Asset.Sprite", + "su_sprite": "Asset.Sprite", + "ra_sprite": "Asset.Sprite", + "kris_sprite": "Asset.Sprite", + "ral_sprite": "Asset.Sprite", + "sussprite": "Asset.Sprite", + "hand_sprite": "Asset.Sprite", + "touchsprite": "Asset.Sprite", + "car_sprite": "Asset.Sprite", + "hsprite": "Asset.Sprite", + "vsprite": "Asset.Sprite", + "normalsprite": "Asset.Sprite", + "actreadysprite": "Asset.Sprite", + "actsprite": "Asset.Sprite", + "defendsprite": "Asset.Sprite", + "attackreadysprite": "Asset.Sprite", + "attacksprite": "Asset.Sprite", + "itemsprite": "Asset.Sprite", + "itemreadysprite": "Asset.Sprite", + "spellreadysprite": "Asset.Sprite", + "spellsprite": "Asset.Sprite", + "defeatsprite": "Asset.Sprite", + "victorysprite": "Asset.Sprite", + "handSprite": "Asset.Sprite", + "_headsprite": "Asset.Sprite", + "headsprite": "Asset.Sprite", + "onionsprite": "Asset.Sprite", + "leftTurnSprite": "Asset.Sprite", + "rightTurnSprite": "Asset.Sprite", + "hurt_character_sprite": "Asset.Sprite", + "lastSprite": "Asset.Sprite", + "mySprite": "Asset.Sprite", + "particlesprite": "Asset.Sprite", + "second_sprite": "Asset.Sprite", + "shopkeepsprite": "Asset.Sprite", + "heartsprite": "Asset.Sprite", + "sabersprite": "Asset.Sprite", + "rimsprite": "Asset.Sprite", + "cursor_sprite": "Asset.Sprite", + "s_sprite": "Asset.Sprite", + "queen_sprite": "Asset.Sprite", + "customSprite": "Asset.Sprite", + "indsprite": "Asset.Sprite", + "writerimg": "Asset.Sprite", + "partsprite": "Asset.Sprite", + "shieldpiece_sprite_index": "Asset.Sprite", + "doorSound": "Asset.Sound", + "doorSound2": "Asset.Sound", + "writersnd": "Asset.Sound", + "batmusic": "Asset.Sound", + "currentsong": "Asset.Sound", + "color": "Constant.Color", + "targetColor": "Constant.Color", + "startColor": "Constant.Color", + "basecolor": "Constant.Color", + "override_color": "Constant.Color", + "text_color": "Constant.Color", + "mycolor": "Constant.Color", + "xcolor": "Constant.Color", + "chosencolor": "Constant.Color", + "flashcolor": "Constant.Color", + "acidColor": "Constant.Color", + "linecolor": "Constant.Color", + "_itemTextColor": "Constant.Color", + "dcolor": "Constant.Color", + "particlecolor": "Constant.Color", + "bcolor": "Constant.Color", + "startcolor": "Constant.Color", + "start_color": "Constant.Color", + "end_color": "Constant.Color", + "play_color": "Constant.Color", + "not_color": "Constant.Color", + "floorShadowColor": "Constant.Color", + "frontShadowColor": "Constant.Color", + "nowcolor": "Constant.Color", + "reccolor": "Constant.Color", + "arrowcolor": "Constant.Color", + "housecolor": "Constant.Color", + "wincolor": "Constant.Color", + "poisoncolor": "Constant.Color", + "circle1color": "Constant.Color", + "smcolor": "Constant.Color", + "blend": "Constant.Color", + "menuTextColor": "Constant.Color", + "menuTextColorUnselectable": "Constant.Color", + "menuTextColorHover": "Constant.Color", + "menuTextColorInactive": "Constant.Color", + "menuTextColorSelected": "Constant.Color", + "optionCommentAColor": "Constant.Color", + "optionCommentBColor": "Constant.Color", + "optionCommentCColor": "Constant.Color", + "menuHeaderColor": "Constant.Color", + "hpcolor": "Constant.Color", + "gamepad_controls": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "ArrayInit", + "Macro": "Constant.GamepadButton" + }, + "Constant.GamepadButton" + ] + }, + "pieceColours": { + "MacroType": "ArrayInit", + "Macro": "Constant.Color" + }, + "textsound": "Asset.Sound", + "coasterSprite": "Asset.Sprite", + "usprite_blush": "Asset.Sprite", + "dsprite_blush": "Asset.Sprite", + "rsprite_blush": "Asset.Sprite", + "lsprite_blush": "Asset.Sprite", + "specialsprite": "Asset.Sprite", + "default_sprite_front": "Asset.Sprite", + "default_sprite_back": "Asset.Sprite", + "hurt_sprite_front": "Asset.Sprite", + "hurt_sprite_back": "Asset.Sprite", + "_spr": "Asset.Sprite", + "current_sprites": "Asset.Sprite", + "fireworksprite": "Asset.Sprite", + "recruitSprite": "Asset.Sprite", + "pic": "Asset.Sprite", + "spriteindex1": "Asset.Sprite", + "spriteindex2": "Asset.Sprite", + "item0pic": "Asset.Sprite", + "item1pic": "Asset.Sprite", + "item2pic": "Asset.Sprite", + "item3pic": "Asset.Sprite", + "endanimation": "Asset.Sprite", + "sourceobject": "Asset.Object", + "_instruments": "Asset.Sound", + "_instrumentsB": "Asset.Sound", + "_instrumentsAlt": "Asset.Sound", + "_border_image": "Asset.Sprite", + "addison_sprites": "Asset.Sprite", + "sprite_type": "Asset.Sprite", + "krspr": "Asset.Sprite", + "suspr": "Asset.Sprite", + "raspr": "Asset.Sprite", + "actor_startsprite": "Asset.Sprite", + "actor_endsprite": "Asset.Sprite", + "msprite": "Asset.Sprite", + "layersprites": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "ArrayInit", + "Macro": "Asset.Sprite" + }, + "Asset.Sprite" + ] + }, + "pushSound": "Asset.Sound", + "puzzle_icon": "Asset.Sprite", + "firstsound": "Asset.Sound", + "lastsound": "Asset.Sound", + "sparesprite": "Asset.Sprite", + "_rollSprites": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "ArrayInit", + "Macro": "Asset.Sprite" + }, + "Asset.Sprite" + ] + }, + "_sprites": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "ArrayInit", + "Macro": "Asset.Sprite" + }, + "Asset.Sprite" + ] + }, + "_spritesTea": { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "ArrayInit", + "Macro": "Asset.Sprite" + }, + "Asset.Sprite" + ] + }, + "voiceclips": "Asset.Sound", + "colClose": "Constant.Color", + "colFar": "Constant.Color", + "heroobj": "Asset.Object", + "facetype": "Asset.Sprite", + "face": "Asset.Sprite", + "_character": "Asset.Object", + "_charinstance": "Asset.Object", + "charinstance": "Asset.Object", + "sprite": "Deltarune.Asset.ZeroOrSprite", + "victorySprite": "Deltarune.Asset.ZeroOrSprite", + "topsprite": "Deltarune.Asset.ZeroOrSprite", + "frozensprite": "Deltarune.Asset.ZeroOrSprite", + "monsterinstancetype": "Deltarune.Asset.ZeroOrObject", + "mask_index": "Deltarune.Asset.OneOrSprite", + "sus_sprite": "Deltarune.Asset.ZeroOrSprite", + "landsprite": "Deltarune.Asset.ZeroOrSprite", + "jumpsprite": "Deltarune.Asset.ZeroOrSprite", + "shieldpiece_alpha": "Deltarune.Asset.ZeroOneOrSprite", + "parent": "Asset.Object", + "box": "Asset.Object", + "roomchoice": "Asset.Room", + "button0": "Constant.GamepadButton", + "button1": "Constant.GamepadButton", + "button2": "Constant.GamepadButton", + "_control": "Constant.GamepadButton", + "new_gamepad_key": "Constant.GamepadButton", + "input_k": "Constant.VirtualKey", + "input_g": "Constant.GamepadButton", + "COL_A": "Constant.Color", + "COL_B": "Constant.Color", + "mybutton": "Constant.VirtualKey", + "bird_color": "Constant.Color", + "_colorA": "Constant.Color", + "_colorB": "Constant.Color", + "drawcolor": "Constant.Color", + "fadecolor": "Constant.Color", + "lettercolor": "Constant.Color", + "bossObject": "Asset.Object", + "pushChar": "Asset.Object", + "rotator_target": "Asset.Object", + "controlled": "Asset.Object", + "tiletype": "Asset.Object", + "simcity": "Asset.Object", + "returnroom": "Asset.Room", + "target_char": "Id.InstanceOrObject", + "writergod": "Asset.Object", + "source": "Id.InstanceOrObject", + "sneo": "Id.InstanceOrObject", + "heartobj": "Asset.Object", + "swatchbc": "Asset.Object", + "swatch_bc": "Asset.Object", + "master": "Id.InstanceOrObject", + "cutscene_master": "Id.InstanceOrObject", + "teacupTarget": "Asset.Object", + "_teacups": "Asset.Object" + }, + "FunctionArguments": { + "snd_play": [ "Asset.Sound" ], + "snd_stop": [ "Asset.Sound" ], + "snd_is_playing": [ "Asset.Sound" ], + "snd_volume": [ "Asset.Sound", null, null ], + "snd_pitch": [ "Asset.Sound", null ], + "snd_pitch_time": [ "Asset.Sound", null, null ], + "snd_loop": [ "Asset.Sound" ], + "snd_pause": [ "Asset.Sound" ], + "scr_textsetup": [ "Asset.Font", "Constant.Color", null, null, null, null, null, "Asset.Sound" ], + "scr_marker": [ null, null, "Asset.Sprite" ], + "scr_dark_marker": [ null, null, "Asset.Sprite" ], + "scr_draw_background_ps4": [ "Asset.Sprite", null, null ], + "gml_Script_i_ex": [ "Asset.Object" ], + "gml_Script_safe_delete": [ "Asset.Object" ], + "gml_Script_scr_bulletspawner": [ null, null, "Asset.Object" ], + "gml_Script_snd_play": [ "Asset.Sound" ], + "gml_Script_snd_play_x": [ "Asset.Sound", null, null ], + "gml_Script_snd_stop": [ "Asset.Sound" ], + "gml_Script_snd_is_playing": [ "Asset.Sound" ], + "gml_Script_snd_play_pitch": [ "Asset.Sound", null ], + "gml_Script_snd_volume": [ "Asset.Sound", null, null ], + "gml_Script_snd_pitch": [ "Asset.Sound", null ], + "gml_Script_snd_pitch_time": [ "Asset.Sound", null, null ], + "gml_Script_snd_loop": [ "Asset.Sound" ], + "gml_Script_snd_pause": [ "Asset.Sound" ], + "gml_Script_c_soundplay": [ "Asset.Sound" ], + "gml_Script_c_soundplay_x": [ "Asset.Sound", null, null ], + "gml_Script_c_soundplay_wait": [ "Asset.Sound" ], + "gml_Script_c_sprite": [ "Asset.Sprite" ], + "gml_Script_c_jump_sprite": [ null, null, null, null, "Asset.Sprite", "Asset.Sprite" ], + "gml_Script_c_actortoobject": [ "Asset.Object" ], + "gml_Script_scr_pan_to_obj": [ "Asset.Object", null ], + "gml_Script_scr_pan_to_obj_ch1": [ "Asset.Object", null ], + "gml_Script_scr_marker": [ null, null, "Asset.Sprite" ], + "gml_Script_scr_marker_animated": { + "MacroType": "Union", + "Macros": [ + [ null, null, "Asset.Sprite" ], + [ null, null, "Asset.Sprite", null ] + ] + }, + "gml_Script_scr_dark_marker": [ null, null, "Asset.Sprite" ], + "gml_Script_scr_dark_marker_animated": { + "MacroType": "Union", + "Macros": [ + [ null, null, "Asset.Sprite" ], + [ null, null, "Asset.Sprite", null ] + ] + }, + "gml_Script_scr_dark_marker_depth": [ null, null, null, "Asset.Sprite" ], + "gml_Script_scr_battle_marker": [ null, null, "Asset.Sprite" ], + "gml_Script_scr_act_charsprite": [ null, "Asset.Sprite", null, null ], + "gml_Script_hexcolor": [ "Constant.Color" ], + "gml_Script_draw_sprite_ext_flash": [ "Asset.Sprite", null, null, null, null, null, null, "Constant.Color", null ], + "gml_Script_draw_background_ext": [ "Asset.Sprite", null, null, null, null, null, "Constant.Color", null ], + "gml_Script_draw_background_part_ext": [ "Asset.Sprite", null, null, null, null, null, null, null, null, "Constant.Color", null ], + "gml_Script_scr_draw_sprite_tiled_area": [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, "Constant.Color", null ], + "gml_Script_draw_monster_body_part": [ "Asset.Sprite", null, null, null ], + "gml_Script_draw_monster_body_part_ext": [ "Asset.Sprite", null, null, null, null, null, null, "Constant.Color", null ], + "gml_Script_draw_background_tiled_ext": [ "Asset.Sprite", null, null, null, null, "Constant.Color", null ], + "gml_Script_scr_draw_background_ps4": [ "Asset.Sprite", null, null ], + "gml_Script_scr_draw_sprite_crop_ext": [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, null, null ], + "gml_Script_scr_textsetup": [ "Asset.Font", "Constant.Color", null, null, null, null, null, "Asset.Sound" ], + "gml_Script_draw_sprite_ext_glow": { + "MacroType": "Union", + "Macros": [ + [ "Asset.Sprite", null, null, null, null, null, null, "Constant.Color", null ], + [ "Asset.Sprite", null, null, null, null, null, null, "Constant.Color", null, "Constant.Color" ] + ] + }, + "gml_Script_draw_sprite_part_ext_glow": { + "MacroType": "Union", + "Macros": [ + [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, "Constant.Color", null ], + [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, "Constant.Color", null, "Constant.Color" ] + ] + }, + "gml_Script_scr_draw_outline_ext": [ "Asset.Sprite", null, null, null, null, null, null, "Constant.Color", null, null ], + "gml_Script_scr_guardpeek": [ "Asset.Object" ], + "gml_Script_instance_create_ch1": [ null, null, "Asset.Object" ], + "gml_Script_snd_play_ch1": [ "Asset.Sound" ], + "gml_Script_snd_stop_ch1": [ "Asset.Sound" ], + "gml_Script_snd_is_playing_ch1": [ "Asset.Sound" ], + "gml_Script_snd_loop_ch1": [ "Asset.Sound" ], + "gml_Script_scr_marker_ch1": [ null, null, "Asset.Sprite" ], + "gml_Script_scr_dark_marker_ch1": [ null, null, "Asset.Sprite" ], + "gml_Script_draw_background_ext_ch1": [ "Asset.Sprite", null, null, null, null, null, "Constant.Color", null ], + "gml_Script_draw_background_part_ext_ch1": [ "Asset.Sprite", null, null, null, null, null, null, null, null, "Constant.Color", null ], + "gml_Script_draw_background_tiled_ext_ch1": [ "Asset.Sprite", null, null, null, null, "Constant.Color", null ], + "gml_Script_scr_draw_background_ps4_ch1": [ "Asset.Sprite", null, null ], + "gml_Script_scr_textsetup_ch1": [ "Asset.Font", "Constant.Color", null, null, null, null, null, "Asset.Sound" ], + "gml_Script_scr_custom_afterimage": [ "Asset.Object" ], + "gml_Script_scr_custom_afterimage_ext": [ "Asset.Object", "Asset.Sprite", null, null, null, null, null ], + "gml_Script_scr_following_afterimage": [ "Asset.Object", "Id.InstanceOrObject" ], + "gml_Script_c_var_instance": [ + null, + { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "character_sprite" + }, + { + "MacroType": "Match", + "ConditionalValue": "sprite_index" + }, + { + "MacroType": "Match", + "ConditionalValue": "head_sprite" + } + ] + }, + "Asset.Sprite" + ], + "gml_Script_c_delaycmd": { + "MacroType": "Union", + "Macros": [ + [ + null, + { + "MacroType": "Match", + "ConditionalValue": "sprite" + }, + "Asset.Sprite" + ], + [ + null, + { + "MacroType": "Match", + "ConditionalValue": "soundplay" + }, + "Asset.Sound" + ] + ] + }, + "gml_Script_scr_script_delayed": { + "MacroType": "Union", + "Macros": [ + [ + { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_snd_play" + }, + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_snd_volume" + }, + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_snd_play_pitch" + } + ] + }, + null, + "Asset.Sound" + ], + [ + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_scr_var" + }, + null, + { + "MacroType": "Match", + "ConditionalValue": "sprite_index" + }, + "Asset.Sprite" + ] + ] + }, + "gml_Script_c_script_instance": [ + null, + { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_snd_play" + }, + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_snd_volume" + }, + { + "MacroType": "Match", + "ConditionalValue": "gml_Script_snd_play_pitch" + } + ] + }, + null, + "Asset.Sound" + ], + "gml_Script_c_actorsetsprites": [ + null, + "Deltarune.Asset.ZeroOrSprite", + "Deltarune.Asset.ZeroOrSprite", + "Deltarune.Asset.ZeroOrSprite", + "Deltarune.Asset.ZeroOrSprite" + ], + "gml_Script_c_mus2": [ + { + "MacroType": "Match", + "ConditionalValue": "loopsfx" + }, + "Asset.Sound" + ], + "gml_Script_scr_room": [ "Asset.Room", null ], + "gml_Script_scr_stickto": [ "Id.InstanceOrObject", null ], + "gml_Script_c_stickto": [ "Id.InstanceOrObject", null ], + "gml_Script_scr_monster_add": [ null, "Asset.Object" ], + "gml_Script_scr_bullet_create": [ null, null, "Asset.Object" ], + "gml_Script_scr_childbullet": [ null, null, "Asset.Object" ] + }, + "FunctionReturn": { + "scr_getbuttonsprite": { + "MacroType": "Union", + "Macros": [ "Asset.Sprite", "Id.Instance" ] + }, + "gml_Script_scr_getbuttonsprite": { + "MacroType": "Union", + "Macros": [ "Asset.Sprite", "Id.Instance" ] + }, + "gml_Script_scr_getbuttonsprite_ch1": { + "MacroType": "Union", + "Macros": [ "Asset.Sprite", "Id.Instance" ] + } + } + }, + "CodeEntryNames": { + "gml_Script_scr_getbuttonsprite": { + "Variables": { + "control": "Constant.GamepadButton", + "button": { + "MacroType": "Union", + "Macros": [ "Constant.GamepadButton", "Id.Instance", "Asset.Sprite" ] + } + } + }, + "gml_Script_scr_getbuttonsprite_ch1": { + "Variables": { + "control": "Constant.GamepadButton", + "button": { + "MacroType": "Union", + "Macros": [ "Constant.GamepadButton", "Id.Instance", "Asset.Sprite" ] + } + } + }, + "gml_Object_obj_ch2_sceneex2_special_Draw_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_ch2_sceneex2_special_Step_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_dbulletcontroller_Step_0": { + "Variables": { + "color": "None" + } + }, + "gml_Script_scr_heartcolor": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_heart_Create_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_heart_Draw_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_heart_Step_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_sneo_fakeheart_Create_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_sneo_fakeheart_Destroy_0": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_sneo_fakeheart_Step_2": { + "Variables": { + "color": "None" + } + }, + "gml_Object_obj_cybercity_balloon_cheese_Create_0": { + "Variables": { + "blend": "None" + } + }, + "gml_Object_obj_cybercity_balloon_Create_0": { + "Variables": { + "blend": "None" + } + }, + "gml_Object_obj_shadowMaker_Step_2": { + "Variables": { + "sprite_index": "Deltarune.Asset.OneOrSprite" + } + }, + "gml_Script_scr_debug_keycheck": { + "Variables": { + "alt_key": { + "MacroType": "Union", + "Macros": [ + "Constant.GamepadButton", + "Id.Instance" + ] + } + } + }, + "gml_Object_obj_torielclass_event_Create_0": { + "Variables": { + "fruit": "Asset.Sprite" + } + }, + "gml_Script_scr_guardpeek": { + "Variables": { + "argument0": "Asset.Object" + } + }, + "gml_Object_obj_darkfountain_Draw_0": { + "Variables": { + "bg": "Asset.Sprite" + } + }, + "gml_Object_obj_darkfountain_ch1_Draw_0": { + "Variables": { + "bg": "Asset.Sprite" + } + }, + "gml_Object_obj_silhouette_cover_Create_0": { + "Variables": { + "top": "Asset.Sprite" + } + }, + "gml_Object_obj_teacupParallaxer_Create_0": { + "Variables": { + "big": "Asset.Sprite", + "mid": "Asset.Sprite", + "smol": "Asset.Sprite" + } + }, + "gml_Object_DEVICE_GONERMAKER_Draw_0": { + "Variables": { + "img": "Asset.Sprite" + } + }, + "gml_Object_DEVICE_GONERMAKER_ch1_Draw_0": { + "Variables": { + "img": "Asset.Sprite" + } + }, + "gml_Script_scr_84_init_localization": { + "FunctionArguments": { + "ds_map_add": { + "MacroType": "Union", + "Macros": [ + [ + { + "MacroType": "Match", + "ConditionalValue": "fm" + }, + null, + "Asset.Font" + ], + [ + { + "MacroType": "Match", + "ConditionalValue": "sm" + }, + null, + "Asset.Sprite" + ], + [ + { + "MacroType": "Match", + "ConditionalValue": "sndm" + }, + null, + "Asset.Sound" + ] + ] + } + } + }, + "gml_Script_scr_84_init_localization_ch1": { + "FunctionArguments": { + "ds_map_add": { + "MacroType": "Union", + "Macros": [ + [ + { + "MacroType": "Match", + "ConditionalValue": "fm" + }, + null, + "Asset.Font" + ], + [ + { + "MacroType": "Match", + "ConditionalValue": "sm" + }, + null, + "Asset.Sprite" + ], + [ + { + "MacroType": "Match", + "ConditionalValue": "sndm" + }, + null, + "Asset.Sound" + ] + ] + } + } + }, + "gml_Object_obj_debug_sprite_catalog_Create_0": { + "Variables": { + "myLastSprite": "Asset.Sprite" + } + }, + "gml_Object_obj_move_to_point_Create_0": { + "Variables": { + "target": "Asset.Object" + } + }, + "gml_Object_obj_move_to_point_Step_0": { + "Variables": { + "target": "Asset.Object" + } + }, + "gml_Object_obj_move_to_point_ch1_Create_0": { + "Variables": { + "target": "Asset.Object" + } + }, + "gml_Object_obj_move_to_point_ch1_Step_0": { + "Variables": { + "target": "Asset.Object" + } + }, + "gml_Object_obj_sneo_tiny_susie_axe_Create_0": { + "Variables": { + "target": "Asset.Object" + } + }, + "gml_Object_obj_sneo_tiny_susie_axe_Step_0": { + "Variables": { + "target": "Asset.Object" + } + }, + "gml_Object_obj_power_up_thrash_Create_0": { + "Variables": { + "thrash": "Asset.Object" + } + }, + "gml_Object_obj_queen_bulletcontroller_Create_0": { + "Variables": { + "queen": "Asset.Object" + } + }, + "gml_Object_obj_queen_explodinghead_Step_0": { + "Variables": { + "_bullet": "Asset.Object" + } + }, + "gml_Object_obj_sneo_final_forme_Step_0": { + "Variables": { + "_box": "Asset.Object" + } + } + } +} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/Underanalyzer/gamemaker.json b/UndertaleModLib/GameSpecificData/Underanalyzer/gamemaker.json new file mode 100644 index 000000000..9f0842789 --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Underanalyzer/gamemaker.json @@ -0,0 +1,1308 @@ +{ + "Types": { + "RegisterBasic": true, + "Enums": { + "Enum.e__VW": { + "Name": "e__VW", + "Values": { + "XView": 0, + "YView": 1, + "WView": 2, + "HView": 3, + "Angle": 4, + "HBorder": 5, + "VBorder": 6, + "HSpeed": 7, + "VSpeed": 8, + "Object": 9, + "Visible": 10, + "XPort": 11, + "YPort": 12, + "WPort": 13, + "HPort": 14, + "Camera": 15, + "SurfaceID": 16 + } + }, + "Enum.e__BG": { + "Name": "e__BG", + "Values": { + "Visible": 0, + "Foreground": 1, + "Index": 2, + "X": 3, + "Y": 4, + "Width": 5, + "Height": 6, + "HTiled": 7, + "VTiled": 8, + "XScale": 9, + "YScale": 10, + "HSpeed": 11, + "VSpeed": 12, + "Blend": 13, + "Alpha": 14 + } + }, + "Enum.AudioEffectType": { + "Name": "AudioEffectType", + "Values": { + "Bitcrusher": 0, + "Delay": 1, + "Gain": 2, + "HPF2": 3, + "LPF2": 4, + "Reverb1": 5, + "Tremolo": 6, + "PeakEQ": 7, + "HiShelf": 8, + "LoShelf": 9, + "EQ": 10, + "Compressor": 11 + } + }, + "Enum.AudioLFOType": { + "Name": "AudioLFOType", + "Values": { + "InvSawtooth": 0, + "Sawtooth": 1, + "Sine": 2, + "Square": 3, + "Triangle": 4 + } + } + }, + "Constants": { + "Constant.AudioFalloff": { + "audio_falloff_none": 0, + "audio_falloff_inverse_distance": 1, + "audio_falloff_inverse_distance_clamped": 2, + "audio_falloff_inverse_distance_scaled": 7, + "audio_falloff_linear_distance": 3, + "audio_falloff_linear_distance_clamped": 4, + "audio_falloff_exponent_distance": 5, + "audio_falloff_exponent_distance_clamped": 6, + "audio_falloff_exponent_distance_scaled": 8 + }, + "Constant.HAlign": { + "fa_left": 0, + "fa_center": 1, + "fa_right": 2 + }, + "Constant.VAlign": { + "fa_top": 0, + "fa_middle": 1, + "fa_bottom": 2 + }, + "Constant.PathAction": { + "path_action_stop": 0, + "path_action_restart": 1, + "path_action_continue": 2, + "path_action_reverse": 3 + }, + "Constant.GameSpeed": { + "gamespeed_fps": 0, + "gamespeed_microseconds": 1 + }, + "Constant.Cursor": { + "cr_size_all": -22, + "cr_handpoint": -21, + "cr_appstart": -19, + "cr_drag": -12, + "cr_hourglass": -11, + "cr_uparrow": -10, + "cr_size_we": -9, + "cr_size_nwse": -8, + "cr_size_ns": -7, + "cr_size_nesw": -6, + "cr_beam": -4, + "cr_cross": -3, + "cr_arrow": -2, + "cr_none": -1, + "cr_default": 0 + }, + "Constant.MouseButton": { + "mb_any": -1, + "mb_none": 0, + "mb_left": 1, + "mb_right": 2, + "mb_middle": 3 + }, + "Constant.GamepadButton": { + "gp_face1": 32769, + "gp_face2": 32770, + "gp_face3": 32771, + "gp_face4": 32772, + "gp_shoulderl": 32773, + "gp_shoulderlb": 32775, + "gp_shoulderr": 32774, + "gp_shoulderrb": 32776, + "gp_select": 32777, + "gp_start": 32778, + "gp_stickl": 32779, + "gp_stickr": 32780, + "gp_padu": 32781, + "gp_padd": 32782, + "gp_padl": 32783, + "gp_padr": 32784, + "gp_axislh": 32785, + "gp_axislv": 32786, + "gp_axisrh": 32787, + "gp_axisrv": 32788, + "gp_axis_acceleration_x": 32789, + "gp_axis_acceleration_y": 32790, + "gp_axis_acceleration_z": 32791, + "gp_axis_angular_velocity_x": 32792, + "gp_axis_angular_velocity_y": 32793, + "gp_axis_angular_velocity_z": 32794, + "gp_axis_orientation_x": 32795, + "gp_axis_orientation_y": 32796, + "gp_axis_orientation_z": 32797, + "gp_axis_orientation_w": 32798, + "gp_home": 32799, + "gp_extra1": 32800, + "gp_extra2": 32801, + "gp_extra3": 32802, + "gp_extra4": 32803, + "gp_paddler": 32804, + "gp_paddlel": 32805, + "gp_paddlerb": 32806, + "gp_paddlelb": 32807, + "gp_touchpadbutton": 32808, + "gp_extra5": 32809, + "gp_extra6": 32810 + }, + "Constant.BufferType": { + "buffer_fixed": 0, + "buffer_grow": 1, + "buffer_wrap": 2, + "buffer_fast": 3, + "buffer_vbuffer": 4, + "buffer_network": 5 + }, + "Constant.BufferDataType": { + "buffer_u8": 1, + "buffer_s8": 2, + "buffer_u16": 3, + "buffer_s16": 4, + "buffer_u32": 5, + "buffer_s32": 6, + "buffer_f16": 7, + "buffer_f32": 8, + "buffer_f64": 9, + "buffer_bool": 10, + "buffer_string": 11, + "buffer_u64": 12, + "buffer_text": 13 + }, + "Constant.SeekOffset": { + "buffer_seek_start": 0, + "buffer_seek_relative": 1, + "buffer_seek_end": 2 + }, + "Constant.SteamUGCFileType": { + "ugc_filetype_community": 0, + "ugc_filetype_microtrans": 1 + }, + "Constant.SteamUGCList": { + "ugc_list_Published": 0, + "ugc_list_VotedOn": 1, + "ugc_list_VotedUp": 2, + "ugc_list_VotedDown": 3, + "ugc_list_WillVoteLater": 4, + "ugc_list_Favorited": 5, + "ugc_list_Subscribed": 6, + "ugc_list_UsedOrPlayed": 7, + "ugc_list_Followed": 8 + }, + "Constant.SteamUGCMatchType": { + "ugc_match_Items": 0, + "ugc_match_Items_Mtx": 1, + "ugc_match_Items_ReadyToUse": 2, + "ugc_match_Collections": 3, + "ugc_match_Artwork": 4, + "ugc_match_Videos": 5, + "ugc_match_Screenshots": 6, + "ugc_match_AllGuides": 7, + "ugc_match_WebGuides": 8, + "ugc_match_IntegratedGuides": 9, + "ugc_match_UsableInGame": 10, + "ugc_match_ControllerBindings": 11 + }, + "Constant.SteamUGCSortOrder": { + "ugc_sortorder_CreationOrderDesc": 0, + "ugc_sortorder_CreationOrderAsc": 1, + "ugc_sortorder_TitleAsc": 2, + "ugc_sortorder_LastUpdatedDesc": 3, + "ugc_sortorder_SubscriptionDateDesc": 4, + "ugc_sortorder_VoteScoreDesc": 5, + "ugc_sortorder_ForModeration": 6 + }, + "Constant.SteamUGCQueryType": { + "ugc_query_RankedByVote": 0, + "ugc_query_RankedByPublicationDate": 1, + "ugc_query_AcceptedForGameRankedByAcceptanceDate": 2, + "ugc_query_RankedByTrend": 3, + "ugc_query_FavoritedByFriendsRankedByPublicationDate": 4, + "ugc_query_CreatedByFriendsRankedByPublicationDate": 5, + "ugc_query_RankedByNumTimesReported": 6, + "ugc_query_CreatedByFollowedUsersRankedByPublicationDate": 7, + "ugc_query_NotYetRated": 8, + "ugc_query_RankedByTotalVotesAsc": 9, + "ugc_query_RankedByVotesUp": 10, + "ugc_query_RankedByTextSearch": 11 + }, + "Constant.SteamLeaderboardSort": { + "lb_sort_none": 0, + "lb_sort_ascending": 1, + "lb_sort_descending": 2 + }, + "Constant.SteamLeaderboardDisplay": { + "lb_disp_none": 0, + "lb_disp_numeric": 1, + "lb_disp_time_sec": 2, + "lb_disp_time_ms": 3 + }, + "Constant.SteamOverlay": { + "ov_friends": 0, + "ov_community": 1, + "ov_players": 2, + "ov_settings": 3, + "ov_gamegroup": 4, + "ov_achievements": 5 + }, + "Constant.OperatingSystem": { + "os_unknown": -1, + "os_windows": 0, + "os_macosx": 1, + "os_psp": 2, + "os_ios": 3, + "os_android": 4, + "os_symbian": 5, + "os_linux": 6, + "os_winphone": 7, + "os_tizen": 8, + "os_win8native": 9, + "os_wiiu": 10, + "os_3ds": 11, + "os_psvita": 12, + "os_bb10": 13, + "os_ps4": 14, + "os_xboxone": 15, + "os_ps3": 16, + "os_xbox360": 17, + "os_uwp": 18, + "os_tvos": 20, + "os_switch": 21, + "os_ps5": 22, + "os_gdk": 23, + "os_gxgames": 24 + }, + "Constant.BlendMode": { + "bm_complex": -1, + "bm_normal": 0, + "bm_add": 1, + "bm_max": 2, + "bm_subtract": 3, + "bm_min": 4, + "bm_reverse_subtract": 5 + }, + "Constant.BlendModeFactor": { + "bm_zero": 1, + "bm_one": 2, + "bm_src_color": 3, + "bm_inv_src_color": 4, + "bm_src_alpha": 5, + "bm_inv_src_alpha": 6, + "bm_dest_alpha": 7, + "bm_inv_dest_alpha": 8, + "bm_dest_color": 9, + "bm_inv_dest_color": 10, + "bm_src_alpha_sat": 11 + }, + "Constant.EventType": { + "ev_create": 0, + "ev_destroy": 1, + "ev_alarm": 2, + "ev_step": 3, + "ev_collision": 4, + "ev_keyboard": 5, + "ev_mouse": 6, + "ev_other": 7, + "ev_draw": 8, + "ev_keypress": 9, + "ev_keyrelease": 10, + "ev_trigger": 11, + "ev_cleanup": 12, + "ev_gesture": 13, + "ev_pre_create": 14 + }, + "Constant.EventSubtypeStep": { + "ev_step_normal": 0, + "ev_step_begin": 1, + "ev_step_end": 2 + }, + "Constant.EventSubtypeDraw": { + "ev_draw_normal": 0, + "ev_gui": 64, + "ev_draw_begin": 72, + "ev_draw_end": 73, + "ev_gui_begin": 74, + "ev_gui_end": 75, + "ev_draw_pre": 76, + "ev_draw_post": 77 + }, + "Constant.EventSubtypeMouse": { + "ev_left_button": 0, + "ev_right_button": 1, + "ev_middle_button": 2, + "ev_no_button": 3, + "ev_left_press": 4, + "ev_right_press": 5, + "ev_middle_press": 6, + "ev_left_release": 7, + "ev_right_release": 8, + "ev_middle_release": 9, + "ev_mouse_enter": 10, + "ev_mouse_leave": 11, + "ev_global_press": 12, + "ev_global_release": 13, + "ev_global_left_button": 50, + "ev_global_right_button": 51, + "ev_global_middle_button": 52, + "ev_global_left_press": 53, + "ev_global_right_press": 54, + "ev_global_middle_press": 55, + "ev_global_left_release": 56, + "ev_global_right_release": 57, + "ev_global_middle_release": 58, + "ev_mouse_wheel_up": 60, + "ev_mouse_wheel_down": 61 + }, + "Constant.EventSubtypeOther": { + "ev_outside": 0, + "ev_boundary": 1, + "ev_game_start": 2, + "ev_game_end": 3, + "ev_room_start": 4, + "ev_room_end": 5, + "ev_no_more_lives": 6, + "ev_animation_end": 7, + "ev_end_of_path": 8, + "ev_no_more_health": 9, + "ev_user0": 10, + "ev_user1": 11, + "ev_user2": 12, + "ev_user3": 13, + "ev_user4": 14, + "ev_user5": 15, + "ev_user6": 16, + "ev_user7": 17, + "ev_user8": 18, + "ev_user9": 19, + "ev_user10": 20, + "ev_user11": 21, + "ev_user12": 22, + "ev_user13": 23, + "ev_user14": 24, + "ev_user15": 25, + "ev_close_button": 30, + "ev_outside_view0": 40, + "ev_outside_view1": 41, + "ev_outside_view2": 42, + "ev_outside_view3": 43, + "ev_outside_view4": 44, + "ev_outside_view5": 45, + "ev_outside_view6": 46, + "ev_outside_view7": 47, + "ev_boundary_view0": 50, + "ev_boundary_view1": 51, + "ev_boundary_view2": 52, + "ev_boundary_view3": 53, + "ev_boundary_view4": 54, + "ev_boundary_view5": 55, + "ev_boundary_view6": 56, + "ev_boundary_view7": 57, + "ev_animation_update": 58, + "ev_animation_event": 59, + "ev_web_image_load": 60, + "ev_web_sound_load": 61, + "ev_web_async": 62, + "ev_dialog_async": 63, + "ev_web_iap": 66, + "ev_web_cloud": 67, + "ev_web_networking": 68, + "ev_web_steam": 69, + "ev_social": 70, + "ev_push_notification": 71, + "ev_audio_recording": 73, + "ev_audio_playback": 74, + "ev_system_event": 75, + "ev_broadcast_message": 76, + "ev_audio_playback_ended": 80 + }, + "Constant.EventSubtypeGesture": { + "ev_gesture_tap": 0, + "ev_gesture_double_tap": 1, + "ev_gesture_drag_start": 2, + "ev_gesture_dragging": 3, + "ev_gesture_drag_end": 4, + "ev_gesture_flick": 5, + "ev_gesture_pinch_start": 6, + "ev_gesture_pinch_in": 7, + "ev_gesture_pinch_out": 8, + "ev_gesture_pinch_end": 9, + "ev_gesture_rotate_start": 10, + "ev_gesture_rotating": 11, + "ev_gesture_rotate_end": 12, + "ev_global_gesture_tap": 64, + "ev_global_gesture_double_tap": 65, + "ev_global_gesture_drag_start": 66, + "ev_global_gesture_dragging": 67, + "ev_global_gesture_drag_end": 68, + "ev_global_gesture_flick": 69, + "ev_global_gesture_pinch_start": 70, + "ev_global_gesture_pinch_in": 71, + "ev_global_gesture_pinch_out": 72, + "ev_global_gesture_pinch_end": 73, + "ev_global_gesture_rotate_start": 74, + "ev_global_gesture_rotating": 75, + "ev_global_gesture_rotate_end": 76 + }, + "Constant.AsyncEventType": { + "ev_async_web_image_load": 60, + "ev_async_web": 62, + "ev_async_dialog": 63, + "ev_async_web_iap": 66, + "ev_async_web_cloud": 67, + "ev_async_web_networking": 68, + "ev_async_web_steam": 69, + "ev_async_social": 70, + "ev_async_push_notification": 71, + "ev_async_save_load": 72, + "ev_async_audio_recording": 73, + "ev_async_audio_playback": 74, + "ev_async_system_event": 75, + "ev_async_audio_playback_ended": 80 + }, + "Constant.PrimitiveType": { + "pr_pointlist": 1, + "pr_linelist": 2, + "pr_linestrip": 3, + "pr_trianglelist": 4, + "pr_trianglestrip": 5, + "pr_trianglefan": 6 + }, + "Constant.VertexType": { + "vertex_type_float1": 1, + "vertex_type_float2": 2, + "vertex_type_float3": 3, + "vertex_type_float4": 4, + "vertex_type_color": 5, + "vertex_type_ubyte4": 6 + }, + "Constant.VertexUsage": { + "vertex_usage_position": 1, + "vertex_usage_color": 2, + "vertex_usage_normal": 3, + "vertex_usage_texcoord": 4, + "vertex_usage_blendweight": 5, + "vertex_usage_blendindices": 6, + "vertex_usage_psize": 7, + "vertex_usage_tangent": 8, + "vertex_usage_binormal": 9, + "vertex_usage_fog": 12, + "vertex_usage_depth": 13, + "vertex_usage_sample": 14 + }, + "Constant.DsType": { + "ds_type_map": 1, + "ds_type_list": 2, + "ds_type_stack": 3, + "ds_type_queue": 4, + "ds_type_grid": 5, + "ds_type_priority": 6 + }, + "Constant.SocketType": { + "network_socket_tcp": 0, + "network_socket_udp": 1, + "network_socket_bluetooth": 2, + "network_socket_tcp_psn": 3, + "network_socket_udp_psn": 4, + "network_socket_udp_switch": 5, + "network_socket_ws": 6, + "network_socket_wss": 7 + }, + "Constant.NetworkConfig": { + "network_config_connect_timeout": 0, + "network_config_use_non_blocking_socket": 1, + "network_config_enable_reliable_udp": 2, + "network_config_disable_reliable_udp": 3, + "network_config_avoid_time_wait": 4, + "network_config_websocket_protocol": 5, + "network_config_enable_multicast": 6, + "network_config_disable_multicast": 7 + } + }, + "General": { + "Id.InstanceOrObject": { + "MacroType": "Union", + "Macros": [ + "Asset.Object", + "Id.Instance", + "Asset.RoomInstance" + ] + }, + "Array": { + "MacroType": "ArrayInit", + "Macro": "Asset.Sprite" + }, + "Array": { + "MacroType": "ArrayInit", + "Macro": "Asset.Background" + }, + "FunctionArguments.__view_get": [ "Enum.e__VW", null ], + "FunctionArguments.__view_set": { + "MacroType": "Union", + "Macros": [ + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "9", + "ConditionalType": "EnumValue" + }, + "Enum.e__VW" + ] + }, + null, + "Asset.Object" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "10", + "ConditionalType": "EnumValue" + }, + "Enum.e__VW" + ] + }, + null, + "Bool" + ], + [ "Enum.e__VW", null, null ] + ] + } + } + }, + "GlobalNames": { + "Variables": { + "sprite_index": "Asset.Sprite", + "mask_index": "Asset.Sprite", + "object_index": "Asset.Object", + "room": "Asset.Room", + "room_first": "Asset.Room", + "room_last": "Asset.Room", + "room_persistent": "Bool", + "image_blend": "Constant.Color", + "event_object": "Asset.Object", + "view_object": "Asset.Object", + "view_enabled": "Bool", + "view_visible": "Bool", + "visible": "Bool", + "background_index": "Asset.Background", + "background_color": "Constant.Color", + "background_colour": "Constant.Color", + "path_index": "Asset.Path", + "path_endaction": "Constant.PathAction", + "keyboard_key": "Constant.VirtualKey", + "keyboard_lastkey": "Constant.VirtualKey", + "timeline_index": "Asset.Timeline", + "mouse_button": "Constant.MouseButton", + "mouse_last_button": "Constant.MouseButton", + "os_type": "Constant.OperatingSystem", + "event_type": "Constant.EventType", + "instance_id": "Id.InstanceOrObject", + "persistent": "Bool", + "background_visible": "Bool" + }, + "FunctionArguments": { + "action_create_object": [ "Asset.Object", null, null ], + "instance_activate_object": [ "Id.InstanceOrObject" ], + "script_exists": [ "Asset.Script" ], + "script_get_name": [ "Asset.Script" ], + "instance_change": [ "Asset.Object", "Bool" ], + "instance_copy": [ "Bool" ], + "instance_create": [ null, null, "Asset.Object" ], + "gml_Script_instance_create": [ null, null, "Asset.Object" ], + "instance_destroy": { + "MacroType": "Union", + "Macros": [ + [ "Asset.Object" ], + [ "Asset.Object", "Bool" ] + ] + }, + "instance_exists": [ "Asset.Object" ], + "instance_find": [ "Asset.Object", null ], + "instance_furthest": [ null, null, "Asset.Object" ], + "instance_nearest": [ null, null, "Asset.Object" ], + "instance_number": [ "Asset.Object" ], + "instance_place": [ null, null, "Id.InstanceOrObject" ], + "instance_position": [ null, null, "Id.InstanceOrObject" ], + "instance_deactivate_all": [ "Bool" ], + "application_surface_enable": [ "Bool" ], + "application_surface_draw_enable": [ "Bool" ], + "instance_deactivate_object": [ "Id.InstanceOrObject" ], + "instance_activate_region": [ null, null, null, null, "Bool" ], + "instance_deactivate_region": [ null, null, null, null, "Bool", "Bool" ], + "instance_create_depth": { + "MacroType": "Union", + "Macros": [ + [ null, null, null, "Asset.Object" ], + [ null, null, null, "Asset.Object", null ] + ] + }, + "instance_create_layer": { + "MacroType": "Union", + "Macros": [ + [ null, null, null, "Asset.Object" ], + [ null, null, null, "Asset.Object", null ] + ] + }, + "sprite_get_name": [ "Asset.Sprite" ], + "sprite_get_number": [ "Asset.Sprite" ], + "sprite_get_width": [ "Asset.Sprite" ], + "sprite_get_height": [ "Asset.Sprite" ], + "sprite_get_xoffset": [ "Asset.Sprite" ], + "sprite_get_yoffset": [ "Asset.Sprite" ], + "sprite_get_bbox_bottom": [ "Asset.Sprite" ], + "sprite_get_bbox_left": [ "Asset.Sprite" ], + "sprite_get_bbox_right": [ "Asset.Sprite" ], + "sprite_get_bbox_top": [ "Asset.Sprite" ], + "sprite_get_tpe": [ "Asset.Sprite", null ], + "sprite_get_texture": [ "Asset.Sprite", null ], + "sprite_get_uvs": [ "Asset.Sprite", null ], + "sprite_exists": [ "Asset.Sprite" ], + "sprite_add": [ null, null, "Bool", "Bool", null, null ], + "sprite_replace": [ "Asset.Sprite", null, null, "Bool", "Bool", null, null ], + "sprite_duplicate": [ "Asset.Sprite" ], + "sprite_assign": [ "Asset.Sprite", "Asset.Sprite" ], + "sprite_merge": [ "Asset.Sprite", "Asset.Sprite" ], + "sprite_create_from_surface": [ null, null, null, null, null, "Bool", "Bool", null, null ], + "sprite_add_from_surface": [ "Asset.Sprite", null, null, null, null, null, "Bool", "Bool" ], + "sprite_collision_mask": [ "Asset.Sprite", "Bool", null, null, null, null, null, null, null ], + "sprite_set_offset": [ "Asset.Sprite", null, null ], + "sprite_delete": [ "Asset.Sprite" ], + "sprite_set_alpha_from_sprite": [ "Asset.Sprite", "Asset.Sprite" ], + "sprite_set_cache_size": [ "Asset.Sprite", null ], + "sprite_set_cache_size_ext": [ "Asset.Sprite", null, null ], + "sprite_save": [ "Asset.Sprite", null, null ], + "sprite_save_strip": [ "Asset.Sprite", null ], + "sprite_flush": [ "Asset.Sprite" ], + "sprite_flush_multi": [ "Array" ], + "sprite_prefetch": [ "Asset.Sprite" ], + "sprite_prefetch_multi": [ "Array" ], + "background_get_name": [ "Asset.Background" ], + "background_get_width": [ "Asset.Background" ], + "background_get_height": [ "Asset.Background" ], + "background_get_texture": [ "Asset.Background" ], + "background_get_uvs": [ "Asset.Background" ], + "background_exists": [ "Asset.Background" ], + "background_add": [ null, null, null ], + "background_replace": [ "Asset.Background", null, null, null ], + "background_duplicate": [ "Asset.Background" ], + "background_assign": [ "Asset.Background", "Asset.Background" ], + "background_create_color": [ null, null, "Constant.Color" ], + "background_create_colour": [ null, null, "Constant.Color" ], + "background_create_gradient": [ null, null, "Constant.Color", "Constant.Color", null ], + "background_create_from_surface": [ null, null, null, null, null, null, null ], + "background_set_alpha_from_background": [ "Asset.Background", "Asset.Background" ], + "background_save": [ "Asset.Background", null ], + "background_delete": [ "Asset.Background" ], + "background_flush": [ "Asset.Background" ], + "background_flush_multi": [ "Array" ], + "background_prefetch": [ "Asset.Background" ], + "background_prefetch_multi": [ "Array" ], + "tile_add": [ "Asset.Background", null, null, null, null, null, null, null ], + "tile_set_background": [ null, "Asset.Background" ], + "tile_set_blend": [ null, "Constant.Color" ], + "audio_exists": [ "Asset.Sound" ], + "audio_get_name": [ "Asset.Sound" ], + "audio_get_type": [ "Asset.Sound" ], + "audio_play_sound": [ "Asset.Sound", null, "Bool" ], + "audio_play_sound_at": [ "Asset.Sound", null, null, null, null, null, null, "Bool", null ], + "audio_pause_sound": [ "Asset.Sound" ], + "audio_resume_sound": [ "Asset.Sound" ], + "audio_stop_sound": [ "Asset.Sound" ], + "audio_is_playing": [ "Asset.Sound" ], + "audio_is_paused": [ "Asset.Sound" ], + "audio_sound_set_track_position": [ "Asset.Sound", null ], + "audio_sound_get_track_position": [ "Asset.Sound" ], + "audio_sound_length": [ "Asset.Sound" ], + "audio_sound_pitch": [ "Asset.Sound", null ], + "audio_sound_get_pitch": [ "Asset.Sound" ], + "audio_falloff_set_model": [ "Constant.AudioFalloff" ], + "audio_sound_gain": [ "Asset.Sound", null, null ], + "audio_sound_get_gain": [ "Asset.Sound" ], + "audio_play_sound_on": [ null, "Asset.Sound", "Bool", null ], + "audio_play_in_sync_group": [ null, "Asset.Sound" ], + "sound_exists": [ "Asset.Sound" ], + "sound_get_name": [ "Asset.Sound" ], + "sound_play": [ "Asset.Sound" ], + "sound_loop": [ "Asset.Sound" ], + "sound_stop": [ "Asset.Sound" ], + "sound_isplaying": [ "Asset.Sound" ], + "sound_volume": [ "Asset.Sound", null ], + "sound_fade": [ "Asset.Sound", null, null ], + "sound_replace": [ "Asset.Sound", null, null, null ], + "sound_delete": [ "Asset.Sound" ], + "font_get_name": [ "Asset.Font" ], + "font_get_fontname": [ "Asset.Font" ], + "font_get_first": [ "Asset.Font" ], + "font_get_last": [ "Asset.Font" ], + "font_get_italic": [ "Asset.Font" ], + "font_get_bold": [ "Asset.Font" ], + "font_get_size": [ "Asset.Font" ], + "font_get_texture": [ "Asset.Font" ], + "font_get_uvs": [ "Asset.Font" ], + "font_set_cache_size": [ "Asset.Font", null ], + "font_exists": [ "Asset.Font" ], + "font_add_sprite": [ "Asset.Sprite", null, null, null ], + "font_add_sprite_ext": [ "Asset.Sprite", null, null, null ], + "font_replace": [ "Asset.Font", null, null, null, null, null, null ], + "font_replace_sprite": [ "Asset.Font", "Asset.Sprite", null, null, null ], + "font_replace_sprite_ext": [ "Asset.Font", "Asset.Sprite", null, null, null ], + "font_delete": [ "Asset.Font" ], + "path_start": [ "Asset.Path", null, "Constant.PathAction", null ], + "path_exists": [ "Asset.Path" ], + "path_get_closed": [ "Asset.Path" ], + "path_get_kind": [ "Asset.Path" ], + "path_get_length": [ "Asset.Path" ], + "path_get_name": [ "Asset.Path" ], + "path_get_number": [ "Asset.Path" ], + "path_get_point_speed": [ "Asset.Path", null ], + "path_get_point_x": [ "Asset.Path", null ], + "path_get_point_y": [ "Asset.Path", null ], + "path_get_precision": [ "Asset.Path", null ], + "path_get_speed": [ "Asset.Path", null ], + "path_get_x": [ "Asset.Path", null ], + "path_get_y": [ "Asset.Path", null ], + "path_add_point": [ "Asset.Path", null, null, null ], + "path_change_point": [ "Asset.Path", null, null, null, null ], + "path_insert_point": [ "Asset.Path", null, null, null, null ], + "path_delete_point": [ "Asset.Path", null ], + "path_clear_points": [ "Asset.Path" ], + "path_append": [ "Asset.Path", "Asset.Path" ], + "path_assign": [ "Asset.Path", "Asset.Path" ], + "path_delete": [ "Asset.Path" ], + "path_duplicate": [ "Asset.Path" ], + "path_flip": [ "Asset.Path" ], + "path_mirror": [ "Asset.Path" ], + "path_reverse": [ "Asset.Path" ], + "path_rotate": [ "Asset.Path", null ], + "path_scale": [ "Asset.Path", null, null ], + "path_set_closed": [ "Asset.Path", null ], + "path_set_kind": [ "Asset.Path", null ], + "path_set_precision": [ "Asset.Path", null ], + "path_shift": [ "Asset.Path", null, null ], + "timeline_exists": [ "Asset.Timeline" ], + "timeline_get_name": [ "Asset.Timeline" ], + "timeline_delete": [ "Asset.Timeline" ], + "timeline_moment_add_script": [ "Asset.Timeline", null, null ], + "timeline_moment_clear": [ "Asset.Timeline", null ], + "timeline_clear": [ "Asset.Timeline" ], + "timeline_size": [ "Asset.Timeline" ], + "timeline_max_moment": [ "Asset.Timeline" ], + "room_exists": [ "Asset.Room" ], + "room_next": [ "Asset.Room" ], + "room_previous": [ "Asset.Room" ], + "room_get_name": [ "Asset.Room" ], + "room_goto": [ "Asset.Room" ], + "room_duplicate": [ "Asset.Room" ], + "room_assign": [ "Asset.Room", "Asset.Room" ], + "room_instance_add": [ "Asset.Room", null, null, "Asset.Object" ], + "room_instance_clear": [ "Asset.Room" ], + "room_tile_add": [ "Asset.Room", "Asset.Background", null, null, null, null, null, null, null ], + "room_tile_add_ext": [ "Asset.Room", "Asset.Background", null, null, null, null, null, null, null, null, null, null ], + "room_tile_clear": [ "Asset.Room" ], + "room_set_background": [ "Asset.Room", null, null, null, "Asset.Background", null, null, null, null, null, null, null ], + "room_set_background_color": [ "Asset.Room", "Constant.Color", null ], + "room_set_background_colour": [ "Asset.Room", "Constant.Color", null ], + "room_set_height": [ "Asset.Room", null ], + "room_set_width": [ "Asset.Room", null ], + "room_set_persistent": [ "Asset.Room", null ], + "room_set_view_enabled": [ "Asset.Room", null ], + "room_set_viewport": [ "Asset.Room", null, "Bool", null, null, null, null ], + "room_get_viewport": [ "Asset.Room", null ], + "room_get_camera": [ "Asset.Room", null ], + "room_set_camera": [ "Asset.Room", null, null ], + "object_exists": [ "Asset.Object" ], + "object_get_depth": [ "Asset.Object" ], + "object_get_mask": [ "Asset.Object" ], + "object_get_name": [ "Asset.Object" ], + "object_get_parent": [ "Asset.Object" ], + "object_get_persistent": [ "Asset.Object" ], + "object_get_solid": [ "Asset.Object" ], + "object_get_sprite": [ "Asset.Object" ], + "object_get_visible": [ "Asset.Object" ], + "object_get_physics": [ "Asset.Object" ], + "object_is_ancestor": [ "Asset.Object", "Asset.Object" ], + "object_set_depth": [ "Asset.Object", null ], + "object_set_mask": [ "Asset.Object", null ], + "object_set_persistent": [ "Asset.Object", null ], + "object_set_solid": [ "Asset.Object", null ], + "object_set_sprite": [ "Asset.Object", null ], + "object_set_visible": [ "Asset.Object", null ], + "merge_color": [ "Constant.Color", "Constant.Color", null ], + "merge_colour": [ "Constant.Color", "Constant.Color", null ], + "draw_rectangle": [ null, null, null, null, "Bool" ], + "draw_clear": [ "Constant.Color" ], + "draw_clear_alpha": [ "Constant.Color", null ], + "draw_set_color": [ "Constant.Color" ], + "draw_circle_color": [ null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_ellipse_color": [ null, null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_line_color": [ null, null, null, null, "Constant.Color", "Constant.Color" ], + "draw_line_width_color": [ null, null, null, null, null, "Constant.Color", "Constant.Color" ], + "draw_point_color": [ null, null, "Constant.Color" ], + "draw_rectangle_color": [ null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_roundrect_color": [ null, null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_roundrect_color_ext": [ null, null, null, null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_set_colour": [ "Constant.Color" ], + "draw_circle_colour": [ null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_ellipse_colour": [ null, null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_line_colour": [ null, null, null, null, "Constant.Color", "Constant.Color" ], + "draw_line_width_colour": [ null, null, null, null, null, "Constant.Color", "Constant.Color" ], + "draw_point_colour": [ null, null, "Constant.Color" ], + "draw_rectangle_colour": [ null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_roundrect_colour": [ null, null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_roundrect_colour_ext": [ null, null, null, null, null, null, "Constant.Color", "Constant.Color", null ], + "draw_healthbar": [ null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", null, null, null ], + "d3d_set_fog": [ "Bool", "Constant.Color", null, null ], + "gml_Script_d3d_set_fog": [ "Bool", "Constant.Color", null, null ], + "gpu_set_fog": [ "Bool", "Constant.Color", null, null ], + "layer_script_begin": [ null, "Asset.Script" ], + "layer_background_create": [ null, "Asset.Sprite" ], + "layer_background_blend": [ null, "Constant.Color" ], + "layer_background_visible": [ null, "Bool" ], + "layer_sprite_change": [ null, "Asset.Sprite" ], + "gpu_set_blendenable": [ "Bool" ], + "layer_script_end": [ null, "Asset.Script" ], + "draw_sprite": [ "Asset.Sprite", null, null, null ], + "draw_sprite_ext": [ "Asset.Sprite", null, null, null, null, null, null, "Constant.Color", null ], + "draw_sprite_general": [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_sprite_part": [ "Asset.Sprite", null, null, null, null, null, null, null ], + "draw_sprite_part_ext": [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, "Constant.Color", null ], + "draw_sprite_stretched": [ "Asset.Sprite", null, null, null, null, null ], + "draw_sprite_stretched_ext": [ "Asset.Sprite", null, null, null, null, null, "Constant.Color", null ], + "draw_sprite_pos": [ "Asset.Sprite", null, null, null, null, null, null, null, null, null, null ], + "draw_sprite_tiled": [ "Asset.Sprite", null, null, null ], + "draw_sprite_tiled_ext": [ "Asset.Sprite", null, null, null, null, null, "Constant.Color", null ], + "draw_background": [ "Asset.Background", null, null ], + "draw_background_ext": [ "Asset.Background", null, null, null, null, null, "Constant.Color", null ], + "draw_background_part": [ "Asset.Background", null, null, null, null, null, null ], + "draw_background_part_ext": [ "Asset.Background", null, null, null, null, null, null, null, null, "Constant.Color", null ], + "draw_background_stretched": [ "Asset.Background", null, null, null, null ], + "draw_background_stretched_ext": [ "Asset.Background", null, null, null, null, "Constant.Color", null ], + "draw_background_tiled": [ "Asset.Background", null, null ], + "draw_background_tiled_ext": [ "Asset.Background", null, null, null, null, "Constant.Color", null ], + "draw_background_general": [ "Asset.Background", null, null, null, null, null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_set_font": [ "Asset.Font" ], + "draw_set_halign": [ "Constant.HAlign" ], + "draw_set_valign": [ "Constant.VAlign" ], + "draw_text_color": [ null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_text_ext_color": [ null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_text_transformed_color": [ null, null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_text_transformed_ext_color": [ null, null, null, null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_vertex_color": [ null, null, "Constant.Color", null ], + "draw_vertex_texture_color": [ null, null, null, null, "Constant.Color", null ], + "draw_text_colour": [ null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_text_ext_colour": [ null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_text_transformed_colour": [ null, null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_text_transformed_ext_colour": [ null, null, null, null, null, null, null, null, "Constant.Color", "Constant.Color", "Constant.Color", "Constant.Color", null ], + "draw_vertex_colour": [ null, null, "Constant.Color", null ], + "draw_vertex_texture_colour": [ null, null, null, null, "Constant.Color", null ], + "distance_to_object": [ "Id.InstanceOrObject" ], + "place_meeting": [ null, null, "Id.InstanceOrObject" ], + "position_meeting": [ null, null, "Id.InstanceOrObject" ], + "position_change": [ null, null, "Asset.Object", null ], + "collision_circle": [ null, null, null, "Id.InstanceOrObject", null, null ], + "collision_ellipse": [ null, null, null, null, "Id.InstanceOrObject", null, null ], + "collision_line": [ null, null, null, null, "Id.InstanceOrObject", "Bool", "Bool" ], + "collision_point": [ null, null, "Id.InstanceOrObject", null, null ], + "collision_rectangle": [ null, null, null, null, "Id.InstanceOrObject", null, null ], + "mp_linear_step_object": [ null, null, null, "Id.InstanceOrObject" ], + "mp_linear_path": [ "Asset.Path", null, null, null, null ], + "mp_linear_path_object": [ "Asset.Path", null, null, null, "Id.InstanceOrObject" ], + "mp_potential_step_object": [ null, null, null, "Id.InstanceOrObject" ], + "mp_potential_path": [ "Asset.Path", null, null, null, null, null ], + "mp_potential_path_object": [ "Asset.Path", null, null, null, null, "Id.InstanceOrObject" ], + "mp_grid_path": [ null, "Asset.Path", null, null, null, null, "Bool" ], + "mp_grid_add_instances": [ null, "Id.InstanceOrObject", null ], + "draw_surface_ext": [ null, null, null, null, null, null, "Constant.Color", null ], + "shader_is_compiled": [ "Asset.Shader" ], + "shader_set": [ "Asset.Shader" ], + "shader_get_uniform": [ "Asset.Shader", null ], + "shader_get_sampler_index": [ "Asset.Shader", null ], + "shader_enable_corner_id": [ "Bool" ], + "texture_set_interpolation": [ "Bool" ], + "texture_set_tiled": [ "Bool" ], + "gpu_set_texfilter": [ "Bool" ], + "tileset_get_texture": [ "Asset.Tileset" ], + "tileset_get_uvs": [ "Asset.Tileset" ], + "game_get_speed": [ "Constant.GameSpeed" ], + "game_set_speed": [ null, "Constant.GameSpeed" ], + "window_set_cursor": [ "Constant.Cursor" ], + "window_set_fullscreen": [ "Bool" ], + "window_set_color": [ "Constant.Color" ], + "keyboard_check": [ "Constant.VirtualKey" ], + "keyboard_check_pressed": [ "Constant.VirtualKey" ], + "keyboard_check_released": [ "Constant.VirtualKey" ], + "keyboard_check_direct": [ "Constant.VirtualKey" ], + "keyboard_clear": [ "Constant.VirtualKey" ], + "keyboard_key_press": [ "Constant.VirtualKey" ], + "keyboard_key_release": [ "Constant.VirtualKey" ], + "keyboard_set_map": [ "Constant.VirtualKey", "Constant.VirtualKey" ], + "keyboard_get_map": [ "Constant.VirtualKey" ], + "keyboard_unset_map": [ "Constant.VirtualKey" ], + "keyboard_set_numlock": [ "Bool" ], + "mouse_check_button": [ "Constant.MouseButton" ], + "mouse_check_button_pressed": [ "Constant.MouseButton" ], + "mouse_check_button_released": [ "Constant.MouseButton" ], + "mouse_clear": [ "Constant.MouseButton" ], + "device_mouse_check_button": [ null, "Constant.MouseButton" ], + "device_mouse_check_button_pressed": [ null, "Constant.MouseButton" ], + "device_mouse_check_button_released": [ null, "Constant.MouseButton" ], + "device_mouse_dbclick_enable": [ "Bool" ], + "gamepad_button_value": [ null, "Constant.GamepadButton" ], + "gamepad_button_check": [ null, "Constant.GamepadButton" ], + "gamepad_button_check_pressed": [ null, "Constant.GamepadButton" ], + "gamepad_button_check_released": [ null, "Constant.GamepadButton" ], + "gamepad_axis_value": [ null, "Constant.GamepadButton" ], + "gamepad_set_color": [ null, "Constant.Color" ], + "buffer_create": [ null, "Constant.BufferType", null ], + "buffer_create_from_vertex_buffer": [ null, "Constant.BufferType", null ], + "buffer_create_from_vertex_buffer_ext": [ null, "Constant.BufferType", null, null, null ], + "buffer_read": [ null, "Constant.BufferDataType" ], + "buffer_write": [ null, "Constant.BufferDataType", null ], + "buffer_peek": [ null, null, "Constant.BufferDataType" ], + "buffer_poke": [ null, null, "Constant.BufferDataType", null ], + "buffer_fill": [ null, null, "Constant.BufferDataType", null, null ], + "buffer_sizeof": [ "Constant.BufferDataType" ], + "buffer_seek": [ null, "Constant.SeekOffset", null ], + "steam_ugc_create_item": [ null, "Constant.SteamUGCFileType" ], + "steam_ugc_create_query_user": [ "Constant.SteamUGCList", "Constant.SteamUGCMatchType", "Constant.SteamUGCSortOrder", null ], + "steam_ugc_create_query_user_ex": [ "Constant.SteamUGCList", "Constant.SteamUGCMatchType", "Constant.SteamUGCSortOrder", null, null, null, null ], + "steam_ugc_create_query_all": [ "Constant.SteamUGCQueryType", "Constant.SteamUGCMatchType", null ], + "steam_ugc_create_query_all_ex": [ "Constant.SteamUGCQueryType", "Constant.SteamUGCMatchType", null, null, null ], + "steam_ugc_query_set_cloud_filename_filter": [ null, "Bool" ], + "steam_ugc_query_set_match_any_tag": [ null, "Bool" ], + "steam_ugc_query_set_return_long_description": [ null, "Bool" ], + "steam_ugc_query_set_return_total_only": [ null, "Bool" ], + "steam_ugc_query_set_allow_cached_response": [ null, "Bool" ], + "steam_create_leaderboard": [ null, "Constant.SteamLeaderboardSort", "Constant.SteamLeaderboardDisplay" ], + "steam_activate_overlay": [ "Constant.SteamOverlay" ], + "network_create_socket": [ "Constant.SocketType" ], + "network_set_config": [ "Constant.NetworkConfig", null ], + "gpu_set_blendmode": [ "Constant.BlendMode" ], + "draw_set_blend_mode": [ "Constant.BlendMode" ], + "gml_Script_draw_set_blend_mode": [ "Constant.BlendMode" ], + "gpu_set_blendmode_ext": [ "Constant.BlendMode", "Constant.BlendModeFactor" ], + "draw_set_blend_mode_ext": [ "Constant.BlendMode", "Constant.BlendModeFactor" ], + "gml_Script_draw_set_blend_mode_ext": [ "Constant.BlendMode", "Constant.BlendModeFactor" ], + "__view_get": "FunctionArguments.__view_get", + "__view_set": "FunctionArguments.__view_set", + "gml_Script___view_get": "FunctionArguments.__view_get", + "gml_Script___view_set": "FunctionArguments.__view_set", + "__background_set": [ "Enum.e__BG", null, null ], + "__background_get": [ "Enum.e__BG", null, null ], + "gml_Script___background_set": [ "Enum.e__BG", null, null ], + "gml_Script___background_get": [ "Enum.e__BG", null, null ], + "event_perform": { + "MacroType": "Union", + "Macros": [ + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "3", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeStep" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "8", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeDraw" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "6", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeMouse" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "7", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeOther" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "13", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeGesture" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "4", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Asset.Object" + ], + [ + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "5", + "ConditionalType": "Integer" + }, + { + "MacroType": "Match", + "ConditionalValue": "9", + "ConditionalType": "Integer" + }, + { + "MacroType": "Match", + "ConditionalValue": "10", + "ConditionalType": "Integer" + } + ] + }, + "Constant.EventType" + ] + }, + "Constant.VirtualKey" + ], + [ "Constant.EventType", null ] + ] + }, + "event_perform_object": { + "MacroType": "Union", + "Macros": [ + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "3", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeStep" + ], + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "8", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeDraw" + ], + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "6", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeMouse" + ], + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "7", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeOther" + ], + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "13", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Constant.EventSubtypeGesture" + ], + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "4", + "ConditionalType": "Integer" + }, + "Constant.EventType" + ] + }, + "Asset.Object" + ], + [ + "Asset.Object", + { + "MacroType": "Intersect", + "Macros": [ + { + "MacroType": "Union", + "Macros": [ + { + "MacroType": "Match", + "ConditionalValue": "5", + "ConditionalType": "Integer" + }, + { + "MacroType": "Match", + "ConditionalValue": "9", + "ConditionalType": "Integer" + }, + { + "MacroType": "Match", + "ConditionalValue": "10", + "ConditionalType": "Integer" + } + ] + }, + "Constant.EventType" + ] + }, + "Constant.VirtualKey" + ], + [ "Asset.Object", "Constant.EventType", null ] + ] + }, + "event_perform_async": [ "Constant.AsyncEventType", null ], + "draw_primitive_begin": [ "Constant.PrimitiveType" ], + "draw_primitive_begin_texture": [ "Constant.PrimitiveType", null ], + "vertex_submit": [ null, "Constant.PrimitiveType", null ], + "vertex_submit_ext": [ null, "Constant.PrimitiveType", null, null, null ], + "vertex_color": [ null, "Constant.Color", null ], + "vertex_colour": [ null, "Constant.Color", null ], + "vertex_format_add_custom": [ "Constant.VertexType", "Constant.VertexUsage" ], + "ds_exists": [ null, "Constant.DsType" ], + "audio_effect_create": [ "Enum.AudioEffectType" ] + }, + "FunctionReturn": { + "draw_getpixel": "Constant.Color", + "draw_getpixel_ext": "Constant.Color" + } + }, + "CodeEntryNames": { + "gml_Script___view_get": { + "Variables": { + "__prop": "Enum.e__VW" + } + }, + "gml_Script___view_set_internal": { + "Variables": { + "__prop": "Enum.e__VW" + } + }, + "gml_Script___background_get_internal": { + "Variables": { + "__prop": "Enum.e__BG" + } + }, + "gml_Script___background_set_internal": { + "Variables": { + "__prop": "Enum.e__BG" + } + } + } +} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/Underanalyzer/template.json b/UndertaleModLib/GameSpecificData/Underanalyzer/template.json new file mode 100644 index 000000000..f8b89cd6d --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Underanalyzer/template.json @@ -0,0 +1,20 @@ +{ + "Types": { + "Enums": { + }, + "Constants": { + }, + "General": { + } + }, + "GlobalNames": { + "Variables": { + }, + "FunctionArguments": { + }, + "FunctionReturn": { + } + }, + "CodeEntryNames": { + } +} \ No newline at end of file diff --git a/UndertaleModLib/GameSpecificData/Underanalyzer/undertale.json b/UndertaleModLib/GameSpecificData/Underanalyzer/undertale.json new file mode 100644 index 000000000..faac0374d --- /dev/null +++ b/UndertaleModLib/GameSpecificData/Underanalyzer/undertale.json @@ -0,0 +1,248 @@ +{ + "Types": { + "Enums": { + }, + "Constants": { + "Constant.OperatingSystem": { + "os_unknown": -1, + "os_windows": 0, + "os_macosx": 1, + "os_psp": 2, + "os_ios": 3, + "os_android": 4, + "os_symbian": 5, + "os_linux": 6, + "os_winphone": 7, + "os_tizen": 8, + "os_win8native": 9, + "os_wiiu": 10, + "os_3ds": 11, + "os_psvita": 12, + "os_bb10": 13, + "os_ps4": 14, + "os_xboxone": 15, + "os_ps3": 16, + "os_xbox360": 17, + "os_uwp": 18, + "os_switch_beta": 20, + "os_switch": 21, + "os_ps5": 22, + "os_gdk": 23, + "os_gxgames": 24 + } + }, + "General": { + "Undertale.Id.SoundAssetOrInstance": { + "MacroType": "Union", + "Macros": [ "Asset.Sound", "Id.Instance" ] + } + } + }, + "GlobalNames": { + "Variables": { + "currentroom": "Asset.Room", + "dsprite": "Asset.Sprite", + "usprite": "Asset.Sprite", + "lsprite": "Asset.Sprite", + "rsprite": "Asset.Sprite", + "dtsprite": "Asset.Sprite", + "utsprite": "Asset.Sprite", + "ltsprite": "Asset.Sprite", + "rtsprite": "Asset.Sprite", + "normalsprite": "Asset.Sprite", + "hurtsprite": "Asset.Sprite", + "hurtsound": "Asset.Sound", + "color": "Constant.Color", + "batmusic": "Asset.Sound", + "dummy": "Asset.Object", + "sm": "Asset.Object", + "king": "Asset.Object", + "hand1pic": "Asset.Sprite", + "hand2pic": "Asset.Sprite", + "headpic": "Asset.Sprite", + "bodypic": "Asset.Sprite", + "do_room_goto": "Bool", + "do_room_goto_target": "Asset.Room", + "myroom": "Asset.Room", + "myfont": "Asset.Font", + "newfont": "Asset.Font", + "button0": "Constant.GamepadButton", + "button1": "Constant.GamepadButton", + "button2": "Constant.GamepadButton", + "sound0": "Asset.Sound", + "sound1": "Asset.Sound", + "sound2": "Asset.Sound", + "asprite": "Asset.Sprite", + "bsprite": "Asset.Sprite", + "tailobj": "Asset.Object", + "heart": "Asset.Object", + "room_id": "Asset.Room", + "overlay": { + "MacroType": "Union", + "Macros": [ "Asset.Sprite", "Id.Instance" ] + }, + "overlay1": "Asset.Sprite", + "os_type": "Constant.OperatingSystem", + "onionsprite": "Asset.Sprite", + "headsprite": "Asset.Sprite", + "breaksprite": "Asset.Sprite", + "foodimg": "Asset.Sprite", + "facespr": "Asset.Sprite", + "bombsprite": "Asset.Sprite", + "mysprite": "Asset.Sprite", + "arms": "Asset.Sprite", + "levelpic": "Asset.Sprite", + "image": "Asset.Sprite", + "thischara": "Asset.Object", + "tspr1": "Asset.Sprite", + "tspr2": "Asset.Sprite", + "tspr3": "Asset.Sprite", + "tspr4": "Asset.Sprite", + "tspr5": "Asset.Sprite", + "snapper": "Asset.Object", + "subject": "Asset.Object", + "clip": "Asset.Object" + }, + "FunctionArguments": { + "snd_play": [ "Asset.Sound" ], + "snd_stop": [ "Asset.Sound" ], + "snd_isplaying": [ "Asset.Sound" ], + "caster_play": [ "Asset.Sound", null, null ], + "caster_play_l": [ "Asset.Sound", null, null ], + "caster_loop": [ "Asset.Sound", null, null ], + "caster_get_pitch": [ "Asset.Sound" ], + "caster_get_volume": [ "Asset.Sound" ], + "caster_set_volume": [ "Undertale.Id.SoundAssetOrInstance", null ], + "caster_set_pitch": [ "Undertale.Id.SoundAssetOrInstance", null ], + "caster_free": [ "Undertale.Id.SoundAssetOrInstance" ], + "caster_resume": [ "Undertale.Id.SoundAssetOrInstance" ], + "caster_is_playing": [ "Asset.Sound" ], + "caster_stop": [ "Undertale.Id.SoundAssetOrInstance" ], + "SCR_TEXTSETUP": [ "Asset.Font", "Constant.Color", null, null, null, null, null, "Asset.Sound", null, null ], + "scr_getsprite": [ "Asset.Sprite" ], + "scr_setfont": [ "Asset.Font" ], + "scr_bouncer": [ "Asset.Object", null, null ], + "scr_draw_background_ps4": [ "Asset.Background", null, null ], + "scr_marker": [ null, null, "Asset.Sprite" ] + }, + "FunctionReturn": { + "gml_Script_scr_getsprite": "Asset.Sprite", + "gml_Script_scr_getbuttonsprite": { + "MacroType": "Union", + "Macros": [ "Asset.Sprite", "Id.Instance" ] + } + } + }, + "CodeEntryNames": { + "gml_Script_scr_getmusindex": { + "Variables": { + "song_index": "Asset.Sound" + } + }, + "gml_Script_caster_free": { + "Variables": { + "argument0": "Undertale.Id.SoundAssetOrInstance" + } + }, + "gml_Script_scr_roomname": { + "FunctionArguments": { + "real": [ "Asset.Room" ] + } + }, + "gml_Script_scr_getsprite": { + "Variables": { + "sprite_id": "Asset.Sprite" + } + }, + "gml_Object_obj_fakeborderdraw_Draw_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_vertcroissant_Alarm_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_vertcroissant_Step_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_croissant_Step_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_vertspider_Create_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_vertspider_Step_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_spiderbullet_Alarm_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_spiderbullet_Step_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_donutbullet_Alarm_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_donutbullet_Step_0": { + "Variables": { + "op": "Asset.Object" + } + }, + "gml_Object_obj_dogshrine2_Create_0": { + "Variables": { + "op": "Asset.Sprite" + } + }, + "gml_Object_obj_papdate_Draw_0": { + "Variables": { + "face": "Asset.Sprite" + } + }, + "gml_Object_obj_vulkin_Create_0": { + "Variables": { + "face": "Asset.Sprite" + } + }, + "gml_Object_obj_vulkin_Alarm_6": { + "Variables": { + "face": "Asset.Sprite" + } + }, + "gml_Object_obj_vulkin_Draw_0": { + "Variables": { + "face": "Asset.Sprite" + } + }, + "gml_Object_obj_monster_extrabody_Draw_0": { + "Variables": { + "face": "Asset.Sprite" + } + }, + "gml_Object_obj_bringitinguys_Other_11": { + "Variables": { + "face": "Asset.Sprite" + } + }, + "gml_Script_scr_getbuttonsprite": { + "Variables": { + "button": "Constant.GamepadButton" + } + } + } +} \ No newline at end of file diff --git a/UndertaleModLib/Models/UndertaleCode.cs b/UndertaleModLib/Models/UndertaleCode.cs index 086b5ad34..b7a99172e 100644 --- a/UndertaleModLib/Models/UndertaleCode.cs +++ b/UndertaleModLib/Models/UndertaleCode.cs @@ -4,6 +4,7 @@ using System.IO; using System.Linq; using System.Text; +using Underanalyzer; using UndertaleModLib.Compiler; using UndertaleModLib.Decompiler; using UndertaleModLib.Util; @@ -13,7 +14,7 @@ namespace UndertaleModLib.Models; /// /// A bytecode instruction. /// -public class UndertaleInstruction : UndertaleObject +public class UndertaleInstruction : UndertaleObject, IGMInstruction { /// /// Possible opcodes an instruction can use. @@ -354,7 +355,7 @@ public static void ParseReferenceChain(UndertaleReader reader, T obj) uint addr = reader.GetAddressForUndertaleObject(obj.FirstAddress); for (int i = 0; i < obj.Occurrences; i++) { - reference = reader.GetUndertaleObjectAtAddress(addr).GetReference(obj is UndertaleFunction); + reference = reader.GetUndertaleObjectAtAddress(addr).GetReference(true); if (reference == null) throw new IOException("Failed to find reference at " + addr); reference.Target = obj; @@ -573,6 +574,12 @@ public void Serialize(UndertaleWriter writer) writer.WriteUndertaleObject((Reference)Value); break; } + if (Value.GetType() == typeof(Reference)) + { + // Write variable reference, rather than integer + writer.WriteUndertaleObject((Reference)Value); + break; + } writer.Write((int)Value); break; case DataType.Int64: @@ -867,6 +874,13 @@ public void Unserialize(UndertaleReader reader) { reader.undertaleData.SetGMS2Version(2023, 8); } + + // If this is an asset type found in GameMaker 2024.4 or above, track that as well + if (!reader.undertaleData.IsVersionAtLeast(2024, 4)) + { + if (CheckIfAssetTypeIs2024_4(reader.undertaleData, IntArgument & 0xffffff, IntArgument >> 24)) + reader.undertaleData.SetGMS2Version(2024, 4); + } } // If this is a chknullish instruction (ID -10), then this implies GameMaker 2.3.7 or above @@ -1054,7 +1068,6 @@ public void ToString(StringBuilder stringBuilder, UndertaleCode code, List // Special dup instruction with extra parameters sbh.Append(stringBuilder, ' '); sbh.Append(stringBuilder, (byte)ComparisonKind & 0x7F); - sbh.Append(stringBuilder, " ;;; this is a weird GMS2.3+ swap instruction"); } } } @@ -1100,13 +1113,21 @@ public void ToString(StringBuilder stringBuilder, UndertaleCode code, List { // Special scenario - the swap instruction (see #129) sbh.Append(stringBuilder, SwapExtra); - sbh.Append(stringBuilder, " ;;; this is a weird swap instruction, see #129"); } else { if (Type1 == DataType.Variable && TypeInst != InstanceType.Undefined) { - sbh.Append(stringBuilder, TypeInst.ToString().ToLower(CultureInfo.InvariantCulture)); + if (Destination.Type == VariableType.Instance) + { + // Syntax here is a bit ugly (but maintaining compatibility) - this is a room instance ID + sbh.Append(stringBuilder, (short)TypeInst); + } + else + { + // Regular instance type + sbh.Append(stringBuilder, TypeInst.ToString().ToLower(CultureInfo.InvariantCulture)); + } sbh.Append(stringBuilder, '.'); } sbh.Append(stringBuilder, Destination); @@ -1122,6 +1143,19 @@ public void ToString(StringBuilder stringBuilder, UndertaleCode code, List sbh.Append(stringBuilder, TypeInst.ToString().ToLower(CultureInfo.InvariantCulture)); sbh.Append(stringBuilder, '.'); } + if (Type1 == DataType.Int32) + { + if (Value.GetType() == typeof(Reference)) + { + sbh.Append(stringBuilder, "[function]"); + } + else if (Value.GetType() == typeof(Reference)) + { + sbh.Append(stringBuilder, "[variable]"); + sbh.Append(stringBuilder, (Value as Reference).Target.Name?.Content ?? ""); + break; + } + } sbh.Append(stringBuilder, (Value as IFormattable)?.ToString(null, CultureInfo.InvariantCulture) ?? Value.ToString()); break; @@ -1168,6 +1202,115 @@ public uint CalculateInstructionSize() return 2; return 1; } + + // Underanalyzer implementations + int IGMInstruction.Address => (int)Address * 4; + IGMInstruction.Opcode IGMInstruction.Kind => (IGMInstruction.Opcode)Kind; + IGMInstruction.ExtendedOpcode IGMInstruction.ExtKind => (IGMInstruction.ExtendedOpcode)Value; + IGMInstruction.ComparisonType IGMInstruction.ComparisonKind => (IGMInstruction.ComparisonType)ComparisonKind; + IGMInstruction.DataType IGMInstruction.Type1 => (IGMInstruction.DataType)Type1; + IGMInstruction.DataType IGMInstruction.Type2 => (IGMInstruction.DataType)Type2; + IGMInstruction.InstanceType IGMInstruction.InstType => (IGMInstruction.InstanceType)TypeInst; + IGMVariable IGMInstruction.Variable => Destination?.Target ?? (Value as Reference)?.Target; + IGMFunction IGMInstruction.Function => Function?.Target ?? (Value as Reference)?.Target; + IGMInstruction.VariableType IGMInstruction.ReferenceVarType => (IGMInstruction.VariableType)(Destination?.Type ?? (Value as Reference)?.Type); + double IGMInstruction.ValueDouble => (double)Value; + short IGMInstruction.ValueShort => (short)Value; + int IGMInstruction.ValueInt => (int)Value; + long IGMInstruction.ValueLong => (long)Value; + bool IGMInstruction.ValueBool => (bool)Value; + IGMString IGMInstruction.ValueString => ((UndertaleResourceById)Value).Resource; + int IGMInstruction.BranchOffset => JumpOffset * 4; + bool IGMInstruction.PopWithContextExit => JumpOffsetPopenvExitMagic; + byte IGMInstruction.DuplicationSize => Extra; + byte IGMInstruction.DuplicationSize2 => (byte)(((byte)ComparisonKind & 0x7F) >> 3); + int IGMInstruction.ArgumentCount => (Kind == Opcode.Call) ? ArgumentsCount : Extra; + int IGMInstruction.PopSwapSize => SwapExtra; + int IGMInstruction.AssetReferenceId => IntArgument & 0xffffff; + AssetType IGMInstruction.GetAssetReferenceType(IGameContext context) => AdaptAssetType((context as GlobalDecompileContext).Data, IntArgument >> 24); + + /// + /// Adapts asset type IDs to the enum, across versions. + /// + private static AssetType AdaptAssetType(UndertaleData data, int type) + { + if (data.IsVersionAtLeast(2024, 4)) + { + return type switch + { + 0 => AssetType.Object, + 1 => AssetType.Sprite, + 2 => AssetType.Sound, + 3 => AssetType.Room, + 4 => AssetType.Path, + 5 => AssetType.Script, + 6 => AssetType.Font, + 7 => AssetType.Timeline, + 8 => AssetType.Shader, + 9 => AssetType.Sequence, + 10 => AssetType.AnimCurve, + 11 => AssetType.ParticleSystem, + 13 => AssetType.Background, + 14 => AssetType.RoomInstance, + _ => throw new Exception($"Unknown asset type {type}") + }; + } + + return type switch + { + 0 => AssetType.Object, + 1 => AssetType.Sprite, + 2 => AssetType.Sound, + 3 => AssetType.Room, + 4 => AssetType.Background, + 5 => AssetType.Path, + 6 => AssetType.Script, + 7 => AssetType.Font, + 8 => AssetType.Timeline, + 10 => AssetType.Shader, + 11 => AssetType.Sequence, + 12 => AssetType.AnimCurve, + 13 => AssetType.ParticleSystem, + 14 => AssetType.RoomInstance, + _ => throw new Exception($"Unknown asset type {type}") + }; + } + + /// + /// Checks whether the given pair of ID/type is guaranteed to be 2024.4+. + /// That is, it does not exist in the game data when using old IDs. + /// + private static bool CheckIfAssetTypeIs2024_4(UndertaleData data, int resourceId, int resourceType) + { + switch (resourceType) + { + // cases 0-3 are unnecessary + + case 4: + return resourceId >= data.Backgrounds.Count; + case 5: + return resourceId >= data.Paths.Count; + case 6: + return resourceId >= data.Scripts.Count; + case 7: + return resourceId >= data.Fonts.Count; + case 8: + return resourceId >= data.Timelines.Count; + case 9: + return true; // used to be unused, now are sequences + case 10: + return resourceId >= data.Shaders.Count; + case 11: + return resourceId >= data.Sequences.Count; + + // case 12 used to be animcurves, but now is unused (so would actually mean earlier than 2024.4) + + case 13: + return resourceId >= data.ParticleSystems.Count; + } + + return false; + } } public static class UndertaleInstructionUtil @@ -1209,7 +1352,7 @@ public static UndertaleInstruction.DataType FromOpcodeParam(string type) /// A code entry in a data file. /// [PropertyChanged.AddINotifyPropertyChangedInterface] -public class UndertaleCode : UndertaleNamedResource, UndertaleObjectWithBlobs, IDisposable +public class UndertaleCode : UndertaleNamedResource, UndertaleObjectWithBlobs, IDisposable, IGMCode { /// /// The name of the code entry. @@ -1233,8 +1376,6 @@ public class UndertaleCode : UndertaleNamedResource, UndertaleObjectWithBlobs, I /// public ushort ArgumentsCount { get; set; } - - public bool WeirdLocalsFlag { get; set; } public uint Offset { get; set; } @@ -1613,4 +1754,16 @@ public void Dispose() Name = null; _unsupportedBuffer = null; } -} \ No newline at end of file + + // Underanalyzer implementations + IGMString IGMCode.Name => Name; + int IGMCode.Length => (int)Length; + int IGMCode.InstructionCount => Instructions.Count; + int IGMCode.StartOffset => (int)Offset; + IGMCode IGMCode.Parent => ParentEntry; + int IGMCode.ChildCount => ChildEntries.Count; + int IGMCode.ArgumentCount => ArgumentsCount; + int IGMCode.LocalCount => (int)LocalsCount; + public IGMInstruction GetInstruction(int index) => Instructions[index]; + public IGMCode GetChild(int index) => ChildEntries[index]; +} diff --git a/UndertaleModLib/Models/UndertaleFunction.cs b/UndertaleModLib/Models/UndertaleFunction.cs index a2ad482cb..c31c6e7a3 100644 --- a/UndertaleModLib/Models/UndertaleFunction.cs +++ b/UndertaleModLib/Models/UndertaleFunction.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using Underanalyzer; using static UndertaleModLib.Models.UndertaleGeneralInfo; namespace UndertaleModLib.Models; @@ -10,7 +11,7 @@ namespace UndertaleModLib.Models; /// A function entry as it's used in a GameMaker data file. /// [PropertyChanged.AddINotifyPropertyChangedInterface] -public class UndertaleFunction : UndertaleNamedResource, UndertaleInstruction.ReferencedObject, IStaticChildObjectsSize, IDisposable +public class UndertaleFunction : UndertaleNamedResource, UndertaleInstruction.ReferencedObject, IStaticChildObjectsSize, IDisposable, IGMFunction { /// public static readonly uint ChildObjectsSize = 12; @@ -97,6 +98,9 @@ public void Dispose() Name = null; FirstAddress = null; } + + // Underanalyzer implementations + IGMString IGMFunction.Name => Name; } // Seems to be unused. You can remove all entries and the game still works normally. TODO: not true, incorrect/missing locals can wreak some weird havoc like random segfaults. diff --git a/UndertaleModLib/Models/UndertaleGameObject.cs b/UndertaleModLib/Models/UndertaleGameObject.cs index a94028af0..756a186e9 100644 --- a/UndertaleModLib/Models/UndertaleGameObject.cs +++ b/UndertaleModLib/Models/UndertaleGameObject.cs @@ -279,7 +279,7 @@ public static uint UnserializeChildObjectCount(UndertaleReader reader) // TODO: Add documentation for these methods. // These methods are used by scripts for getting a code entry for a certain event of the game object. - public UndertaleCode EventHandlerFor(EventType type, uint subtype, IList strg, IList codelist, IList localslist) + public UndertaleCode EventHandlerFor(EventType type, uint subtype, UndertaleData data) { Event subtypeObj = Events[(int)type].FirstOrDefault(x => x.EventSubtype == subtype); if (subtypeObj == null) @@ -288,107 +288,75 @@ public UndertaleCode EventHandlerFor(EventType type, uint subtype, IList strg, IList codelist, IList localslist) - { - return EventHandlerFor(type, 0u, strg, codelist, localslist); + return EventHandlerFor(type, 0u, data); } public UndertaleCode EventHandlerFor(EventType type, EventSubtypeKey subtype, UndertaleData data) - { - return EventHandlerFor(type, subtype, data.Strings, data.Code, data.CodeLocals); - } - - public UndertaleCode EventHandlerFor(EventType type, EventSubtypeKey subtype, IList strg, IList codelist, IList localslist) { if (type != EventType.Keyboard && type != EventType.KeyPress && type != EventType.KeyRelease) throw new InvalidOperationException(); - return EventHandlerFor(type, (uint)subtype, strg, codelist, localslist); + return EventHandlerFor(type, (uint)subtype, data); } public UndertaleCode EventHandlerFor(EventType type, EventSubtypeStep subtype, UndertaleData data) - { - return EventHandlerFor(type, subtype, data.Strings, data.Code, data.CodeLocals); - } - - public UndertaleCode EventHandlerFor(EventType type, EventSubtypeStep subtype, IList strg, IList codelist, IList localslist) { if (type != EventType.Step) throw new InvalidOperationException(); - return EventHandlerFor(type, (uint)subtype, strg, codelist, localslist); + return EventHandlerFor(type, (uint)subtype, data); } public UndertaleCode EventHandlerFor(EventType type, EventSubtypeMouse subtype, UndertaleData data) - { - return EventHandlerFor(type, subtype, data.Strings, data.Code, data.CodeLocals); - } - - public UndertaleCode EventHandlerFor(EventType type, EventSubtypeMouse subtype, IList strg, IList codelist, IList localslist) { if (type != EventType.Mouse) throw new InvalidOperationException(); - return EventHandlerFor(type, (uint)subtype, strg, codelist, localslist); + return EventHandlerFor(type, (uint)subtype, data); } public UndertaleCode EventHandlerFor(EventType type, EventSubtypeOther subtype, UndertaleData data) - { - return EventHandlerFor(type, subtype, data.Strings, data.Code, data.CodeLocals); - } - - public UndertaleCode EventHandlerFor(EventType type, EventSubtypeOther subtype, IList strg, IList codelist, IList localslist) { if (type != EventType.Other) throw new InvalidOperationException(); - return EventHandlerFor(type, (uint)subtype, strg, codelist, localslist); + return EventHandlerFor(type, (uint)subtype, data); } public UndertaleCode EventHandlerFor(EventType type, EventSubtypeDraw subtype, UndertaleData data) - { - return EventHandlerFor(type, subtype, data.Strings, data.Code, data.CodeLocals); - } - - public UndertaleCode EventHandlerFor(EventType type, EventSubtypeDraw subtype, IList strg, IList codelist, IList localslist) { if (type != EventType.Draw) throw new InvalidOperationException(); - return EventHandlerFor(type, (uint)subtype, strg, codelist, localslist); + return EventHandlerFor(type, (uint)subtype, data); } #endregion diff --git a/UndertaleModLib/Models/UndertaleGeneralInfo.cs b/UndertaleModLib/Models/UndertaleGeneralInfo.cs index fb502e56c..a03a1b6ca 100644 --- a/UndertaleModLib/Models/UndertaleGeneralInfo.cs +++ b/UndertaleModLib/Models/UndertaleGeneralInfo.cs @@ -344,12 +344,10 @@ public static (uint, uint, uint, uint, BranchType) TestForCommonGMSVersions(Unde if (detectedVer.Major > 2 || (detectedVer.Major == 2 && detectedVer.Minor >= 3)) { CompileContext.GMS2_3 = true; - DecompileContext.GMS2_3 = true; } else { CompileContext.GMS2_3 = false; - DecompileContext.GMS2_3 = false; } return detectedVer; diff --git a/UndertaleModLib/Models/UndertaleRoom.cs b/UndertaleModLib/Models/UndertaleRoom.cs index 81ff0d03f..723db2296 100644 --- a/UndertaleModLib/Models/UndertaleRoom.cs +++ b/UndertaleModLib/Models/UndertaleRoom.cs @@ -1196,12 +1196,12 @@ public UndertaleNamedResource ObjectDefinition /// /// The x coordinate of the tile in . /// - public uint SourceX { get; set; } + public int SourceX { get; set; } /// /// The y coordinate of the tile in . /// - public uint SourceY { get; set; } + public int SourceY { get; set; } /// /// The width of the tile. @@ -1283,8 +1283,8 @@ public void Unserialize(UndertaleReader reader) _spriteDefinition = reader.ReadUndertaleObject>(); else _backgroundDefinition = reader.ReadUndertaleObject>(); - SourceX = reader.ReadUInt32(); - SourceY = reader.ReadUInt32(); + SourceX = reader.ReadInt32(); + SourceY = reader.ReadInt32(); Width = reader.ReadUInt32(); Height = reader.ReadUInt32(); TileDepth = reader.ReadInt32(); diff --git a/UndertaleModLib/Models/UndertaleString.cs b/UndertaleModLib/Models/UndertaleString.cs index 848412cc2..858f42135 100644 --- a/UndertaleModLib/Models/UndertaleString.cs +++ b/UndertaleModLib/Models/UndertaleString.cs @@ -6,7 +6,7 @@ namespace UndertaleModLib.Models; /// A string entry a data file can have. /// [PropertyChanged.AddINotifyPropertyChangedInterface] -public class UndertaleString : UndertaleResource, ISearchable, IDisposable +public class UndertaleString : UndertaleResource, ISearchable, IDisposable, Underanalyzer.IGMString { /// /// The contents of the string. diff --git a/UndertaleModLib/Models/UndertaleVariable.cs b/UndertaleModLib/Models/UndertaleVariable.cs index 7d4b491ef..543fe28f3 100644 --- a/UndertaleModLib/Models/UndertaleVariable.cs +++ b/UndertaleModLib/Models/UndertaleVariable.cs @@ -1,4 +1,5 @@ using System; +using Underanalyzer; namespace UndertaleModLib.Models; @@ -6,7 +7,7 @@ namespace UndertaleModLib.Models; /// A variable entry in a GameMaker data file. /// // TODO: INotifyPropertyChanged -public class UndertaleVariable : UndertaleNamedResource, ISearchable, UndertaleInstruction.ReferencedObject, IDisposable +public class UndertaleVariable : UndertaleNamedResource, ISearchable, UndertaleInstruction.ReferencedObject, IDisposable, IGMVariable { /// The name of the Variable. public UndertaleString Name { get; set; } @@ -96,4 +97,9 @@ public bool SearchMatches(string filter) { return Name?.SearchMatches(filter) ?? false; } + + // Underanalyzer implementations + IGMString IGMVariable.Name => Name; + IGMInstruction.InstanceType IGMVariable.InstanceType => (IGMInstruction.InstanceType)InstanceType; + int IGMVariable.VariableID => VarID; } \ No newline at end of file diff --git a/UndertaleModLib/Scripting/IScriptInterface.cs b/UndertaleModLib/Scripting/IScriptInterface.cs index c74cd6786..6f6d59cb1 100644 --- a/UndertaleModLib/Scripting/IScriptInterface.cs +++ b/UndertaleModLib/Scripting/IScriptInterface.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; +using Underanalyzer.Decompiler; using UndertaleModLib.Decompiler; using UndertaleModLib.Models; @@ -192,21 +193,23 @@ sealed Task Make_New_File() ///Get the decompiled text from a code entry (like gml_Script_moveTo). /// /// The name of the code entry from which to get the decompiled code from. - /// The GlobalDecompileContext + /// The GlobalDecompileContext to use for decompilation. + /// The settings to use for decompilation, or to use the default. /// Decompiled text as a . /// This will return a string, even if the decompilation failed! Usually commented out and featuring /// DECOMPILER FAILED! . - string GetDecompiledText(string codeName, GlobalDecompileContext context = null); + string GetDecompiledText(string codeName, GlobalDecompileContext context = null, IDecompileSettings settings = null); /// /// Get the decompiled text from an object. /// /// The object from which to get the decompiled code from. - /// The GlobalDecompileContext + /// The GlobalDecompileContext to use for decompilation. + /// The settings to use for decompilation, or to use the default. /// Decompiled text as a . /// This will return a string, even if the decompilation failed! Usually commented out and featuring /// DECOMPILER FAILED! . - string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null); + string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null, IDecompileSettings settings = null); /// /// Get the disassembly from a code entry (like gml_Script_moveTo). @@ -484,12 +487,12 @@ sealed Task StopUpdater () /// /// Generates a decompiled code cache to accelerate operations that need to access code often. /// - /// The GlobalDecompileContext. + /// The GlobalDecompileContext to be used when decompiling. /// The dialog that should be shown. If then a new dialog will be automatically created and shown. /// Whether to clear from . /// Whether the decompiled GML cache was generated or not. if it was successful, /// if it wasn't or is disabled. - Task GenerateGMLCache(ThreadLocal decompileContext = null, object dialog = null, bool clearGMLEditedBefore = false); + Task GenerateGMLCache(GlobalDecompileContext decompileContext = null, object dialog = null, bool clearGMLEditedBefore = false); /// /// Changes the currently selected in the GUI. @@ -585,8 +588,10 @@ sealed string PromptChooseDirectory(string prompt) /// The replacement term. /// Whether the keyword search should be case-sensitive. /// Whether should be treated as RegEx. - /// The global decompile context. - void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null); + /// The GlobalDecompileContext to use for decompilation. + /// The settings to use for decompilation, or to use the default. + void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, + GlobalDecompileContext context = null, IDecompileSettings settings = null); /// /// Find a keyword in a GML code entry and replaces it with a replacement string. @@ -596,8 +601,10 @@ sealed string PromptChooseDirectory(string prompt) /// The replacement term. /// Whether the keyword search should be case-sensitive. /// Whether should be treated as RegEx. - /// The global decompile context. - void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null); + /// The GlobalDecompileContext to use for decompilation. + /// The settings to use for decompilation, or to use the default. + void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, + GlobalDecompileContext context = null, IDecompileSettings settings = null); /// /// Method returning a dummy boolean value. diff --git a/UndertaleModLib/UndertaleChunks.cs b/UndertaleModLib/UndertaleChunks.cs index 3f5e2095f..f52dc77f8 100644 --- a/UndertaleModLib/UndertaleChunks.cs +++ b/UndertaleModLib/UndertaleChunks.cs @@ -1367,9 +1367,58 @@ public class UndertaleChunkFUNC : UndertaleChunk public UndertaleSimpleList Functions = new UndertaleSimpleList(); public UndertaleSimpleList CodeLocals = new UndertaleSimpleList(); + private static bool checkedFor2024_8; + + private void CheckFor2024_8(UndertaleReader reader) + { + if (reader.undertaleData.IsVersionAtLeast(2024, 8) + || reader.Bytecode14OrLower || Length == 0) // Irrelevant or non-deductible + { + checkedFor2024_8 = true; + return; + } + + long returnPos = reader.Position; + + // The CodeLocals list was removed in 2024.8, so we check if Functions + // is the only thing in here. + uint funcCount = reader.ReadUInt32(); + // Skip over the (Simple)List + // (3*4 is the size of an UndertaleFunction object) + reader.Position += 3 * 4 * funcCount; + if (reader.Position == returnPos + Length) + { + // Whatever, let's consider this a win + reader.undertaleData.SetGMS2Version(2024, 8); + reader.Position = returnPos; + checkedFor2024_8 = true; + return; + } + + // Then align the position + int specAlign = reader.undertaleData.PaddingAlignException; + while ((reader.AbsPosition & ((specAlign == -1 ? 16 : specAlign) - 1)) != 0) + { + if (reader.ReadByte() != 0) + { + // If we hit a non-zero byte, it can't be padding + reader.Position = returnPos; + checkedFor2024_8 = true; + return; + } + } + + // Then check if we're at the end of the chunk + if (reader.Position == returnPos + Length) + reader.undertaleData.SetGMS2Version(2024, 8); + + reader.Position = returnPos; + checkedFor2024_8 = true; + } + internal override void SerializeChunk(UndertaleWriter writer) { - if (Functions == null && CodeLocals == null) + if (Functions is null && CodeLocals is null) return; UndertaleInstruction.Reference.SerializeReferenceChain(writer, writer.undertaleData.Code, Functions); @@ -1382,12 +1431,16 @@ internal override void SerializeChunk(UndertaleWriter writer) else { writer.WriteUndertaleObject(Functions); - writer.WriteUndertaleObject(CodeLocals); + if (!writer.undertaleData.IsVersionAtLeast(2024, 8)) + writer.WriteUndertaleObject(CodeLocals); } } internal override void UnserializeChunk(UndertaleReader reader) { + if (!checkedFor2024_8) + CheckFor2024_8(reader); + if (Length == 0 && reader.undertaleData.GeneralInfo?.BytecodeVersion > 14) // YYC, 14 < bytecode <= 16, chunk is empty but exists { Functions = null; @@ -1404,16 +1457,23 @@ internal override void UnserializeChunk(UndertaleReader reader) Functions.SetCapacity(Length / 12); while (reader.Position + 12 <= startPosition + Length) Functions.Add(reader.ReadUndertaleObject()); + CodeLocals = null; } else { Functions = reader.ReadUndertaleObject>(); - CodeLocals = reader.ReadUndertaleObject>(); + if (!reader.undertaleData.IsVersionAtLeast(2024, 8)) + CodeLocals = reader.ReadUndertaleObject>(); + else + CodeLocals = null; } } internal override uint UnserializeObjectCount(UndertaleReader reader) { + checkedFor2024_8 = false; + CheckFor2024_8(reader); + if (Length == 0 && reader.undertaleData.GeneralInfo?.BytecodeVersion > 14) return 0; @@ -1422,7 +1482,8 @@ internal override uint UnserializeObjectCount(UndertaleReader reader) if (!reader.Bytecode14OrLower) { count += 1 + UndertaleSimpleList.UnserializeChildObjectCount(reader); - count += 1 + UndertaleSimpleList.UnserializeChildObjectCount(reader); + if (!reader.undertaleData.IsVersionAtLeast(2024, 8)) + count += 1 + UndertaleSimpleList.UnserializeChildObjectCount(reader); } else count = Length / 12; @@ -2199,7 +2260,8 @@ private void CheckPsemVersion(UndertaleReader reader) // Fortunately, consistent padding means we need no parsing here if (Length == 0xF8) { - reader.undertaleData.SetGMS2Version(2023, 8); + if (!reader.undertaleData.IsVersionAtLeast(2023, 8)) + reader.undertaleData.SetGMS2Version(2023, 8); } else if (Length == 0xD8) { @@ -2229,7 +2291,8 @@ private void CheckPsemVersion(UndertaleReader reader) uint secondPtr = reader.ReadUInt32(); if (secondPtr - firstPtr == 0xEC) { - reader.undertaleData.SetGMS2Version(2023, 8); + if (!reader.undertaleData.IsVersionAtLeast(2023, 8)) + reader.undertaleData.SetGMS2Version(2023, 8); } else if (secondPtr - firstPtr == 0xC0) { diff --git a/UndertaleModLib/UndertaleData.cs b/UndertaleModLib/UndertaleData.cs index 104f5d68a..a293e2c5e 100644 --- a/UndertaleModLib/UndertaleData.cs +++ b/UndertaleModLib/UndertaleData.cs @@ -5,6 +5,8 @@ using System.Diagnostics; using System.Linq; using System.Reflection; +using Underanalyzer.Decompiler; +using Underanalyzer.Decompiler.GameSpecific; using UndertaleModLib.Compiler; using UndertaleModLib.Models; @@ -333,9 +335,14 @@ public IList this[Type resourceType] public BuiltinList BuiltinList; /// - /// Cache for known 2.3-style function names for compiler speedups. Can be re-built by setting this to null. + /// Cache for 2.3-style functions defined in global scripts. Can be re-built by setting this to null. /// - public Dictionary KnownSubFunctions; + public GlobalFunctions GlobalFunctions; + + /// + /// Registry for macro types, their resolvers, and other data specific to this game. + /// + public GameSpecificRegistry GameSpecificRegistry; //Profile mode related properties @@ -644,7 +651,7 @@ public static UndertaleData CreateNew() data.Options.Constants.Add(new UndertaleOptions.Constant() { Name = data.Strings.MakeString("@@DrawColour"), Value = data.Strings.MakeString(0xFFFFFFFF.ToString()) }); data.Rooms.Add(new UndertaleRoom() { Name = data.Strings.MakeString("room0"), Caption = data.Strings.MakeString("") }); data.BuiltinList = new BuiltinList(data); - Decompiler.AssetTypeResolver.InitializeTypes(data); + Decompiler.GameSpecificResolver.Initialize(data); return data; } @@ -691,7 +698,8 @@ public void Dispose() // Clear other references FORM = null; - KnownSubFunctions = null; + GlobalFunctions = null; + GameSpecificRegistry = null; GMLCache = null; GMLCacheFailed = null; GMLCacheChanged = new(); @@ -718,5 +726,17 @@ public class ToolInfo /// The MD5 hash of the current file. /// public string CurrentMD5 = "Unknown"; + + /// + /// Default settings to be used by the Underanalyzer decompiler, + /// for a tool and in any scripts that desire matching the same settings. + /// + public IDecompileSettings DecompilerSettings = new DecompileSettings(); + + /// + /// Function that returns the prefix to be used when + /// resolving instance ID references in the compiler and decompiler. + /// + public Func InstanceIdPrefix = () => "inst_"; } } diff --git a/UndertaleModLib/UndertaleDataExtensionMethods.cs b/UndertaleModLib/UndertaleDataExtensionMethods.cs index 0e0bb9a1e..7667d7add 100644 --- a/UndertaleModLib/UndertaleDataExtensionMethods.cs +++ b/UndertaleModLib/UndertaleDataExtensionMethods.cs @@ -174,10 +174,12 @@ public static UndertaleVariable EnsureDefined(this IList list public static UndertaleVariable DefineLocal(this IList list, IList originalReferencedLocalVars, int localId, string name, IList strg, UndertaleData data) { - bool bytecode14 = (data?.GeneralInfo?.BytecodeVersion <= 14); - if (bytecode14) + bool bytecode14 = data?.GeneralInfo?.BytecodeVersion <= 14; + if (bytecode14 || data?.CodeLocals is null) { - UndertaleVariable search = list.Where((x) => x.Name.Content == name).FirstOrDefault(); + UndertaleVariable search = list.Where((x) => + x.Name.Content == name && (bytecode14 || x.InstanceType == UndertaleInstruction.InstanceType.Local) + ).FirstOrDefault(); if (search != null) return search; } diff --git a/UndertaleModLib/UndertaleIO.cs b/UndertaleModLib/UndertaleIO.cs index 2af5236fa..3f5a83d0f 100644 --- a/UndertaleModLib/UndertaleIO.cs +++ b/UndertaleModLib/UndertaleIO.cs @@ -275,7 +275,7 @@ public UndertaleData ReadUndertaleData() if (!FilePath.EndsWith(".dat")) { data.BuiltinList = new BuiltinList(data); - Decompiler.AssetTypeResolver.InitializeTypes(data); + Decompiler.GameSpecificResolver.Initialize(data); UndertaleEmbeddedTexture.FindAllTextureInfo(data); } diff --git a/UndertaleModLib/UndertaleModLib.csproj b/UndertaleModLib/UndertaleModLib.csproj index 41229a6dc..79256aee1 100644 --- a/UndertaleModLib/UndertaleModLib.csproj +++ b/UndertaleModLib/UndertaleModLib.csproj @@ -35,12 +35,47 @@ + + + + + + + + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + + diff --git a/UndertaleModLib/Util/AssetReferenceTypes.cs b/UndertaleModLib/Util/AssetReferenceTypes.cs new file mode 100644 index 000000000..15f11c43b --- /dev/null +++ b/UndertaleModLib/Util/AssetReferenceTypes.cs @@ -0,0 +1,121 @@ +using System; + +namespace UndertaleModLib.Util; + +public static class AssetReferenceTypes +{ + /// + /// Asset types as used in GML code references. + /// + public enum RefType + { + Object, + Sprite, + Sound, + Room, + Background, + Path, + Script, + Font, + Timeline, + Shader, + Sequence, + AnimCurve, + ParticleSystem, + RoomInstance + } + + /// + /// Converts an integer asset type to its equivalent, depending on GameMaker version. + /// + public static RefType ConvertToRefType(UndertaleData data, int type) + { + if (data.IsVersionAtLeast(2024, 4)) + { + return type switch + { + 0 => RefType.Object, + 1 => RefType.Sprite, + 2 => RefType.Sound, + 3 => RefType.Room, + 4 => RefType.Path, + 5 => RefType.Script, + 6 => RefType.Font, + 7 => RefType.Timeline, + 8 => RefType.Shader, + 9 => RefType.Sequence, + 10 => RefType.AnimCurve, + 11 => RefType.ParticleSystem, + 13 => RefType.Background, + 14 => RefType.RoomInstance, + _ => throw new Exception($"Unknown ref type {type}") + }; + } + + return type switch + { + 0 => RefType.Object, + 1 => RefType.Sprite, + 2 => RefType.Sound, + 3 => RefType.Room, + 4 => RefType.Background, + 5 => RefType.Path, + 6 => RefType.Script, + 7 => RefType.Font, + 8 => RefType.Timeline, + 10 => RefType.Shader, + 11 => RefType.Sequence, + 12 => RefType.AnimCurve, + 13 => RefType.ParticleSystem, + 14 => RefType.RoomInstance, + _ => throw new Exception($"Unknown ref type {type}") + }; + } + + /// + /// Converts a to its integer equivalent, depending on GameMaker version. + /// + public static int ConvertFromRefType(UndertaleData data, RefType type) + { + if (data.IsVersionAtLeast(2024, 4)) + { + return type switch + { + RefType.Object => 0, + RefType.Sprite => 1, + RefType.Sound => 2, + RefType.Room => 3, + RefType.Path => 4, + RefType.Script => 5, + RefType.Font => 6, + RefType.Timeline => 7, + RefType.Shader => 8, + RefType.Sequence => 9, + RefType.AnimCurve => 10, + RefType.ParticleSystem => 11, + RefType.Background => 13, + RefType.RoomInstance => 14, + _ => throw new Exception($"Unknown ref type {type}") + }; + } + + return type switch + { + RefType.Object => 0, + RefType.Sprite => 1, + RefType.Sound => 2, + RefType.Room => 3, + RefType.Background => 4, + RefType.Path => 5, + RefType.Script => 6, + RefType.Font => 7, + RefType.Timeline => 8, + RefType.Shader => 10, + RefType.Sequence => 11, + RefType.AnimCurve => 12, + RefType.ParticleSystem => 13, + RefType.RoomInstance => 14, + _ => throw new Exception($"Unknown ref type {type}") + }; + } +} \ No newline at end of file diff --git a/UndertaleModLib/Util/CustomBitArray.cs b/UndertaleModLib/Util/CustomBitArray.cs deleted file mode 100644 index 5934154b2..000000000 --- a/UndertaleModLib/Util/CustomBitArray.cs +++ /dev/null @@ -1,88 +0,0 @@ -namespace UndertaleModLib.Util -{ - // BitArray class custom-made for the decompiler - // Designed with performance in mind - public class CustomBitArray - { - public int[] Array; - public int Length; - - public CustomBitArray(int length) - { - Length = length; - int arrayLength = ((length - 1) / 32) + 1; - Array = new int[arrayLength]; - } - - public void SetAllTrue() - { - unsafe - { - fixed (int* ptr = &Array[0]) - { - uint* currPtr = (uint*)ptr; - int len = Array.Length; - for (int i = 0; i < len; i++) - *(currPtr++) = 0xFFFFFFFF; - } - } - } - - public bool Get(int ind) - { - return (Array[ind / 32] & (1 << (ind % 32))) != 0; - } - - public void SetTrue(int ind) - { - Array[ind / 32] |= (1 << (ind % 32)); - } - - public unsafe bool And(CustomBitArray other, int setIndex) - { - bool changed = false; - - int setIndexArr = setIndex / 32; - - fixed (int* ptr = &Array[0]) - { - fixed (int* ptr2 = &other.Array[0]) - { - int* currPtr = ptr; - int* otherPtr = ptr2; - - int i; - int len = Array.Length; - for (i = 0; i < len; i++) - { - int before = *currPtr; - int after = before; - after &= *otherPtr; - if (setIndexArr == i) - after |= (1 << (setIndex % 32)); - if (before != after) - { - *currPtr = after; - currPtr++; - otherPtr++; - changed = true; - break; - } - currPtr++; - otherPtr++; - } - for (i++; i < len; i++) - { - *currPtr &= *otherPtr; - if (setIndexArr == i) - *currPtr |= (1 << (setIndex % 32)); - currPtr++; - otherPtr++; - } - } - } - - return changed; - } - } -} diff --git a/UndertaleModTests/GameLoadingTests.cs b/UndertaleModTests/GameLoadingTests.cs index 9680a1688..9c4a159f2 100644 --- a/UndertaleModTests/GameLoadingTests.cs +++ b/UndertaleModTests/GameLoadingTests.cs @@ -5,6 +5,7 @@ using System.Security.Cryptography; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; +using Underanalyzer.Decompiler; using UndertaleModLib; using UndertaleModLib.Decompiler; using UndertaleModLib.Models; @@ -33,13 +34,13 @@ public void SaveDataAndCompare() [TestMethod] public void DecompileAllScripts() { - GlobalDecompileContext context = new GlobalDecompileContext(data, true); + GlobalDecompileContext context = new GlobalDecompileContext(data); Parallel.ForEach(data.Code, (code) => { //Console.WriteLine(code.Name.Content); try { - Decompiler.Decompile(code, context); + new DecompileContext(context, code, data.ToolInfo.DecompilerSettings).DecompileToString(); } catch (Exception e) { @@ -74,7 +75,7 @@ public void DisassembleAndReassembleAllScripts() string disasm; try { - disasm = code.Disassemble(data.Variables, data.CodeLocals.For(code)); + disasm = code.Disassemble(data.Variables, data.CodeLocals?.For(code)); } catch (Exception e) { diff --git a/UndertaleModTests/GameScriptTests.cs b/UndertaleModTests/GameScriptTests.cs index b0f114272..228a5285a 100644 --- a/UndertaleModTests/GameScriptTests.cs +++ b/UndertaleModTests/GameScriptTests.cs @@ -9,6 +9,7 @@ using Microsoft.CodeAnalysis.Scripting; using Microsoft.CodeAnalysis.Scripting.Hosting; using Microsoft.VisualStudio.TestTools.UnitTesting; +using Underanalyzer.Decompiler; using UndertaleModLib; using UndertaleModLib.Decompiler; using UndertaleModLib.Models; @@ -177,13 +178,13 @@ public void SetUMTConsoleText(string message) { Console.Write("SetUMTConsoleText(): " + message); } - public void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null) + public void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null, IDecompileSettings settings = null) { - Console.Write("ReplaceTextInGML(): " + codeName + ", " + keyword + ", " + replacement + ", " + caseSensitive.ToString() + ", " + isRegex.ToString() + ", " + context?.ToString()); + Console.Write("ReplaceTextInGML(): " + codeName + ", " + keyword + ", " + replacement + ", " + caseSensitive.ToString() + ", " + isRegex.ToString() + ", " + context?.ToString() + ", " + settings?.ToString()); } - public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null) + public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null, IDecompileSettings settings = null) { - Console.Write("ReplaceTextInGML(): " + code.ToString() + ", " + keyword + ", " + replacement + ", " + caseSensitive.ToString() + ", " + isRegex.ToString() + ", " + context?.ToString()); + Console.Write("ReplaceTextInGML(): " + code.ToString() + ", " + keyword + ", " + replacement + ", " + caseSensitive.ToString() + ", " + isRegex.ToString() + ", " + context?.ToString() + ", " + settings?.ToString()); } public void ImportGMLString(string codeName, string gmlCode, bool doParse = true, bool checkDecompiler = false) { @@ -234,7 +235,7 @@ public async Task StopProgressBarUpdater() await Task.Delay(1); //dummy await } - public async Task GenerateGMLCache(ThreadLocal decompileContext = null, object dialog = null, bool clearGMLEditedBefore = false) + public async Task GenerateGMLCache(GlobalDecompileContext decompileContext = null, object dialog = null, bool clearGMLEditedBefore = false) { Console.WriteLine(String.Format("GenerateGMLCache(): *decompileContext*{0}, *dialog*{1}, {2}", decompileContext is null ? " (null)" : "", @@ -256,7 +257,8 @@ protected async Task RunScript(string path) var script = CSharpScript.Create(File.ReadAllText(scriptpath), ScriptOptions.Default .WithImports("UndertaleModLib", "UndertaleModLib.Models", "UndertaleModLib.Decompiler", "UndertaleModLib.Scripting", "System", "System.IO", "System.Collections.Generic") - .WithReferences(typeof(UndertaleObject).GetTypeInfo().Assembly), + .WithReferences(typeof(UndertaleObject).GetTypeInfo().Assembly) + .WithReferences(typeof(Underanalyzer.Decompiler.DecompileContext).GetTypeInfo().Assembly), typeof(IScriptInterface), loader); return await script.RunAsync(this); @@ -273,13 +275,13 @@ public string PromptChooseDirectory() throw new NotImplementedException(); } - public string GetDecompiledText(string codeName, GlobalDecompileContext context = null) + public string GetDecompiledText(string codeName, GlobalDecompileContext context = null, IDecompileSettings settings = null) { string output = "GetDecompiledText(): " + codeName; Console.Write(output); return output; } - public string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null) + public string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null, IDecompileSettings settings = null) { string output = "GetDecompiledText(): " + code?.ToString(); Console.Write(output); diff --git a/UndertaleModTests/UndertaleModTests.csproj b/UndertaleModTests/UndertaleModTests.csproj index 46929a940..3c3f886ac 100644 --- a/UndertaleModTests/UndertaleModTests.csproj +++ b/UndertaleModTests/UndertaleModTests.csproj @@ -6,6 +6,7 @@ AnyCPU;x64 + diff --git a/UndertaleModTool.sln b/UndertaleModTool.sln index 9e4d20a9b..18e2bfe07 100644 --- a/UndertaleModTool.sln +++ b/UndertaleModTool.sln @@ -11,9 +11,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UndertaleModTests", "Undert EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UndertaleModCli", "UndertaleModCli\UndertaleModCli.csproj", "{CC5FDC60-A955-4D0C-B59F-8BD451778237}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UndertaleModToolUpdater", "UndertaleModToolUpdater\UndertaleModToolUpdater.csproj", "{1E004B65-F3C8-4A62-B649-1465EA6A3B01}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UndertaleModToolUpdater", "UndertaleModToolUpdater\UndertaleModToolUpdater.csproj", "{1E004B65-F3C8-4A62-B649-1465EA6A3B01}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UndertaleModLibTests", "UndertaleModLibTests\UndertaleModLibTests.csproj", "{AAE3D4CA-0B6C-4928-AE86-066F5251F70A}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UndertaleModLibTests", "UndertaleModLibTests\UndertaleModLibTests.csproj", "{AAE3D4CA-0B6C-4928-AE86-066F5251F70A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Underanalyzer", "Underanalyzer\Underanalyzer\Underanalyzer.csproj", "{A171D18F-274E-427A-AFB3-D7A161F5B9CF}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -71,6 +73,14 @@ Global {AAE3D4CA-0B6C-4928-AE86-066F5251F70A}.Release|Any CPU.Build.0 = Release|Any CPU {AAE3D4CA-0B6C-4928-AE86-066F5251F70A}.Release|x64.ActiveCfg = Release|Any CPU {AAE3D4CA-0B6C-4928-AE86-066F5251F70A}.Release|x64.Build.0 = Release|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Debug|x64.ActiveCfg = Debug|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Debug|x64.Build.0 = Debug|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Release|Any CPU.Build.0 = Release|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Release|x64.ActiveCfg = Release|Any CPU + {A171D18F-274E-427A-AFB3-D7A161F5B9CF}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/UndertaleModTool/Converters/UndertaleCachedImageLoader.cs b/UndertaleModTool/Converters/UndertaleCachedImageLoader.cs index d23b05962..60a4050f3 100644 --- a/UndertaleModTool/Converters/UndertaleCachedImageLoader.cs +++ b/UndertaleModTool/Converters/UndertaleCachedImageLoader.cs @@ -32,7 +32,7 @@ public class UndertaleCachedImageLoader : IValueConverter private static extern bool DeleteObject([In] IntPtr hObject); private static readonly ConcurrentDictionary imageCache = new(); - private static readonly ConcurrentDictionary>, ImageSource> tileCache = new(); + private static readonly ConcurrentDictionary>, ImageSource> tileCache = new(); private static readonly MainWindow mainWindow = Application.Current.MainWindow as MainWindow; private static bool _reuseTileBuffer; @@ -59,7 +59,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn bool generate = false; string par; - List> tileRectList = null; + List> tileRectList = null; if (parameter is string) { par = parameter as string; @@ -68,10 +68,10 @@ public object Convert(object value, Type targetType, object parameter, CultureIn cacheEnabled = !par.Contains("nocache"); generate = par.Contains("generate"); } - else if (parameter is List>) + else if (parameter is List>) { generate = true; - tileRectList = parameter as List>; + tileRectList = parameter as List>; } Tile tile = null; @@ -200,7 +200,7 @@ private ImageSource CreateSpriteSource(in Rectangle rect, in UndertaleTexturePag return spriteSrc; } - private void ProcessTileSet(string textureName, Bitmap bmp, List> tileRectList, int targetX, int targetY) + private void ProcessTileSet(string textureName, Bitmap bmp, List> tileRectList, int targetX, int targetY) { BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, bmp.PixelFormat); int depth = Image.GetPixelFormatSize(data.PixelFormat) / 8; @@ -224,8 +224,8 @@ private void ProcessTileSet(string textureName, Bitmap bmp, List { - int origX = (int)tileRect.Item1; - int origY = (int)tileRect.Item2; + int origX = tileRect.Item1; + int origY = tileRect.Item2; int x = origX - targetX; int y = origY - targetY; int w = (int)tileRect.Item3; @@ -272,7 +272,7 @@ private void ProcessTileSet(string textureName, Bitmap bmp, List> tileKey = new(textureName, new((uint)origX, (uint)origY, (uint)w, (uint)h)); + Tuple> tileKey = new(textureName, new(origX, origY, (uint)w, (uint)h)); tileCache.TryAdd(tileKey, spriteSrc); }); diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/0bf582aa180983a9ffa721aa2be2f273/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 79f5d3c57..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,436 +0,0 @@ -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -var halfsize = 0 -for (var n = 1; n <= stringpos; n++) -{ - var ch = string_char_at(originalstring, n) - var myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = 0xFDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = 0xD4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - var newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - var sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - var sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - var icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - var sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - var spritex = myx - var spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - var icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - var choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (__view_get(2, view_current) == 640) - myx *= 2 - myx += __view_get(0, view_current) - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - var nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - var letterx = myx - var offsetx = 0 - var offsety = 0 - var halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(string_hash_to_newline(myletter)) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - var unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - var lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - var angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - var display_scale = (surface_get_width(application_surface) / __view_get(2, view_current)) - var finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - var finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, string_hash_to_newline(myletter), (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(string_hash_to_newline(myletter)) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_halfbullet_gen_Other_10.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_halfbullet_gen_Other_10.gml deleted file mode 100644 index eed614253..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_halfbullet_gen_Other_10.gml +++ /dev/null @@ -1,449 +0,0 @@ -if (defined == 0) -{ - if (type == 999) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 2, 6, 0) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 0) - scr_hb_add(22, 2, 6, 2) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 2) - scr_hb_add(66, 1, 6, 0) - scr_hb_add(66, 2, 6, 1) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 0) - scr_hb_add(110, 2, 6, 2) - scr_hb_add(132, 0, 6, 0) - scr_hb_add(132, 2, 6, 0) - scr_hb_add(154, 0, 6, 2) - scr_hb_add(154, 1, 6, 0) - scr_hb_add(154, 2, 6, 1) - maxtimer = 250 - } - if (type == 0) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(8, 1, 6, 0) - scr_hb_add(16, 1, 6, 0) - maxtimer = 95 - } - if (type == 1) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(25, 0, 6, 0) - scr_hb_add(25, 2, 6, 0) - scr_hb_add(50, 1, 6, 0) - scr_hb_add(75, 0, 6, 0) - scr_hb_add(75, 2, 6, 0) - maxtimer = 150 - } - if (type == 2) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 0) - scr_hb_add(132, 2, 6, 2) - scr_hb_add(138, 0, 6, 1) - scr_hb_add(138, 1, 6, 0) - scr_hb_add(138, 2, 6, 2) - scr_hb_add(144, 0, 6, 1) - scr_hb_add(144, 1, 6, 0) - scr_hb_add(144, 2, 6, 2) - maxtimer = 220 - } - if (type == 3) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 1, 6, 1) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 2) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 1, 6, 1) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 2) - scr_hb_add(132, 2, 6, 0) - maxtimer = 210 - } - if (type == 4) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 2) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(44, 2, 6, 2) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 1, 6, 1) - scr_hb_add(66, 2, 6, 2) - scr_hb_add(88, 0, 6, 1) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 2) - scr_hb_add(110, 2, 6, 0) - maxtimer = 180 - } - if (type == 5) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(19, 0, 6, 0) - scr_hb_add(19, 2, 6, 0) - scr_hb_add(38, 0, 6, 0) - scr_hb_add(38, 1, 6, 1) - scr_hb_add(38, 2, 6, 2) - scr_hb_add(57, 0, 6, 0) - scr_hb_add(57, 2, 6, 0) - scr_hb_add(76, 1, 6, 0) - scr_hb_add(95, 0, 6, 0) - scr_hb_add(95, 2, 6, 0) - scr_hb_add(114, 0, 6, 1) - scr_hb_add(114, 1, 6, 2) - scr_hb_add(114, 2, 6, 0) - scr_hb_add(133, 0, 6, 0) - scr_hb_add(133, 2, 6, 0) - scr_hb_add(165, 1, 8, 0) - maxtimer = 230 - } - if (type == 6) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(20, 1, 6, 0) - scr_hb_add(20, 2, 6, 0) - scr_hb_add(40, 0, 6, 1) - scr_hb_add(40, 1, 6, 0) - scr_hb_add(40, 2, 6, 2) - scr_hb_add(60, 0, 6, 0) - scr_hb_add(60, 1, 6, 0) - scr_hb_add(80, 0, 6, 0) - scr_hb_add(80, 2, 6, 0) - scr_hb_add(100, 1, 6, 0) - scr_hb_add(100, 2, 6, 0) - scr_hb_add(120, 0, 6, 0) - scr_hb_add(120, 2, 6, 0) - scr_hb_add(140, 0, 6, 0) - scr_hb_add(140, 1, 6, 0) - scr_hb_add(160, 0, 6, 1) - scr_hb_add(160, 1, 6, 0) - scr_hb_add(160, 2, 6, 2) - scr_hb_add(167, 0, 6, 1) - scr_hb_add(167, 1, 6, 0) - scr_hb_add(167, 2, 6, 2) - scr_hb_add(174, 0, 6, 1) - scr_hb_add(174, 1, 6, 0) - scr_hb_add(174, 2, 6, 2) - shift_timer_max = 235 - scr_hb_add(235, 4, 10, 0) - scr_hb_add(235, 7, 10, 0) - maxtimer = 290 - } - if (type == 7) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 3, 6, 1) - scr_hb_add(0, 4, 6, 0) - scr_hb_add(0, 5, 6, 2) - scr_hb_add(30, 0, 6, 1) - scr_hb_add(30, 1, 6, 0) - scr_hb_add(30, 2, 6, 2) - scr_hb_add(60, 3, 6, 2) - scr_hb_add(60, 4, 6, 0) - scr_hb_add(60, 5, 6, 1) - scr_hb_add(90, 0, 6, 1) - scr_hb_add(90, 1, 6, 0) - scr_hb_add(90, 2, 6, 2) - scr_hb_add(120, 3, 6, 1) - scr_hb_add(120, 4, 6, 0) - scr_hb_add(120, 5, 6, 2) - scr_hb_add(150, 0, 6, 1) - scr_hb_add(150, 1, 6, 0) - scr_hb_add(150, 2, 6, 2) - maxtimer = 230 - } - if (type == 8) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 7, 0) - scr_hb_add(0, 5, 7, 0) - scr_hb_add(20, 1, 7, 0) - scr_hb_add(20, 2, 7, 0) - scr_hb_add(40, 6, 7, 0) - scr_hb_add(40, 7, 7, 0) - scr_hb_add(60, 0, 7, 0) - scr_hb_add(60, 1, 7, 0) - scr_hb_add(80, 0, 7, 1) - scr_hb_add(80, 1, 7, 0) - scr_hb_add(80, 2, 7, 2) - scr_hb_add(105, 3, 7, 1) - scr_hb_add(105, 4, 7, 0) - scr_hb_add(105, 5, 7, 2) - scr_hb_add(105, 6, 7, 1) - scr_hb_add(105, 7, 7, 0) - scr_hb_add(105, 8, 7, 2) - scr_hb_add(130, 3, 7, 2) - scr_hb_add(130, 4, 7, 0) - scr_hb_add(130, 5, 7, 1) - scr_hb_add(130, 6, 7, 2) - scr_hb_add(130, 7, 7, 0) - scr_hb_add(130, 8, 7, 1) - maxtimer = 220 - } - if (type == 9) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 8, 0) - scr_hb_add(0, 5, 8, 0) - scr_hb_add(19, 6, 8, 0) - scr_hb_add(19, 7, 8, 0) - scr_hb_add(38, 0, 8, 1) - scr_hb_add(38, 1, 8, 0) - scr_hb_add(38, 2, 8, 2) - scr_hb_add(57, 0, 8, 0) - scr_hb_add(57, 2, 8, 0) - scr_hb_add(76, 6, 8, 0) - scr_hb_add(76, 7, 8, 0) - scr_hb_add(95, 4, 8, 0) - scr_hb_add(95, 5, 8, 0) - scr_hb_add(120, 0, 8, 1) - scr_hb_add(120, 1, 8, 0) - scr_hb_add(120, 2, 8, 2) - scr_hb_add(135, 0, 8, 0) - scr_hb_add(135, 2, 8, 0) - maxtimer = 210 - } - if (type == 10 || type == 12) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 0 - cur_time = 0 - time_gap = 17 - if (type == 12) - { - time_gap = 12 - max_attack = 16 - } - prev_pat = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - prev_pat = cur_pat - } - maxtimer = (cur_time + 50) - } - if (type == 11 || type == 13) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 1 - cur_time = 0 - time_gap = 18 - if (type == 13) - { - time_gap = 13 - max_attack = 16 - } - prev_dir = -1 - prev_pat = -1 - cur_dir = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - } - } - if (cur_pat >= 6) - cur_dir = 1 - else - cur_dir = 2 - if (prev_dir != -1) - { - if (prev_dir != cur_dir) - { - if (type == 11) - cur_time += 5 - if (type == 13) - cur_time += 4 - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 6) - { - scr_hb_add(cur_time, 3, 8, 0) - scr_hb_add(cur_time, 4, 8, 0) - cur_time += time_gap - } - if (cur_pat == 7) - { - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 0) - cur_time += time_gap - } - if (cur_pat == 8) - { - scr_hb_add(cur_time, 3, 8, 1) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 2) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - if (cur_pat == 9) - { - scr_hb_add(cur_time, 3, 8, 2) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 1) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - prev_pat = cur_pat - prev_dir = cur_dir - } - maxtimer = (cur_time + 50) - } - global.turntimer = maxtimer - defined = 1 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_halfbullet_gen_Step_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_halfbullet_gen_Step_0.gml deleted file mode 100644 index 3df40f867..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_halfbullet_gen_Step_0.gml +++ /dev/null @@ -1,60 +0,0 @@ -if (active == true && defined == 1) -{ - while (bullettime[curbullet] == bultimer) - { - bul = instance_create(0, 0, obj_halfbullet) - if instance_exists(bul) - { - if (bulletpos[curbullet] == 0 || bulletpos[curbullet] == 1 || bulletpos[curbullet] == 2) - { - bul.x = xpos[bulletpos[curbullet]] - bul.y = -60 - bul.hspeed = 0 - bul.vspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 3 || bulletpos[curbullet] == 4 || bulletpos[curbullet] == 5) - { - bul.x = -48 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 6 || bulletpos[curbullet] == 7 || bulletpos[curbullet] == 8) - { - bul.x = 700 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = (-bulletspeed[curbullet]) - } - bul.type = bullettype[curbullet] - if (bul.type == 1) - bul.image_blend = global.joycon_color[0] - if (bul.type == 2) - bul.image_blend = global.joycon_color[1] - } - curbullet += 1 - if (curbullet >= maxbullet) - { - break - active = false - } - } -} -bultimer += 1 -if (bultimer >= (maxtimer - 10)) - darkness = 0 -if (bultimer >= maxtimer) -{ - with (obj_halfbullet) - instance_destroy() - instance_destroy() -} -if (shift_timer_max >= -1) -{ - shift_timer += 1 - if (shift_timer == shift_timer_max) - { - with (obj_hearthalf) - vertical_ok = 1 - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index f9c3e45d6..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,21 +0,0 @@ -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -var msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (var i = 0; true; i++) -{ - var text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -var xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 08a409c88..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,444 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -var vspacing = 15 -if (global.language == "ja") - vspacing = 16 -var button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), string_hash_to_newline(itext)) - var xx = ((20 + string_width(string_hash_to_newline(itext))) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -var stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), string_hash_to_newline(stext)) - draw_set_color(c_white) -} -button_x += string_width(string_hash_to_newline(stext)) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, string_hash_to_newline(global.button0)) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), string_hash_to_newline(global.button1)) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), string_hash_to_newline(global.button2)) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var analog_text_width = string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")))) - draw_text_transformed(20, (135 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_choice"))) -if (global.joy_dir == 0) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_normal"))) -if (global.joy_dir == 1) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_analog"))) -if (global.joy_dir == 2) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_pov"))) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_reset"))) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_test"))) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_fall")), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 494a374b5..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - return; -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - return; - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index d63e8da5e..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,99 +0,0 @@ -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - return; -} -num_borders = 12 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (var i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -border_11 = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - var BW = ini_read_real("General", "BW", 0) - var BP = ini_read_real("General", "BP", 0) - var BH = ini_read_real("General", "BH", 0) - var DB = ini_read_real("General", "DB", 0) - var EndF = ini_read_real("EndF", "EndF", 0) - var M = ini_read_real("Alphys", "M", 0) - var R = ini_read_real("Alphys", "R", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (global.osflavor == 5) - { - if M - { - border_enabled[11] = 1 - border_11 = R - } - if DB - border_enabled[12] = 1 - } - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 8c37eb92b..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,302 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_fall")), 1, 1, -20) -} -var menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, string_hash_to_newline(scr_gettext("settings_language"))) -draw_text(92, 70, string_hash_to_newline(scr_gettext(("settings_language_" + global.language)))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_button"))) - var vspacing = 18 - var button_x = 0 - for (var i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - var itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), string_hash_to_newline(itext)) - draw_set_color(c_white) - var xx = (40 + string_width(string_hash_to_newline(itext))) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - var button = -4 - for (var b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check((obj_time.j_ch - 1), button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - var command = string_char_at("ZXC", (i + 1)) - var sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(scr_gettext("joyconfig_reset"))) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - var border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_label)) - if (global.screen_border_id == 0) - var border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == 11) - border_sel = scr_gettext(((("settings_border_" + string(global.screen_border_id)) + "_") + string(border_11))) - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(string_hash_to_newline(border_label))) + 20), ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_sel)) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_joyconfig"))) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 0210cdb97..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), string_hash_to_newline((s_value[(i * 2)] + "G - Ninechara"))) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), string_hash_to_newline((s_value[((i * 2) + 1)] + "G - Ninechara"))) - } - draw_text(30, 210, string_hash_to_newline(scr_gettext("shop_exit_submenu"))) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, string_hash_to_newline((("Really sell Ninechara for " + string(value[sellpos])) + "G?"))) - draw_text(80, 180, string_hash_to_newline("Yes")) - draw_text(190, 180, string_hash_to_newline("No")) - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_time_Create_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_time_Create_0.gml deleted file mode 100644 index 6fc0ce9ec..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_time_Create_0.gml +++ /dev/null @@ -1,155 +0,0 @@ -if (os_type == os_windows) - global.osflavor = 1 -else if (os_type == os_ps4 || os_type == os_psvita) - global.osflavor = 4 -else if (os_type == os_switch_beta) - global.osflavor = 5 -else - global.osflavor = 2 -global.locale = ((os_get_language() + "_") + string_upper(os_get_region())) -if (global.osflavor >= 3) -{ - application_surface_enable(true) - application_surface_draw_enable(false) -} -if (os_type == os_switch_beta && (!variable_global_exists("switchlogin"))) -{ - global.switchlogin = -1 - while (global.switchlogin < 0) - global.switchlogin = switch_accounts_select_account(1, 0, 0) -} -if (os_type == os_switch_beta) -{ - switch_controller_support_set_defaults() - switch_controller_support_set_singleplayer_only(1) - switch_controller_set_supported_styles(7) - missing_controller_timeout = 0 -} -global.savedata_async_id = -1 -global.savedata_async_load = 0 -global.savedata_error = 0 -global.savedata_debuginfo = "" -global.disable_os_pause = 0 -paused = 0 -idle = 0 -idle_time = 0 -up = 0 -down = 0 -left = 0 -right = 0 -quit = 0 -try_up = 0 -try_down = 0 -try_left = 0 -try_right = 0 -canquit = 1 -h_skip = 0 -j_xpos = 0 -j_ypos = 0 -j_dir = 0 -j_fr = 0 -j_fl = 0 -j_fu = 0 -j_fd = 0 -j_fr_p = 0 -j_fl_p = 0 -j_fu_p = 0 -j_fd_p = 0 -for (var i = 0; i < 12; i += 1) -{ - j_prev[i] = 0 - j_on[i] = 0 -} -global.button0 = 2 -global.button1 = 1 -global.button2 = 4 -global.analog_sense = 0.15 -global.analog_sense_sense = 0.01 -global.joy_dir = 0 -if (os_type == os_ps4 || os_type == os_psvita) -{ - if (substr(global.locale, 1, 2) == "ja") - { - global.button0 = 32770 - global.button1 = 32769 - } - else - { - global.button0 = 32769 - global.button1 = 32770 - } - global.button2 = 32772 -} -else if (os_type == os_switch_beta) -{ - global.button0 = 32770 - global.button1 = 32769 - global.button2 = 32772 -} -global.default_button0 = global.button0 -global.default_button1 = global.button1 -global.default_button2 = global.button2 -global.default_analog_sense = global.analog_sense -global.default_analog_sense_sense = global.analog_sense_sense -global.default_joy_dir = global.joy_dir -global.screen_border_id = 0 -global.screen_border_active = 0 -global.screen_border_alpha = 1 -global.screen_border_state = 0 -global.screen_border_dynamic_fade_id = 0 -global.screen_border_dynamic_fade_level = 0 -global.screen_border_activate_on_game_over = 0 -debug_r = 0 -debug_f = 0 -j1 = 0 -j2 = 0 -ja = 0 -j_ch = 0 -jt = 0 -if (global.osflavor >= 4) -{ - for (i = 0; i < gamepad_get_device_count(); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch == 0) - { - if (os_type == os_switch_beta) - { - if (switch_controller_support_show() == 0) - j_ch = (switch_controller_support_get_selected_id() + 1) - } - else - j_ch = 1 - } -} -spec_rtimer = 0 -global.endsong_loaded = 0 -control_init() -scr_kanatype_init() -if (!variable_global_exists("text_data_en")) - script_execute(textdata_en) -if (!variable_global_exists("text_data_ja")) - script_execute(textdata_ja) -if (os_type == os_switch_beta) - global.language = substr(switch_language_get_desired_language(), 1, 2) -else - global.language = substr(global.locale, 1, 2) -if (global.language != "ja") - global.language = "en" -if (!variable_global_exists("trophy_init_complete")) -{ - global.trophy_init_complete = 0 - trophy_ts = -1 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_time_Step_1.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_time_Step_1.gml deleted file mode 100644 index bca42138e..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_time_Step_1.gml +++ /dev/null @@ -1,400 +0,0 @@ -if (started <= 0) -{ - if (global.savedata_async_id >= 0) - return; - started = -1 - if (!trophy_init()) - { - if (trophy_ts < 0) - trophy_ts = current_time - return; - } - ossafe_ini_open("config.ini") - var lang = ini_read_string("General", "lang", "") - var sb_i = ini_read_real("General", "sb", -1) - var b0_i = ini_read_real("joypad1", "b0", -1) - var b1_i = ini_read_real("joypad1", "b1", -1) - var b2_i = ini_read_real("joypad1", "b2", -1) - var as_i = ini_read_real("joypad1", "as", -1) - var jd_i = ini_read_real("joypad1", "jd", -1) - if (string_length(lang) > 0) - global.language = lang - if (sb_i >= 0) - global.screen_border_id = sb_i - if (b0_i >= 0) - global.button0 = b0_i - if (b1_i >= 0) - global.button1 = b1_i - if (b2_i >= 0) - global.button2 = b2_i - if (as_i >= 0) - global.analog_sense = as_i - if (jd_i >= 0) - global.joy_dir = jd_i - ossafe_ini_close() - scr_enable_screen_border(global.osflavor >= 4) - if (global.osflavor >= 4) - { - global.analog_sense = 0.15 - if (os_type == os_psvita) - global.analog_sense = 0.9 - global.joy_dir = 0 - } - ossafe_ini_open("undertale.ini") - fskip = ini_read_real("FFFFF", "E", -1) - ftime = ini_read_real("FFFFF", "F", -1) - true_end = ini_read_real("EndF", "EndF", -1) - ossafe_ini_close() - sksk = 0 - if (ftime == 1) - { - sksk = 1 - room_goto(room_f_start) - } - if (true_end == 1 && sksk == 0) - { - sksk = 1 - room_goto(room_flowey_regret) - } - if (fskip >= 1 && sksk == 0) - { - global.filechoice = 8 - scr_load() - if (fskip == 1) - room_goto(room_flowey_endchoice) - if (fskip == 2) - room_goto(room_castle_exit) - } - else if (sksk == 0) - room_goto_next() - if (ossafe_file_exists("system_information_962") && (!ossafe_file_exists("system_information_963"))) - room_goto(room_nothingness) - started = 1 - return; -} -if (!paused) - time += 1 -if (global.osflavor <= 2) -{ - if (jt == 0) - { - if (j_ch != 2) - { - if joystick_exists(1) - j_ch = 1 - else if (j_ch == 1) - j_ch = 0 - } - } - if (jt == 4) - { - if (j_ch != 1) - { - if joystick_exists(2) - j_ch = 2 - else if (j_ch == 2) - j_ch = 0 - } - } - jt += 1 - if (jt >= 8) - jt = 0 -} -else if (os_type == os_switch_beta) -{ - if (j_ch > 0 && gamepad_is_connected((j_ch - 1))) - missing_controller_timeout = 0 - else - { - j_ch = 0 - for (var i = 0; (i < gamepad_get_device_count()); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch > 0) - missing_controller_timeout = 0 - else if (missing_controller_timeout == 0) - missing_controller_timeout = (current_time + 2000) - else if (current_time >= missing_controller_timeout) - { - if (switch_controller_support_show() == 0) - { - j_ch = (switch_controller_support_get_selected_id() + 1) - missing_controller_timeout = 0 - } - } - } -} -control_update() -if (j_ch > 0) -{ - j_fr_p = j_fr - j_fl_p = j_fl - j_fu_p = j_fu - j_fd_p = j_fd - j_fr = 0 - j_fl = 0 - j_fu = 0 - j_fd = 0 - if (global.osflavor >= 4) - { - if (gamepad_button_check((j_ch - 1), gp_padu) || gamepad_button_check((j_ch - 1), gp_padd) || gamepad_button_check((j_ch - 1), gp_padl) || gamepad_button_check((j_ch - 1), gp_padr)) - { - j_fu = gamepad_button_check((j_ch - 1), gp_padu) - j_fd = gamepad_button_check((j_ch - 1), gp_padd) - j_fl = gamepad_button_check((j_ch - 1), gp_padl) - j_fr = gamepad_button_check((j_ch - 1), gp_padr) - } - else if (global.joy_dir != 2) - { - var j_xpos = gamepad_axis_value((j_ch - 1), gp_axislh) - var j_ypos = gamepad_axis_value((j_ch - 1), gp_axislv) - var analog_sense = global.analog_sense - if (sqrt((sqr(j_xpos) + sqr(j_ypos))) >= analog_sense) - { - var angle = darctan2(j_ypos, j_xpos) - if (angle < 0) - angle += 360 - if (angle < 67.5 || angle > 292.5) - j_fr = 1 - if (angle > 22.5 && angle < 157.5) - j_fd = 1 - if (angle > 112.5 && angle < 247.5) - j_fl = 1 - if (angle > 202.5 && angle < 337.5) - j_fu = 1 - } - } - } - else - { - if (global.joy_dir == 0 || global.joy_dir == 1) - { - j_xpos = joystick_xpos(j_ch) - j_ypos = joystick_ypos(j_ch) - } - j_dir = joystick_direction(j_ch) - if (global.joy_dir == 0 || global.joy_dir == 1) - { - if (j_dir == 101) - { - if (j_xpos >= global.analog_sense) - j_fr = 1 - if (j_xpos <= (-global.analog_sense)) - j_fl = 1 - if (j_ypos >= global.analog_sense) - j_fd = 1 - if (j_ypos <= (-global.analog_sense)) - j_fu = 1 - } - } - if (j_dir != 101) - { - if (j_dir == 100) - j_fl = 1 - if (j_dir == 98) - j_fd = 1 - if (j_dir == 102) - j_fr = 1 - if (j_dir == 104) - j_fu = 1 - if (j_dir == 99) - { - j_fr = 1 - j_fd = 1 - } - if (j_dir == 97) - { - j_fd = 1 - j_fl = 1 - } - if (j_dir == 103) - { - j_fu = 1 - j_fl = 1 - } - if (j_dir == 105) - { - j_fu = 1 - j_fr = 1 - } - } - if (global.joy_dir == 0 || global.joy_dir == 2) - { - j_pov = joystick_pov(j_ch) - if (j_pov == 0) - j_fu = 1 - if (j_pov == 270) - j_fl = 1 - if (j_pov == 90) - j_fr = 1 - if (j_pov == 180) - j_fd = 1 - if (j_pov == 315) - { - j_fu = 1 - j_fl = 1 - } - if (j_pov == 45) - { - j_fu = 1 - j_fr = 1 - } - if (j_pov == 225) - { - j_fd = 1 - j_fl = 1 - } - if (j_pov == 135) - { - j_fd = 1 - j_fr = 1 - } - } - } - if (j_fr != j_fr_p && j_fr == 1) - keyboard_key_press(vk_right) - if (j_fl != j_fl_p && j_fl == 1) - keyboard_key_press(vk_left) - if (j_fd != j_fd_p && j_fd == 1) - keyboard_key_press(vk_down) - if (j_fu != j_fu_p && j_fu == 1) - keyboard_key_press(vk_up) - if (j_fr != j_fr_p && j_fr == 0) - keyboard_key_release(vk_right) - if (j_fl != j_fl_p && j_fl == 0) - keyboard_key_release(vk_left) - if (j_fd != j_fd_p && j_fd == 0) - keyboard_key_release(vk_down) - if (j_fu != j_fu_p && j_fu == 0) - keyboard_key_release(vk_up) -} -up = 0 -down = 0 -left = 0 -right = 0 -if keyboard_check(vk_up) - try_up = 1 -if keyboard_check_released(vk_up) - try_up = 0 -if keyboard_check(vk_down) - try_down = 1 -if keyboard_check_released(vk_down) - try_down = 0 -if keyboard_check(vk_right) - try_right = 1 -if keyboard_check_released(vk_right) - try_right = 0 -if keyboard_check(vk_left) - try_left = 1 -if keyboard_check_released(vk_left) - try_left = 0 -if (global.osflavor == 1) -{ - if try_up - up = keyboard_check_direct(vk_up) - if try_down - down = keyboard_check_direct(vk_down) - if try_left - left = keyboard_check_direct(vk_left) - if try_right - right = keyboard_check_direct(vk_right) -} -else -{ - if try_up - up = keyboard_check(vk_up) - if try_down - down = keyboard_check(vk_down) - if try_left - left = keyboard_check(vk_left) - if try_right - right = keyboard_check(vk_right) -} -if keyboard_check_released(vk_up) - up = 0 -if keyboard_check_released(vk_down) - down = 0 -if keyboard_check_released(vk_left) - left = 0 -if keyboard_check_released(vk_right) - right = 0 -var now_idle = (!(up || down || left || right || control_check(0) || control_check(1) || control_check(2))) -if (now_idle && (!idle)) - idle_time = current_time -idle = now_idle -if control_check(2) -{ - if (global.flag[28] == 1) - { - if (instance_exists(OBJ_WRITER) && (!instance_exists(obj_choicer))) - { - if (h_skip == 0) - { - keyboard_key_press(ord("X")) - keyboard_key_press(ord("Z")) - } - if (h_skip == 1) - { - keyboard_key_release(ord("Z")) - keyboard_key_release(ord("X")) - } - if (h_skip == 0) - h_skip = 1 - else - h_skip = 0 - } - } -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("F")) - room_speed = 200 -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("W")) - room_speed = 10 -} -if keyboard_check_pressed(vk_f4) -{ - if window_get_fullscreen() - window_set_fullscreen(false) - else - window_set_fullscreen(true) -} -if (canquit == 1) -{ - if (global.debug == 1) - { - if (keyboard_check_pressed(ord("R")) && instance_exists(obj_essaystuff) == 0) - { - debug_r += 1 - if (debug_r > 5) - game_restart() - spec_rtimer = 1 - } - } - spec_rtimer += 1 - if (spec_rtimer >= 6) - debug_r = 0 - if keyboard_check(vk_escape) - { - quit += 1 - if (instance_exists(obj_quittingmessage) == 0) - instance_create(0, 0, obj_quittingmessage) - } - else - quit = 0 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 887b086f9..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - return; - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ee7a4ca81..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6623 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\\XLa, la.^3 &Time to wake&up and\\R smell\\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\\Y" - if (global.flag[22] == 2) - adder = "\\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 965: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_2") - global.msg[1] = scr_gettext("SCR_TEXT_mewmew_3") - global.msg[2] = " " - if (global.tempvalue[14] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_6") - with (obj_mewmew_npc) - con = 1 - } - break - case 966: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_4") - with (obj_mewmew_npc) - con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_5") - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1077: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_0") - if instance_exists(obj_mewmew_boss) - { - if (obj_mewmew_boss.true_battle >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_1") - } - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_get_element.gml deleted file mode 100644 index bd067ef6b..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, false, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_joystick_pov.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_joystick_pov.gml deleted file mode 100644 index 6c8efecf4..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_joystick_pov.gml +++ /dev/null @@ -1,7 +0,0 @@ -var jid = __joystick_2_gamepad(argument0) -var mask = 0 -mask |= (gamepad_button_value(jid, gp_padu) > 0 ? 1 : 0) -mask |= (gamepad_button_value(jid, gp_padr) > 0 ? 2 : 0) -mask |= (gamepad_button_value(jid, gp_padd) > 0 ? 4 : 0) -mask |= (gamepad_button_value(jid, gp_padl) > 0 ? 8 : 0) -return global.__jstick_povangle[mask]; diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 5baecfc3f..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,43 +0,0 @@ -var lines; -if (global.osflavor <= 2) - return file_text_open_read(argument0); -else -{ - var name = string_lower(argument0) - var file = ds_map_find_value(global.savedata, name) - if is_undefined(file) - return undefined; - var data = file - var num_lines = 0 - while (string_byte_length(data) > 0) - { - var newline_pos = string_pos(chr($0A), data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == chr($0D)) - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line - } - handle = ds_map_create() - ds_map_set(handle, "is_write", 0) - ds_map_set(handle, "text", lines) - ds_map_set(handle, "num_lines", num_lines) - ds_map_set(handle, "line", 0) - ds_map_set(handle, "line_read", 0) - return handle; -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index f76acbdc9..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,23 +0,0 @@ -var xx = argument0 -var yy = argument1 -if (global.language == "ja") -{ - var use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (var i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, string_hash_to_newline(global.charname)) -return string_width(string_hash_to_newline(global.charname)); diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_draw_screen_border.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_draw_screen_border.gml deleted file mode 100644 index ddd3cc787..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_draw_screen_border.gml +++ /dev/null @@ -1,259 +0,0 @@ -var overlay; -var border_id = argument0 -draw_enable_alphablend(0) -if (border_id == 1) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_line_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_line_544, 0, 0) -} -if (border_id == 2) -{ - var fade_time = 60 - if instance_exists(obj_stalkerflowey) - { - global.screen_border_state += (1 / fade_time) - if (global.screen_border_state > 1) - global.screen_border_state = 1 - } - else - { - global.screen_border_state -= (1 / fade_time) - if (global.screen_border_state < 0) - global.screen_border_state = 0 - } - var idle_min = 300000 - var idle_time = 0 - if (obj_time.idle && current_time >= (obj_time.idle_time + idle_min)) - idle_time = (current_time - (obj_time.idle_time + idle_min)) - var idle_frame = (floor((idle_time / 100)) % 3) - var base = -4 - for (var i = 0; i < 9; i++) - { - overlay[i, 0] = -4 - overlay[i, 1] = spr_undertaletitle - overlay[i, 2] = spr_undertaletitle - } - if (os_type == os_ps4 || os_type == os_switch_beta) - { - base = bg_border_sepia_1080 - overlay[0, 1] = spr_blconbelow - overlay[0, 2] = spr_truechara_laugh - overlay[1, 1] = spr_superbone - overlay[1, 2] = buttonL_nx_zr - overlay[2, 1] = spr_barktry_ja - overlay[2, 2] = spr_finalfroggit - overlay[3, 1] = spr_undertaletitle - overlay[3, 2] = spr_undynex_example - overlay[4, 1] = spr_vegetoid - overlay[4, 2] = spr_blconbelow - overlay[5, 1] = spr_bookshelf - overlay[5, 2] = spr_undertaletitle - overlay[6, 1] = spr_forcefield_right_middle - overlay[6, 2] = spr_alphyshelper_embarrass - overlay[7, 1] = spr_chipdoor_chippart - overlay[7, 2] = spr_gb_npc - overlay[8, 1] = spr_undynea_ut - overlay[8, 2] = spr_uppbutton - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_1080_1a - overlay[1, 0] = bg_border_sepia_1080_2a - overlay[2, 0] = bg_border_sepia_1080_3a - overlay[3, 0] = bg_border_sepia_1080_4a - overlay[4, 0] = bg_border_sepia_1080_5a - overlay[5, 0] = bg_border_sepia_1080_6a - overlay[6, 0] = bg_border_sepia_1080_7a - overlay[7, 0] = bg_border_sepia_1080_8a - overlay[8, 0] = bg_border_sepia_1080_9a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_1080_1b - overlay[1, 0] = bg_border_sepia_1080_2b - overlay[2, 0] = bg_border_sepia_1080_3b - overlay[3, 0] = bg_border_sepia_1080_4b - overlay[4, 0] = bg_border_sepia_1080_5b - overlay[5, 0] = bg_border_sepia_1080_6b - overlay[6, 0] = bg_border_sepia_1080_7b - overlay[7, 0] = bg_border_sepia_1080_8b - overlay[8, 0] = bg_border_sepia_1080_9b - } - if (global.screen_border_state > 0) - overlay1 = 2839 - } - else if (os_type == os_psvita) - { - base = bg_border_sepia_544 - overlay[0, 1] = spr_talkbt - overlay[0, 2] = spr_undyneb_face3 - overlay[1, 1] = spr_heartorange - overlay[1, 2] = spr_wizard_orbhurt - overlay[2, 1] = spr_undertaletitle - overlay[2, 2] = spr_oolbone_ja - overlay[3, 1] = button_ps4_l3 - overlay[3, 2] = spr_undertaletitle - overlay[4, 1] = buttonL_nx_zl - overlay[4, 2] = spr_whimsunhurt - overlay[5, 1] = buttonL_vita_triangle - overlay[5, 2] = spr_vulkinface5 - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_544_1a - overlay[1, 0] = bg_border_sepia_544_2a - overlay[2, 0] = bg_border_sepia_544_3a - overlay[3, 0] = bg_border_sepia_544_4a - overlay[4, 0] = bg_border_sepia_544_5a - overlay[5, 0] = bg_border_sepia_544_6a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_544_1b - overlay[1, 0] = bg_border_sepia_544_2b - overlay[2, 0] = bg_border_sepia_544_3b - overlay[3, 0] = bg_border_sepia_544_4b - overlay[4, 0] = bg_border_sepia_544_5b - overlay[5, 0] = bg_border_sepia_544_6b - } - if (global.screen_border_state > 0) - overlay1 = 2853 - } - if (base != -4) - { - scr_draw_background_ps4(base, 0, 0) - if (overlay[0, 0] != -4) - { - if (global.screen_border_state > 0) - { - draw_enable_alphablend(1) - draw_set_alpha((global.screen_border_state * 0.5)) - } - scr_draw_background_ps4(overlay[0, 0], overlay[0, 1], overlay[0, 2]) - if (global.screen_border_state > 0) - { - draw_set_alpha(1) - draw_enable_alphablend(0) - } - } - for (i = 1; i < 9; i++) - { - if (overlay[i, 0] != -4) - scr_draw_background_ps4(overlay[i, 0], overlay[i, 1], overlay[i, 2]) - } - } -} -if (border_id == 3) -{ - var room_id = global.currentroom - if ((room_id >= 4 && room_id <= 43) || (room >= room_introstory && room <= room_intromenu) || (room >= room_settings && room <= room_controltest)) - border_id = 4 - if ((room_id >= 44 && room_id <= 81) || room_id == 311 || (room_id >= 265 && room_id <= 266)) - border_id = 5 - if ((room_id >= 82 && room_id <= 136) || room_id == 312 || room_id == 315) - border_id = 6 - if ((room_id >= 137 && room_id <= 215) || room_id == 313 || room_id == 314 || (room_id >= 242 && room_id <= 243)) - border_id = 7 - if (room_id >= 216 && room_id <= 240) - border_id = 8 - if (room_id >= 244 && room_id <= 263) - border_id = 9 - if (room_id == 136 || room_id == 213 || room_id == 215 || room_id == 242 || room_id == 243 || room_id == 316 || room_id == 335 || room_id == 336 || room_id == 337) - border_id = 3.5 - if (global.flag[479] == 0 && (room_id == 244 || room_id == 245)) - border_id = 3.5 - if (border_id != global.screen_border_state) - { - if (global.screen_border_state != 0) - { - if (global.screen_border_dynamic_fade_id == border_id) - global.screen_border_dynamic_fade_level = (1 - global.screen_border_dynamic_fade_level) - else - global.screen_border_dynamic_fade_level = 1 - global.screen_border_dynamic_fade_id = global.screen_border_state - } - global.screen_border_state = border_id - } - if (global.screen_border_dynamic_fade_level > 0) - { - fade_time = 30 - global.screen_border_dynamic_fade_level -= (1 / fade_time) - if (global.screen_border_dynamic_fade_level > 0) - { - scr_draw_screen_border(global.screen_border_dynamic_fade_id) - draw_set_alpha((1 - global.screen_border_dynamic_fade_level)) - } - else - { - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - } - } -} -if (border_id == 3.5) -{ - draw_set_color(c_black) - ossafe_fill_rectangle(0, 0, (window_get_width() - 1), (window_get_height() - 1)) - draw_set_color(c_white) -} -if (border_id == 4) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_ruins_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_ruins_544, 0, 0) -} -if (border_id == 5) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_tundra_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_tundra_544, 0, 0) -} -if (border_id == 6) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_water1_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_water1_544, 0, 0) -} -if (border_id == 7) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_fire_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_fire_544, 0, 0) -} -if (border_id == 8) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_castle_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_castle_544, 0, 0) -} -if (border_id == 9) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_truelab_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_truelab_544, 0, 0) -} -if (border_id == 10) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_rad_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_rad_544, 0, 0) -} -if (border_id == 11) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_anime_1080, 0, 0) -} -if (border_id == 12) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_dog_1080, 0, 0) -} -draw_set_alpha(1) -draw_enable_alphablend(1) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 30f82a28b..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,8 +0,0 @@ -global.msg[0] = scr_gettext("scr_itemdesc_2") -for (var i = 0; true; i++) -{ - var desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 4c986d2f8..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,39 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -var bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 69fc16d1e..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,901 +0,0 @@ -var credamt = 0 -if (global.osflavor <= 2) -{ - var credits_path = (working_directory + "credits.txt") - var credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - var thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew \"Southrop\" Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara \"Svenna\" Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean \"Ariamaki\" Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin \"BenaSPACE\" McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn \"Xisuu\" Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan \"ChessboardMan\" Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles \"Chip Champion\" Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary \"ZarroTsu\" Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will \"Radnar\" Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin \"AT\" Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves \"TehLazyOne\"" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke \"Association\" Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index 910c48cca..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var lines; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - var xx = (name_x - (q / 3)) - if (global.language == "ja") - { - var kana_count = 0 - for (var i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - var confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - return; - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, string_hash_to_newline(spec_m)) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (var row = 0; row < rows; row++) - { - var yy = ymap[row] - for (var col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), string_hash_to_newline(charmap[row, col])) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - var menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, string_hash_to_newline(menu_text0)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - var menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, string_hash_to_newline(menu_text1)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - var menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, string_hash_to_newline(menu_text2)) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - var charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, string_hash_to_newline(charset_text0)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - var charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, string_hash_to_newline(charset_text1)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - var charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, string_hash_to_newline(charset_text2)) - } - var old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - var best = 0 - var bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - var diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, string_hash_to_newline(charname)) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - var roomname = scr_roomname(roome) - var lvtext = scr_gettext("save_menu_lv", string(love)) - var timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - var namesize = string_width(string_hash_to_newline(substr(name, 1, 6))) - var lvsize = string_width(string_hash_to_newline(lvtext)) - var timesize = string_width(string_hash_to_newline(timetext)) - var x_center = 160 - var lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - var namepos = 70 - var timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, string_hash_to_newline(name)) - draw_text(lvpos, 62, string_hash_to_newline(lvtext)) - draw_text((timepos - timesize), 62, string_hash_to_newline(timetext)) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, string_hash_to_newline(roomname)) - if (selected3 == 0) - draw_set_color(c_yellow) - var continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, string_hash_to_newline(continue_text)) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - var reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, string_hash_to_newline(reset_text)) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - var action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, string_hash_to_newline(scr_gettext("instructions_title"))) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\\*Z") - draw_text(115, 50, string_hash_to_newline(scr_gettext("instructions_confirm_label"))) - scr_drawtext_icons(85, 70, "\\*X") - draw_text(115, 70, string_hash_to_newline(scr_gettext("instructions_cancel_label"))) - scr_drawtext_icons(85, 90, "\\*C") - draw_text(115, 90, string_hash_to_newline(scr_gettext("instructions_menu_label"))) - draw_text(86, 130, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - var num_lines = 5 - if (global.language == "ja") - { - var label_x = 0 - for (i = 0; i < num_lines; i++) - { - var key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), string_hash_to_newline(key)) - xx = ((50 + string_width(string_hash_to_newline(key))) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - var label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), string_hash_to_newline(label)) - } - draw_text(50, 145, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), string_hash_to_newline(((key + " - ") + label))) - } - draw_text(85, 140, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, string_hash_to_newline(scr_gettext("instructions_begin"))) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - var yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, string_hash_to_newline(scr_gettext("settings_name"))) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 79f5d3c57..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,436 +0,0 @@ -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -var halfsize = 0 -for (var n = 1; n <= stringpos; n++) -{ - var ch = string_char_at(originalstring, n) - var myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = 0xFDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = 0xD4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - var newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - var sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - var sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - var icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - var sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - var spritex = myx - var spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - var icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - var choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (__view_get(2, view_current) == 640) - myx *= 2 - myx += __view_get(0, view_current) - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - var nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - var letterx = myx - var offsetx = 0 - var offsety = 0 - var halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(string_hash_to_newline(myletter)) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - var unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - var lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - var angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - var display_scale = (surface_get_width(application_surface) / __view_get(2, view_current)) - var finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - var finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, string_hash_to_newline(myletter), (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(string_hash_to_newline(myletter)) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml deleted file mode 100644 index eed614253..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml +++ /dev/null @@ -1,449 +0,0 @@ -if (defined == 0) -{ - if (type == 999) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 2, 6, 0) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 0) - scr_hb_add(22, 2, 6, 2) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 2) - scr_hb_add(66, 1, 6, 0) - scr_hb_add(66, 2, 6, 1) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 0) - scr_hb_add(110, 2, 6, 2) - scr_hb_add(132, 0, 6, 0) - scr_hb_add(132, 2, 6, 0) - scr_hb_add(154, 0, 6, 2) - scr_hb_add(154, 1, 6, 0) - scr_hb_add(154, 2, 6, 1) - maxtimer = 250 - } - if (type == 0) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(8, 1, 6, 0) - scr_hb_add(16, 1, 6, 0) - maxtimer = 95 - } - if (type == 1) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(25, 0, 6, 0) - scr_hb_add(25, 2, 6, 0) - scr_hb_add(50, 1, 6, 0) - scr_hb_add(75, 0, 6, 0) - scr_hb_add(75, 2, 6, 0) - maxtimer = 150 - } - if (type == 2) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 0) - scr_hb_add(132, 2, 6, 2) - scr_hb_add(138, 0, 6, 1) - scr_hb_add(138, 1, 6, 0) - scr_hb_add(138, 2, 6, 2) - scr_hb_add(144, 0, 6, 1) - scr_hb_add(144, 1, 6, 0) - scr_hb_add(144, 2, 6, 2) - maxtimer = 220 - } - if (type == 3) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 1, 6, 1) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 2) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 1, 6, 1) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 2) - scr_hb_add(132, 2, 6, 0) - maxtimer = 210 - } - if (type == 4) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 2) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(44, 2, 6, 2) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 1, 6, 1) - scr_hb_add(66, 2, 6, 2) - scr_hb_add(88, 0, 6, 1) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 2) - scr_hb_add(110, 2, 6, 0) - maxtimer = 180 - } - if (type == 5) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(19, 0, 6, 0) - scr_hb_add(19, 2, 6, 0) - scr_hb_add(38, 0, 6, 0) - scr_hb_add(38, 1, 6, 1) - scr_hb_add(38, 2, 6, 2) - scr_hb_add(57, 0, 6, 0) - scr_hb_add(57, 2, 6, 0) - scr_hb_add(76, 1, 6, 0) - scr_hb_add(95, 0, 6, 0) - scr_hb_add(95, 2, 6, 0) - scr_hb_add(114, 0, 6, 1) - scr_hb_add(114, 1, 6, 2) - scr_hb_add(114, 2, 6, 0) - scr_hb_add(133, 0, 6, 0) - scr_hb_add(133, 2, 6, 0) - scr_hb_add(165, 1, 8, 0) - maxtimer = 230 - } - if (type == 6) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(20, 1, 6, 0) - scr_hb_add(20, 2, 6, 0) - scr_hb_add(40, 0, 6, 1) - scr_hb_add(40, 1, 6, 0) - scr_hb_add(40, 2, 6, 2) - scr_hb_add(60, 0, 6, 0) - scr_hb_add(60, 1, 6, 0) - scr_hb_add(80, 0, 6, 0) - scr_hb_add(80, 2, 6, 0) - scr_hb_add(100, 1, 6, 0) - scr_hb_add(100, 2, 6, 0) - scr_hb_add(120, 0, 6, 0) - scr_hb_add(120, 2, 6, 0) - scr_hb_add(140, 0, 6, 0) - scr_hb_add(140, 1, 6, 0) - scr_hb_add(160, 0, 6, 1) - scr_hb_add(160, 1, 6, 0) - scr_hb_add(160, 2, 6, 2) - scr_hb_add(167, 0, 6, 1) - scr_hb_add(167, 1, 6, 0) - scr_hb_add(167, 2, 6, 2) - scr_hb_add(174, 0, 6, 1) - scr_hb_add(174, 1, 6, 0) - scr_hb_add(174, 2, 6, 2) - shift_timer_max = 235 - scr_hb_add(235, 4, 10, 0) - scr_hb_add(235, 7, 10, 0) - maxtimer = 290 - } - if (type == 7) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 3, 6, 1) - scr_hb_add(0, 4, 6, 0) - scr_hb_add(0, 5, 6, 2) - scr_hb_add(30, 0, 6, 1) - scr_hb_add(30, 1, 6, 0) - scr_hb_add(30, 2, 6, 2) - scr_hb_add(60, 3, 6, 2) - scr_hb_add(60, 4, 6, 0) - scr_hb_add(60, 5, 6, 1) - scr_hb_add(90, 0, 6, 1) - scr_hb_add(90, 1, 6, 0) - scr_hb_add(90, 2, 6, 2) - scr_hb_add(120, 3, 6, 1) - scr_hb_add(120, 4, 6, 0) - scr_hb_add(120, 5, 6, 2) - scr_hb_add(150, 0, 6, 1) - scr_hb_add(150, 1, 6, 0) - scr_hb_add(150, 2, 6, 2) - maxtimer = 230 - } - if (type == 8) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 7, 0) - scr_hb_add(0, 5, 7, 0) - scr_hb_add(20, 1, 7, 0) - scr_hb_add(20, 2, 7, 0) - scr_hb_add(40, 6, 7, 0) - scr_hb_add(40, 7, 7, 0) - scr_hb_add(60, 0, 7, 0) - scr_hb_add(60, 1, 7, 0) - scr_hb_add(80, 0, 7, 1) - scr_hb_add(80, 1, 7, 0) - scr_hb_add(80, 2, 7, 2) - scr_hb_add(105, 3, 7, 1) - scr_hb_add(105, 4, 7, 0) - scr_hb_add(105, 5, 7, 2) - scr_hb_add(105, 6, 7, 1) - scr_hb_add(105, 7, 7, 0) - scr_hb_add(105, 8, 7, 2) - scr_hb_add(130, 3, 7, 2) - scr_hb_add(130, 4, 7, 0) - scr_hb_add(130, 5, 7, 1) - scr_hb_add(130, 6, 7, 2) - scr_hb_add(130, 7, 7, 0) - scr_hb_add(130, 8, 7, 1) - maxtimer = 220 - } - if (type == 9) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 8, 0) - scr_hb_add(0, 5, 8, 0) - scr_hb_add(19, 6, 8, 0) - scr_hb_add(19, 7, 8, 0) - scr_hb_add(38, 0, 8, 1) - scr_hb_add(38, 1, 8, 0) - scr_hb_add(38, 2, 8, 2) - scr_hb_add(57, 0, 8, 0) - scr_hb_add(57, 2, 8, 0) - scr_hb_add(76, 6, 8, 0) - scr_hb_add(76, 7, 8, 0) - scr_hb_add(95, 4, 8, 0) - scr_hb_add(95, 5, 8, 0) - scr_hb_add(120, 0, 8, 1) - scr_hb_add(120, 1, 8, 0) - scr_hb_add(120, 2, 8, 2) - scr_hb_add(135, 0, 8, 0) - scr_hb_add(135, 2, 8, 0) - maxtimer = 210 - } - if (type == 10 || type == 12) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 0 - cur_time = 0 - time_gap = 17 - if (type == 12) - { - time_gap = 12 - max_attack = 16 - } - prev_pat = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - prev_pat = cur_pat - } - maxtimer = (cur_time + 50) - } - if (type == 11 || type == 13) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 1 - cur_time = 0 - time_gap = 18 - if (type == 13) - { - time_gap = 13 - max_attack = 16 - } - prev_dir = -1 - prev_pat = -1 - cur_dir = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - } - } - if (cur_pat >= 6) - cur_dir = 1 - else - cur_dir = 2 - if (prev_dir != -1) - { - if (prev_dir != cur_dir) - { - if (type == 11) - cur_time += 5 - if (type == 13) - cur_time += 4 - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 6) - { - scr_hb_add(cur_time, 3, 8, 0) - scr_hb_add(cur_time, 4, 8, 0) - cur_time += time_gap - } - if (cur_pat == 7) - { - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 0) - cur_time += time_gap - } - if (cur_pat == 8) - { - scr_hb_add(cur_time, 3, 8, 1) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 2) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - if (cur_pat == 9) - { - scr_hb_add(cur_time, 3, 8, 2) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 1) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - prev_pat = cur_pat - prev_dir = cur_dir - } - maxtimer = (cur_time + 50) - } - global.turntimer = maxtimer - defined = 1 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml deleted file mode 100644 index 3df40f867..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml +++ /dev/null @@ -1,60 +0,0 @@ -if (active == true && defined == 1) -{ - while (bullettime[curbullet] == bultimer) - { - bul = instance_create(0, 0, obj_halfbullet) - if instance_exists(bul) - { - if (bulletpos[curbullet] == 0 || bulletpos[curbullet] == 1 || bulletpos[curbullet] == 2) - { - bul.x = xpos[bulletpos[curbullet]] - bul.y = -60 - bul.hspeed = 0 - bul.vspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 3 || bulletpos[curbullet] == 4 || bulletpos[curbullet] == 5) - { - bul.x = -48 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 6 || bulletpos[curbullet] == 7 || bulletpos[curbullet] == 8) - { - bul.x = 700 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = (-bulletspeed[curbullet]) - } - bul.type = bullettype[curbullet] - if (bul.type == 1) - bul.image_blend = global.joycon_color[0] - if (bul.type == 2) - bul.image_blend = global.joycon_color[1] - } - curbullet += 1 - if (curbullet >= maxbullet) - { - break - active = false - } - } -} -bultimer += 1 -if (bultimer >= (maxtimer - 10)) - darkness = 0 -if (bultimer >= maxtimer) -{ - with (obj_halfbullet) - instance_destroy() - instance_destroy() -} -if (shift_timer_max >= -1) -{ - shift_timer += 1 - if (shift_timer == shift_timer_max) - { - with (obj_hearthalf) - vertical_ok = 1 - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index f9c3e45d6..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,21 +0,0 @@ -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -var msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (var i = 0; true; i++) -{ - var text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -var xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 08a409c88..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,444 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -var vspacing = 15 -if (global.language == "ja") - vspacing = 16 -var button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), string_hash_to_newline(itext)) - var xx = ((20 + string_width(string_hash_to_newline(itext))) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -var stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), string_hash_to_newline(stext)) - draw_set_color(c_white) -} -button_x += string_width(string_hash_to_newline(stext)) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, string_hash_to_newline(global.button0)) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), string_hash_to_newline(global.button1)) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), string_hash_to_newline(global.button2)) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var analog_text_width = string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")))) - draw_text_transformed(20, (135 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_choice"))) -if (global.joy_dir == 0) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_normal"))) -if (global.joy_dir == 1) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_analog"))) -if (global.joy_dir == 2) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_pov"))) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_reset"))) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_test"))) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_fall")), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 494a374b5..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - return; -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - return; - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index d63e8da5e..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,99 +0,0 @@ -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - return; -} -num_borders = 12 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (var i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -border_11 = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - var BW = ini_read_real("General", "BW", 0) - var BP = ini_read_real("General", "BP", 0) - var BH = ini_read_real("General", "BH", 0) - var DB = ini_read_real("General", "DB", 0) - var EndF = ini_read_real("EndF", "EndF", 0) - var M = ini_read_real("Alphys", "M", 0) - var R = ini_read_real("Alphys", "R", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (global.osflavor == 5) - { - if M - { - border_enabled[11] = 1 - border_11 = R - } - if DB - border_enabled[12] = 1 - } - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 8c37eb92b..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,302 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_fall")), 1, 1, -20) -} -var menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, string_hash_to_newline(scr_gettext("settings_language"))) -draw_text(92, 70, string_hash_to_newline(scr_gettext(("settings_language_" + global.language)))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_button"))) - var vspacing = 18 - var button_x = 0 - for (var i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - var itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), string_hash_to_newline(itext)) - draw_set_color(c_white) - var xx = (40 + string_width(string_hash_to_newline(itext))) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - var button = -4 - for (var b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check((obj_time.j_ch - 1), button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - var command = string_char_at("ZXC", (i + 1)) - var sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(scr_gettext("joyconfig_reset"))) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - var border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_label)) - if (global.screen_border_id == 0) - var border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == 11) - border_sel = scr_gettext(((("settings_border_" + string(global.screen_border_id)) + "_") + string(border_11))) - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(string_hash_to_newline(border_label))) + 20), ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_sel)) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_joyconfig"))) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 0210cdb97..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), string_hash_to_newline((s_value[(i * 2)] + "G - Ninechara"))) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), string_hash_to_newline((s_value[((i * 2) + 1)] + "G - Ninechara"))) - } - draw_text(30, 210, string_hash_to_newline(scr_gettext("shop_exit_submenu"))) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, string_hash_to_newline((("Really sell Ninechara for " + string(value[sellpos])) + "G?"))) - draw_text(80, 180, string_hash_to_newline("Yes")) - draw_text(190, 180, string_hash_to_newline("No")) - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_time_Create_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_time_Create_0.gml deleted file mode 100644 index 6fc0ce9ec..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_time_Create_0.gml +++ /dev/null @@ -1,155 +0,0 @@ -if (os_type == os_windows) - global.osflavor = 1 -else if (os_type == os_ps4 || os_type == os_psvita) - global.osflavor = 4 -else if (os_type == os_switch_beta) - global.osflavor = 5 -else - global.osflavor = 2 -global.locale = ((os_get_language() + "_") + string_upper(os_get_region())) -if (global.osflavor >= 3) -{ - application_surface_enable(true) - application_surface_draw_enable(false) -} -if (os_type == os_switch_beta && (!variable_global_exists("switchlogin"))) -{ - global.switchlogin = -1 - while (global.switchlogin < 0) - global.switchlogin = switch_accounts_select_account(1, 0, 0) -} -if (os_type == os_switch_beta) -{ - switch_controller_support_set_defaults() - switch_controller_support_set_singleplayer_only(1) - switch_controller_set_supported_styles(7) - missing_controller_timeout = 0 -} -global.savedata_async_id = -1 -global.savedata_async_load = 0 -global.savedata_error = 0 -global.savedata_debuginfo = "" -global.disable_os_pause = 0 -paused = 0 -idle = 0 -idle_time = 0 -up = 0 -down = 0 -left = 0 -right = 0 -quit = 0 -try_up = 0 -try_down = 0 -try_left = 0 -try_right = 0 -canquit = 1 -h_skip = 0 -j_xpos = 0 -j_ypos = 0 -j_dir = 0 -j_fr = 0 -j_fl = 0 -j_fu = 0 -j_fd = 0 -j_fr_p = 0 -j_fl_p = 0 -j_fu_p = 0 -j_fd_p = 0 -for (var i = 0; i < 12; i += 1) -{ - j_prev[i] = 0 - j_on[i] = 0 -} -global.button0 = 2 -global.button1 = 1 -global.button2 = 4 -global.analog_sense = 0.15 -global.analog_sense_sense = 0.01 -global.joy_dir = 0 -if (os_type == os_ps4 || os_type == os_psvita) -{ - if (substr(global.locale, 1, 2) == "ja") - { - global.button0 = 32770 - global.button1 = 32769 - } - else - { - global.button0 = 32769 - global.button1 = 32770 - } - global.button2 = 32772 -} -else if (os_type == os_switch_beta) -{ - global.button0 = 32770 - global.button1 = 32769 - global.button2 = 32772 -} -global.default_button0 = global.button0 -global.default_button1 = global.button1 -global.default_button2 = global.button2 -global.default_analog_sense = global.analog_sense -global.default_analog_sense_sense = global.analog_sense_sense -global.default_joy_dir = global.joy_dir -global.screen_border_id = 0 -global.screen_border_active = 0 -global.screen_border_alpha = 1 -global.screen_border_state = 0 -global.screen_border_dynamic_fade_id = 0 -global.screen_border_dynamic_fade_level = 0 -global.screen_border_activate_on_game_over = 0 -debug_r = 0 -debug_f = 0 -j1 = 0 -j2 = 0 -ja = 0 -j_ch = 0 -jt = 0 -if (global.osflavor >= 4) -{ - for (i = 0; i < gamepad_get_device_count(); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch == 0) - { - if (os_type == os_switch_beta) - { - if (switch_controller_support_show() == 0) - j_ch = (switch_controller_support_get_selected_id() + 1) - } - else - j_ch = 1 - } -} -spec_rtimer = 0 -global.endsong_loaded = 0 -control_init() -scr_kanatype_init() -if (!variable_global_exists("text_data_en")) - script_execute(textdata_en) -if (!variable_global_exists("text_data_ja")) - script_execute(textdata_ja) -if (os_type == os_switch_beta) - global.language = substr(switch_language_get_desired_language(), 1, 2) -else - global.language = substr(global.locale, 1, 2) -if (global.language != "ja") - global.language = "en" -if (!variable_global_exists("trophy_init_complete")) -{ - global.trophy_init_complete = 0 - trophy_ts = -1 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_time_Step_1.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_time_Step_1.gml deleted file mode 100644 index bca42138e..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_time_Step_1.gml +++ /dev/null @@ -1,400 +0,0 @@ -if (started <= 0) -{ - if (global.savedata_async_id >= 0) - return; - started = -1 - if (!trophy_init()) - { - if (trophy_ts < 0) - trophy_ts = current_time - return; - } - ossafe_ini_open("config.ini") - var lang = ini_read_string("General", "lang", "") - var sb_i = ini_read_real("General", "sb", -1) - var b0_i = ini_read_real("joypad1", "b0", -1) - var b1_i = ini_read_real("joypad1", "b1", -1) - var b2_i = ini_read_real("joypad1", "b2", -1) - var as_i = ini_read_real("joypad1", "as", -1) - var jd_i = ini_read_real("joypad1", "jd", -1) - if (string_length(lang) > 0) - global.language = lang - if (sb_i >= 0) - global.screen_border_id = sb_i - if (b0_i >= 0) - global.button0 = b0_i - if (b1_i >= 0) - global.button1 = b1_i - if (b2_i >= 0) - global.button2 = b2_i - if (as_i >= 0) - global.analog_sense = as_i - if (jd_i >= 0) - global.joy_dir = jd_i - ossafe_ini_close() - scr_enable_screen_border(global.osflavor >= 4) - if (global.osflavor >= 4) - { - global.analog_sense = 0.15 - if (os_type == os_psvita) - global.analog_sense = 0.9 - global.joy_dir = 0 - } - ossafe_ini_open("undertale.ini") - fskip = ini_read_real("FFFFF", "E", -1) - ftime = ini_read_real("FFFFF", "F", -1) - true_end = ini_read_real("EndF", "EndF", -1) - ossafe_ini_close() - sksk = 0 - if (ftime == 1) - { - sksk = 1 - room_goto(room_f_start) - } - if (true_end == 1 && sksk == 0) - { - sksk = 1 - room_goto(room_flowey_regret) - } - if (fskip >= 1 && sksk == 0) - { - global.filechoice = 8 - scr_load() - if (fskip == 1) - room_goto(room_flowey_endchoice) - if (fskip == 2) - room_goto(room_castle_exit) - } - else if (sksk == 0) - room_goto_next() - if (ossafe_file_exists("system_information_962") && (!ossafe_file_exists("system_information_963"))) - room_goto(room_nothingness) - started = 1 - return; -} -if (!paused) - time += 1 -if (global.osflavor <= 2) -{ - if (jt == 0) - { - if (j_ch != 2) - { - if joystick_exists(1) - j_ch = 1 - else if (j_ch == 1) - j_ch = 0 - } - } - if (jt == 4) - { - if (j_ch != 1) - { - if joystick_exists(2) - j_ch = 2 - else if (j_ch == 2) - j_ch = 0 - } - } - jt += 1 - if (jt >= 8) - jt = 0 -} -else if (os_type == os_switch_beta) -{ - if (j_ch > 0 && gamepad_is_connected((j_ch - 1))) - missing_controller_timeout = 0 - else - { - j_ch = 0 - for (var i = 0; (i < gamepad_get_device_count()); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch > 0) - missing_controller_timeout = 0 - else if (missing_controller_timeout == 0) - missing_controller_timeout = (current_time + 2000) - else if (current_time >= missing_controller_timeout) - { - if (switch_controller_support_show() == 0) - { - j_ch = (switch_controller_support_get_selected_id() + 1) - missing_controller_timeout = 0 - } - } - } -} -control_update() -if (j_ch > 0) -{ - j_fr_p = j_fr - j_fl_p = j_fl - j_fu_p = j_fu - j_fd_p = j_fd - j_fr = 0 - j_fl = 0 - j_fu = 0 - j_fd = 0 - if (global.osflavor >= 4) - { - if (gamepad_button_check((j_ch - 1), gp_padu) || gamepad_button_check((j_ch - 1), gp_padd) || gamepad_button_check((j_ch - 1), gp_padl) || gamepad_button_check((j_ch - 1), gp_padr)) - { - j_fu = gamepad_button_check((j_ch - 1), gp_padu) - j_fd = gamepad_button_check((j_ch - 1), gp_padd) - j_fl = gamepad_button_check((j_ch - 1), gp_padl) - j_fr = gamepad_button_check((j_ch - 1), gp_padr) - } - else if (global.joy_dir != 2) - { - var j_xpos = gamepad_axis_value((j_ch - 1), gp_axislh) - var j_ypos = gamepad_axis_value((j_ch - 1), gp_axislv) - var analog_sense = global.analog_sense - if (sqrt((sqr(j_xpos) + sqr(j_ypos))) >= analog_sense) - { - var angle = darctan2(j_ypos, j_xpos) - if (angle < 0) - angle += 360 - if (angle < 67.5 || angle > 292.5) - j_fr = 1 - if (angle > 22.5 && angle < 157.5) - j_fd = 1 - if (angle > 112.5 && angle < 247.5) - j_fl = 1 - if (angle > 202.5 && angle < 337.5) - j_fu = 1 - } - } - } - else - { - if (global.joy_dir == 0 || global.joy_dir == 1) - { - j_xpos = joystick_xpos(j_ch) - j_ypos = joystick_ypos(j_ch) - } - j_dir = joystick_direction(j_ch) - if (global.joy_dir == 0 || global.joy_dir == 1) - { - if (j_dir == 101) - { - if (j_xpos >= global.analog_sense) - j_fr = 1 - if (j_xpos <= (-global.analog_sense)) - j_fl = 1 - if (j_ypos >= global.analog_sense) - j_fd = 1 - if (j_ypos <= (-global.analog_sense)) - j_fu = 1 - } - } - if (j_dir != 101) - { - if (j_dir == 100) - j_fl = 1 - if (j_dir == 98) - j_fd = 1 - if (j_dir == 102) - j_fr = 1 - if (j_dir == 104) - j_fu = 1 - if (j_dir == 99) - { - j_fr = 1 - j_fd = 1 - } - if (j_dir == 97) - { - j_fd = 1 - j_fl = 1 - } - if (j_dir == 103) - { - j_fu = 1 - j_fl = 1 - } - if (j_dir == 105) - { - j_fu = 1 - j_fr = 1 - } - } - if (global.joy_dir == 0 || global.joy_dir == 2) - { - j_pov = joystick_pov(j_ch) - if (j_pov == 0) - j_fu = 1 - if (j_pov == 270) - j_fl = 1 - if (j_pov == 90) - j_fr = 1 - if (j_pov == 180) - j_fd = 1 - if (j_pov == 315) - { - j_fu = 1 - j_fl = 1 - } - if (j_pov == 45) - { - j_fu = 1 - j_fr = 1 - } - if (j_pov == 225) - { - j_fd = 1 - j_fl = 1 - } - if (j_pov == 135) - { - j_fd = 1 - j_fr = 1 - } - } - } - if (j_fr != j_fr_p && j_fr == 1) - keyboard_key_press(vk_right) - if (j_fl != j_fl_p && j_fl == 1) - keyboard_key_press(vk_left) - if (j_fd != j_fd_p && j_fd == 1) - keyboard_key_press(vk_down) - if (j_fu != j_fu_p && j_fu == 1) - keyboard_key_press(vk_up) - if (j_fr != j_fr_p && j_fr == 0) - keyboard_key_release(vk_right) - if (j_fl != j_fl_p && j_fl == 0) - keyboard_key_release(vk_left) - if (j_fd != j_fd_p && j_fd == 0) - keyboard_key_release(vk_down) - if (j_fu != j_fu_p && j_fu == 0) - keyboard_key_release(vk_up) -} -up = 0 -down = 0 -left = 0 -right = 0 -if keyboard_check(vk_up) - try_up = 1 -if keyboard_check_released(vk_up) - try_up = 0 -if keyboard_check(vk_down) - try_down = 1 -if keyboard_check_released(vk_down) - try_down = 0 -if keyboard_check(vk_right) - try_right = 1 -if keyboard_check_released(vk_right) - try_right = 0 -if keyboard_check(vk_left) - try_left = 1 -if keyboard_check_released(vk_left) - try_left = 0 -if (global.osflavor == 1) -{ - if try_up - up = keyboard_check_direct(vk_up) - if try_down - down = keyboard_check_direct(vk_down) - if try_left - left = keyboard_check_direct(vk_left) - if try_right - right = keyboard_check_direct(vk_right) -} -else -{ - if try_up - up = keyboard_check(vk_up) - if try_down - down = keyboard_check(vk_down) - if try_left - left = keyboard_check(vk_left) - if try_right - right = keyboard_check(vk_right) -} -if keyboard_check_released(vk_up) - up = 0 -if keyboard_check_released(vk_down) - down = 0 -if keyboard_check_released(vk_left) - left = 0 -if keyboard_check_released(vk_right) - right = 0 -var now_idle = (!(up || down || left || right || control_check(0) || control_check(1) || control_check(2))) -if (now_idle && (!idle)) - idle_time = current_time -idle = now_idle -if control_check(2) -{ - if (global.flag[28] == 1) - { - if (instance_exists(OBJ_WRITER) && (!instance_exists(obj_choicer))) - { - if (h_skip == 0) - { - keyboard_key_press(ord("X")) - keyboard_key_press(ord("Z")) - } - if (h_skip == 1) - { - keyboard_key_release(ord("Z")) - keyboard_key_release(ord("X")) - } - if (h_skip == 0) - h_skip = 1 - else - h_skip = 0 - } - } -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("F")) - room_speed = 200 -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("W")) - room_speed = 10 -} -if keyboard_check_pressed(vk_f4) -{ - if window_get_fullscreen() - window_set_fullscreen(false) - else - window_set_fullscreen(true) -} -if (canquit == 1) -{ - if (global.debug == 1) - { - if (keyboard_check_pressed(ord("R")) && instance_exists(obj_essaystuff) == 0) - { - debug_r += 1 - if (debug_r > 5) - game_restart() - spec_rtimer = 1 - } - } - spec_rtimer += 1 - if (spec_rtimer >= 6) - debug_r = 0 - if keyboard_check(vk_escape) - { - quit += 1 - if (instance_exists(obj_quittingmessage) == 0) - instance_create(0, 0, obj_quittingmessage) - } - else - quit = 0 -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 887b086f9..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - return; - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ee7a4ca81..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6623 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\\XLa, la.^3 &Time to wake&up and\\R smell\\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\\Y" - if (global.flag[22] == 2) - adder = "\\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 965: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_2") - global.msg[1] = scr_gettext("SCR_TEXT_mewmew_3") - global.msg[2] = " " - if (global.tempvalue[14] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_6") - with (obj_mewmew_npc) - con = 1 - } - break - case 966: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_4") - with (obj_mewmew_npc) - con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_5") - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1077: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_0") - if instance_exists(obj_mewmew_boss) - { - if (obj_mewmew_boss.true_battle >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_1") - } - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index bd067ef6b..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, false, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_joystick_pov.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_joystick_pov.gml deleted file mode 100644 index 6c8efecf4..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_joystick_pov.gml +++ /dev/null @@ -1,7 +0,0 @@ -var jid = __joystick_2_gamepad(argument0) -var mask = 0 -mask |= (gamepad_button_value(jid, gp_padu) > 0 ? 1 : 0) -mask |= (gamepad_button_value(jid, gp_padr) > 0 ? 2 : 0) -mask |= (gamepad_button_value(jid, gp_padd) > 0 ? 4 : 0) -mask |= (gamepad_button_value(jid, gp_padl) > 0 ? 8 : 0) -return global.__jstick_povangle[mask]; diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 5baecfc3f..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,43 +0,0 @@ -var lines; -if (global.osflavor <= 2) - return file_text_open_read(argument0); -else -{ - var name = string_lower(argument0) - var file = ds_map_find_value(global.savedata, name) - if is_undefined(file) - return undefined; - var data = file - var num_lines = 0 - while (string_byte_length(data) > 0) - { - var newline_pos = string_pos(chr($0A), data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == chr($0D)) - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line - } - handle = ds_map_create() - ds_map_set(handle, "is_write", 0) - ds_map_set(handle, "text", lines) - ds_map_set(handle, "num_lines", num_lines) - ds_map_set(handle, "line", 0) - ds_map_set(handle, "line_read", 0) - return handle; -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index f76acbdc9..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,23 +0,0 @@ -var xx = argument0 -var yy = argument1 -if (global.language == "ja") -{ - var use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (var i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, string_hash_to_newline(global.charname)) -return string_width(string_hash_to_newline(global.charname)); diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_draw_screen_border.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_draw_screen_border.gml deleted file mode 100644 index ddd3cc787..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_draw_screen_border.gml +++ /dev/null @@ -1,259 +0,0 @@ -var overlay; -var border_id = argument0 -draw_enable_alphablend(0) -if (border_id == 1) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_line_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_line_544, 0, 0) -} -if (border_id == 2) -{ - var fade_time = 60 - if instance_exists(obj_stalkerflowey) - { - global.screen_border_state += (1 / fade_time) - if (global.screen_border_state > 1) - global.screen_border_state = 1 - } - else - { - global.screen_border_state -= (1 / fade_time) - if (global.screen_border_state < 0) - global.screen_border_state = 0 - } - var idle_min = 300000 - var idle_time = 0 - if (obj_time.idle && current_time >= (obj_time.idle_time + idle_min)) - idle_time = (current_time - (obj_time.idle_time + idle_min)) - var idle_frame = (floor((idle_time / 100)) % 3) - var base = -4 - for (var i = 0; i < 9; i++) - { - overlay[i, 0] = -4 - overlay[i, 1] = spr_undertaletitle - overlay[i, 2] = spr_undertaletitle - } - if (os_type == os_ps4 || os_type == os_switch_beta) - { - base = bg_border_sepia_1080 - overlay[0, 1] = spr_blconbelow - overlay[0, 2] = spr_truechara_laugh - overlay[1, 1] = spr_superbone - overlay[1, 2] = buttonL_nx_zr - overlay[2, 1] = spr_barktry_ja - overlay[2, 2] = spr_finalfroggit - overlay[3, 1] = spr_undertaletitle - overlay[3, 2] = spr_undynex_example - overlay[4, 1] = spr_vegetoid - overlay[4, 2] = spr_blconbelow - overlay[5, 1] = spr_bookshelf - overlay[5, 2] = spr_undertaletitle - overlay[6, 1] = spr_forcefield_right_middle - overlay[6, 2] = spr_alphyshelper_embarrass - overlay[7, 1] = spr_chipdoor_chippart - overlay[7, 2] = spr_gb_npc - overlay[8, 1] = spr_undynea_ut - overlay[8, 2] = spr_uppbutton - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_1080_1a - overlay[1, 0] = bg_border_sepia_1080_2a - overlay[2, 0] = bg_border_sepia_1080_3a - overlay[3, 0] = bg_border_sepia_1080_4a - overlay[4, 0] = bg_border_sepia_1080_5a - overlay[5, 0] = bg_border_sepia_1080_6a - overlay[6, 0] = bg_border_sepia_1080_7a - overlay[7, 0] = bg_border_sepia_1080_8a - overlay[8, 0] = bg_border_sepia_1080_9a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_1080_1b - overlay[1, 0] = bg_border_sepia_1080_2b - overlay[2, 0] = bg_border_sepia_1080_3b - overlay[3, 0] = bg_border_sepia_1080_4b - overlay[4, 0] = bg_border_sepia_1080_5b - overlay[5, 0] = bg_border_sepia_1080_6b - overlay[6, 0] = bg_border_sepia_1080_7b - overlay[7, 0] = bg_border_sepia_1080_8b - overlay[8, 0] = bg_border_sepia_1080_9b - } - if (global.screen_border_state > 0) - overlay1 = 2839 - } - else if (os_type == os_psvita) - { - base = bg_border_sepia_544 - overlay[0, 1] = spr_talkbt - overlay[0, 2] = spr_undyneb_face3 - overlay[1, 1] = spr_heartorange - overlay[1, 2] = spr_wizard_orbhurt - overlay[2, 1] = spr_undertaletitle - overlay[2, 2] = spr_oolbone_ja - overlay[3, 1] = button_ps4_l3 - overlay[3, 2] = spr_undertaletitle - overlay[4, 1] = buttonL_nx_zl - overlay[4, 2] = spr_whimsunhurt - overlay[5, 1] = buttonL_vita_triangle - overlay[5, 2] = spr_vulkinface5 - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_544_1a - overlay[1, 0] = bg_border_sepia_544_2a - overlay[2, 0] = bg_border_sepia_544_3a - overlay[3, 0] = bg_border_sepia_544_4a - overlay[4, 0] = bg_border_sepia_544_5a - overlay[5, 0] = bg_border_sepia_544_6a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_544_1b - overlay[1, 0] = bg_border_sepia_544_2b - overlay[2, 0] = bg_border_sepia_544_3b - overlay[3, 0] = bg_border_sepia_544_4b - overlay[4, 0] = bg_border_sepia_544_5b - overlay[5, 0] = bg_border_sepia_544_6b - } - if (global.screen_border_state > 0) - overlay1 = 2853 - } - if (base != -4) - { - scr_draw_background_ps4(base, 0, 0) - if (overlay[0, 0] != -4) - { - if (global.screen_border_state > 0) - { - draw_enable_alphablend(1) - draw_set_alpha((global.screen_border_state * 0.5)) - } - scr_draw_background_ps4(overlay[0, 0], overlay[0, 1], overlay[0, 2]) - if (global.screen_border_state > 0) - { - draw_set_alpha(1) - draw_enable_alphablend(0) - } - } - for (i = 1; i < 9; i++) - { - if (overlay[i, 0] != -4) - scr_draw_background_ps4(overlay[i, 0], overlay[i, 1], overlay[i, 2]) - } - } -} -if (border_id == 3) -{ - var room_id = global.currentroom - if ((room_id >= 4 && room_id <= 43) || (room >= room_introstory && room <= room_intromenu) || (room >= room_settings && room <= room_controltest)) - border_id = 4 - if ((room_id >= 44 && room_id <= 81) || room_id == 311 || (room_id >= 265 && room_id <= 266)) - border_id = 5 - if ((room_id >= 82 && room_id <= 136) || room_id == 312 || room_id == 315) - border_id = 6 - if ((room_id >= 137 && room_id <= 215) || room_id == 313 || room_id == 314 || (room_id >= 242 && room_id <= 243)) - border_id = 7 - if (room_id >= 216 && room_id <= 240) - border_id = 8 - if (room_id >= 244 && room_id <= 263) - border_id = 9 - if (room_id == 136 || room_id == 213 || room_id == 215 || room_id == 242 || room_id == 243 || room_id == 316 || room_id == 335 || room_id == 336 || room_id == 337) - border_id = 3.5 - if (global.flag[479] == 0 && (room_id == 244 || room_id == 245)) - border_id = 3.5 - if (border_id != global.screen_border_state) - { - if (global.screen_border_state != 0) - { - if (global.screen_border_dynamic_fade_id == border_id) - global.screen_border_dynamic_fade_level = (1 - global.screen_border_dynamic_fade_level) - else - global.screen_border_dynamic_fade_level = 1 - global.screen_border_dynamic_fade_id = global.screen_border_state - } - global.screen_border_state = border_id - } - if (global.screen_border_dynamic_fade_level > 0) - { - fade_time = 30 - global.screen_border_dynamic_fade_level -= (1 / fade_time) - if (global.screen_border_dynamic_fade_level > 0) - { - scr_draw_screen_border(global.screen_border_dynamic_fade_id) - draw_set_alpha((1 - global.screen_border_dynamic_fade_level)) - } - else - { - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - } - } -} -if (border_id == 3.5) -{ - draw_set_color(c_black) - ossafe_fill_rectangle(0, 0, (window_get_width() - 1), (window_get_height() - 1)) - draw_set_color(c_white) -} -if (border_id == 4) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_ruins_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_ruins_544, 0, 0) -} -if (border_id == 5) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_tundra_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_tundra_544, 0, 0) -} -if (border_id == 6) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_water1_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_water1_544, 0, 0) -} -if (border_id == 7) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_fire_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_fire_544, 0, 0) -} -if (border_id == 8) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_castle_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_castle_544, 0, 0) -} -if (border_id == 9) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_truelab_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_truelab_544, 0, 0) -} -if (border_id == 10) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_rad_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_rad_544, 0, 0) -} -if (border_id == 11) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_anime_1080, 0, 0) -} -if (border_id == 12) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_dog_1080, 0, 0) -} -draw_set_alpha(1) -draw_enable_alphablend(1) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 30f82a28b..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,8 +0,0 @@ -global.msg[0] = scr_gettext("scr_itemdesc_2") -for (var i = 0; true; i++) -{ - var desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 4c986d2f8..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,39 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -var bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 69fc16d1e..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,901 +0,0 @@ -var credamt = 0 -if (global.osflavor <= 2) -{ - var credits_path = (working_directory + "credits.txt") - var credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - var thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew \"Southrop\" Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara \"Svenna\" Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean \"Ariamaki\" Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin \"BenaSPACE\" McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn \"Xisuu\" Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan \"ChessboardMan\" Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles \"Chip Champion\" Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary \"ZarroTsu\" Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will \"Radnar\" Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin \"AT\" Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves \"TehLazyOne\"" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke \"Association\" Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index 910c48cca..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var lines; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - var xx = (name_x - (q / 3)) - if (global.language == "ja") - { - var kana_count = 0 - for (var i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - var confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - return; - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, string_hash_to_newline(spec_m)) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (var row = 0; row < rows; row++) - { - var yy = ymap[row] - for (var col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), string_hash_to_newline(charmap[row, col])) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - var menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, string_hash_to_newline(menu_text0)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - var menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, string_hash_to_newline(menu_text1)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - var menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, string_hash_to_newline(menu_text2)) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - var charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, string_hash_to_newline(charset_text0)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - var charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, string_hash_to_newline(charset_text1)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - var charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, string_hash_to_newline(charset_text2)) - } - var old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - var best = 0 - var bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - var diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, string_hash_to_newline(charname)) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - var roomname = scr_roomname(roome) - var lvtext = scr_gettext("save_menu_lv", string(love)) - var timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - var namesize = string_width(string_hash_to_newline(substr(name, 1, 6))) - var lvsize = string_width(string_hash_to_newline(lvtext)) - var timesize = string_width(string_hash_to_newline(timetext)) - var x_center = 160 - var lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - var namepos = 70 - var timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, string_hash_to_newline(name)) - draw_text(lvpos, 62, string_hash_to_newline(lvtext)) - draw_text((timepos - timesize), 62, string_hash_to_newline(timetext)) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, string_hash_to_newline(roomname)) - if (selected3 == 0) - draw_set_color(c_yellow) - var continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, string_hash_to_newline(continue_text)) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - var reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, string_hash_to_newline(reset_text)) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - var action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, string_hash_to_newline(scr_gettext("instructions_title"))) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\\*Z") - draw_text(115, 50, string_hash_to_newline(scr_gettext("instructions_confirm_label"))) - scr_drawtext_icons(85, 70, "\\*X") - draw_text(115, 70, string_hash_to_newline(scr_gettext("instructions_cancel_label"))) - scr_drawtext_icons(85, 90, "\\*C") - draw_text(115, 90, string_hash_to_newline(scr_gettext("instructions_menu_label"))) - draw_text(86, 130, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - var num_lines = 5 - if (global.language == "ja") - { - var label_x = 0 - for (i = 0; i < num_lines; i++) - { - var key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), string_hash_to_newline(key)) - xx = ((50 + string_width(string_hash_to_newline(key))) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - var label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), string_hash_to_newline(label)) - } - draw_text(50, 145, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), string_hash_to_newline(((key + " - ") + label))) - } - draw_text(85, 140, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, string_hash_to_newline(scr_gettext("instructions_begin"))) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - var yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, string_hash_to_newline(scr_gettext("settings_name"))) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/113ef42e8cb91e5faf780c426679ec3a/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 79f5d3c57..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,436 +0,0 @@ -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -var halfsize = 0 -for (var n = 1; n <= stringpos; n++) -{ - var ch = string_char_at(originalstring, n) - var myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = 0xFDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = 0xD4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - var newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - var sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - var sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - var icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - var sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - var spritex = myx - var spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - var icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - var choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (__view_get(2, view_current) == 640) - myx *= 2 - myx += __view_get(0, view_current) - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - var nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - var letterx = myx - var offsetx = 0 - var offsety = 0 - var halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(string_hash_to_newline(myletter)) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - var unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - var lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - var angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - var display_scale = (surface_get_width(application_surface) / __view_get(2, view_current)) - var finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - var finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, string_hash_to_newline(myletter), (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(string_hash_to_newline(myletter)) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_halfbullet_gen_Other_10.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_halfbullet_gen_Other_10.gml deleted file mode 100644 index eed614253..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_halfbullet_gen_Other_10.gml +++ /dev/null @@ -1,449 +0,0 @@ -if (defined == 0) -{ - if (type == 999) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 2, 6, 0) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 0) - scr_hb_add(22, 2, 6, 2) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 2) - scr_hb_add(66, 1, 6, 0) - scr_hb_add(66, 2, 6, 1) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 0) - scr_hb_add(110, 2, 6, 2) - scr_hb_add(132, 0, 6, 0) - scr_hb_add(132, 2, 6, 0) - scr_hb_add(154, 0, 6, 2) - scr_hb_add(154, 1, 6, 0) - scr_hb_add(154, 2, 6, 1) - maxtimer = 250 - } - if (type == 0) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(8, 1, 6, 0) - scr_hb_add(16, 1, 6, 0) - maxtimer = 95 - } - if (type == 1) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(25, 0, 6, 0) - scr_hb_add(25, 2, 6, 0) - scr_hb_add(50, 1, 6, 0) - scr_hb_add(75, 0, 6, 0) - scr_hb_add(75, 2, 6, 0) - maxtimer = 150 - } - if (type == 2) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 0) - scr_hb_add(132, 2, 6, 2) - scr_hb_add(138, 0, 6, 1) - scr_hb_add(138, 1, 6, 0) - scr_hb_add(138, 2, 6, 2) - scr_hb_add(144, 0, 6, 1) - scr_hb_add(144, 1, 6, 0) - scr_hb_add(144, 2, 6, 2) - maxtimer = 220 - } - if (type == 3) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 1, 6, 1) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 2) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 1, 6, 1) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 2) - scr_hb_add(132, 2, 6, 0) - maxtimer = 210 - } - if (type == 4) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 2) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(44, 2, 6, 2) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 1, 6, 1) - scr_hb_add(66, 2, 6, 2) - scr_hb_add(88, 0, 6, 1) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 2) - scr_hb_add(110, 2, 6, 0) - maxtimer = 180 - } - if (type == 5) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(19, 0, 6, 0) - scr_hb_add(19, 2, 6, 0) - scr_hb_add(38, 0, 6, 0) - scr_hb_add(38, 1, 6, 1) - scr_hb_add(38, 2, 6, 2) - scr_hb_add(57, 0, 6, 0) - scr_hb_add(57, 2, 6, 0) - scr_hb_add(76, 1, 6, 0) - scr_hb_add(95, 0, 6, 0) - scr_hb_add(95, 2, 6, 0) - scr_hb_add(114, 0, 6, 1) - scr_hb_add(114, 1, 6, 2) - scr_hb_add(114, 2, 6, 0) - scr_hb_add(133, 0, 6, 0) - scr_hb_add(133, 2, 6, 0) - scr_hb_add(165, 1, 8, 0) - maxtimer = 230 - } - if (type == 6) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(20, 1, 6, 0) - scr_hb_add(20, 2, 6, 0) - scr_hb_add(40, 0, 6, 1) - scr_hb_add(40, 1, 6, 0) - scr_hb_add(40, 2, 6, 2) - scr_hb_add(60, 0, 6, 0) - scr_hb_add(60, 1, 6, 0) - scr_hb_add(80, 0, 6, 0) - scr_hb_add(80, 2, 6, 0) - scr_hb_add(100, 1, 6, 0) - scr_hb_add(100, 2, 6, 0) - scr_hb_add(120, 0, 6, 0) - scr_hb_add(120, 2, 6, 0) - scr_hb_add(140, 0, 6, 0) - scr_hb_add(140, 1, 6, 0) - scr_hb_add(160, 0, 6, 1) - scr_hb_add(160, 1, 6, 0) - scr_hb_add(160, 2, 6, 2) - scr_hb_add(167, 0, 6, 1) - scr_hb_add(167, 1, 6, 0) - scr_hb_add(167, 2, 6, 2) - scr_hb_add(174, 0, 6, 1) - scr_hb_add(174, 1, 6, 0) - scr_hb_add(174, 2, 6, 2) - shift_timer_max = 235 - scr_hb_add(235, 4, 10, 0) - scr_hb_add(235, 7, 10, 0) - maxtimer = 290 - } - if (type == 7) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 3, 6, 1) - scr_hb_add(0, 4, 6, 0) - scr_hb_add(0, 5, 6, 2) - scr_hb_add(30, 0, 6, 1) - scr_hb_add(30, 1, 6, 0) - scr_hb_add(30, 2, 6, 2) - scr_hb_add(60, 3, 6, 2) - scr_hb_add(60, 4, 6, 0) - scr_hb_add(60, 5, 6, 1) - scr_hb_add(90, 0, 6, 1) - scr_hb_add(90, 1, 6, 0) - scr_hb_add(90, 2, 6, 2) - scr_hb_add(120, 3, 6, 1) - scr_hb_add(120, 4, 6, 0) - scr_hb_add(120, 5, 6, 2) - scr_hb_add(150, 0, 6, 1) - scr_hb_add(150, 1, 6, 0) - scr_hb_add(150, 2, 6, 2) - maxtimer = 230 - } - if (type == 8) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 7, 0) - scr_hb_add(0, 5, 7, 0) - scr_hb_add(20, 1, 7, 0) - scr_hb_add(20, 2, 7, 0) - scr_hb_add(40, 6, 7, 0) - scr_hb_add(40, 7, 7, 0) - scr_hb_add(60, 0, 7, 0) - scr_hb_add(60, 1, 7, 0) - scr_hb_add(80, 0, 7, 1) - scr_hb_add(80, 1, 7, 0) - scr_hb_add(80, 2, 7, 2) - scr_hb_add(105, 3, 7, 1) - scr_hb_add(105, 4, 7, 0) - scr_hb_add(105, 5, 7, 2) - scr_hb_add(105, 6, 7, 1) - scr_hb_add(105, 7, 7, 0) - scr_hb_add(105, 8, 7, 2) - scr_hb_add(130, 3, 7, 2) - scr_hb_add(130, 4, 7, 0) - scr_hb_add(130, 5, 7, 1) - scr_hb_add(130, 6, 7, 2) - scr_hb_add(130, 7, 7, 0) - scr_hb_add(130, 8, 7, 1) - maxtimer = 220 - } - if (type == 9) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 8, 0) - scr_hb_add(0, 5, 8, 0) - scr_hb_add(19, 6, 8, 0) - scr_hb_add(19, 7, 8, 0) - scr_hb_add(38, 0, 8, 1) - scr_hb_add(38, 1, 8, 0) - scr_hb_add(38, 2, 8, 2) - scr_hb_add(57, 0, 8, 0) - scr_hb_add(57, 2, 8, 0) - scr_hb_add(76, 6, 8, 0) - scr_hb_add(76, 7, 8, 0) - scr_hb_add(95, 4, 8, 0) - scr_hb_add(95, 5, 8, 0) - scr_hb_add(120, 0, 8, 1) - scr_hb_add(120, 1, 8, 0) - scr_hb_add(120, 2, 8, 2) - scr_hb_add(135, 0, 8, 0) - scr_hb_add(135, 2, 8, 0) - maxtimer = 210 - } - if (type == 10 || type == 12) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 0 - cur_time = 0 - time_gap = 17 - if (type == 12) - { - time_gap = 12 - max_attack = 16 - } - prev_pat = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - prev_pat = cur_pat - } - maxtimer = (cur_time + 50) - } - if (type == 11 || type == 13) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 1 - cur_time = 0 - time_gap = 18 - if (type == 13) - { - time_gap = 13 - max_attack = 16 - } - prev_dir = -1 - prev_pat = -1 - cur_dir = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - } - } - if (cur_pat >= 6) - cur_dir = 1 - else - cur_dir = 2 - if (prev_dir != -1) - { - if (prev_dir != cur_dir) - { - if (type == 11) - cur_time += 5 - if (type == 13) - cur_time += 4 - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 6) - { - scr_hb_add(cur_time, 3, 8, 0) - scr_hb_add(cur_time, 4, 8, 0) - cur_time += time_gap - } - if (cur_pat == 7) - { - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 0) - cur_time += time_gap - } - if (cur_pat == 8) - { - scr_hb_add(cur_time, 3, 8, 1) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 2) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - if (cur_pat == 9) - { - scr_hb_add(cur_time, 3, 8, 2) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 1) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - prev_pat = cur_pat - prev_dir = cur_dir - } - maxtimer = (cur_time + 50) - } - global.turntimer = maxtimer - defined = 1 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_halfbullet_gen_Step_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_halfbullet_gen_Step_0.gml deleted file mode 100644 index 3df40f867..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_halfbullet_gen_Step_0.gml +++ /dev/null @@ -1,60 +0,0 @@ -if (active == true && defined == 1) -{ - while (bullettime[curbullet] == bultimer) - { - bul = instance_create(0, 0, obj_halfbullet) - if instance_exists(bul) - { - if (bulletpos[curbullet] == 0 || bulletpos[curbullet] == 1 || bulletpos[curbullet] == 2) - { - bul.x = xpos[bulletpos[curbullet]] - bul.y = -60 - bul.hspeed = 0 - bul.vspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 3 || bulletpos[curbullet] == 4 || bulletpos[curbullet] == 5) - { - bul.x = -48 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 6 || bulletpos[curbullet] == 7 || bulletpos[curbullet] == 8) - { - bul.x = 700 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = (-bulletspeed[curbullet]) - } - bul.type = bullettype[curbullet] - if (bul.type == 1) - bul.image_blend = global.joycon_color[0] - if (bul.type == 2) - bul.image_blend = global.joycon_color[1] - } - curbullet += 1 - if (curbullet >= maxbullet) - { - break - active = false - } - } -} -bultimer += 1 -if (bultimer >= (maxtimer - 10)) - darkness = 0 -if (bultimer >= maxtimer) -{ - with (obj_halfbullet) - instance_destroy() - instance_destroy() -} -if (shift_timer_max >= -1) -{ - shift_timer += 1 - if (shift_timer == shift_timer_max) - { - with (obj_hearthalf) - vertical_ok = 1 - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index f9c3e45d6..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,21 +0,0 @@ -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -var msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (var i = 0; true; i++) -{ - var text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -var xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 08a409c88..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,444 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -var vspacing = 15 -if (global.language == "ja") - vspacing = 16 -var button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), string_hash_to_newline(itext)) - var xx = ((20 + string_width(string_hash_to_newline(itext))) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -var stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), string_hash_to_newline(stext)) - draw_set_color(c_white) -} -button_x += string_width(string_hash_to_newline(stext)) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, string_hash_to_newline(global.button0)) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), string_hash_to_newline(global.button1)) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), string_hash_to_newline(global.button2)) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var analog_text_width = string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")))) - draw_text_transformed(20, (135 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_choice"))) -if (global.joy_dir == 0) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_normal"))) -if (global.joy_dir == 1) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_analog"))) -if (global.joy_dir == 2) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_pov"))) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_reset"))) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_test"))) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_fall")), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 494a374b5..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - return; -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - return; - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index d63e8da5e..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,99 +0,0 @@ -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - return; -} -num_borders = 12 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (var i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -border_11 = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - var BW = ini_read_real("General", "BW", 0) - var BP = ini_read_real("General", "BP", 0) - var BH = ini_read_real("General", "BH", 0) - var DB = ini_read_real("General", "DB", 0) - var EndF = ini_read_real("EndF", "EndF", 0) - var M = ini_read_real("Alphys", "M", 0) - var R = ini_read_real("Alphys", "R", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (global.osflavor == 5) - { - if M - { - border_enabled[11] = 1 - border_11 = R - } - if DB - border_enabled[12] = 1 - } - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 8c37eb92b..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,302 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_fall")), 1, 1, -20) -} -var menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, string_hash_to_newline(scr_gettext("settings_language"))) -draw_text(92, 70, string_hash_to_newline(scr_gettext(("settings_language_" + global.language)))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_button"))) - var vspacing = 18 - var button_x = 0 - for (var i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - var itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), string_hash_to_newline(itext)) - draw_set_color(c_white) - var xx = (40 + string_width(string_hash_to_newline(itext))) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - var button = -4 - for (var b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check((obj_time.j_ch - 1), button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - var command = string_char_at("ZXC", (i + 1)) - var sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(scr_gettext("joyconfig_reset"))) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - var border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_label)) - if (global.screen_border_id == 0) - var border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == 11) - border_sel = scr_gettext(((("settings_border_" + string(global.screen_border_id)) + "_") + string(border_11))) - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(string_hash_to_newline(border_label))) + 20), ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_sel)) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_joyconfig"))) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 0210cdb97..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), string_hash_to_newline((s_value[(i * 2)] + "G - Ninechara"))) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), string_hash_to_newline((s_value[((i * 2) + 1)] + "G - Ninechara"))) - } - draw_text(30, 210, string_hash_to_newline(scr_gettext("shop_exit_submenu"))) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, string_hash_to_newline((("Really sell Ninechara for " + string(value[sellpos])) + "G?"))) - draw_text(80, 180, string_hash_to_newline("Yes")) - draw_text(190, 180, string_hash_to_newline("No")) - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_time_Create_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_time_Create_0.gml deleted file mode 100644 index 84fb4f418..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_time_Create_0.gml +++ /dev/null @@ -1,151 +0,0 @@ -if (os_type == os_windows) - global.osflavor = 1 -else if (os_type == os_ps4 || os_type == os_psvita) - global.osflavor = 4 -else if (os_type == os_switch_beta) - global.osflavor = 5 -else - global.osflavor = 2 -global.locale = ((os_get_language() + "_") + string_upper(os_get_region())) -if (global.osflavor >= 3) -{ - application_surface_enable(true) - application_surface_draw_enable(false) -} -if (os_type == os_switch_beta && (!variable_global_exists("switchlogin"))) - global.switchlogin = switch_accounts_select_account(1, 0, 0) -if (os_type == os_switch_beta) -{ - switch_controller_support_set_defaults() - switch_controller_support_set_singleplayer_only(1) - switch_controller_set_supported_styles(7) - missing_controller_timeout = 0 -} -global.savedata_async_id = -1 -global.savedata_async_load = 0 -global.savedata_error = 0 -global.savedata_debuginfo = "" -global.disable_os_pause = 0 -paused = 0 -idle = 0 -idle_time = 0 -up = 0 -down = 0 -left = 0 -right = 0 -quit = 0 -try_up = 0 -try_down = 0 -try_left = 0 -try_right = 0 -canquit = 1 -h_skip = 0 -j_xpos = 0 -j_ypos = 0 -j_dir = 0 -j_fr = 0 -j_fl = 0 -j_fu = 0 -j_fd = 0 -j_fr_p = 0 -j_fl_p = 0 -j_fu_p = 0 -j_fd_p = 0 -for (var i = 0; i < 12; i += 1) -{ - j_prev[i] = 0 - j_on[i] = 0 -} -global.button0 = 2 -global.button1 = 1 -global.button2 = 4 -global.analog_sense = 0.15 -global.analog_sense_sense = 0.01 -global.joy_dir = 0 -if (os_type == os_ps4 || os_type == os_psvita) -{ - if (substr(global.locale, 1, 2) == "ja") - { - global.button0 = 32770 - global.button1 = 32769 - } - else - { - global.button0 = 32769 - global.button1 = 32770 - } - global.button2 = 32772 -} -else if (os_type == os_switch_beta) -{ - global.button0 = 32770 - global.button1 = 32769 - global.button2 = 32772 -} -global.default_button0 = global.button0 -global.default_button1 = global.button1 -global.default_button2 = global.button2 -global.default_analog_sense = global.analog_sense -global.default_analog_sense_sense = global.analog_sense_sense -global.default_joy_dir = global.joy_dir -global.screen_border_id = 0 -global.screen_border_active = 0 -global.screen_border_alpha = 1 -global.screen_border_state = 0 -global.screen_border_dynamic_fade_id = 0 -global.screen_border_dynamic_fade_level = 0 -global.screen_border_activate_on_game_over = 0 -debug_r = 0 -debug_f = 0 -j1 = 0 -j2 = 0 -ja = 0 -j_ch = 0 -jt = 0 -if (global.osflavor >= 4) -{ - for (i = 0; i < gamepad_get_device_count(); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch == 0) - { - if (os_type == os_switch_beta) - { - if (switch_controller_support_show() == 0) - j_ch = (switch_controller_support_get_selected_id() + 1) - } - else - j_ch = 1 - } -} -spec_rtimer = 0 -global.endsong_loaded = 0 -control_init() -scr_kanatype_init() -if (!variable_global_exists("text_data_en")) - script_execute(textdata_en) -if (!variable_global_exists("text_data_ja")) - script_execute(textdata_ja) -if (os_type == os_switch_beta) - global.language = substr(switch_language_get_desired_language(), 1, 2) -else - global.language = substr(global.locale, 1, 2) -if (global.language != "ja") - global.language = "en" -if (!variable_global_exists("trophy_init_complete")) -{ - global.trophy_init_complete = 0 - trophy_ts = -1 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_time_Step_1.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_time_Step_1.gml deleted file mode 100644 index bca42138e..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_time_Step_1.gml +++ /dev/null @@ -1,400 +0,0 @@ -if (started <= 0) -{ - if (global.savedata_async_id >= 0) - return; - started = -1 - if (!trophy_init()) - { - if (trophy_ts < 0) - trophy_ts = current_time - return; - } - ossafe_ini_open("config.ini") - var lang = ini_read_string("General", "lang", "") - var sb_i = ini_read_real("General", "sb", -1) - var b0_i = ini_read_real("joypad1", "b0", -1) - var b1_i = ini_read_real("joypad1", "b1", -1) - var b2_i = ini_read_real("joypad1", "b2", -1) - var as_i = ini_read_real("joypad1", "as", -1) - var jd_i = ini_read_real("joypad1", "jd", -1) - if (string_length(lang) > 0) - global.language = lang - if (sb_i >= 0) - global.screen_border_id = sb_i - if (b0_i >= 0) - global.button0 = b0_i - if (b1_i >= 0) - global.button1 = b1_i - if (b2_i >= 0) - global.button2 = b2_i - if (as_i >= 0) - global.analog_sense = as_i - if (jd_i >= 0) - global.joy_dir = jd_i - ossafe_ini_close() - scr_enable_screen_border(global.osflavor >= 4) - if (global.osflavor >= 4) - { - global.analog_sense = 0.15 - if (os_type == os_psvita) - global.analog_sense = 0.9 - global.joy_dir = 0 - } - ossafe_ini_open("undertale.ini") - fskip = ini_read_real("FFFFF", "E", -1) - ftime = ini_read_real("FFFFF", "F", -1) - true_end = ini_read_real("EndF", "EndF", -1) - ossafe_ini_close() - sksk = 0 - if (ftime == 1) - { - sksk = 1 - room_goto(room_f_start) - } - if (true_end == 1 && sksk == 0) - { - sksk = 1 - room_goto(room_flowey_regret) - } - if (fskip >= 1 && sksk == 0) - { - global.filechoice = 8 - scr_load() - if (fskip == 1) - room_goto(room_flowey_endchoice) - if (fskip == 2) - room_goto(room_castle_exit) - } - else if (sksk == 0) - room_goto_next() - if (ossafe_file_exists("system_information_962") && (!ossafe_file_exists("system_information_963"))) - room_goto(room_nothingness) - started = 1 - return; -} -if (!paused) - time += 1 -if (global.osflavor <= 2) -{ - if (jt == 0) - { - if (j_ch != 2) - { - if joystick_exists(1) - j_ch = 1 - else if (j_ch == 1) - j_ch = 0 - } - } - if (jt == 4) - { - if (j_ch != 1) - { - if joystick_exists(2) - j_ch = 2 - else if (j_ch == 2) - j_ch = 0 - } - } - jt += 1 - if (jt >= 8) - jt = 0 -} -else if (os_type == os_switch_beta) -{ - if (j_ch > 0 && gamepad_is_connected((j_ch - 1))) - missing_controller_timeout = 0 - else - { - j_ch = 0 - for (var i = 0; (i < gamepad_get_device_count()); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch > 0) - missing_controller_timeout = 0 - else if (missing_controller_timeout == 0) - missing_controller_timeout = (current_time + 2000) - else if (current_time >= missing_controller_timeout) - { - if (switch_controller_support_show() == 0) - { - j_ch = (switch_controller_support_get_selected_id() + 1) - missing_controller_timeout = 0 - } - } - } -} -control_update() -if (j_ch > 0) -{ - j_fr_p = j_fr - j_fl_p = j_fl - j_fu_p = j_fu - j_fd_p = j_fd - j_fr = 0 - j_fl = 0 - j_fu = 0 - j_fd = 0 - if (global.osflavor >= 4) - { - if (gamepad_button_check((j_ch - 1), gp_padu) || gamepad_button_check((j_ch - 1), gp_padd) || gamepad_button_check((j_ch - 1), gp_padl) || gamepad_button_check((j_ch - 1), gp_padr)) - { - j_fu = gamepad_button_check((j_ch - 1), gp_padu) - j_fd = gamepad_button_check((j_ch - 1), gp_padd) - j_fl = gamepad_button_check((j_ch - 1), gp_padl) - j_fr = gamepad_button_check((j_ch - 1), gp_padr) - } - else if (global.joy_dir != 2) - { - var j_xpos = gamepad_axis_value((j_ch - 1), gp_axislh) - var j_ypos = gamepad_axis_value((j_ch - 1), gp_axislv) - var analog_sense = global.analog_sense - if (sqrt((sqr(j_xpos) + sqr(j_ypos))) >= analog_sense) - { - var angle = darctan2(j_ypos, j_xpos) - if (angle < 0) - angle += 360 - if (angle < 67.5 || angle > 292.5) - j_fr = 1 - if (angle > 22.5 && angle < 157.5) - j_fd = 1 - if (angle > 112.5 && angle < 247.5) - j_fl = 1 - if (angle > 202.5 && angle < 337.5) - j_fu = 1 - } - } - } - else - { - if (global.joy_dir == 0 || global.joy_dir == 1) - { - j_xpos = joystick_xpos(j_ch) - j_ypos = joystick_ypos(j_ch) - } - j_dir = joystick_direction(j_ch) - if (global.joy_dir == 0 || global.joy_dir == 1) - { - if (j_dir == 101) - { - if (j_xpos >= global.analog_sense) - j_fr = 1 - if (j_xpos <= (-global.analog_sense)) - j_fl = 1 - if (j_ypos >= global.analog_sense) - j_fd = 1 - if (j_ypos <= (-global.analog_sense)) - j_fu = 1 - } - } - if (j_dir != 101) - { - if (j_dir == 100) - j_fl = 1 - if (j_dir == 98) - j_fd = 1 - if (j_dir == 102) - j_fr = 1 - if (j_dir == 104) - j_fu = 1 - if (j_dir == 99) - { - j_fr = 1 - j_fd = 1 - } - if (j_dir == 97) - { - j_fd = 1 - j_fl = 1 - } - if (j_dir == 103) - { - j_fu = 1 - j_fl = 1 - } - if (j_dir == 105) - { - j_fu = 1 - j_fr = 1 - } - } - if (global.joy_dir == 0 || global.joy_dir == 2) - { - j_pov = joystick_pov(j_ch) - if (j_pov == 0) - j_fu = 1 - if (j_pov == 270) - j_fl = 1 - if (j_pov == 90) - j_fr = 1 - if (j_pov == 180) - j_fd = 1 - if (j_pov == 315) - { - j_fu = 1 - j_fl = 1 - } - if (j_pov == 45) - { - j_fu = 1 - j_fr = 1 - } - if (j_pov == 225) - { - j_fd = 1 - j_fl = 1 - } - if (j_pov == 135) - { - j_fd = 1 - j_fr = 1 - } - } - } - if (j_fr != j_fr_p && j_fr == 1) - keyboard_key_press(vk_right) - if (j_fl != j_fl_p && j_fl == 1) - keyboard_key_press(vk_left) - if (j_fd != j_fd_p && j_fd == 1) - keyboard_key_press(vk_down) - if (j_fu != j_fu_p && j_fu == 1) - keyboard_key_press(vk_up) - if (j_fr != j_fr_p && j_fr == 0) - keyboard_key_release(vk_right) - if (j_fl != j_fl_p && j_fl == 0) - keyboard_key_release(vk_left) - if (j_fd != j_fd_p && j_fd == 0) - keyboard_key_release(vk_down) - if (j_fu != j_fu_p && j_fu == 0) - keyboard_key_release(vk_up) -} -up = 0 -down = 0 -left = 0 -right = 0 -if keyboard_check(vk_up) - try_up = 1 -if keyboard_check_released(vk_up) - try_up = 0 -if keyboard_check(vk_down) - try_down = 1 -if keyboard_check_released(vk_down) - try_down = 0 -if keyboard_check(vk_right) - try_right = 1 -if keyboard_check_released(vk_right) - try_right = 0 -if keyboard_check(vk_left) - try_left = 1 -if keyboard_check_released(vk_left) - try_left = 0 -if (global.osflavor == 1) -{ - if try_up - up = keyboard_check_direct(vk_up) - if try_down - down = keyboard_check_direct(vk_down) - if try_left - left = keyboard_check_direct(vk_left) - if try_right - right = keyboard_check_direct(vk_right) -} -else -{ - if try_up - up = keyboard_check(vk_up) - if try_down - down = keyboard_check(vk_down) - if try_left - left = keyboard_check(vk_left) - if try_right - right = keyboard_check(vk_right) -} -if keyboard_check_released(vk_up) - up = 0 -if keyboard_check_released(vk_down) - down = 0 -if keyboard_check_released(vk_left) - left = 0 -if keyboard_check_released(vk_right) - right = 0 -var now_idle = (!(up || down || left || right || control_check(0) || control_check(1) || control_check(2))) -if (now_idle && (!idle)) - idle_time = current_time -idle = now_idle -if control_check(2) -{ - if (global.flag[28] == 1) - { - if (instance_exists(OBJ_WRITER) && (!instance_exists(obj_choicer))) - { - if (h_skip == 0) - { - keyboard_key_press(ord("X")) - keyboard_key_press(ord("Z")) - } - if (h_skip == 1) - { - keyboard_key_release(ord("Z")) - keyboard_key_release(ord("X")) - } - if (h_skip == 0) - h_skip = 1 - else - h_skip = 0 - } - } -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("F")) - room_speed = 200 -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("W")) - room_speed = 10 -} -if keyboard_check_pressed(vk_f4) -{ - if window_get_fullscreen() - window_set_fullscreen(false) - else - window_set_fullscreen(true) -} -if (canquit == 1) -{ - if (global.debug == 1) - { - if (keyboard_check_pressed(ord("R")) && instance_exists(obj_essaystuff) == 0) - { - debug_r += 1 - if (debug_r > 5) - game_restart() - spec_rtimer = 1 - } - } - spec_rtimer += 1 - if (spec_rtimer >= 6) - debug_r = 0 - if keyboard_check(vk_escape) - { - quit += 1 - if (instance_exists(obj_quittingmessage) == 0) - instance_create(0, 0, obj_quittingmessage) - } - else - quit = 0 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 887b086f9..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - return; - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ee7a4ca81..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6623 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\\XLa, la.^3 &Time to wake&up and\\R smell\\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\\Y" - if (global.flag[22] == 2) - adder = "\\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 965: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_2") - global.msg[1] = scr_gettext("SCR_TEXT_mewmew_3") - global.msg[2] = " " - if (global.tempvalue[14] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_6") - with (obj_mewmew_npc) - con = 1 - } - break - case 966: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_4") - with (obj_mewmew_npc) - con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_5") - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1077: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_0") - if instance_exists(obj_mewmew_boss) - { - if (obj_mewmew_boss.true_battle >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_1") - } - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_get_element.gml deleted file mode 100644 index bd067ef6b..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, false, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_joystick_pov.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_joystick_pov.gml deleted file mode 100644 index 6c8efecf4..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_joystick_pov.gml +++ /dev/null @@ -1,7 +0,0 @@ -var jid = __joystick_2_gamepad(argument0) -var mask = 0 -mask |= (gamepad_button_value(jid, gp_padu) > 0 ? 1 : 0) -mask |= (gamepad_button_value(jid, gp_padr) > 0 ? 2 : 0) -mask |= (gamepad_button_value(jid, gp_padd) > 0 ? 4 : 0) -mask |= (gamepad_button_value(jid, gp_padl) > 0 ? 8 : 0) -return global.__jstick_povangle[mask]; diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 5baecfc3f..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,43 +0,0 @@ -var lines; -if (global.osflavor <= 2) - return file_text_open_read(argument0); -else -{ - var name = string_lower(argument0) - var file = ds_map_find_value(global.savedata, name) - if is_undefined(file) - return undefined; - var data = file - var num_lines = 0 - while (string_byte_length(data) > 0) - { - var newline_pos = string_pos(chr($0A), data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == chr($0D)) - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line - } - handle = ds_map_create() - ds_map_set(handle, "is_write", 0) - ds_map_set(handle, "text", lines) - ds_map_set(handle, "num_lines", num_lines) - ds_map_set(handle, "line", 0) - ds_map_set(handle, "line_read", 0) - return handle; -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index f76acbdc9..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,23 +0,0 @@ -var xx = argument0 -var yy = argument1 -if (global.language == "ja") -{ - var use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (var i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, string_hash_to_newline(global.charname)) -return string_width(string_hash_to_newline(global.charname)); diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_draw_screen_border.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_draw_screen_border.gml deleted file mode 100644 index ddd3cc787..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_draw_screen_border.gml +++ /dev/null @@ -1,259 +0,0 @@ -var overlay; -var border_id = argument0 -draw_enable_alphablend(0) -if (border_id == 1) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_line_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_line_544, 0, 0) -} -if (border_id == 2) -{ - var fade_time = 60 - if instance_exists(obj_stalkerflowey) - { - global.screen_border_state += (1 / fade_time) - if (global.screen_border_state > 1) - global.screen_border_state = 1 - } - else - { - global.screen_border_state -= (1 / fade_time) - if (global.screen_border_state < 0) - global.screen_border_state = 0 - } - var idle_min = 300000 - var idle_time = 0 - if (obj_time.idle && current_time >= (obj_time.idle_time + idle_min)) - idle_time = (current_time - (obj_time.idle_time + idle_min)) - var idle_frame = (floor((idle_time / 100)) % 3) - var base = -4 - for (var i = 0; i < 9; i++) - { - overlay[i, 0] = -4 - overlay[i, 1] = spr_undertaletitle - overlay[i, 2] = spr_undertaletitle - } - if (os_type == os_ps4 || os_type == os_switch_beta) - { - base = bg_border_sepia_1080 - overlay[0, 1] = spr_blconbelow - overlay[0, 2] = spr_truechara_laugh - overlay[1, 1] = spr_superbone - overlay[1, 2] = buttonL_nx_zr - overlay[2, 1] = spr_barktry_ja - overlay[2, 2] = spr_finalfroggit - overlay[3, 1] = spr_undertaletitle - overlay[3, 2] = spr_undynex_example - overlay[4, 1] = spr_vegetoid - overlay[4, 2] = spr_blconbelow - overlay[5, 1] = spr_bookshelf - overlay[5, 2] = spr_undertaletitle - overlay[6, 1] = spr_forcefield_right_middle - overlay[6, 2] = spr_alphyshelper_embarrass - overlay[7, 1] = spr_chipdoor_chippart - overlay[7, 2] = spr_gb_npc - overlay[8, 1] = spr_undynea_ut - overlay[8, 2] = spr_uppbutton - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_1080_1a - overlay[1, 0] = bg_border_sepia_1080_2a - overlay[2, 0] = bg_border_sepia_1080_3a - overlay[3, 0] = bg_border_sepia_1080_4a - overlay[4, 0] = bg_border_sepia_1080_5a - overlay[5, 0] = bg_border_sepia_1080_6a - overlay[6, 0] = bg_border_sepia_1080_7a - overlay[7, 0] = bg_border_sepia_1080_8a - overlay[8, 0] = bg_border_sepia_1080_9a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_1080_1b - overlay[1, 0] = bg_border_sepia_1080_2b - overlay[2, 0] = bg_border_sepia_1080_3b - overlay[3, 0] = bg_border_sepia_1080_4b - overlay[4, 0] = bg_border_sepia_1080_5b - overlay[5, 0] = bg_border_sepia_1080_6b - overlay[6, 0] = bg_border_sepia_1080_7b - overlay[7, 0] = bg_border_sepia_1080_8b - overlay[8, 0] = bg_border_sepia_1080_9b - } - if (global.screen_border_state > 0) - overlay1 = 2839 - } - else if (os_type == os_psvita) - { - base = bg_border_sepia_544 - overlay[0, 1] = spr_talkbt - overlay[0, 2] = spr_undyneb_face3 - overlay[1, 1] = spr_heartorange - overlay[1, 2] = spr_wizard_orbhurt - overlay[2, 1] = spr_undertaletitle - overlay[2, 2] = spr_oolbone_ja - overlay[3, 1] = button_ps4_l3 - overlay[3, 2] = spr_undertaletitle - overlay[4, 1] = buttonL_nx_zl - overlay[4, 2] = spr_whimsunhurt - overlay[5, 1] = buttonL_vita_triangle - overlay[5, 2] = spr_vulkinface5 - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_544_1a - overlay[1, 0] = bg_border_sepia_544_2a - overlay[2, 0] = bg_border_sepia_544_3a - overlay[3, 0] = bg_border_sepia_544_4a - overlay[4, 0] = bg_border_sepia_544_5a - overlay[5, 0] = bg_border_sepia_544_6a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_544_1b - overlay[1, 0] = bg_border_sepia_544_2b - overlay[2, 0] = bg_border_sepia_544_3b - overlay[3, 0] = bg_border_sepia_544_4b - overlay[4, 0] = bg_border_sepia_544_5b - overlay[5, 0] = bg_border_sepia_544_6b - } - if (global.screen_border_state > 0) - overlay1 = 2853 - } - if (base != -4) - { - scr_draw_background_ps4(base, 0, 0) - if (overlay[0, 0] != -4) - { - if (global.screen_border_state > 0) - { - draw_enable_alphablend(1) - draw_set_alpha((global.screen_border_state * 0.5)) - } - scr_draw_background_ps4(overlay[0, 0], overlay[0, 1], overlay[0, 2]) - if (global.screen_border_state > 0) - { - draw_set_alpha(1) - draw_enable_alphablend(0) - } - } - for (i = 1; i < 9; i++) - { - if (overlay[i, 0] != -4) - scr_draw_background_ps4(overlay[i, 0], overlay[i, 1], overlay[i, 2]) - } - } -} -if (border_id == 3) -{ - var room_id = global.currentroom - if ((room_id >= 4 && room_id <= 43) || (room >= room_introstory && room <= room_intromenu) || (room >= room_settings && room <= room_controltest)) - border_id = 4 - if ((room_id >= 44 && room_id <= 81) || room_id == 311 || (room_id >= 265 && room_id <= 266)) - border_id = 5 - if ((room_id >= 82 && room_id <= 136) || room_id == 312 || room_id == 315) - border_id = 6 - if ((room_id >= 137 && room_id <= 215) || room_id == 313 || room_id == 314 || (room_id >= 242 && room_id <= 243)) - border_id = 7 - if (room_id >= 216 && room_id <= 240) - border_id = 8 - if (room_id >= 244 && room_id <= 263) - border_id = 9 - if (room_id == 136 || room_id == 213 || room_id == 215 || room_id == 242 || room_id == 243 || room_id == 316 || room_id == 335 || room_id == 336 || room_id == 337) - border_id = 3.5 - if (global.flag[479] == 0 && (room_id == 244 || room_id == 245)) - border_id = 3.5 - if (border_id != global.screen_border_state) - { - if (global.screen_border_state != 0) - { - if (global.screen_border_dynamic_fade_id == border_id) - global.screen_border_dynamic_fade_level = (1 - global.screen_border_dynamic_fade_level) - else - global.screen_border_dynamic_fade_level = 1 - global.screen_border_dynamic_fade_id = global.screen_border_state - } - global.screen_border_state = border_id - } - if (global.screen_border_dynamic_fade_level > 0) - { - fade_time = 30 - global.screen_border_dynamic_fade_level -= (1 / fade_time) - if (global.screen_border_dynamic_fade_level > 0) - { - scr_draw_screen_border(global.screen_border_dynamic_fade_id) - draw_set_alpha((1 - global.screen_border_dynamic_fade_level)) - } - else - { - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - } - } -} -if (border_id == 3.5) -{ - draw_set_color(c_black) - ossafe_fill_rectangle(0, 0, (window_get_width() - 1), (window_get_height() - 1)) - draw_set_color(c_white) -} -if (border_id == 4) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_ruins_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_ruins_544, 0, 0) -} -if (border_id == 5) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_tundra_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_tundra_544, 0, 0) -} -if (border_id == 6) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_water1_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_water1_544, 0, 0) -} -if (border_id == 7) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_fire_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_fire_544, 0, 0) -} -if (border_id == 8) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_castle_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_castle_544, 0, 0) -} -if (border_id == 9) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_truelab_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_truelab_544, 0, 0) -} -if (border_id == 10) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_rad_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_rad_544, 0, 0) -} -if (border_id == 11) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_anime_1080, 0, 0) -} -if (border_id == 12) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_dog_1080, 0, 0) -} -draw_set_alpha(1) -draw_enable_alphablend(1) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 30f82a28b..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,8 +0,0 @@ -global.msg[0] = scr_gettext("scr_itemdesc_2") -for (var i = 0; true; i++) -{ - var desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 4c986d2f8..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,39 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -var bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 69fc16d1e..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,901 +0,0 @@ -var credamt = 0 -if (global.osflavor <= 2) -{ - var credits_path = (working_directory + "credits.txt") - var credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - var thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew \"Southrop\" Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara \"Svenna\" Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean \"Ariamaki\" Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin \"BenaSPACE\" McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn \"Xisuu\" Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan \"ChessboardMan\" Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles \"Chip Champion\" Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary \"ZarroTsu\" Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will \"Radnar\" Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin \"AT\" Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves \"TehLazyOne\"" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke \"Association\" Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index 910c48cca..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var lines; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - var xx = (name_x - (q / 3)) - if (global.language == "ja") - { - var kana_count = 0 - for (var i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - var confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - return; - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, string_hash_to_newline(spec_m)) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (var row = 0; row < rows; row++) - { - var yy = ymap[row] - for (var col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), string_hash_to_newline(charmap[row, col])) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - var menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, string_hash_to_newline(menu_text0)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - var menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, string_hash_to_newline(menu_text1)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - var menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, string_hash_to_newline(menu_text2)) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - var charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, string_hash_to_newline(charset_text0)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - var charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, string_hash_to_newline(charset_text1)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - var charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, string_hash_to_newline(charset_text2)) - } - var old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - var best = 0 - var bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - var diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, string_hash_to_newline(charname)) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - var roomname = scr_roomname(roome) - var lvtext = scr_gettext("save_menu_lv", string(love)) - var timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - var namesize = string_width(string_hash_to_newline(substr(name, 1, 6))) - var lvsize = string_width(string_hash_to_newline(lvtext)) - var timesize = string_width(string_hash_to_newline(timetext)) - var x_center = 160 - var lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - var namepos = 70 - var timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, string_hash_to_newline(name)) - draw_text(lvpos, 62, string_hash_to_newline(lvtext)) - draw_text((timepos - timesize), 62, string_hash_to_newline(timetext)) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, string_hash_to_newline(roomname)) - if (selected3 == 0) - draw_set_color(c_yellow) - var continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, string_hash_to_newline(continue_text)) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - var reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, string_hash_to_newline(reset_text)) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - var action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, string_hash_to_newline(scr_gettext("instructions_title"))) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\\*Z") - draw_text(115, 50, string_hash_to_newline(scr_gettext("instructions_confirm_label"))) - scr_drawtext_icons(85, 70, "\\*X") - draw_text(115, 70, string_hash_to_newline(scr_gettext("instructions_cancel_label"))) - scr_drawtext_icons(85, 90, "\\*C") - draw_text(115, 90, string_hash_to_newline(scr_gettext("instructions_menu_label"))) - draw_text(86, 130, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - var num_lines = 5 - if (global.language == "ja") - { - var label_x = 0 - for (i = 0; i < num_lines; i++) - { - var key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), string_hash_to_newline(key)) - xx = ((50 + string_width(string_hash_to_newline(key))) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - var label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), string_hash_to_newline(label)) - } - draw_text(50, 145, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), string_hash_to_newline(((key + " - ") + label))) - } - draw_text(85, 140, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, string_hash_to_newline(scr_gettext("instructions_begin"))) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - var yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, string_hash_to_newline(scr_gettext("settings_name"))) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 79f5d3c57..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,436 +0,0 @@ -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -var halfsize = 0 -for (var n = 1; n <= stringpos; n++) -{ - var ch = string_char_at(originalstring, n) - var myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = 0xFDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = 0xD4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - var newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - var sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - var sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - var icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - var sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - var spritex = myx - var spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - var icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - var choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (__view_get(2, view_current) == 640) - myx *= 2 - myx += __view_get(0, view_current) - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - var nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - var letterx = myx - var offsetx = 0 - var offsety = 0 - var halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(string_hash_to_newline(myletter)) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - var unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - var lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - var angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - var display_scale = (surface_get_width(application_surface) / __view_get(2, view_current)) - var finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - var finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, string_hash_to_newline(myletter), (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(string_hash_to_newline(myletter)) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml deleted file mode 100644 index eed614253..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml +++ /dev/null @@ -1,449 +0,0 @@ -if (defined == 0) -{ - if (type == 999) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 2, 6, 0) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 0) - scr_hb_add(22, 2, 6, 2) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 2) - scr_hb_add(66, 1, 6, 0) - scr_hb_add(66, 2, 6, 1) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 0) - scr_hb_add(110, 2, 6, 2) - scr_hb_add(132, 0, 6, 0) - scr_hb_add(132, 2, 6, 0) - scr_hb_add(154, 0, 6, 2) - scr_hb_add(154, 1, 6, 0) - scr_hb_add(154, 2, 6, 1) - maxtimer = 250 - } - if (type == 0) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(8, 1, 6, 0) - scr_hb_add(16, 1, 6, 0) - maxtimer = 95 - } - if (type == 1) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(25, 0, 6, 0) - scr_hb_add(25, 2, 6, 0) - scr_hb_add(50, 1, 6, 0) - scr_hb_add(75, 0, 6, 0) - scr_hb_add(75, 2, 6, 0) - maxtimer = 150 - } - if (type == 2) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 0) - scr_hb_add(132, 2, 6, 2) - scr_hb_add(138, 0, 6, 1) - scr_hb_add(138, 1, 6, 0) - scr_hb_add(138, 2, 6, 2) - scr_hb_add(144, 0, 6, 1) - scr_hb_add(144, 1, 6, 0) - scr_hb_add(144, 2, 6, 2) - maxtimer = 220 - } - if (type == 3) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 1, 6, 1) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 2) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 1, 6, 1) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 2) - scr_hb_add(132, 2, 6, 0) - maxtimer = 210 - } - if (type == 4) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 2) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(44, 2, 6, 2) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 1, 6, 1) - scr_hb_add(66, 2, 6, 2) - scr_hb_add(88, 0, 6, 1) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 2) - scr_hb_add(110, 2, 6, 0) - maxtimer = 180 - } - if (type == 5) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(19, 0, 6, 0) - scr_hb_add(19, 2, 6, 0) - scr_hb_add(38, 0, 6, 0) - scr_hb_add(38, 1, 6, 1) - scr_hb_add(38, 2, 6, 2) - scr_hb_add(57, 0, 6, 0) - scr_hb_add(57, 2, 6, 0) - scr_hb_add(76, 1, 6, 0) - scr_hb_add(95, 0, 6, 0) - scr_hb_add(95, 2, 6, 0) - scr_hb_add(114, 0, 6, 1) - scr_hb_add(114, 1, 6, 2) - scr_hb_add(114, 2, 6, 0) - scr_hb_add(133, 0, 6, 0) - scr_hb_add(133, 2, 6, 0) - scr_hb_add(165, 1, 8, 0) - maxtimer = 230 - } - if (type == 6) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(20, 1, 6, 0) - scr_hb_add(20, 2, 6, 0) - scr_hb_add(40, 0, 6, 1) - scr_hb_add(40, 1, 6, 0) - scr_hb_add(40, 2, 6, 2) - scr_hb_add(60, 0, 6, 0) - scr_hb_add(60, 1, 6, 0) - scr_hb_add(80, 0, 6, 0) - scr_hb_add(80, 2, 6, 0) - scr_hb_add(100, 1, 6, 0) - scr_hb_add(100, 2, 6, 0) - scr_hb_add(120, 0, 6, 0) - scr_hb_add(120, 2, 6, 0) - scr_hb_add(140, 0, 6, 0) - scr_hb_add(140, 1, 6, 0) - scr_hb_add(160, 0, 6, 1) - scr_hb_add(160, 1, 6, 0) - scr_hb_add(160, 2, 6, 2) - scr_hb_add(167, 0, 6, 1) - scr_hb_add(167, 1, 6, 0) - scr_hb_add(167, 2, 6, 2) - scr_hb_add(174, 0, 6, 1) - scr_hb_add(174, 1, 6, 0) - scr_hb_add(174, 2, 6, 2) - shift_timer_max = 235 - scr_hb_add(235, 4, 10, 0) - scr_hb_add(235, 7, 10, 0) - maxtimer = 290 - } - if (type == 7) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 3, 6, 1) - scr_hb_add(0, 4, 6, 0) - scr_hb_add(0, 5, 6, 2) - scr_hb_add(30, 0, 6, 1) - scr_hb_add(30, 1, 6, 0) - scr_hb_add(30, 2, 6, 2) - scr_hb_add(60, 3, 6, 2) - scr_hb_add(60, 4, 6, 0) - scr_hb_add(60, 5, 6, 1) - scr_hb_add(90, 0, 6, 1) - scr_hb_add(90, 1, 6, 0) - scr_hb_add(90, 2, 6, 2) - scr_hb_add(120, 3, 6, 1) - scr_hb_add(120, 4, 6, 0) - scr_hb_add(120, 5, 6, 2) - scr_hb_add(150, 0, 6, 1) - scr_hb_add(150, 1, 6, 0) - scr_hb_add(150, 2, 6, 2) - maxtimer = 230 - } - if (type == 8) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 7, 0) - scr_hb_add(0, 5, 7, 0) - scr_hb_add(20, 1, 7, 0) - scr_hb_add(20, 2, 7, 0) - scr_hb_add(40, 6, 7, 0) - scr_hb_add(40, 7, 7, 0) - scr_hb_add(60, 0, 7, 0) - scr_hb_add(60, 1, 7, 0) - scr_hb_add(80, 0, 7, 1) - scr_hb_add(80, 1, 7, 0) - scr_hb_add(80, 2, 7, 2) - scr_hb_add(105, 3, 7, 1) - scr_hb_add(105, 4, 7, 0) - scr_hb_add(105, 5, 7, 2) - scr_hb_add(105, 6, 7, 1) - scr_hb_add(105, 7, 7, 0) - scr_hb_add(105, 8, 7, 2) - scr_hb_add(130, 3, 7, 2) - scr_hb_add(130, 4, 7, 0) - scr_hb_add(130, 5, 7, 1) - scr_hb_add(130, 6, 7, 2) - scr_hb_add(130, 7, 7, 0) - scr_hb_add(130, 8, 7, 1) - maxtimer = 220 - } - if (type == 9) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 8, 0) - scr_hb_add(0, 5, 8, 0) - scr_hb_add(19, 6, 8, 0) - scr_hb_add(19, 7, 8, 0) - scr_hb_add(38, 0, 8, 1) - scr_hb_add(38, 1, 8, 0) - scr_hb_add(38, 2, 8, 2) - scr_hb_add(57, 0, 8, 0) - scr_hb_add(57, 2, 8, 0) - scr_hb_add(76, 6, 8, 0) - scr_hb_add(76, 7, 8, 0) - scr_hb_add(95, 4, 8, 0) - scr_hb_add(95, 5, 8, 0) - scr_hb_add(120, 0, 8, 1) - scr_hb_add(120, 1, 8, 0) - scr_hb_add(120, 2, 8, 2) - scr_hb_add(135, 0, 8, 0) - scr_hb_add(135, 2, 8, 0) - maxtimer = 210 - } - if (type == 10 || type == 12) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 0 - cur_time = 0 - time_gap = 17 - if (type == 12) - { - time_gap = 12 - max_attack = 16 - } - prev_pat = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - prev_pat = cur_pat - } - maxtimer = (cur_time + 50) - } - if (type == 11 || type == 13) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 1 - cur_time = 0 - time_gap = 18 - if (type == 13) - { - time_gap = 13 - max_attack = 16 - } - prev_dir = -1 - prev_pat = -1 - cur_dir = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - } - } - if (cur_pat >= 6) - cur_dir = 1 - else - cur_dir = 2 - if (prev_dir != -1) - { - if (prev_dir != cur_dir) - { - if (type == 11) - cur_time += 5 - if (type == 13) - cur_time += 4 - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 6) - { - scr_hb_add(cur_time, 3, 8, 0) - scr_hb_add(cur_time, 4, 8, 0) - cur_time += time_gap - } - if (cur_pat == 7) - { - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 0) - cur_time += time_gap - } - if (cur_pat == 8) - { - scr_hb_add(cur_time, 3, 8, 1) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 2) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - if (cur_pat == 9) - { - scr_hb_add(cur_time, 3, 8, 2) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 1) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - prev_pat = cur_pat - prev_dir = cur_dir - } - maxtimer = (cur_time + 50) - } - global.turntimer = maxtimer - defined = 1 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml deleted file mode 100644 index 3df40f867..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml +++ /dev/null @@ -1,60 +0,0 @@ -if (active == true && defined == 1) -{ - while (bullettime[curbullet] == bultimer) - { - bul = instance_create(0, 0, obj_halfbullet) - if instance_exists(bul) - { - if (bulletpos[curbullet] == 0 || bulletpos[curbullet] == 1 || bulletpos[curbullet] == 2) - { - bul.x = xpos[bulletpos[curbullet]] - bul.y = -60 - bul.hspeed = 0 - bul.vspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 3 || bulletpos[curbullet] == 4 || bulletpos[curbullet] == 5) - { - bul.x = -48 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 6 || bulletpos[curbullet] == 7 || bulletpos[curbullet] == 8) - { - bul.x = 700 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = (-bulletspeed[curbullet]) - } - bul.type = bullettype[curbullet] - if (bul.type == 1) - bul.image_blend = global.joycon_color[0] - if (bul.type == 2) - bul.image_blend = global.joycon_color[1] - } - curbullet += 1 - if (curbullet >= maxbullet) - { - break - active = false - } - } -} -bultimer += 1 -if (bultimer >= (maxtimer - 10)) - darkness = 0 -if (bultimer >= maxtimer) -{ - with (obj_halfbullet) - instance_destroy() - instance_destroy() -} -if (shift_timer_max >= -1) -{ - shift_timer += 1 - if (shift_timer == shift_timer_max) - { - with (obj_hearthalf) - vertical_ok = 1 - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index f9c3e45d6..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,21 +0,0 @@ -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -var msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (var i = 0; true; i++) -{ - var text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -var xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 08a409c88..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,444 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -var vspacing = 15 -if (global.language == "ja") - vspacing = 16 -var button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), string_hash_to_newline(itext)) - var xx = ((20 + string_width(string_hash_to_newline(itext))) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -var stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), string_hash_to_newline(stext)) - draw_set_color(c_white) -} -button_x += string_width(string_hash_to_newline(stext)) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, string_hash_to_newline(global.button0)) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), string_hash_to_newline(global.button1)) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), string_hash_to_newline(global.button2)) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var analog_text_width = string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")))) - draw_text_transformed(20, (135 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_choice"))) -if (global.joy_dir == 0) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_normal"))) -if (global.joy_dir == 1) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_analog"))) -if (global.joy_dir == 2) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_pov"))) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_reset"))) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_test"))) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_fall")), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 494a374b5..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - return; -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - return; - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index d63e8da5e..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,99 +0,0 @@ -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - return; -} -num_borders = 12 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (var i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -border_11 = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - var BW = ini_read_real("General", "BW", 0) - var BP = ini_read_real("General", "BP", 0) - var BH = ini_read_real("General", "BH", 0) - var DB = ini_read_real("General", "DB", 0) - var EndF = ini_read_real("EndF", "EndF", 0) - var M = ini_read_real("Alphys", "M", 0) - var R = ini_read_real("Alphys", "R", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (global.osflavor == 5) - { - if M - { - border_enabled[11] = 1 - border_11 = R - } - if DB - border_enabled[12] = 1 - } - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 8c37eb92b..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,302 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_fall")), 1, 1, -20) -} -var menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, string_hash_to_newline(scr_gettext("settings_language"))) -draw_text(92, 70, string_hash_to_newline(scr_gettext(("settings_language_" + global.language)))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_button"))) - var vspacing = 18 - var button_x = 0 - for (var i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - var itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), string_hash_to_newline(itext)) - draw_set_color(c_white) - var xx = (40 + string_width(string_hash_to_newline(itext))) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - var button = -4 - for (var b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check((obj_time.j_ch - 1), button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - var command = string_char_at("ZXC", (i + 1)) - var sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(scr_gettext("joyconfig_reset"))) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - var border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_label)) - if (global.screen_border_id == 0) - var border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == 11) - border_sel = scr_gettext(((("settings_border_" + string(global.screen_border_id)) + "_") + string(border_11))) - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(string_hash_to_newline(border_label))) + 20), ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_sel)) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_joyconfig"))) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 0210cdb97..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), string_hash_to_newline((s_value[(i * 2)] + "G - Ninechara"))) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), string_hash_to_newline((s_value[((i * 2) + 1)] + "G - Ninechara"))) - } - draw_text(30, 210, string_hash_to_newline(scr_gettext("shop_exit_submenu"))) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, string_hash_to_newline((("Really sell Ninechara for " + string(value[sellpos])) + "G?"))) - draw_text(80, 180, string_hash_to_newline("Yes")) - draw_text(190, 180, string_hash_to_newline("No")) - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_time_Create_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_time_Create_0.gml deleted file mode 100644 index 84fb4f418..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_time_Create_0.gml +++ /dev/null @@ -1,151 +0,0 @@ -if (os_type == os_windows) - global.osflavor = 1 -else if (os_type == os_ps4 || os_type == os_psvita) - global.osflavor = 4 -else if (os_type == os_switch_beta) - global.osflavor = 5 -else - global.osflavor = 2 -global.locale = ((os_get_language() + "_") + string_upper(os_get_region())) -if (global.osflavor >= 3) -{ - application_surface_enable(true) - application_surface_draw_enable(false) -} -if (os_type == os_switch_beta && (!variable_global_exists("switchlogin"))) - global.switchlogin = switch_accounts_select_account(1, 0, 0) -if (os_type == os_switch_beta) -{ - switch_controller_support_set_defaults() - switch_controller_support_set_singleplayer_only(1) - switch_controller_set_supported_styles(7) - missing_controller_timeout = 0 -} -global.savedata_async_id = -1 -global.savedata_async_load = 0 -global.savedata_error = 0 -global.savedata_debuginfo = "" -global.disable_os_pause = 0 -paused = 0 -idle = 0 -idle_time = 0 -up = 0 -down = 0 -left = 0 -right = 0 -quit = 0 -try_up = 0 -try_down = 0 -try_left = 0 -try_right = 0 -canquit = 1 -h_skip = 0 -j_xpos = 0 -j_ypos = 0 -j_dir = 0 -j_fr = 0 -j_fl = 0 -j_fu = 0 -j_fd = 0 -j_fr_p = 0 -j_fl_p = 0 -j_fu_p = 0 -j_fd_p = 0 -for (var i = 0; i < 12; i += 1) -{ - j_prev[i] = 0 - j_on[i] = 0 -} -global.button0 = 2 -global.button1 = 1 -global.button2 = 4 -global.analog_sense = 0.15 -global.analog_sense_sense = 0.01 -global.joy_dir = 0 -if (os_type == os_ps4 || os_type == os_psvita) -{ - if (substr(global.locale, 1, 2) == "ja") - { - global.button0 = 32770 - global.button1 = 32769 - } - else - { - global.button0 = 32769 - global.button1 = 32770 - } - global.button2 = 32772 -} -else if (os_type == os_switch_beta) -{ - global.button0 = 32770 - global.button1 = 32769 - global.button2 = 32772 -} -global.default_button0 = global.button0 -global.default_button1 = global.button1 -global.default_button2 = global.button2 -global.default_analog_sense = global.analog_sense -global.default_analog_sense_sense = global.analog_sense_sense -global.default_joy_dir = global.joy_dir -global.screen_border_id = 0 -global.screen_border_active = 0 -global.screen_border_alpha = 1 -global.screen_border_state = 0 -global.screen_border_dynamic_fade_id = 0 -global.screen_border_dynamic_fade_level = 0 -global.screen_border_activate_on_game_over = 0 -debug_r = 0 -debug_f = 0 -j1 = 0 -j2 = 0 -ja = 0 -j_ch = 0 -jt = 0 -if (global.osflavor >= 4) -{ - for (i = 0; i < gamepad_get_device_count(); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch == 0) - { - if (os_type == os_switch_beta) - { - if (switch_controller_support_show() == 0) - j_ch = (switch_controller_support_get_selected_id() + 1) - } - else - j_ch = 1 - } -} -spec_rtimer = 0 -global.endsong_loaded = 0 -control_init() -scr_kanatype_init() -if (!variable_global_exists("text_data_en")) - script_execute(textdata_en) -if (!variable_global_exists("text_data_ja")) - script_execute(textdata_ja) -if (os_type == os_switch_beta) - global.language = substr(switch_language_get_desired_language(), 1, 2) -else - global.language = substr(global.locale, 1, 2) -if (global.language != "ja") - global.language = "en" -if (!variable_global_exists("trophy_init_complete")) -{ - global.trophy_init_complete = 0 - trophy_ts = -1 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_time_Step_1.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_time_Step_1.gml deleted file mode 100644 index bca42138e..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_time_Step_1.gml +++ /dev/null @@ -1,400 +0,0 @@ -if (started <= 0) -{ - if (global.savedata_async_id >= 0) - return; - started = -1 - if (!trophy_init()) - { - if (trophy_ts < 0) - trophy_ts = current_time - return; - } - ossafe_ini_open("config.ini") - var lang = ini_read_string("General", "lang", "") - var sb_i = ini_read_real("General", "sb", -1) - var b0_i = ini_read_real("joypad1", "b0", -1) - var b1_i = ini_read_real("joypad1", "b1", -1) - var b2_i = ini_read_real("joypad1", "b2", -1) - var as_i = ini_read_real("joypad1", "as", -1) - var jd_i = ini_read_real("joypad1", "jd", -1) - if (string_length(lang) > 0) - global.language = lang - if (sb_i >= 0) - global.screen_border_id = sb_i - if (b0_i >= 0) - global.button0 = b0_i - if (b1_i >= 0) - global.button1 = b1_i - if (b2_i >= 0) - global.button2 = b2_i - if (as_i >= 0) - global.analog_sense = as_i - if (jd_i >= 0) - global.joy_dir = jd_i - ossafe_ini_close() - scr_enable_screen_border(global.osflavor >= 4) - if (global.osflavor >= 4) - { - global.analog_sense = 0.15 - if (os_type == os_psvita) - global.analog_sense = 0.9 - global.joy_dir = 0 - } - ossafe_ini_open("undertale.ini") - fskip = ini_read_real("FFFFF", "E", -1) - ftime = ini_read_real("FFFFF", "F", -1) - true_end = ini_read_real("EndF", "EndF", -1) - ossafe_ini_close() - sksk = 0 - if (ftime == 1) - { - sksk = 1 - room_goto(room_f_start) - } - if (true_end == 1 && sksk == 0) - { - sksk = 1 - room_goto(room_flowey_regret) - } - if (fskip >= 1 && sksk == 0) - { - global.filechoice = 8 - scr_load() - if (fskip == 1) - room_goto(room_flowey_endchoice) - if (fskip == 2) - room_goto(room_castle_exit) - } - else if (sksk == 0) - room_goto_next() - if (ossafe_file_exists("system_information_962") && (!ossafe_file_exists("system_information_963"))) - room_goto(room_nothingness) - started = 1 - return; -} -if (!paused) - time += 1 -if (global.osflavor <= 2) -{ - if (jt == 0) - { - if (j_ch != 2) - { - if joystick_exists(1) - j_ch = 1 - else if (j_ch == 1) - j_ch = 0 - } - } - if (jt == 4) - { - if (j_ch != 1) - { - if joystick_exists(2) - j_ch = 2 - else if (j_ch == 2) - j_ch = 0 - } - } - jt += 1 - if (jt >= 8) - jt = 0 -} -else if (os_type == os_switch_beta) -{ - if (j_ch > 0 && gamepad_is_connected((j_ch - 1))) - missing_controller_timeout = 0 - else - { - j_ch = 0 - for (var i = 0; (i < gamepad_get_device_count()); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch > 0) - missing_controller_timeout = 0 - else if (missing_controller_timeout == 0) - missing_controller_timeout = (current_time + 2000) - else if (current_time >= missing_controller_timeout) - { - if (switch_controller_support_show() == 0) - { - j_ch = (switch_controller_support_get_selected_id() + 1) - missing_controller_timeout = 0 - } - } - } -} -control_update() -if (j_ch > 0) -{ - j_fr_p = j_fr - j_fl_p = j_fl - j_fu_p = j_fu - j_fd_p = j_fd - j_fr = 0 - j_fl = 0 - j_fu = 0 - j_fd = 0 - if (global.osflavor >= 4) - { - if (gamepad_button_check((j_ch - 1), gp_padu) || gamepad_button_check((j_ch - 1), gp_padd) || gamepad_button_check((j_ch - 1), gp_padl) || gamepad_button_check((j_ch - 1), gp_padr)) - { - j_fu = gamepad_button_check((j_ch - 1), gp_padu) - j_fd = gamepad_button_check((j_ch - 1), gp_padd) - j_fl = gamepad_button_check((j_ch - 1), gp_padl) - j_fr = gamepad_button_check((j_ch - 1), gp_padr) - } - else if (global.joy_dir != 2) - { - var j_xpos = gamepad_axis_value((j_ch - 1), gp_axislh) - var j_ypos = gamepad_axis_value((j_ch - 1), gp_axislv) - var analog_sense = global.analog_sense - if (sqrt((sqr(j_xpos) + sqr(j_ypos))) >= analog_sense) - { - var angle = darctan2(j_ypos, j_xpos) - if (angle < 0) - angle += 360 - if (angle < 67.5 || angle > 292.5) - j_fr = 1 - if (angle > 22.5 && angle < 157.5) - j_fd = 1 - if (angle > 112.5 && angle < 247.5) - j_fl = 1 - if (angle > 202.5 && angle < 337.5) - j_fu = 1 - } - } - } - else - { - if (global.joy_dir == 0 || global.joy_dir == 1) - { - j_xpos = joystick_xpos(j_ch) - j_ypos = joystick_ypos(j_ch) - } - j_dir = joystick_direction(j_ch) - if (global.joy_dir == 0 || global.joy_dir == 1) - { - if (j_dir == 101) - { - if (j_xpos >= global.analog_sense) - j_fr = 1 - if (j_xpos <= (-global.analog_sense)) - j_fl = 1 - if (j_ypos >= global.analog_sense) - j_fd = 1 - if (j_ypos <= (-global.analog_sense)) - j_fu = 1 - } - } - if (j_dir != 101) - { - if (j_dir == 100) - j_fl = 1 - if (j_dir == 98) - j_fd = 1 - if (j_dir == 102) - j_fr = 1 - if (j_dir == 104) - j_fu = 1 - if (j_dir == 99) - { - j_fr = 1 - j_fd = 1 - } - if (j_dir == 97) - { - j_fd = 1 - j_fl = 1 - } - if (j_dir == 103) - { - j_fu = 1 - j_fl = 1 - } - if (j_dir == 105) - { - j_fu = 1 - j_fr = 1 - } - } - if (global.joy_dir == 0 || global.joy_dir == 2) - { - j_pov = joystick_pov(j_ch) - if (j_pov == 0) - j_fu = 1 - if (j_pov == 270) - j_fl = 1 - if (j_pov == 90) - j_fr = 1 - if (j_pov == 180) - j_fd = 1 - if (j_pov == 315) - { - j_fu = 1 - j_fl = 1 - } - if (j_pov == 45) - { - j_fu = 1 - j_fr = 1 - } - if (j_pov == 225) - { - j_fd = 1 - j_fl = 1 - } - if (j_pov == 135) - { - j_fd = 1 - j_fr = 1 - } - } - } - if (j_fr != j_fr_p && j_fr == 1) - keyboard_key_press(vk_right) - if (j_fl != j_fl_p && j_fl == 1) - keyboard_key_press(vk_left) - if (j_fd != j_fd_p && j_fd == 1) - keyboard_key_press(vk_down) - if (j_fu != j_fu_p && j_fu == 1) - keyboard_key_press(vk_up) - if (j_fr != j_fr_p && j_fr == 0) - keyboard_key_release(vk_right) - if (j_fl != j_fl_p && j_fl == 0) - keyboard_key_release(vk_left) - if (j_fd != j_fd_p && j_fd == 0) - keyboard_key_release(vk_down) - if (j_fu != j_fu_p && j_fu == 0) - keyboard_key_release(vk_up) -} -up = 0 -down = 0 -left = 0 -right = 0 -if keyboard_check(vk_up) - try_up = 1 -if keyboard_check_released(vk_up) - try_up = 0 -if keyboard_check(vk_down) - try_down = 1 -if keyboard_check_released(vk_down) - try_down = 0 -if keyboard_check(vk_right) - try_right = 1 -if keyboard_check_released(vk_right) - try_right = 0 -if keyboard_check(vk_left) - try_left = 1 -if keyboard_check_released(vk_left) - try_left = 0 -if (global.osflavor == 1) -{ - if try_up - up = keyboard_check_direct(vk_up) - if try_down - down = keyboard_check_direct(vk_down) - if try_left - left = keyboard_check_direct(vk_left) - if try_right - right = keyboard_check_direct(vk_right) -} -else -{ - if try_up - up = keyboard_check(vk_up) - if try_down - down = keyboard_check(vk_down) - if try_left - left = keyboard_check(vk_left) - if try_right - right = keyboard_check(vk_right) -} -if keyboard_check_released(vk_up) - up = 0 -if keyboard_check_released(vk_down) - down = 0 -if keyboard_check_released(vk_left) - left = 0 -if keyboard_check_released(vk_right) - right = 0 -var now_idle = (!(up || down || left || right || control_check(0) || control_check(1) || control_check(2))) -if (now_idle && (!idle)) - idle_time = current_time -idle = now_idle -if control_check(2) -{ - if (global.flag[28] == 1) - { - if (instance_exists(OBJ_WRITER) && (!instance_exists(obj_choicer))) - { - if (h_skip == 0) - { - keyboard_key_press(ord("X")) - keyboard_key_press(ord("Z")) - } - if (h_skip == 1) - { - keyboard_key_release(ord("Z")) - keyboard_key_release(ord("X")) - } - if (h_skip == 0) - h_skip = 1 - else - h_skip = 0 - } - } -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("F")) - room_speed = 200 -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("W")) - room_speed = 10 -} -if keyboard_check_pressed(vk_f4) -{ - if window_get_fullscreen() - window_set_fullscreen(false) - else - window_set_fullscreen(true) -} -if (canquit == 1) -{ - if (global.debug == 1) - { - if (keyboard_check_pressed(ord("R")) && instance_exists(obj_essaystuff) == 0) - { - debug_r += 1 - if (debug_r > 5) - game_restart() - spec_rtimer = 1 - } - } - spec_rtimer += 1 - if (spec_rtimer >= 6) - debug_r = 0 - if keyboard_check(vk_escape) - { - quit += 1 - if (instance_exists(obj_quittingmessage) == 0) - instance_create(0, 0, obj_quittingmessage) - } - else - quit = 0 -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 887b086f9..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - return; - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ee7a4ca81..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6623 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\\XLa, la.^3 &Time to wake&up and\\R smell\\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\\Y" - if (global.flag[22] == 2) - adder = "\\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 965: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_2") - global.msg[1] = scr_gettext("SCR_TEXT_mewmew_3") - global.msg[2] = " " - if (global.tempvalue[14] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_6") - with (obj_mewmew_npc) - con = 1 - } - break - case 966: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_4") - with (obj_mewmew_npc) - con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_5") - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1077: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_0") - if instance_exists(obj_mewmew_boss) - { - if (obj_mewmew_boss.true_battle >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_1") - } - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index bd067ef6b..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, false, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_joystick_pov.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_joystick_pov.gml deleted file mode 100644 index 6c8efecf4..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_joystick_pov.gml +++ /dev/null @@ -1,7 +0,0 @@ -var jid = __joystick_2_gamepad(argument0) -var mask = 0 -mask |= (gamepad_button_value(jid, gp_padu) > 0 ? 1 : 0) -mask |= (gamepad_button_value(jid, gp_padr) > 0 ? 2 : 0) -mask |= (gamepad_button_value(jid, gp_padd) > 0 ? 4 : 0) -mask |= (gamepad_button_value(jid, gp_padl) > 0 ? 8 : 0) -return global.__jstick_povangle[mask]; diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 5baecfc3f..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,43 +0,0 @@ -var lines; -if (global.osflavor <= 2) - return file_text_open_read(argument0); -else -{ - var name = string_lower(argument0) - var file = ds_map_find_value(global.savedata, name) - if is_undefined(file) - return undefined; - var data = file - var num_lines = 0 - while (string_byte_length(data) > 0) - { - var newline_pos = string_pos(chr($0A), data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == chr($0D)) - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line - } - handle = ds_map_create() - ds_map_set(handle, "is_write", 0) - ds_map_set(handle, "text", lines) - ds_map_set(handle, "num_lines", num_lines) - ds_map_set(handle, "line", 0) - ds_map_set(handle, "line_read", 0) - return handle; -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index f76acbdc9..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,23 +0,0 @@ -var xx = argument0 -var yy = argument1 -if (global.language == "ja") -{ - var use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (var i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, string_hash_to_newline(global.charname)) -return string_width(string_hash_to_newline(global.charname)); diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_draw_screen_border.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_draw_screen_border.gml deleted file mode 100644 index ddd3cc787..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_draw_screen_border.gml +++ /dev/null @@ -1,259 +0,0 @@ -var overlay; -var border_id = argument0 -draw_enable_alphablend(0) -if (border_id == 1) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_line_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_line_544, 0, 0) -} -if (border_id == 2) -{ - var fade_time = 60 - if instance_exists(obj_stalkerflowey) - { - global.screen_border_state += (1 / fade_time) - if (global.screen_border_state > 1) - global.screen_border_state = 1 - } - else - { - global.screen_border_state -= (1 / fade_time) - if (global.screen_border_state < 0) - global.screen_border_state = 0 - } - var idle_min = 300000 - var idle_time = 0 - if (obj_time.idle && current_time >= (obj_time.idle_time + idle_min)) - idle_time = (current_time - (obj_time.idle_time + idle_min)) - var idle_frame = (floor((idle_time / 100)) % 3) - var base = -4 - for (var i = 0; i < 9; i++) - { - overlay[i, 0] = -4 - overlay[i, 1] = spr_undertaletitle - overlay[i, 2] = spr_undertaletitle - } - if (os_type == os_ps4 || os_type == os_switch_beta) - { - base = bg_border_sepia_1080 - overlay[0, 1] = spr_blconbelow - overlay[0, 2] = spr_truechara_laugh - overlay[1, 1] = spr_superbone - overlay[1, 2] = buttonL_nx_zr - overlay[2, 1] = spr_barktry_ja - overlay[2, 2] = spr_finalfroggit - overlay[3, 1] = spr_undertaletitle - overlay[3, 2] = spr_undynex_example - overlay[4, 1] = spr_vegetoid - overlay[4, 2] = spr_blconbelow - overlay[5, 1] = spr_bookshelf - overlay[5, 2] = spr_undertaletitle - overlay[6, 1] = spr_forcefield_right_middle - overlay[6, 2] = spr_alphyshelper_embarrass - overlay[7, 1] = spr_chipdoor_chippart - overlay[7, 2] = spr_gb_npc - overlay[8, 1] = spr_undynea_ut - overlay[8, 2] = spr_uppbutton - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_1080_1a - overlay[1, 0] = bg_border_sepia_1080_2a - overlay[2, 0] = bg_border_sepia_1080_3a - overlay[3, 0] = bg_border_sepia_1080_4a - overlay[4, 0] = bg_border_sepia_1080_5a - overlay[5, 0] = bg_border_sepia_1080_6a - overlay[6, 0] = bg_border_sepia_1080_7a - overlay[7, 0] = bg_border_sepia_1080_8a - overlay[8, 0] = bg_border_sepia_1080_9a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_1080_1b - overlay[1, 0] = bg_border_sepia_1080_2b - overlay[2, 0] = bg_border_sepia_1080_3b - overlay[3, 0] = bg_border_sepia_1080_4b - overlay[4, 0] = bg_border_sepia_1080_5b - overlay[5, 0] = bg_border_sepia_1080_6b - overlay[6, 0] = bg_border_sepia_1080_7b - overlay[7, 0] = bg_border_sepia_1080_8b - overlay[8, 0] = bg_border_sepia_1080_9b - } - if (global.screen_border_state > 0) - overlay1 = 2839 - } - else if (os_type == os_psvita) - { - base = bg_border_sepia_544 - overlay[0, 1] = spr_talkbt - overlay[0, 2] = spr_undyneb_face3 - overlay[1, 1] = spr_heartorange - overlay[1, 2] = spr_wizard_orbhurt - overlay[2, 1] = spr_undertaletitle - overlay[2, 2] = spr_oolbone_ja - overlay[3, 1] = button_ps4_l3 - overlay[3, 2] = spr_undertaletitle - overlay[4, 1] = buttonL_nx_zl - overlay[4, 2] = spr_whimsunhurt - overlay[5, 1] = buttonL_vita_triangle - overlay[5, 2] = spr_vulkinface5 - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_544_1a - overlay[1, 0] = bg_border_sepia_544_2a - overlay[2, 0] = bg_border_sepia_544_3a - overlay[3, 0] = bg_border_sepia_544_4a - overlay[4, 0] = bg_border_sepia_544_5a - overlay[5, 0] = bg_border_sepia_544_6a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_544_1b - overlay[1, 0] = bg_border_sepia_544_2b - overlay[2, 0] = bg_border_sepia_544_3b - overlay[3, 0] = bg_border_sepia_544_4b - overlay[4, 0] = bg_border_sepia_544_5b - overlay[5, 0] = bg_border_sepia_544_6b - } - if (global.screen_border_state > 0) - overlay1 = 2853 - } - if (base != -4) - { - scr_draw_background_ps4(base, 0, 0) - if (overlay[0, 0] != -4) - { - if (global.screen_border_state > 0) - { - draw_enable_alphablend(1) - draw_set_alpha((global.screen_border_state * 0.5)) - } - scr_draw_background_ps4(overlay[0, 0], overlay[0, 1], overlay[0, 2]) - if (global.screen_border_state > 0) - { - draw_set_alpha(1) - draw_enable_alphablend(0) - } - } - for (i = 1; i < 9; i++) - { - if (overlay[i, 0] != -4) - scr_draw_background_ps4(overlay[i, 0], overlay[i, 1], overlay[i, 2]) - } - } -} -if (border_id == 3) -{ - var room_id = global.currentroom - if ((room_id >= 4 && room_id <= 43) || (room >= room_introstory && room <= room_intromenu) || (room >= room_settings && room <= room_controltest)) - border_id = 4 - if ((room_id >= 44 && room_id <= 81) || room_id == 311 || (room_id >= 265 && room_id <= 266)) - border_id = 5 - if ((room_id >= 82 && room_id <= 136) || room_id == 312 || room_id == 315) - border_id = 6 - if ((room_id >= 137 && room_id <= 215) || room_id == 313 || room_id == 314 || (room_id >= 242 && room_id <= 243)) - border_id = 7 - if (room_id >= 216 && room_id <= 240) - border_id = 8 - if (room_id >= 244 && room_id <= 263) - border_id = 9 - if (room_id == 136 || room_id == 213 || room_id == 215 || room_id == 242 || room_id == 243 || room_id == 316 || room_id == 335 || room_id == 336 || room_id == 337) - border_id = 3.5 - if (global.flag[479] == 0 && (room_id == 244 || room_id == 245)) - border_id = 3.5 - if (border_id != global.screen_border_state) - { - if (global.screen_border_state != 0) - { - if (global.screen_border_dynamic_fade_id == border_id) - global.screen_border_dynamic_fade_level = (1 - global.screen_border_dynamic_fade_level) - else - global.screen_border_dynamic_fade_level = 1 - global.screen_border_dynamic_fade_id = global.screen_border_state - } - global.screen_border_state = border_id - } - if (global.screen_border_dynamic_fade_level > 0) - { - fade_time = 30 - global.screen_border_dynamic_fade_level -= (1 / fade_time) - if (global.screen_border_dynamic_fade_level > 0) - { - scr_draw_screen_border(global.screen_border_dynamic_fade_id) - draw_set_alpha((1 - global.screen_border_dynamic_fade_level)) - } - else - { - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - } - } -} -if (border_id == 3.5) -{ - draw_set_color(c_black) - ossafe_fill_rectangle(0, 0, (window_get_width() - 1), (window_get_height() - 1)) - draw_set_color(c_white) -} -if (border_id == 4) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_ruins_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_ruins_544, 0, 0) -} -if (border_id == 5) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_tundra_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_tundra_544, 0, 0) -} -if (border_id == 6) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_water1_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_water1_544, 0, 0) -} -if (border_id == 7) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_fire_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_fire_544, 0, 0) -} -if (border_id == 8) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_castle_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_castle_544, 0, 0) -} -if (border_id == 9) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_truelab_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_truelab_544, 0, 0) -} -if (border_id == 10) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_rad_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_rad_544, 0, 0) -} -if (border_id == 11) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_anime_1080, 0, 0) -} -if (border_id == 12) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_dog_1080, 0, 0) -} -draw_set_alpha(1) -draw_enable_alphablend(1) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 30f82a28b..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,8 +0,0 @@ -global.msg[0] = scr_gettext("scr_itemdesc_2") -for (var i = 0; true; i++) -{ - var desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 4c986d2f8..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,39 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -var bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 69fc16d1e..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,901 +0,0 @@ -var credamt = 0 -if (global.osflavor <= 2) -{ - var credits_path = (working_directory + "credits.txt") - var credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - var thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew \"Southrop\" Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara \"Svenna\" Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean \"Ariamaki\" Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin \"BenaSPACE\" McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn \"Xisuu\" Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan \"ChessboardMan\" Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles \"Chip Champion\" Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary \"ZarroTsu\" Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will \"Radnar\" Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin \"AT\" Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves \"TehLazyOne\"" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke \"Association\" Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index 910c48cca..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var lines; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - var xx = (name_x - (q / 3)) - if (global.language == "ja") - { - var kana_count = 0 - for (var i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - var confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - return; - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, string_hash_to_newline(spec_m)) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (var row = 0; row < rows; row++) - { - var yy = ymap[row] - for (var col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), string_hash_to_newline(charmap[row, col])) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - var menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, string_hash_to_newline(menu_text0)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - var menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, string_hash_to_newline(menu_text1)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - var menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, string_hash_to_newline(menu_text2)) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - var charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, string_hash_to_newline(charset_text0)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - var charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, string_hash_to_newline(charset_text1)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - var charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, string_hash_to_newline(charset_text2)) - } - var old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - var best = 0 - var bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - var diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, string_hash_to_newline(charname)) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - var roomname = scr_roomname(roome) - var lvtext = scr_gettext("save_menu_lv", string(love)) - var timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - var namesize = string_width(string_hash_to_newline(substr(name, 1, 6))) - var lvsize = string_width(string_hash_to_newline(lvtext)) - var timesize = string_width(string_hash_to_newline(timetext)) - var x_center = 160 - var lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - var namepos = 70 - var timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, string_hash_to_newline(name)) - draw_text(lvpos, 62, string_hash_to_newline(lvtext)) - draw_text((timepos - timesize), 62, string_hash_to_newline(timetext)) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, string_hash_to_newline(roomname)) - if (selected3 == 0) - draw_set_color(c_yellow) - var continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, string_hash_to_newline(continue_text)) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - var reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, string_hash_to_newline(reset_text)) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - var action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, string_hash_to_newline(scr_gettext("instructions_title"))) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\\*Z") - draw_text(115, 50, string_hash_to_newline(scr_gettext("instructions_confirm_label"))) - scr_drawtext_icons(85, 70, "\\*X") - draw_text(115, 70, string_hash_to_newline(scr_gettext("instructions_cancel_label"))) - scr_drawtext_icons(85, 90, "\\*C") - draw_text(115, 90, string_hash_to_newline(scr_gettext("instructions_menu_label"))) - draw_text(86, 130, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - var num_lines = 5 - if (global.language == "ja") - { - var label_x = 0 - for (i = 0; i < num_lines; i++) - { - var key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), string_hash_to_newline(key)) - xx = ((50 + string_width(string_hash_to_newline(key))) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - var label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), string_hash_to_newline(label)) - } - draw_text(50, 145, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), string_hash_to_newline(((key + " - ") + label))) - } - draw_text(85, 140, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, string_hash_to_newline(scr_gettext("instructions_begin"))) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - var yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, string_hash_to_newline(scr_gettext("settings_name"))) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/427520a97db28c87da4220abb3a334c1/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 0ba119150..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,54 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - show_debug_message((((((("layer: " + string(__i)) + " ") + __name) + "[") + string(__numels)) + "]")) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - var __inst = layer_instance_get_instance(__id) - __name = object_get_name(__inst.object_index) - show_debug_message((((" instance:" + string(__j)) + ": ") + __name)) - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - show_debug_message((" tile: " + string(__j))) - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index 1c4a7918f..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,923 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - if (global.submenu >= 30 && global.submenu <= 33) - { - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(abs((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_0") - if window_get_fullscreen() - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_1") - draw_sprite(spr_heart, 0, (xx + 145), ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text((xx + 170), (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text((xx + 430), (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text((xx + 170), (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text((xx + 170), (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text((xx + 430), (yy + 220), string_hash_to_newline(flashoff)) - draw_text((xx + 170), (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_93_0"))) - draw_text((xx + 430), (yy + 255), string_hash_to_newline(fullscreenoff)) - draw_text((xx + 170), (yy + 290), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text((xx + 430), (yy + 290), string_hash_to_newline(runoff)) - draw_text((xx + 170), (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_95_0"))) - draw_text((xx + 170), (yy + 360), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - draw_set_color(c_white) - draw_text((xx + 105), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - draw_text((xx + 325), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_114_0"))) - if obj_time.gamepad_active - draw_text((xx + 435), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), ((yy + 150) + (global.submenucoord[35] * 28))) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), ((yy + 140) + (i * 28)), string_hash_to_newline(function[i])) - if (i < 7) - { - draw_text((xx + 325), ((yy + 140) + (i * 28)), string_hash_to_newline(global.asc_def[global.input_k[i]])) - if obj_time.gamepad_active - draw_text((xx + 495), ((yy + 140) + (i * 28)), string_hash_to_newline(string(global.input_g[i]))) - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index bd6ba38ef..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1232 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 6) - global.submenucoord[30] = 6 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - with (obj_time) - fullscreen_toggle = 1 - } - if (global.submenucoord[30] == 4) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 5) - global.submenu = 34 - if (global.submenucoord[30] == 6) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - m_quit = 1 - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - game_end() - if (button2_p() && twobuffer < 0) - { - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - gamepad_exists = obj_time.gamepad_active - gamepad_id = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if keyboard_check_pressed(vk_anykey) - { - for (i = 48; i <= 90; i += 1) - { - if keyboard_check_pressed(i) - { - new_key = i - control_select_con = 2 - } - } - if keyboard_check_pressed(ord(";")) - { - new_key = 59 - control_select_con = 2 - } - if keyboard_check_pressed(vk_printscreen) - { - new_key = 44 - control_select_con = 2 - } - if keyboard_check_pressed(vk_delete) - { - new_key = 46 - control_select_con = 2 - } - if keyboard_check_pressed(ord("/")) - { - new_key = 47 - control_select_con = 2 - } - if keyboard_check_pressed(ord("\\")) - { - new_key = 92 - control_select_con = 2 - } - if keyboard_check_pressed(ord("]")) - { - new_key = 93 - control_select_con = 2 - } - if keyboard_check_pressed(ord("[")) - { - new_key = 91 - control_select_con = 2 - } - if keyboard_check_pressed(vk_numpad0) - { - new_key = 96 - control_select_con = 2 - } - if keyboard_check_pressed(vk_insert) - { - new_key = 45 - control_select_con = 2 - } - if keyboard_check_pressed(ord("=")) - { - new_key = 61 - control_select_con = 2 - } - if keyboard_check_pressed(vk_left) - { - new_key = 37 - control_select_con = 2 - } - if keyboard_check_pressed(vk_right) - { - new_key = 39 - control_select_con = 2 - } - if keyboard_check_pressed(vk_up) - { - new_key = 38 - control_select_con = 2 - } - if keyboard_check_pressed(vk_down) - { - new_key = 40 - control_select_con = 2 - } - if keyboard_check_pressed(vk_return) - { - new_key = 13 - control_select_con = 2 - } - if keyboard_check_pressed(vk_shift) - { - new_key = 16 - control_select_con = 2 - } - if keyboard_check_pressed(vk_control) - { - new_key = 17 - control_select_con = 2 - } - if keyboard_check_pressed(vk_backspace) - { - new_key = 8 - control_select_con = 2 - } - if keyboard_check_pressed(vk_alt) - { - new_key = 18 - control_select_con = 2 - } - if keyboard_check_pressed(vk_escape) - { - new_key = -1 - control_select_con = 0 - } - } - if (gamepad_exists == 1 && control_select_con == 1) - { - gpc = gamepad_button_count(gamepad_id) - if (gpc >= 40) - gpc = 40 - for (i = 0; i <= gpc; i += 1) - { - if gamepad_button_check_pressed(gamepad_id, i) - { - new_gamepad_key = i - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - onebuffer = 2 - twobuffer = 2 - ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_close() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - global.submenucoord[21] -= 1 - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - global.submenucoord[21] += 1 - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 1 - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - else if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[2] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 1 - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[4] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 2 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - global.submenu = 5 - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - deschaver = 1 - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - } - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - pagemax[0] -= 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - pagemax[1] -= 1 - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - pagemax[0] += 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - pagemax[1] += 1 - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - scr_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 5008a9c96..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,634 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } -} -if (global.interact == 0) -{ - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), (y + py), obj_solidblock) - xymeet = 1 - if place_meeting((x + px), y, obj_solidblock) - { - if place_meeting((x + px), y, obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - snd_play(snd_step1) - stepped = true - } - if (image_index == 0 || image_index == 2) - stepped = false - if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} -if scr_debug() -{ - if keyboard_check_pressed(ord("P")) - room_speed = 60 - if keyboard_check_pressed(ord("O")) - room_speed = 3 - if (keyboard_check(ord("3")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_dark1) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 2 - global.interact = 0 - global.darkzone = true - room_goto(room_field_checkers5) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_castle_tutorial) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_field1) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_area3) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_fightsusie) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("D"))) - { - global.char[0] = 2 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.plot = 154 - room_goto(room_cc_prison_cells) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.plot = 165 - scr_keyitemget(5) - global.tempflag[4] = 1 - repeat (13) - scr_weaponget(5) - room_goto(room_cc_prison_prejoker) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.flag[248] = 0 - room_goto(room_cc_kingbattle) - } - if (keyboard_check(ord("2")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_town_krisyard) - } - if (keyboard_check(ord("3")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_schooldoor) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_school_unusedroom) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_school) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_north) - } - if keyboard_check_pressed(vk_insert) - room_goto_next() - if keyboard_check_pressed(vk_delete) - room_goto_previous() -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 0ba119150..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,54 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - show_debug_message((((((("layer: " + string(__i)) + " ") + __name) + "[") + string(__numels)) + "]")) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - var __inst = layer_instance_get_instance(__id) - __name = object_get_name(__inst.object_index) - show_debug_message((((" instance:" + string(__j)) + ": ") + __name)) - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - show_debug_message((" tile: " + string(__j))) - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index 1c4a7918f..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,923 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - if (global.submenu >= 30 && global.submenu <= 33) - { - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(abs((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_0") - if window_get_fullscreen() - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_1") - draw_sprite(spr_heart, 0, (xx + 145), ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text((xx + 170), (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text((xx + 430), (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text((xx + 170), (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text((xx + 170), (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text((xx + 430), (yy + 220), string_hash_to_newline(flashoff)) - draw_text((xx + 170), (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_93_0"))) - draw_text((xx + 430), (yy + 255), string_hash_to_newline(fullscreenoff)) - draw_text((xx + 170), (yy + 290), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text((xx + 430), (yy + 290), string_hash_to_newline(runoff)) - draw_text((xx + 170), (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_95_0"))) - draw_text((xx + 170), (yy + 360), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - draw_set_color(c_white) - draw_text((xx + 105), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - draw_text((xx + 325), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_114_0"))) - if obj_time.gamepad_active - draw_text((xx + 435), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), ((yy + 150) + (global.submenucoord[35] * 28))) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), ((yy + 140) + (i * 28)), string_hash_to_newline(function[i])) - if (i < 7) - { - draw_text((xx + 325), ((yy + 140) + (i * 28)), string_hash_to_newline(global.asc_def[global.input_k[i]])) - if obj_time.gamepad_active - draw_text((xx + 495), ((yy + 140) + (i * 28)), string_hash_to_newline(string(global.input_g[i]))) - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index bd6ba38ef..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1232 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 6) - global.submenucoord[30] = 6 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - with (obj_time) - fullscreen_toggle = 1 - } - if (global.submenucoord[30] == 4) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 5) - global.submenu = 34 - if (global.submenucoord[30] == 6) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - m_quit = 1 - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - game_end() - if (button2_p() && twobuffer < 0) - { - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - gamepad_exists = obj_time.gamepad_active - gamepad_id = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if keyboard_check_pressed(vk_anykey) - { - for (i = 48; i <= 90; i += 1) - { - if keyboard_check_pressed(i) - { - new_key = i - control_select_con = 2 - } - } - if keyboard_check_pressed(ord(";")) - { - new_key = 59 - control_select_con = 2 - } - if keyboard_check_pressed(vk_printscreen) - { - new_key = 44 - control_select_con = 2 - } - if keyboard_check_pressed(vk_delete) - { - new_key = 46 - control_select_con = 2 - } - if keyboard_check_pressed(ord("/")) - { - new_key = 47 - control_select_con = 2 - } - if keyboard_check_pressed(ord("\\")) - { - new_key = 92 - control_select_con = 2 - } - if keyboard_check_pressed(ord("]")) - { - new_key = 93 - control_select_con = 2 - } - if keyboard_check_pressed(ord("[")) - { - new_key = 91 - control_select_con = 2 - } - if keyboard_check_pressed(vk_numpad0) - { - new_key = 96 - control_select_con = 2 - } - if keyboard_check_pressed(vk_insert) - { - new_key = 45 - control_select_con = 2 - } - if keyboard_check_pressed(ord("=")) - { - new_key = 61 - control_select_con = 2 - } - if keyboard_check_pressed(vk_left) - { - new_key = 37 - control_select_con = 2 - } - if keyboard_check_pressed(vk_right) - { - new_key = 39 - control_select_con = 2 - } - if keyboard_check_pressed(vk_up) - { - new_key = 38 - control_select_con = 2 - } - if keyboard_check_pressed(vk_down) - { - new_key = 40 - control_select_con = 2 - } - if keyboard_check_pressed(vk_return) - { - new_key = 13 - control_select_con = 2 - } - if keyboard_check_pressed(vk_shift) - { - new_key = 16 - control_select_con = 2 - } - if keyboard_check_pressed(vk_control) - { - new_key = 17 - control_select_con = 2 - } - if keyboard_check_pressed(vk_backspace) - { - new_key = 8 - control_select_con = 2 - } - if keyboard_check_pressed(vk_alt) - { - new_key = 18 - control_select_con = 2 - } - if keyboard_check_pressed(vk_escape) - { - new_key = -1 - control_select_con = 0 - } - } - if (gamepad_exists == 1 && control_select_con == 1) - { - gpc = gamepad_button_count(gamepad_id) - if (gpc >= 40) - gpc = 40 - for (i = 0; i <= gpc; i += 1) - { - if gamepad_button_check_pressed(gamepad_id, i) - { - new_gamepad_key = i - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - onebuffer = 2 - twobuffer = 2 - ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_close() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - global.submenucoord[21] -= 1 - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - global.submenucoord[21] += 1 - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 1 - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - else if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[2] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 1 - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[4] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 2 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - global.submenu = 5 - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - deschaver = 1 - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - } - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - pagemax[0] -= 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - pagemax[1] -= 1 - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - pagemax[0] += 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - pagemax[1] += 1 - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - scr_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 5008a9c96..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,634 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } -} -if (global.interact == 0) -{ - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), (y + py), obj_solidblock) - xymeet = 1 - if place_meeting((x + px), y, obj_solidblock) - { - if place_meeting((x + px), y, obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - snd_play(snd_step1) - stepped = true - } - if (image_index == 0 || image_index == 2) - stepped = false - if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} -if scr_debug() -{ - if keyboard_check_pressed(ord("P")) - room_speed = 60 - if keyboard_check_pressed(ord("O")) - room_speed = 3 - if (keyboard_check(ord("3")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_dark1) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 2 - global.interact = 0 - global.darkzone = true - room_goto(room_field_checkers5) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_castle_tutorial) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_field1) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_area3) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_fightsusie) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("D"))) - { - global.char[0] = 2 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.plot = 154 - room_goto(room_cc_prison_cells) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.plot = 165 - scr_keyitemget(5) - global.tempflag[4] = 1 - repeat (13) - scr_weaponget(5) - room_goto(room_cc_prison_prejoker) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.flag[248] = 0 - room_goto(room_cc_kingbattle) - } - if (keyboard_check(ord("2")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_town_krisyard) - } - if (keyboard_check(ord("3")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_schooldoor) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_school_unusedroom) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_school) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_north) - } - if keyboard_check_pressed(vk_insert) - room_goto_next() - if keyboard_check_pressed(vk_delete) - room_goto_previous() -} diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/56305194391ad7c548ee55a8891179cc/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/582795ad2037d06cdc8db0c72d9360d5/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/5903fc5cb042a728d4ad8ee9e949c6eb/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index c5aa48faf..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,949 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if (os_type == os_ps4 || os_type == os_switch) - { - var gamepad_text = (global.lang == "en" ? "Button" : "ボタン") - var buttonXPos = ((os_type == os_switch && global.lang == "en") ? (xx + 445) : (xx + 435)) - var buttonYPos = (os_type == os_switch ? ((yy + 100) + _yOffset) : ((yy + 95) + _yOffset)) - if obj_gamecontroller.gamepad_active - draw_text(buttonXPos, buttonYPos, gamepad_text) - } - else if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 95) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0) - _xPos -= 3 - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index c78ee795e..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1271 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - if (new_gamepad_key == 32775) - obj_gamecontroller.gamepad_shoulderlb_reassign = 1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_write_real("SHOULDERLB_REASSIGN", "SHOULDERLB_REASSIGN", obj_gamecontroller.gamepad_shoulderlb_reassign) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 1a8bb3323..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,494 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - if instance_exists(obj_overworldc) - { - if (!menuOpened) - { - menuOpened = 1 - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - else - menuOpened = 0 - } - else - { - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index c5aa48faf..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,949 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if (os_type == os_ps4 || os_type == os_switch) - { - var gamepad_text = (global.lang == "en" ? "Button" : "ボタン") - var buttonXPos = ((os_type == os_switch && global.lang == "en") ? (xx + 445) : (xx + 435)) - var buttonYPos = (os_type == os_switch ? ((yy + 100) + _yOffset) : ((yy + 95) + _yOffset)) - if obj_gamecontroller.gamepad_active - draw_text(buttonXPos, buttonYPos, gamepad_text) - } - else if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 95) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0) - _xPos -= 3 - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index c78ee795e..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1271 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - if (new_gamepad_key == 32775) - obj_gamecontroller.gamepad_shoulderlb_reassign = 1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_write_real("SHOULDERLB_REASSIGN", "SHOULDERLB_REASSIGN", obj_gamecontroller.gamepad_shoulderlb_reassign) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 1a8bb3323..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,494 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - if instance_exists(obj_overworldc) - { - if (!menuOpened) - { - menuOpened = 1 - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - else - menuOpened = 0 - } - else - { - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/5c8f4533f6e0629d45766830f5f5ca72/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index f2890f546..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,939 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index 169e54ff6..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1277 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - ossafe_savedata_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 4d10561e9..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,479 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_84_debug.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_84_debug.gml deleted file mode 100644 index da6bc884f..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_84_debug.gml +++ /dev/null @@ -1,847 +0,0 @@ -var strings; -var process = argument0 -if (!variable_global_exists("chemg_menu_depth")) -{ - global.chemg_menu_indices = array_create(0) - global.chemg_menu_indices[0] = 0 - global.chemg_menu_depth = 0 - global.chemg_god_mode = 0 - global.chemg_show_room = 1 - global.chemg_font_test = 0 - var parent = ds_list_create() - show_debug_message("init debug") - var group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Options") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[loadj]", "", "reload japanese") - scr_84_add_menu_item(parent, "[lang]", "ja", "use japanese") - scr_84_add_menu_item(parent, "[lang]", "en", "use english") - scr_84_add_menu_item(parent, "[showroom]", "", "toggle room name") - scr_84_add_menu_item(parent, "[restart]", "", "restart room") - scr_84_add_menu_item(parent, "[god]", "", "god mode") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[item]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[item]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[item]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[item]", 4, "Manual") - scr_84_add_menu_item(parent, "[item]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[item]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[item]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[item]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[item]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[item]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[item]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[item]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[item]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[item]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[item]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give light item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[lightitem]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[lightitem]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[lightitem]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[lightitem]", 4, "Manual") - scr_84_add_menu_item(parent, "[lightitem]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[lightitem]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[lightitem]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[lightitem]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[lightitem]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[lightitem]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[lightitem]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[lightitem]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[lightitem]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[lightitem]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[lightitem]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give key item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[keyitem]", 1, "Cell Phone") - scr_84_add_menu_item(parent, "[keyitem]", 2, "Egg") - scr_84_add_menu_item(parent, "[keyitem]", 3, "BrokenCake") - scr_84_add_menu_item(parent, "[keyitem]", 4, "Broken Key A") - scr_84_add_menu_item(parent, "[keyitem]", 5, "Door Key") - scr_84_add_menu_item(parent, "[keyitem]", 6, "Broken Key B") - scr_84_add_menu_item(parent, "[keyitem]", 7, "Broken Key C") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give weapon") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[weaponitem]", 1, "Wood Blade") - scr_84_add_menu_item(parent, "[weaponitem]", 2, "Mane Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 3, "Red Scarf") - scr_84_add_menu_item(parent, "[weaponitem]", 4, "EverybodyWeapon") - scr_84_add_menu_item(parent, "[weaponitem]", 5, "Spookysword") - scr_84_add_menu_item(parent, "[weaponitem]", 6, "Brave Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 7, "Devilsknife") - scr_84_add_menu_item(parent, "[weaponitem]", 8, "Trefoil") - scr_84_add_menu_item(parent, "[weaponitem]", 9, "Ragger") - scr_84_add_menu_item(parent, "[weaponitem]", 10, "DaintyScarf") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give armor") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[armoritem]", 1, "Amber Card") - scr_84_add_menu_item(parent, "[armoritem]", 2, "Dice Brace") - scr_84_add_menu_item(parent, "[armoritem]", 3, "Pink Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 4, "White Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 5, "IronShackle") - scr_84_add_menu_item(parent, "[armoritem]", 6, "MouseToken") - scr_84_add_menu_item(parent, "[armoritem]", 7, "Jevilstail") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[phone]", "", "give phone number") - scr_84_add_menu_item(parent, "[gold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[gold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[lightgold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[lightgold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[fonttest]", "", "font test") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Rooms") - scr_84_push(parent) - parent = group - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - scr_84_add_menu_item(parent, "[room]", 145, "room_splashscreen") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "rooms") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 0, "ROOM_INITIALIZE") - scr_84_add_menu_item(parent, "[room]", 1, "PLACE_CONTACT") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[room]", 141, "room_empty") - scr_84_add_menu_item(parent, "[room]", 142, "room_man") - scr_84_add_menu_item(parent, "[roomdark]", 143, "room_DARKempty") - scr_84_add_menu_item(parent, "[room]", 144, "room_battletest") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - parent = scr_84_pop() - global.chemg_menus = parent -} -if process - return global.chemg_menu_depth > 0; -if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_stickr) -{ - global.chemg_menu_depth = 1 - global.chemg_interact = global.interact - global.chemg_yoffset = 0 - global.interact = 0 -} -if (global.chemg_menu_depth > 0) -{ - parent = global.chemg_menus - var change = 0 - var depth_ndx = (global.chemg_menu_depth - 1) - var i = 0 - do - { - var choice_ndx = global.chemg_menu_indices[i] - var choice = ds_list_find_value(parent, choice_ndx * 3) - var choice_data = ds_list_find_value(parent, choice_ndx * 3 + 1) - var choice_name = ds_list_find_value(parent, choice_ndx * 3 + 2) - i += 1 - if i == global.chemg_menu_depth - { - break; - } - parent = choice_data - } - until false; - var num_choices = (ds_list_size(parent) / 3) - if (keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padu)) - change = -1 - else if (keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padd)) - change = 1 - else if (keyboard_check_pressed(vk_return) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face2)) - { - if (choice == "[group]") - { - global.chemg_menu_indices[global.chemg_menu_depth] = 0 - global.chemg_menu_depth += 1 - } - else if (choice == "[loadj]") - { - var type = scr_84_lang_load() - show_debug_message((("loaded " + type) + " lang file")) - show_message((("loaded " + type) + " lang file")) - global.chemg_menu_depth = 0 - } - else if (choice == "[room]") - { - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[roomdark]") - { - show_debug_message(("room_goto: " + choice_name)) - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[lang]") - { - show_debug_message(("switch lang: " + choice_data)) - global.lang = choice_data - global.chemg_menu_depth = 0 - scr_84_init_localization() - room_restart() - } - else if (choice == "[restart]") - { - show_debug_message("restart room") - room_restart() - global.chemg_menu_depth = 0 - } - else if (choice == "[god]") - global.chemg_god_mode = (1 - global.chemg_god_mode) - else if (choice == "[lightitem]") - { - if (scr_litemcheck(choice_data) == 0) - scr_litemget(choice_data) - } - else if (choice == "[item]") - { - if (scr_itemcheck(choice_data) == 0) - scr_itemget(choice_data) - } - else if (choice == "[keyitem]") - { - if (scr_keyitemcheck(choice_data) == 0) - scr_keyitemget(choice_data) - } - else if (choice == "[weaponitem]") - { - if (scr_weaponcheck_inventory(choice_data) == 0) - scr_weaponget(choice_data) - } - else if (choice == "[armoritem]") - { - if (scr_armorcheck_inventory(choice_data) == 0) - scr_armorget(choice_data) - } - else if (choice == "[phone]") - scr_phoneadd(202) - else if (choice == "[gold]") - global.gold = max(0, (global.gold + choice_data)) - else if (choice == "[lightgold]") - global.lgold = max(0, (global.lgold + choice_data)) - else if (choice == "[showroom]") - global.chemg_show_room = (!global.chemg_show_room) - else if (choice == "[fonttest]") - { - global.chemg_font_test = (!global.chemg_font_test) - global.chemg_menu_depth = 0 - } - else - show_debug_message(("unknown menu cmd:" + choice)) - } - else if (keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face1)) - { - if (global.chemg_menu_depth > 0) - global.chemg_menu_depth -= 1 - if (global.chemg_menu_depth == 0) - global.interact = global.chemg_interact - } - for (i = 0; i < 10; i += 1) - { - global.input_pressed[i] = 0 - global.input_held[i] = 0 - global.input_released[i] = 0 - } - keyboard_clear(vk_up) - keyboard_clear(vk_down) - keyboard_clear(vk_left) - keyboard_clear(vk_right) - keyboard_clear(vk_escape) - keyboard_clear(vk_return) - if (change != 0) - global.chemg_menu_indices[depth_ndx] = (((global.chemg_menu_indices[depth_ndx] + num_choices) + change) % num_choices) - draw_set_font(fnt_main) - draw_set_colour(c_white) - draw_set_halign(fa_left) - draw_set_valign(fa_top) - var yy = global.chemg_yoffset - var vspacing = 15 - scr_84_draw_text_outline(10, yy, (((("====[ menu ]====[ gold: " + string(global.gold)) + " light gold: ") + string(global.lgold)) + " ]")) - yy += vspacing - global.chemg_max_depth = -1 - global.chemg_cursor_y = 0 - scr_84_draw_menu(global.chemg_menus, 10, yy, vspacing, global.chemg_menu_indices, 0, (global.chemg_menu_depth - 1)) - global.chemg_yoffset = min(10, (400 - (global.chemg_cursor_y - global.chemg_yoffset))) -} -var chemg_room_name = room_get_name(room) -if (global.chemg_god_mode > 0) - chemg_room_name = (chemg_room_name + "[god]") -if global.chemg_show_room -{ - draw_set_font(fnt_main) - draw_set_colour(c_white) - var chemg_x = (635 - string_width(chemg_room_name)) - var chemg_y = 5 - scr_84_draw_text_outline(chemg_x, chemg_y, chemg_room_name) -} -if global.chemg_font_test -{ - if (!variable_global_exists("chemg_font_init")) - { - global.chemg_font_init = 1 - var ft = fnt_tinynoelle - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = "NORMAL FONT" - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = "SLOWER, SILENT" - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = "normal enemy font." - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = "battle dialogue" - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = "NORMAL MAIN FONT" - ft[array_length_1d(ft)] = fnt_ja_small - ft[array_length_1d(ft)] = "NORMAL FONT BIG" - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = "toriel font" - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = "toriel font slow" - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = "susie font" - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = "ralsei font" - ft[array_length_1d(ft)] = 12 - ft[array_length_1d(ft)] = "noelle font" - ft[array_length_1d(ft)] = 13 - ft[array_length_1d(ft)] = "berdly font" - ft[array_length_1d(ft)] = 14 - ft[array_length_1d(ft)] = "sans font" - ft[array_length_1d(ft)] = 15 - ft[array_length_1d(ft)] = "pap font" - ft[array_length_1d(ft)] = 16 - ft[array_length_1d(ft)] = ")??? font" - ft[array_length_1d(ft)] = 17 - ft[array_length_1d(ft)] = "undyne font" - ft[array_length_1d(ft)] = 18 - ft[array_length_1d(ft)] = "asgore font" - ft[array_length_1d(ft)] = 19 - ft[array_length_1d(ft)] = "lancer font" - ft[array_length_1d(ft)] = 20 - ft[array_length_1d(ft)] = "alphys font" - ft[array_length_1d(ft)] = 21 - ft[array_length_1d(ft)] = "temmie font" - ft[array_length_1d(ft)] = 22 - ft[array_length_1d(ft)] = "alphys font small" - ft[array_length_1d(ft)] = 23 - ft[array_length_1d(ft)] = "noelle font small" - ft[array_length_1d(ft)] = 30 - ft[array_length_1d(ft)] = "susie dark world" - ft[array_length_1d(ft)] = 31 - ft[array_length_1d(ft)] = "ralsei dark world" - ft[array_length_1d(ft)] = 32 - ft[array_length_1d(ft)] = "lancer dark world" - ft[array_length_1d(ft)] = 33 - ft[array_length_1d(ft)] = "king dark world" - ft[array_length_1d(ft)] = 35 - ft[array_length_1d(ft)] = "joker dark world" - ft[array_length_1d(ft)] = 36 - ft[array_length_1d(ft)] = "NORMAL FONT SILENT" - ft[array_length_1d(ft)] = 37 - ft[array_length_1d(ft)] = "susie dark world slow, spaced." - ft[array_length_1d(ft)] = 40 - ft[array_length_1d(ft)] = "inteo" - ft[array_length_1d(ft)] = 41 - ft[array_length_1d(ft)] = "intro slower" - ft[array_length_1d(ft)] = 42 - ft[array_length_1d(ft)] = "big silent slower" - ft[array_length_1d(ft)] = 45 - ft[array_length_1d(ft)] = "battle dialogue ral" - ft[array_length_1d(ft)] = 46 - ft[array_length_1d(ft)] = "battle dialogue lan" - ft[array_length_1d(ft)] = 47 - ft[array_length_1d(ft)] = "battle dialogue sus" - ft[array_length_1d(ft)] = 48 - ft[array_length_1d(ft)] = "king dark world battle" - ft[array_length_1d(ft)] = 50 - ft[array_length_1d(ft)] = "enemy" - ft[array_length_1d(ft)] = 51 - ft[array_length_1d(ft)] = "hellish yak text" - ft[array_length_1d(ft)] = 52 - ft[array_length_1d(ft)] = "hellish yak text 2" - ft[array_length_1d(ft)] = 53 - ft[array_length_1d(ft)] = "enemy: Susie" - ft[array_length_1d(ft)] = 54 - ft[array_length_1d(ft)] = "enemy: Susie 2" - ft[array_length_1d(ft)] = 55 - ft[array_length_1d(ft)] = "rudy font" - ft[array_length_1d(ft)] = 60 - ft[array_length_1d(ft)] = "SLOWER, SILENT 2" - ft[array_length_1d(ft)] = 666 - ft[array_length_1d(ft)] = "GLOW TEXT" - ft[array_length_1d(ft)] = 667 - ft[array_length_1d(ft)] = "GLOW TEXT 2" - ft[array_length_1d(ft)] = -1 - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = -2 - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = -3 - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = -4 - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = -5 - ft[array_length_1d(ft)] = fnt_tinynoelle - ft[array_length_1d(ft)] = -6 - ft[array_length_1d(ft)] = fnt_ja_tinynoelle - ft[array_length_1d(ft)] = -7 - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = -8 - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = -9 - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = -10 - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = -11 - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = -12 - ft[array_length_1d(ft)] = fnt_ja_small - global.chemg_font_types = ft - global.chemg_font_type_ndx = 0 - } - ft = global.chemg_font_types - var num_types = (array_length_1d(ft) / 2) - change = 0 - if (keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padr)) - change = 1 - else if (keyboard_check_pressed(vk_left) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padl)) - change = -1 - global.chemg_font_type_ndx = (((global.chemg_font_type_ndx + change) + num_types) % num_types) - var fndx = (global.chemg_font_type_ndx * 2) - var xx = 10 - yy = 250 - strings[0] = "Pack my box with five" - strings[1] = "dozen liquor jugs." - strings[2] = "これは日本語です。" - strings[3] = "魔物に食われない!" - var typer = ft[fndx] - if (typer >= 0) - { - global.typer = typer - scr_texttype() - var font = myfont - var msg = ((((("(" + string(global.typer)) + ") ") + ft[(fndx + 1)]) + ", font: ") + font_get_name(myfont)) - vspacing = vspace - } - else - { - font = ft[(fndx + 1)] - msg = ("font: " + font_get_name(font)) - vspacing = (font_get_size(font) + 2) - } - draw_set_font(font) - draw_set_colour(c_white) - for (i = 0; i < array_length_1d(strings); i += 1) - { - var str = strings[i] - if (typer >= 0) - { - var len = string_length(str) - var wx = xx - for (var j = 1; j <= len; j += 1) - { - var mychar = string_copy(str, j, 1) - draw_text(wx, ((yy + 20) + (i * vspacing)), mychar) - wx += hspace - if (global.lang == "ja") - { - if (ord(mychar) < 256 || (ord(mychar) >= 65377 && ord(mychar) <= 65439)) - wx -= (hspace / 2) - } - } - } - else - draw_text(xx, ((yy + 20) + (i * vspacing)), str) - } - draw_set_colour(c_white) - draw_set_font(fnt_main) - draw_text(xx, yy, ("<-/-> to change typer: " + msg)) -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index f2890f546..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,939 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index 169e54ff6..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1277 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - ossafe_savedata_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 4d10561e9..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,479 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_84_debug.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_84_debug.gml deleted file mode 100644 index da6bc884f..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_84_debug.gml +++ /dev/null @@ -1,847 +0,0 @@ -var strings; -var process = argument0 -if (!variable_global_exists("chemg_menu_depth")) -{ - global.chemg_menu_indices = array_create(0) - global.chemg_menu_indices[0] = 0 - global.chemg_menu_depth = 0 - global.chemg_god_mode = 0 - global.chemg_show_room = 1 - global.chemg_font_test = 0 - var parent = ds_list_create() - show_debug_message("init debug") - var group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Options") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[loadj]", "", "reload japanese") - scr_84_add_menu_item(parent, "[lang]", "ja", "use japanese") - scr_84_add_menu_item(parent, "[lang]", "en", "use english") - scr_84_add_menu_item(parent, "[showroom]", "", "toggle room name") - scr_84_add_menu_item(parent, "[restart]", "", "restart room") - scr_84_add_menu_item(parent, "[god]", "", "god mode") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[item]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[item]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[item]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[item]", 4, "Manual") - scr_84_add_menu_item(parent, "[item]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[item]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[item]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[item]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[item]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[item]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[item]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[item]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[item]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[item]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[item]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give light item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[lightitem]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[lightitem]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[lightitem]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[lightitem]", 4, "Manual") - scr_84_add_menu_item(parent, "[lightitem]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[lightitem]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[lightitem]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[lightitem]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[lightitem]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[lightitem]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[lightitem]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[lightitem]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[lightitem]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[lightitem]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[lightitem]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give key item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[keyitem]", 1, "Cell Phone") - scr_84_add_menu_item(parent, "[keyitem]", 2, "Egg") - scr_84_add_menu_item(parent, "[keyitem]", 3, "BrokenCake") - scr_84_add_menu_item(parent, "[keyitem]", 4, "Broken Key A") - scr_84_add_menu_item(parent, "[keyitem]", 5, "Door Key") - scr_84_add_menu_item(parent, "[keyitem]", 6, "Broken Key B") - scr_84_add_menu_item(parent, "[keyitem]", 7, "Broken Key C") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give weapon") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[weaponitem]", 1, "Wood Blade") - scr_84_add_menu_item(parent, "[weaponitem]", 2, "Mane Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 3, "Red Scarf") - scr_84_add_menu_item(parent, "[weaponitem]", 4, "EverybodyWeapon") - scr_84_add_menu_item(parent, "[weaponitem]", 5, "Spookysword") - scr_84_add_menu_item(parent, "[weaponitem]", 6, "Brave Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 7, "Devilsknife") - scr_84_add_menu_item(parent, "[weaponitem]", 8, "Trefoil") - scr_84_add_menu_item(parent, "[weaponitem]", 9, "Ragger") - scr_84_add_menu_item(parent, "[weaponitem]", 10, "DaintyScarf") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give armor") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[armoritem]", 1, "Amber Card") - scr_84_add_menu_item(parent, "[armoritem]", 2, "Dice Brace") - scr_84_add_menu_item(parent, "[armoritem]", 3, "Pink Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 4, "White Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 5, "IronShackle") - scr_84_add_menu_item(parent, "[armoritem]", 6, "MouseToken") - scr_84_add_menu_item(parent, "[armoritem]", 7, "Jevilstail") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[phone]", "", "give phone number") - scr_84_add_menu_item(parent, "[gold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[gold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[lightgold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[lightgold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[fonttest]", "", "font test") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Rooms") - scr_84_push(parent) - parent = group - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - scr_84_add_menu_item(parent, "[room]", 145, "room_splashscreen") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "rooms") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 0, "ROOM_INITIALIZE") - scr_84_add_menu_item(parent, "[room]", 1, "PLACE_CONTACT") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[room]", 141, "room_empty") - scr_84_add_menu_item(parent, "[room]", 142, "room_man") - scr_84_add_menu_item(parent, "[roomdark]", 143, "room_DARKempty") - scr_84_add_menu_item(parent, "[room]", 144, "room_battletest") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - parent = scr_84_pop() - global.chemg_menus = parent -} -if process - return global.chemg_menu_depth > 0; -if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_stickr) -{ - global.chemg_menu_depth = 1 - global.chemg_interact = global.interact - global.chemg_yoffset = 0 - global.interact = 0 -} -if (global.chemg_menu_depth > 0) -{ - parent = global.chemg_menus - var change = 0 - var depth_ndx = (global.chemg_menu_depth - 1) - var i = 0 - do - { - var choice_ndx = global.chemg_menu_indices[i] - var choice = ds_list_find_value(parent, choice_ndx * 3) - var choice_data = ds_list_find_value(parent, choice_ndx * 3 + 1) - var choice_name = ds_list_find_value(parent, choice_ndx * 3 + 2) - i += 1 - if i == global.chemg_menu_depth - { - break; - } - parent = choice_data - } - until false; - var num_choices = (ds_list_size(parent) / 3) - if (keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padu)) - change = -1 - else if (keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padd)) - change = 1 - else if (keyboard_check_pressed(vk_return) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face2)) - { - if (choice == "[group]") - { - global.chemg_menu_indices[global.chemg_menu_depth] = 0 - global.chemg_menu_depth += 1 - } - else if (choice == "[loadj]") - { - var type = scr_84_lang_load() - show_debug_message((("loaded " + type) + " lang file")) - show_message((("loaded " + type) + " lang file")) - global.chemg_menu_depth = 0 - } - else if (choice == "[room]") - { - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[roomdark]") - { - show_debug_message(("room_goto: " + choice_name)) - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[lang]") - { - show_debug_message(("switch lang: " + choice_data)) - global.lang = choice_data - global.chemg_menu_depth = 0 - scr_84_init_localization() - room_restart() - } - else if (choice == "[restart]") - { - show_debug_message("restart room") - room_restart() - global.chemg_menu_depth = 0 - } - else if (choice == "[god]") - global.chemg_god_mode = (1 - global.chemg_god_mode) - else if (choice == "[lightitem]") - { - if (scr_litemcheck(choice_data) == 0) - scr_litemget(choice_data) - } - else if (choice == "[item]") - { - if (scr_itemcheck(choice_data) == 0) - scr_itemget(choice_data) - } - else if (choice == "[keyitem]") - { - if (scr_keyitemcheck(choice_data) == 0) - scr_keyitemget(choice_data) - } - else if (choice == "[weaponitem]") - { - if (scr_weaponcheck_inventory(choice_data) == 0) - scr_weaponget(choice_data) - } - else if (choice == "[armoritem]") - { - if (scr_armorcheck_inventory(choice_data) == 0) - scr_armorget(choice_data) - } - else if (choice == "[phone]") - scr_phoneadd(202) - else if (choice == "[gold]") - global.gold = max(0, (global.gold + choice_data)) - else if (choice == "[lightgold]") - global.lgold = max(0, (global.lgold + choice_data)) - else if (choice == "[showroom]") - global.chemg_show_room = (!global.chemg_show_room) - else if (choice == "[fonttest]") - { - global.chemg_font_test = (!global.chemg_font_test) - global.chemg_menu_depth = 0 - } - else - show_debug_message(("unknown menu cmd:" + choice)) - } - else if (keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face1)) - { - if (global.chemg_menu_depth > 0) - global.chemg_menu_depth -= 1 - if (global.chemg_menu_depth == 0) - global.interact = global.chemg_interact - } - for (i = 0; i < 10; i += 1) - { - global.input_pressed[i] = 0 - global.input_held[i] = 0 - global.input_released[i] = 0 - } - keyboard_clear(vk_up) - keyboard_clear(vk_down) - keyboard_clear(vk_left) - keyboard_clear(vk_right) - keyboard_clear(vk_escape) - keyboard_clear(vk_return) - if (change != 0) - global.chemg_menu_indices[depth_ndx] = (((global.chemg_menu_indices[depth_ndx] + num_choices) + change) % num_choices) - draw_set_font(fnt_main) - draw_set_colour(c_white) - draw_set_halign(fa_left) - draw_set_valign(fa_top) - var yy = global.chemg_yoffset - var vspacing = 15 - scr_84_draw_text_outline(10, yy, (((("====[ menu ]====[ gold: " + string(global.gold)) + " light gold: ") + string(global.lgold)) + " ]")) - yy += vspacing - global.chemg_max_depth = -1 - global.chemg_cursor_y = 0 - scr_84_draw_menu(global.chemg_menus, 10, yy, vspacing, global.chemg_menu_indices, 0, (global.chemg_menu_depth - 1)) - global.chemg_yoffset = min(10, (400 - (global.chemg_cursor_y - global.chemg_yoffset))) -} -var chemg_room_name = room_get_name(room) -if (global.chemg_god_mode > 0) - chemg_room_name = (chemg_room_name + "[god]") -if global.chemg_show_room -{ - draw_set_font(fnt_main) - draw_set_colour(c_white) - var chemg_x = (635 - string_width(chemg_room_name)) - var chemg_y = 5 - scr_84_draw_text_outline(chemg_x, chemg_y, chemg_room_name) -} -if global.chemg_font_test -{ - if (!variable_global_exists("chemg_font_init")) - { - global.chemg_font_init = 1 - var ft = fnt_tinynoelle - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = "NORMAL FONT" - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = "SLOWER, SILENT" - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = "normal enemy font." - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = "battle dialogue" - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = "NORMAL MAIN FONT" - ft[array_length_1d(ft)] = fnt_ja_small - ft[array_length_1d(ft)] = "NORMAL FONT BIG" - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = "toriel font" - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = "toriel font slow" - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = "susie font" - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = "ralsei font" - ft[array_length_1d(ft)] = 12 - ft[array_length_1d(ft)] = "noelle font" - ft[array_length_1d(ft)] = 13 - ft[array_length_1d(ft)] = "berdly font" - ft[array_length_1d(ft)] = 14 - ft[array_length_1d(ft)] = "sans font" - ft[array_length_1d(ft)] = 15 - ft[array_length_1d(ft)] = "pap font" - ft[array_length_1d(ft)] = 16 - ft[array_length_1d(ft)] = ")??? font" - ft[array_length_1d(ft)] = 17 - ft[array_length_1d(ft)] = "undyne font" - ft[array_length_1d(ft)] = 18 - ft[array_length_1d(ft)] = "asgore font" - ft[array_length_1d(ft)] = 19 - ft[array_length_1d(ft)] = "lancer font" - ft[array_length_1d(ft)] = 20 - ft[array_length_1d(ft)] = "alphys font" - ft[array_length_1d(ft)] = 21 - ft[array_length_1d(ft)] = "temmie font" - ft[array_length_1d(ft)] = 22 - ft[array_length_1d(ft)] = "alphys font small" - ft[array_length_1d(ft)] = 23 - ft[array_length_1d(ft)] = "noelle font small" - ft[array_length_1d(ft)] = 30 - ft[array_length_1d(ft)] = "susie dark world" - ft[array_length_1d(ft)] = 31 - ft[array_length_1d(ft)] = "ralsei dark world" - ft[array_length_1d(ft)] = 32 - ft[array_length_1d(ft)] = "lancer dark world" - ft[array_length_1d(ft)] = 33 - ft[array_length_1d(ft)] = "king dark world" - ft[array_length_1d(ft)] = 35 - ft[array_length_1d(ft)] = "joker dark world" - ft[array_length_1d(ft)] = 36 - ft[array_length_1d(ft)] = "NORMAL FONT SILENT" - ft[array_length_1d(ft)] = 37 - ft[array_length_1d(ft)] = "susie dark world slow, spaced." - ft[array_length_1d(ft)] = 40 - ft[array_length_1d(ft)] = "inteo" - ft[array_length_1d(ft)] = 41 - ft[array_length_1d(ft)] = "intro slower" - ft[array_length_1d(ft)] = 42 - ft[array_length_1d(ft)] = "big silent slower" - ft[array_length_1d(ft)] = 45 - ft[array_length_1d(ft)] = "battle dialogue ral" - ft[array_length_1d(ft)] = 46 - ft[array_length_1d(ft)] = "battle dialogue lan" - ft[array_length_1d(ft)] = 47 - ft[array_length_1d(ft)] = "battle dialogue sus" - ft[array_length_1d(ft)] = 48 - ft[array_length_1d(ft)] = "king dark world battle" - ft[array_length_1d(ft)] = 50 - ft[array_length_1d(ft)] = "enemy" - ft[array_length_1d(ft)] = 51 - ft[array_length_1d(ft)] = "hellish yak text" - ft[array_length_1d(ft)] = 52 - ft[array_length_1d(ft)] = "hellish yak text 2" - ft[array_length_1d(ft)] = 53 - ft[array_length_1d(ft)] = "enemy: Susie" - ft[array_length_1d(ft)] = 54 - ft[array_length_1d(ft)] = "enemy: Susie 2" - ft[array_length_1d(ft)] = 55 - ft[array_length_1d(ft)] = "rudy font" - ft[array_length_1d(ft)] = 60 - ft[array_length_1d(ft)] = "SLOWER, SILENT 2" - ft[array_length_1d(ft)] = 666 - ft[array_length_1d(ft)] = "GLOW TEXT" - ft[array_length_1d(ft)] = 667 - ft[array_length_1d(ft)] = "GLOW TEXT 2" - ft[array_length_1d(ft)] = -1 - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = -2 - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = -3 - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = -4 - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = -5 - ft[array_length_1d(ft)] = fnt_tinynoelle - ft[array_length_1d(ft)] = -6 - ft[array_length_1d(ft)] = fnt_ja_tinynoelle - ft[array_length_1d(ft)] = -7 - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = -8 - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = -9 - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = -10 - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = -11 - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = -12 - ft[array_length_1d(ft)] = fnt_ja_small - global.chemg_font_types = ft - global.chemg_font_type_ndx = 0 - } - ft = global.chemg_font_types - var num_types = (array_length_1d(ft) / 2) - change = 0 - if (keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padr)) - change = 1 - else if (keyboard_check_pressed(vk_left) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padl)) - change = -1 - global.chemg_font_type_ndx = (((global.chemg_font_type_ndx + change) + num_types) % num_types) - var fndx = (global.chemg_font_type_ndx * 2) - var xx = 10 - yy = 250 - strings[0] = "Pack my box with five" - strings[1] = "dozen liquor jugs." - strings[2] = "これは日本語です。" - strings[3] = "魔物に食われない!" - var typer = ft[fndx] - if (typer >= 0) - { - global.typer = typer - scr_texttype() - var font = myfont - var msg = ((((("(" + string(global.typer)) + ") ") + ft[(fndx + 1)]) + ", font: ") + font_get_name(myfont)) - vspacing = vspace - } - else - { - font = ft[(fndx + 1)] - msg = ("font: " + font_get_name(font)) - vspacing = (font_get_size(font) + 2) - } - draw_set_font(font) - draw_set_colour(c_white) - for (i = 0; i < array_length_1d(strings); i += 1) - { - var str = strings[i] - if (typer >= 0) - { - var len = string_length(str) - var wx = xx - for (var j = 1; j <= len; j += 1) - { - var mychar = string_copy(str, j, 1) - draw_text(wx, ((yy + 20) + (i * vspacing)), mychar) - wx += hspace - if (global.lang == "ja") - { - if (ord(mychar) < 256 || (ord(mychar) >= 65377 && ord(mychar) <= 65439)) - wx -= (hspace / 2) - } - } - } - else - draw_text(xx, ((yy + 20) + (i * vspacing)), str) - } - draw_set_colour(c_white) - draw_set_font(fnt_main) - draw_text(xx, yy, ("<-/-> to change typer: " + msg)) -} diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/6e1abb8e627c7a36cd8e6db11a829889/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index ad4546d6f..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,102 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index f2890f546..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,939 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index 81f18b2ac..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1277 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - ossafe_savedata_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 4d10561e9..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,479 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_get_element.gml deleted file mode 100644 index 0cccd2b46..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_84_debug.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_84_debug.gml deleted file mode 100644 index da6bc884f..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_84_debug.gml +++ /dev/null @@ -1,847 +0,0 @@ -var strings; -var process = argument0 -if (!variable_global_exists("chemg_menu_depth")) -{ - global.chemg_menu_indices = array_create(0) - global.chemg_menu_indices[0] = 0 - global.chemg_menu_depth = 0 - global.chemg_god_mode = 0 - global.chemg_show_room = 1 - global.chemg_font_test = 0 - var parent = ds_list_create() - show_debug_message("init debug") - var group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Options") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[loadj]", "", "reload japanese") - scr_84_add_menu_item(parent, "[lang]", "ja", "use japanese") - scr_84_add_menu_item(parent, "[lang]", "en", "use english") - scr_84_add_menu_item(parent, "[showroom]", "", "toggle room name") - scr_84_add_menu_item(parent, "[restart]", "", "restart room") - scr_84_add_menu_item(parent, "[god]", "", "god mode") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[item]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[item]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[item]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[item]", 4, "Manual") - scr_84_add_menu_item(parent, "[item]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[item]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[item]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[item]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[item]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[item]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[item]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[item]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[item]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[item]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[item]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give light item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[lightitem]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[lightitem]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[lightitem]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[lightitem]", 4, "Manual") - scr_84_add_menu_item(parent, "[lightitem]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[lightitem]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[lightitem]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[lightitem]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[lightitem]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[lightitem]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[lightitem]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[lightitem]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[lightitem]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[lightitem]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[lightitem]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give key item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[keyitem]", 1, "Cell Phone") - scr_84_add_menu_item(parent, "[keyitem]", 2, "Egg") - scr_84_add_menu_item(parent, "[keyitem]", 3, "BrokenCake") - scr_84_add_menu_item(parent, "[keyitem]", 4, "Broken Key A") - scr_84_add_menu_item(parent, "[keyitem]", 5, "Door Key") - scr_84_add_menu_item(parent, "[keyitem]", 6, "Broken Key B") - scr_84_add_menu_item(parent, "[keyitem]", 7, "Broken Key C") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give weapon") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[weaponitem]", 1, "Wood Blade") - scr_84_add_menu_item(parent, "[weaponitem]", 2, "Mane Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 3, "Red Scarf") - scr_84_add_menu_item(parent, "[weaponitem]", 4, "EverybodyWeapon") - scr_84_add_menu_item(parent, "[weaponitem]", 5, "Spookysword") - scr_84_add_menu_item(parent, "[weaponitem]", 6, "Brave Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 7, "Devilsknife") - scr_84_add_menu_item(parent, "[weaponitem]", 8, "Trefoil") - scr_84_add_menu_item(parent, "[weaponitem]", 9, "Ragger") - scr_84_add_menu_item(parent, "[weaponitem]", 10, "DaintyScarf") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give armor") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[armoritem]", 1, "Amber Card") - scr_84_add_menu_item(parent, "[armoritem]", 2, "Dice Brace") - scr_84_add_menu_item(parent, "[armoritem]", 3, "Pink Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 4, "White Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 5, "IronShackle") - scr_84_add_menu_item(parent, "[armoritem]", 6, "MouseToken") - scr_84_add_menu_item(parent, "[armoritem]", 7, "Jevilstail") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[phone]", "", "give phone number") - scr_84_add_menu_item(parent, "[gold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[gold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[lightgold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[lightgold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[fonttest]", "", "font test") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Rooms") - scr_84_push(parent) - parent = group - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - scr_84_add_menu_item(parent, "[room]", 145, "room_splashscreen") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "rooms") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 0, "ROOM_INITIALIZE") - scr_84_add_menu_item(parent, "[room]", 1, "PLACE_CONTACT") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[room]", 141, "room_empty") - scr_84_add_menu_item(parent, "[room]", 142, "room_man") - scr_84_add_menu_item(parent, "[roomdark]", 143, "room_DARKempty") - scr_84_add_menu_item(parent, "[room]", 144, "room_battletest") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - parent = scr_84_pop() - global.chemg_menus = parent -} -if process - return global.chemg_menu_depth > 0; -if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_stickr) -{ - global.chemg_menu_depth = 1 - global.chemg_interact = global.interact - global.chemg_yoffset = 0 - global.interact = 0 -} -if (global.chemg_menu_depth > 0) -{ - parent = global.chemg_menus - var change = 0 - var depth_ndx = (global.chemg_menu_depth - 1) - var i = 0 - do - { - var choice_ndx = global.chemg_menu_indices[i] - var choice = ds_list_find_value(parent, choice_ndx * 3) - var choice_data = ds_list_find_value(parent, choice_ndx * 3 + 1) - var choice_name = ds_list_find_value(parent, choice_ndx * 3 + 2) - i += 1 - if i == global.chemg_menu_depth - { - break; - } - parent = choice_data - } - until false; - var num_choices = (ds_list_size(parent) / 3) - if (keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padu)) - change = -1 - else if (keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padd)) - change = 1 - else if (keyboard_check_pressed(vk_return) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face2)) - { - if (choice == "[group]") - { - global.chemg_menu_indices[global.chemg_menu_depth] = 0 - global.chemg_menu_depth += 1 - } - else if (choice == "[loadj]") - { - var type = scr_84_lang_load() - show_debug_message((("loaded " + type) + " lang file")) - show_message((("loaded " + type) + " lang file")) - global.chemg_menu_depth = 0 - } - else if (choice == "[room]") - { - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[roomdark]") - { - show_debug_message(("room_goto: " + choice_name)) - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[lang]") - { - show_debug_message(("switch lang: " + choice_data)) - global.lang = choice_data - global.chemg_menu_depth = 0 - scr_84_init_localization() - room_restart() - } - else if (choice == "[restart]") - { - show_debug_message("restart room") - room_restart() - global.chemg_menu_depth = 0 - } - else if (choice == "[god]") - global.chemg_god_mode = (1 - global.chemg_god_mode) - else if (choice == "[lightitem]") - { - if (scr_litemcheck(choice_data) == 0) - scr_litemget(choice_data) - } - else if (choice == "[item]") - { - if (scr_itemcheck(choice_data) == 0) - scr_itemget(choice_data) - } - else if (choice == "[keyitem]") - { - if (scr_keyitemcheck(choice_data) == 0) - scr_keyitemget(choice_data) - } - else if (choice == "[weaponitem]") - { - if (scr_weaponcheck_inventory(choice_data) == 0) - scr_weaponget(choice_data) - } - else if (choice == "[armoritem]") - { - if (scr_armorcheck_inventory(choice_data) == 0) - scr_armorget(choice_data) - } - else if (choice == "[phone]") - scr_phoneadd(202) - else if (choice == "[gold]") - global.gold = max(0, (global.gold + choice_data)) - else if (choice == "[lightgold]") - global.lgold = max(0, (global.lgold + choice_data)) - else if (choice == "[showroom]") - global.chemg_show_room = (!global.chemg_show_room) - else if (choice == "[fonttest]") - { - global.chemg_font_test = (!global.chemg_font_test) - global.chemg_menu_depth = 0 - } - else - show_debug_message(("unknown menu cmd:" + choice)) - } - else if (keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face1)) - { - if (global.chemg_menu_depth > 0) - global.chemg_menu_depth -= 1 - if (global.chemg_menu_depth == 0) - global.interact = global.chemg_interact - } - for (i = 0; i < 10; i += 1) - { - global.input_pressed[i] = 0 - global.input_held[i] = 0 - global.input_released[i] = 0 - } - keyboard_clear(vk_up) - keyboard_clear(vk_down) - keyboard_clear(vk_left) - keyboard_clear(vk_right) - keyboard_clear(vk_escape) - keyboard_clear(vk_return) - if (change != 0) - global.chemg_menu_indices[depth_ndx] = (((global.chemg_menu_indices[depth_ndx] + num_choices) + change) % num_choices) - draw_set_font(fnt_main) - draw_set_colour(c_white) - draw_set_halign(fa_left) - draw_set_valign(fa_top) - var yy = global.chemg_yoffset - var vspacing = 15 - scr_84_draw_text_outline(10, yy, (((("====[ menu ]====[ gold: " + string(global.gold)) + " light gold: ") + string(global.lgold)) + " ]")) - yy += vspacing - global.chemg_max_depth = -1 - global.chemg_cursor_y = 0 - scr_84_draw_menu(global.chemg_menus, 10, yy, vspacing, global.chemg_menu_indices, 0, (global.chemg_menu_depth - 1)) - global.chemg_yoffset = min(10, (400 - (global.chemg_cursor_y - global.chemg_yoffset))) -} -var chemg_room_name = room_get_name(room) -if (global.chemg_god_mode > 0) - chemg_room_name = (chemg_room_name + "[god]") -if global.chemg_show_room -{ - draw_set_font(fnt_main) - draw_set_colour(c_white) - var chemg_x = (635 - string_width(chemg_room_name)) - var chemg_y = 5 - scr_84_draw_text_outline(chemg_x, chemg_y, chemg_room_name) -} -if global.chemg_font_test -{ - if (!variable_global_exists("chemg_font_init")) - { - global.chemg_font_init = 1 - var ft = fnt_tinynoelle - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = "NORMAL FONT" - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = "SLOWER, SILENT" - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = "normal enemy font." - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = "battle dialogue" - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = "NORMAL MAIN FONT" - ft[array_length_1d(ft)] = fnt_ja_small - ft[array_length_1d(ft)] = "NORMAL FONT BIG" - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = "toriel font" - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = "toriel font slow" - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = "susie font" - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = "ralsei font" - ft[array_length_1d(ft)] = 12 - ft[array_length_1d(ft)] = "noelle font" - ft[array_length_1d(ft)] = 13 - ft[array_length_1d(ft)] = "berdly font" - ft[array_length_1d(ft)] = 14 - ft[array_length_1d(ft)] = "sans font" - ft[array_length_1d(ft)] = 15 - ft[array_length_1d(ft)] = "pap font" - ft[array_length_1d(ft)] = 16 - ft[array_length_1d(ft)] = ")??? font" - ft[array_length_1d(ft)] = 17 - ft[array_length_1d(ft)] = "undyne font" - ft[array_length_1d(ft)] = 18 - ft[array_length_1d(ft)] = "asgore font" - ft[array_length_1d(ft)] = 19 - ft[array_length_1d(ft)] = "lancer font" - ft[array_length_1d(ft)] = 20 - ft[array_length_1d(ft)] = "alphys font" - ft[array_length_1d(ft)] = 21 - ft[array_length_1d(ft)] = "temmie font" - ft[array_length_1d(ft)] = 22 - ft[array_length_1d(ft)] = "alphys font small" - ft[array_length_1d(ft)] = 23 - ft[array_length_1d(ft)] = "noelle font small" - ft[array_length_1d(ft)] = 30 - ft[array_length_1d(ft)] = "susie dark world" - ft[array_length_1d(ft)] = 31 - ft[array_length_1d(ft)] = "ralsei dark world" - ft[array_length_1d(ft)] = 32 - ft[array_length_1d(ft)] = "lancer dark world" - ft[array_length_1d(ft)] = 33 - ft[array_length_1d(ft)] = "king dark world" - ft[array_length_1d(ft)] = 35 - ft[array_length_1d(ft)] = "joker dark world" - ft[array_length_1d(ft)] = 36 - ft[array_length_1d(ft)] = "NORMAL FONT SILENT" - ft[array_length_1d(ft)] = 37 - ft[array_length_1d(ft)] = "susie dark world slow, spaced." - ft[array_length_1d(ft)] = 40 - ft[array_length_1d(ft)] = "inteo" - ft[array_length_1d(ft)] = 41 - ft[array_length_1d(ft)] = "intro slower" - ft[array_length_1d(ft)] = 42 - ft[array_length_1d(ft)] = "big silent slower" - ft[array_length_1d(ft)] = 45 - ft[array_length_1d(ft)] = "battle dialogue ral" - ft[array_length_1d(ft)] = 46 - ft[array_length_1d(ft)] = "battle dialogue lan" - ft[array_length_1d(ft)] = 47 - ft[array_length_1d(ft)] = "battle dialogue sus" - ft[array_length_1d(ft)] = 48 - ft[array_length_1d(ft)] = "king dark world battle" - ft[array_length_1d(ft)] = 50 - ft[array_length_1d(ft)] = "enemy" - ft[array_length_1d(ft)] = 51 - ft[array_length_1d(ft)] = "hellish yak text" - ft[array_length_1d(ft)] = 52 - ft[array_length_1d(ft)] = "hellish yak text 2" - ft[array_length_1d(ft)] = 53 - ft[array_length_1d(ft)] = "enemy: Susie" - ft[array_length_1d(ft)] = 54 - ft[array_length_1d(ft)] = "enemy: Susie 2" - ft[array_length_1d(ft)] = 55 - ft[array_length_1d(ft)] = "rudy font" - ft[array_length_1d(ft)] = 60 - ft[array_length_1d(ft)] = "SLOWER, SILENT 2" - ft[array_length_1d(ft)] = 666 - ft[array_length_1d(ft)] = "GLOW TEXT" - ft[array_length_1d(ft)] = 667 - ft[array_length_1d(ft)] = "GLOW TEXT 2" - ft[array_length_1d(ft)] = -1 - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = -2 - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = -3 - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = -4 - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = -5 - ft[array_length_1d(ft)] = fnt_tinynoelle - ft[array_length_1d(ft)] = -6 - ft[array_length_1d(ft)] = fnt_ja_tinynoelle - ft[array_length_1d(ft)] = -7 - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = -8 - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = -9 - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = -10 - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = -11 - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = -12 - ft[array_length_1d(ft)] = fnt_ja_small - global.chemg_font_types = ft - global.chemg_font_type_ndx = 0 - } - ft = global.chemg_font_types - var num_types = (array_length_1d(ft) / 2) - change = 0 - if (keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padr)) - change = 1 - else if (keyboard_check_pressed(vk_left) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padl)) - change = -1 - global.chemg_font_type_ndx = (((global.chemg_font_type_ndx + change) + num_types) % num_types) - var fndx = (global.chemg_font_type_ndx * 2) - var xx = 10 - yy = 250 - strings[0] = "Pack my box with five" - strings[1] = "dozen liquor jugs." - strings[2] = "これは日本語です。" - strings[3] = "魔物に食われない!" - var typer = ft[fndx] - if (typer >= 0) - { - global.typer = typer - scr_texttype() - var font = myfont - var msg = ((((("(" + string(global.typer)) + ") ") + ft[(fndx + 1)]) + ", font: ") + font_get_name(myfont)) - vspacing = vspace - } - else - { - font = ft[(fndx + 1)] - msg = ("font: " + font_get_name(font)) - vspacing = (font_get_size(font) + 2) - } - draw_set_font(font) - draw_set_colour(c_white) - for (i = 0; i < array_length_1d(strings); i += 1) - { - var str = strings[i] - if (typer >= 0) - { - var len = string_length(str) - var wx = xx - for (var j = 1; j <= len; j += 1) - { - var mychar = string_copy(str, j, 1) - draw_text(wx, ((yy + 20) + (i * vspacing)), mychar) - wx += hspace - if (global.lang == "ja") - { - if (ord(mychar) < 256 || (ord(mychar) >= 65377 && ord(mychar) <= 65439)) - wx -= (hspace / 2) - } - } - } - else - draw_text(xx, ((yy + 20) + (i * vspacing)), str) - } - draw_set_colour(c_white) - draw_set_font(fnt_main) - draw_text(xx, yy, ("<-/-> to change typer: " + msg)) -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index 1d09600a3..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,21 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) - - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index f6477c8d7..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,395 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index ad4546d6f..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,102 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index f2890f546..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,939 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index 81f18b2ac..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1277 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - ossafe_savedata_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 4d10561e9..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,479 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index 0cccd2b46..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_84_debug.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_84_debug.gml deleted file mode 100644 index da6bc884f..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_84_debug.gml +++ /dev/null @@ -1,847 +0,0 @@ -var strings; -var process = argument0 -if (!variable_global_exists("chemg_menu_depth")) -{ - global.chemg_menu_indices = array_create(0) - global.chemg_menu_indices[0] = 0 - global.chemg_menu_depth = 0 - global.chemg_god_mode = 0 - global.chemg_show_room = 1 - global.chemg_font_test = 0 - var parent = ds_list_create() - show_debug_message("init debug") - var group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Options") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[loadj]", "", "reload japanese") - scr_84_add_menu_item(parent, "[lang]", "ja", "use japanese") - scr_84_add_menu_item(parent, "[lang]", "en", "use english") - scr_84_add_menu_item(parent, "[showroom]", "", "toggle room name") - scr_84_add_menu_item(parent, "[restart]", "", "restart room") - scr_84_add_menu_item(parent, "[god]", "", "god mode") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[item]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[item]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[item]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[item]", 4, "Manual") - scr_84_add_menu_item(parent, "[item]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[item]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[item]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[item]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[item]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[item]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[item]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[item]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[item]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[item]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[item]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give light item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[lightitem]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[lightitem]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[lightitem]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[lightitem]", 4, "Manual") - scr_84_add_menu_item(parent, "[lightitem]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[lightitem]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[lightitem]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[lightitem]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[lightitem]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[lightitem]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[lightitem]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[lightitem]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[lightitem]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[lightitem]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[lightitem]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give key item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[keyitem]", 1, "Cell Phone") - scr_84_add_menu_item(parent, "[keyitem]", 2, "Egg") - scr_84_add_menu_item(parent, "[keyitem]", 3, "BrokenCake") - scr_84_add_menu_item(parent, "[keyitem]", 4, "Broken Key A") - scr_84_add_menu_item(parent, "[keyitem]", 5, "Door Key") - scr_84_add_menu_item(parent, "[keyitem]", 6, "Broken Key B") - scr_84_add_menu_item(parent, "[keyitem]", 7, "Broken Key C") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give weapon") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[weaponitem]", 1, "Wood Blade") - scr_84_add_menu_item(parent, "[weaponitem]", 2, "Mane Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 3, "Red Scarf") - scr_84_add_menu_item(parent, "[weaponitem]", 4, "EverybodyWeapon") - scr_84_add_menu_item(parent, "[weaponitem]", 5, "Spookysword") - scr_84_add_menu_item(parent, "[weaponitem]", 6, "Brave Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 7, "Devilsknife") - scr_84_add_menu_item(parent, "[weaponitem]", 8, "Trefoil") - scr_84_add_menu_item(parent, "[weaponitem]", 9, "Ragger") - scr_84_add_menu_item(parent, "[weaponitem]", 10, "DaintyScarf") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give armor") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[armoritem]", 1, "Amber Card") - scr_84_add_menu_item(parent, "[armoritem]", 2, "Dice Brace") - scr_84_add_menu_item(parent, "[armoritem]", 3, "Pink Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 4, "White Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 5, "IronShackle") - scr_84_add_menu_item(parent, "[armoritem]", 6, "MouseToken") - scr_84_add_menu_item(parent, "[armoritem]", 7, "Jevilstail") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[phone]", "", "give phone number") - scr_84_add_menu_item(parent, "[gold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[gold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[lightgold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[lightgold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[fonttest]", "", "font test") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Rooms") - scr_84_push(parent) - parent = group - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - scr_84_add_menu_item(parent, "[room]", 145, "room_splashscreen") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "rooms") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 0, "ROOM_INITIALIZE") - scr_84_add_menu_item(parent, "[room]", 1, "PLACE_CONTACT") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[room]", 141, "room_empty") - scr_84_add_menu_item(parent, "[room]", 142, "room_man") - scr_84_add_menu_item(parent, "[roomdark]", 143, "room_DARKempty") - scr_84_add_menu_item(parent, "[room]", 144, "room_battletest") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - parent = scr_84_pop() - global.chemg_menus = parent -} -if process - return global.chemg_menu_depth > 0; -if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_stickr) -{ - global.chemg_menu_depth = 1 - global.chemg_interact = global.interact - global.chemg_yoffset = 0 - global.interact = 0 -} -if (global.chemg_menu_depth > 0) -{ - parent = global.chemg_menus - var change = 0 - var depth_ndx = (global.chemg_menu_depth - 1) - var i = 0 - do - { - var choice_ndx = global.chemg_menu_indices[i] - var choice = ds_list_find_value(parent, choice_ndx * 3) - var choice_data = ds_list_find_value(parent, choice_ndx * 3 + 1) - var choice_name = ds_list_find_value(parent, choice_ndx * 3 + 2) - i += 1 - if i == global.chemg_menu_depth - { - break; - } - parent = choice_data - } - until false; - var num_choices = (ds_list_size(parent) / 3) - if (keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padu)) - change = -1 - else if (keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padd)) - change = 1 - else if (keyboard_check_pressed(vk_return) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face2)) - { - if (choice == "[group]") - { - global.chemg_menu_indices[global.chemg_menu_depth] = 0 - global.chemg_menu_depth += 1 - } - else if (choice == "[loadj]") - { - var type = scr_84_lang_load() - show_debug_message((("loaded " + type) + " lang file")) - show_message((("loaded " + type) + " lang file")) - global.chemg_menu_depth = 0 - } - else if (choice == "[room]") - { - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[roomdark]") - { - show_debug_message(("room_goto: " + choice_name)) - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[lang]") - { - show_debug_message(("switch lang: " + choice_data)) - global.lang = choice_data - global.chemg_menu_depth = 0 - scr_84_init_localization() - room_restart() - } - else if (choice == "[restart]") - { - show_debug_message("restart room") - room_restart() - global.chemg_menu_depth = 0 - } - else if (choice == "[god]") - global.chemg_god_mode = (1 - global.chemg_god_mode) - else if (choice == "[lightitem]") - { - if (scr_litemcheck(choice_data) == 0) - scr_litemget(choice_data) - } - else if (choice == "[item]") - { - if (scr_itemcheck(choice_data) == 0) - scr_itemget(choice_data) - } - else if (choice == "[keyitem]") - { - if (scr_keyitemcheck(choice_data) == 0) - scr_keyitemget(choice_data) - } - else if (choice == "[weaponitem]") - { - if (scr_weaponcheck_inventory(choice_data) == 0) - scr_weaponget(choice_data) - } - else if (choice == "[armoritem]") - { - if (scr_armorcheck_inventory(choice_data) == 0) - scr_armorget(choice_data) - } - else if (choice == "[phone]") - scr_phoneadd(202) - else if (choice == "[gold]") - global.gold = max(0, (global.gold + choice_data)) - else if (choice == "[lightgold]") - global.lgold = max(0, (global.lgold + choice_data)) - else if (choice == "[showroom]") - global.chemg_show_room = (!global.chemg_show_room) - else if (choice == "[fonttest]") - { - global.chemg_font_test = (!global.chemg_font_test) - global.chemg_menu_depth = 0 - } - else - show_debug_message(("unknown menu cmd:" + choice)) - } - else if (keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face1)) - { - if (global.chemg_menu_depth > 0) - global.chemg_menu_depth -= 1 - if (global.chemg_menu_depth == 0) - global.interact = global.chemg_interact - } - for (i = 0; i < 10; i += 1) - { - global.input_pressed[i] = 0 - global.input_held[i] = 0 - global.input_released[i] = 0 - } - keyboard_clear(vk_up) - keyboard_clear(vk_down) - keyboard_clear(vk_left) - keyboard_clear(vk_right) - keyboard_clear(vk_escape) - keyboard_clear(vk_return) - if (change != 0) - global.chemg_menu_indices[depth_ndx] = (((global.chemg_menu_indices[depth_ndx] + num_choices) + change) % num_choices) - draw_set_font(fnt_main) - draw_set_colour(c_white) - draw_set_halign(fa_left) - draw_set_valign(fa_top) - var yy = global.chemg_yoffset - var vspacing = 15 - scr_84_draw_text_outline(10, yy, (((("====[ menu ]====[ gold: " + string(global.gold)) + " light gold: ") + string(global.lgold)) + " ]")) - yy += vspacing - global.chemg_max_depth = -1 - global.chemg_cursor_y = 0 - scr_84_draw_menu(global.chemg_menus, 10, yy, vspacing, global.chemg_menu_indices, 0, (global.chemg_menu_depth - 1)) - global.chemg_yoffset = min(10, (400 - (global.chemg_cursor_y - global.chemg_yoffset))) -} -var chemg_room_name = room_get_name(room) -if (global.chemg_god_mode > 0) - chemg_room_name = (chemg_room_name + "[god]") -if global.chemg_show_room -{ - draw_set_font(fnt_main) - draw_set_colour(c_white) - var chemg_x = (635 - string_width(chemg_room_name)) - var chemg_y = 5 - scr_84_draw_text_outline(chemg_x, chemg_y, chemg_room_name) -} -if global.chemg_font_test -{ - if (!variable_global_exists("chemg_font_init")) - { - global.chemg_font_init = 1 - var ft = fnt_tinynoelle - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = "NORMAL FONT" - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = "SLOWER, SILENT" - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = "normal enemy font." - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = "battle dialogue" - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = "NORMAL MAIN FONT" - ft[array_length_1d(ft)] = fnt_ja_small - ft[array_length_1d(ft)] = "NORMAL FONT BIG" - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = "toriel font" - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = "toriel font slow" - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = "susie font" - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = "ralsei font" - ft[array_length_1d(ft)] = 12 - ft[array_length_1d(ft)] = "noelle font" - ft[array_length_1d(ft)] = 13 - ft[array_length_1d(ft)] = "berdly font" - ft[array_length_1d(ft)] = 14 - ft[array_length_1d(ft)] = "sans font" - ft[array_length_1d(ft)] = 15 - ft[array_length_1d(ft)] = "pap font" - ft[array_length_1d(ft)] = 16 - ft[array_length_1d(ft)] = ")??? font" - ft[array_length_1d(ft)] = 17 - ft[array_length_1d(ft)] = "undyne font" - ft[array_length_1d(ft)] = 18 - ft[array_length_1d(ft)] = "asgore font" - ft[array_length_1d(ft)] = 19 - ft[array_length_1d(ft)] = "lancer font" - ft[array_length_1d(ft)] = 20 - ft[array_length_1d(ft)] = "alphys font" - ft[array_length_1d(ft)] = 21 - ft[array_length_1d(ft)] = "temmie font" - ft[array_length_1d(ft)] = 22 - ft[array_length_1d(ft)] = "alphys font small" - ft[array_length_1d(ft)] = 23 - ft[array_length_1d(ft)] = "noelle font small" - ft[array_length_1d(ft)] = 30 - ft[array_length_1d(ft)] = "susie dark world" - ft[array_length_1d(ft)] = 31 - ft[array_length_1d(ft)] = "ralsei dark world" - ft[array_length_1d(ft)] = 32 - ft[array_length_1d(ft)] = "lancer dark world" - ft[array_length_1d(ft)] = 33 - ft[array_length_1d(ft)] = "king dark world" - ft[array_length_1d(ft)] = 35 - ft[array_length_1d(ft)] = "joker dark world" - ft[array_length_1d(ft)] = 36 - ft[array_length_1d(ft)] = "NORMAL FONT SILENT" - ft[array_length_1d(ft)] = 37 - ft[array_length_1d(ft)] = "susie dark world slow, spaced." - ft[array_length_1d(ft)] = 40 - ft[array_length_1d(ft)] = "inteo" - ft[array_length_1d(ft)] = 41 - ft[array_length_1d(ft)] = "intro slower" - ft[array_length_1d(ft)] = 42 - ft[array_length_1d(ft)] = "big silent slower" - ft[array_length_1d(ft)] = 45 - ft[array_length_1d(ft)] = "battle dialogue ral" - ft[array_length_1d(ft)] = 46 - ft[array_length_1d(ft)] = "battle dialogue lan" - ft[array_length_1d(ft)] = 47 - ft[array_length_1d(ft)] = "battle dialogue sus" - ft[array_length_1d(ft)] = 48 - ft[array_length_1d(ft)] = "king dark world battle" - ft[array_length_1d(ft)] = 50 - ft[array_length_1d(ft)] = "enemy" - ft[array_length_1d(ft)] = 51 - ft[array_length_1d(ft)] = "hellish yak text" - ft[array_length_1d(ft)] = 52 - ft[array_length_1d(ft)] = "hellish yak text 2" - ft[array_length_1d(ft)] = 53 - ft[array_length_1d(ft)] = "enemy: Susie" - ft[array_length_1d(ft)] = 54 - ft[array_length_1d(ft)] = "enemy: Susie 2" - ft[array_length_1d(ft)] = 55 - ft[array_length_1d(ft)] = "rudy font" - ft[array_length_1d(ft)] = 60 - ft[array_length_1d(ft)] = "SLOWER, SILENT 2" - ft[array_length_1d(ft)] = 666 - ft[array_length_1d(ft)] = "GLOW TEXT" - ft[array_length_1d(ft)] = 667 - ft[array_length_1d(ft)] = "GLOW TEXT 2" - ft[array_length_1d(ft)] = -1 - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = -2 - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = -3 - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = -4 - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = -5 - ft[array_length_1d(ft)] = fnt_tinynoelle - ft[array_length_1d(ft)] = -6 - ft[array_length_1d(ft)] = fnt_ja_tinynoelle - ft[array_length_1d(ft)] = -7 - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = -8 - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = -9 - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = -10 - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = -11 - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = -12 - ft[array_length_1d(ft)] = fnt_ja_small - global.chemg_font_types = ft - global.chemg_font_type_ndx = 0 - } - ft = global.chemg_font_types - var num_types = (array_length_1d(ft) / 2) - change = 0 - if (keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padr)) - change = 1 - else if (keyboard_check_pressed(vk_left) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padl)) - change = -1 - global.chemg_font_type_ndx = (((global.chemg_font_type_ndx + change) + num_types) % num_types) - var fndx = (global.chemg_font_type_ndx * 2) - var xx = 10 - yy = 250 - strings[0] = "Pack my box with five" - strings[1] = "dozen liquor jugs." - strings[2] = "これは日本語です。" - strings[3] = "魔物に食われない!" - var typer = ft[fndx] - if (typer >= 0) - { - global.typer = typer - scr_texttype() - var font = myfont - var msg = ((((("(" + string(global.typer)) + ") ") + ft[(fndx + 1)]) + ", font: ") + font_get_name(myfont)) - vspacing = vspace - } - else - { - font = ft[(fndx + 1)] - msg = ("font: " + font_get_name(font)) - vspacing = (font_get_size(font) + 2) - } - draw_set_font(font) - draw_set_colour(c_white) - for (i = 0; i < array_length_1d(strings); i += 1) - { - var str = strings[i] - if (typer >= 0) - { - var len = string_length(str) - var wx = xx - for (var j = 1; j <= len; j += 1) - { - var mychar = string_copy(str, j, 1) - draw_text(wx, ((yy + 20) + (i * vspacing)), mychar) - wx += hspace - if (global.lang == "ja") - { - if (ord(mychar) < 256 || (ord(mychar) >= 65377 && ord(mychar) <= 65439)) - wx -= (hspace / 2) - } - } - } - else - draw_text(xx, ((yy + 20) + (i * vspacing)), str) - } - draw_set_colour(c_white) - draw_set_font(fnt_main) - draw_text(xx, yy, ("<-/-> to change typer: " + msg)) -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index 1d09600a3..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,21 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) - - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index f6477c8d7..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,395 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/741ad8ab49a08226af7e1b13b64d4e55/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml deleted file mode 100644 index bb5b6bacc..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_backgrounder_dock_Other_10.gml +++ /dev/null @@ -1,16 +0,0 @@ -gg = (room_width - view_wview[0]) -hh = (room_height - view_hview[0]) -if (view_xview[0] >= 0 && view_xview < gg) -{ - x = (xhome + floor((view_xview[0] - (view_xview[0] * scrollspeed)))) - g = (x - xprevious) - tile_layer_shift(1000100, g, 0) - tile_layer_shift(1000002, (g / 2), 0) -} -if (view_yview[0] >= 0 && view_yview[0] < hh) -{ - y = (yhome + floor((view_yview[0] - (view_yview[0] * scrollspeed)))) - h = (y - yprevious) - tile_layer_shift(1000100, 0, h) - tile_layer_shift(1000002, 0, (h / 2)) -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 27e597103..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,437 +0,0 @@ -var halfsize, n, ch, myletter, newtyper, sym, sym_s, icontype, sprite, spritex, spritey, icon_scale, choiceindex, nextch, letterx, offsetx, offsety, halfscale, unit, lastch, angle, display_scale, finalx, finaly; -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -halfsize = 0 -for (n = 1; n <= stringpos; n++) -{ - ch = string_char_at(originalstring, n) - myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = $FDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = $D4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - spritex = myx - spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (view_wview[view_current] == 640) - myx *= 2 - myx += view_xview[view_current] - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - letterx = myx - offsetx = 0 - offsety = 0 - halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(myletter) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - display_scale = (surface_get_width(application_surface) / view_wview[view_current]) - finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, myletter, (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(myletter) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index 4d4abdc76..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,22 +0,0 @@ -var msgid_base, i, text, xx; -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (i = 0; true; i++) -{ - text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_iceflag_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_iceflag_Draw_0.gml deleted file mode 100644 index 04d5e54f0..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_iceflag_Draw_0.gml +++ /dev/null @@ -1,12 +0,0 @@ -draw_self_custom(0, 9999, 0, (ystart + 40)) -if (yoff > 1) - y -= 1 -yoff -= 1 -if (x > (view_xview + view_wview[0])) - instance_destroy() -if (x < (view_xview - 10)) - instance_destroy() -if (y > ((view_yview + view_hview) + 30)) - instance_destroy() -if (y < view_yview) - instance_destroy() diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 0e0ce792f..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,445 +0,0 @@ -var vspacing, button_x, xx, stext, analog_text_width, sensebar_x; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, scr_gettext("joyconfig_title"), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, scr_gettext("joyconfig_title"), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -vspacing = 15 -if (global.language == "ja") - vspacing = 16 -button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), itext) - xx = ((20 + string_width(itext)) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), stext) - draw_set_color(c_white) -} -button_x += string_width(stext) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(scr_gettext("joyconfig_prompt_button"))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), scr_gettext("joyconfig_prompt_button")) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, scr_gettext("joyconfig_analog_sens")) -analog_text_width = string_width(scr_gettext("joyconfig_analog_sens")) -sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(scr_gettext("joyconfig_analog_sens_sq"))) - draw_text_transformed(20, (135 + vspacing), scr_gettext("joyconfig_analog_sens_sq"), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, scr_gettext("joyconfig_dir_choice")) -if (global.joy_dir == 0) - draw_text(100, 170, scr_gettext("joyconfig_dir_normal")) -if (global.joy_dir == 1) - draw_text(100, 170, scr_gettext("joyconfig_dir_analog")) -if (global.joy_dir == 2) - draw_text(100, 170, scr_gettext("joyconfig_dir_pov")) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), scr_gettext("joyconfig_reset")) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), scr_gettext("joyconfig_test")) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_test_fall"), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml deleted file mode 100644 index 8f35ee720..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_monsterkidtrigger7_Step_0.gml +++ /dev/null @@ -1,752 +0,0 @@ -if (con == 1) -{ - mkid = instance_create((view_xview[0] - 40), obj_mainchara.y, obj_mkid_actor) - mkid.image_speed = 0 - obj_mainchara.cutscene = true - view_object[0] = noone - mkid.sprite_index = mkid.rsprite - con = 0.1 - alarm[4] = 2 - vol = caster_get_volume(global.currentsong) - vol2 = vol -} -if (con == 1.1) -{ - con = 0.2 - alarm[4] = 2 -} -if (con == 1.2) -{ - con = 1.3 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_124") - scr_regulartext() -} -if (con == 1.3 && instance_exists(OBJ_WRITER) == 0) -{ - con = 2 - alarm[4] = 50 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - if (vol > 0) - vol -= 0.02 - caster_set_volume(global.currentsong, vol) - view_xview -= 2 -} -if (con == 3) -{ - global.facing = 3 - caster_pause(global.currentsong) - mkid.image_speed = 0.2 - mkid.hspeed = 1 - con = 4 - alarm[4] = 20 - if (global.tempvalue[13] == 1) - { - alarm[4] = 50 - con = 13 - mkid.image_speed = 0.25 - mkid.hspeed = 3 - mkid.sprite_index = mkid.rsprite - } -} -if (con == 5) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 6 - alarm[4] = 50 -} -if (con == 7) -{ - mkid.hspeed = 1 - mkid.image_speed = 0.2 - con = 8 - alarm[4] = 130 -} -if (con == 9) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 10 - alarm[4] = 30 -} -if (con == 10) -{ - mkid.sprite_index = mkid.dtsprite - con = 11 - alarm[4] = 30 -} -if (con == 12) -{ - mkid.sprite_index = mkid.rtsprite - con = 13 - alarm[4] = 40 -} -if (con == 14) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = mkid.rtsprite - global.msc = 623 - global.typer = 5 - global.facechoice = 0 - con = 15 - if (murder == 1) - { - con = 150 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_214") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_215") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_216") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_217") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_218") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_219") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_220") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_221") - if (global.tempvalue[13] == 1) - { - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_225") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_226") - con = 157 - } - } - instance_create(0, 0, obj_dialoguer) -} -if (con == 15 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = mkid.rsprite - con = 16 - alarm[4] = 30 -} -if (con == 17) -{ - mkid.hspeed = -1 - con = 18 - alarm[4] = 15 - mkid.image_speed = 0.2 -} -if (con == 19) -{ - mkid.hspeed = 0 - alarm[4] = 60 - mkid.image_speed = 0 - mkid.image_index = 0 - con = 20 -} -if (con == 21) -{ - mkid.sprite_index = mkid.lsprite - mkid.hspeed = -3 - alarm[4] = 15 - mkid.image_speed = 0.5 - con = 20.1 -} -if (con == 21.1) -{ - mkid.hspeed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_trip_l - mkid.image_speed = 0 - mkiddex = 0 - con = 22 - alarm[4] = 18 -} -if (con == 22) -{ - mkiddex += 0.25 - if (mkiddex >= 2) - mkiddex = 0 - if (mkiddex < 1) - mkid.image_index = 0 - else - mkid.image_index = 1 -} -if (con == 23) -{ - mkid.image_index = 0 - mkid.sprite_index = mkid.usprite - mkid.hspeed = -1 - mkid.vspeed = 2 - con = 24 - alarm[4] = 15 -} -if (con == 25) -{ - mkid.sprite_index = mkid.usprite - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.vspeed = 0 - con = 26 - alarm[4] = 10 -} -if (con == 27) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_309") - interact = instance_create(mkid.x, (mkid.y + 10), obj_readable_room1) - interact.image_xscale = 0.5 - interact.x += 5 - scr_regulartext() - con = 28 -} -if (con == 28 && instance_exists(OBJ_WRITER) == 0) -{ - undyne = instance_create((view_xview[0] - 40), 82, obj_undynea_actor) - undyne.sprite_index = undyne.rsprite - undyne.hspeed = 2 - undyne.image_speed = 0.2 - con = 29 - alarm[4] = 20 -} -if (con == 30) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 31 - alarm[4] = 30 -} -if (con == 32) -{ - undyne.sprite_index = spr_undyne_armraise - snd_play(snd_spearappear) - con = 33 - alarm[4] = 20 -} -if (con == 34) -{ - undyne.sprite_index = undyne.rsprite - global.interact = 0 - con = 35 - global.flag[17] = 1 - doorb = instance_create((view_xview - 20), (obj_mainchara.y + 10), obj_doorB) - doora = instance_create(((view_xview + view_wview) + 20), (obj_mainchara.y + 10), obj_doorA) - undynetimer = 0 - finaltimer = 0 - mkidtalk = 0 - charge = 0 - samex = obj_mainchara.x -} -if (con == 35) -{ - ll = 0 - finaltimer += 1 - undynetimer += 1 - if (undynetimer > 60) - { - undyne.hspeed = 1 - undyne.image_speed = 0.25 - } - if (undynetimer > 75) - { - undyne.hspeed = 0 - undyne.image_speed = 0 - undynetimer = 0 - } - if (finaltimer > 150 && global.interact == 0 && mkidtalk == 0 && abs((obj_mainchara.x - samex)) < 10) - { - mkidtalk = 1 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_379") - scr_regulartext() - global.interact = 1 - } - if (mkidtalk == 1 && instance_exists(OBJ_WRITER) == 0) - { - global.interact = 0 - mkidtalk = 2 - } - if (finaltimer > 500) - ll = 1 - if (obj_mainchara.x < (undyne.x + 40)) - { - ll = 1 - charge = 1 - } - able = 0 - if (ll == 1 && global.interact == 0) - able = 1 - if (ll == 1 && mkidtalk == 1) - able = 1 - if (able == 1) - { - with (obj_dialoguer) - instance_destroy() - with (OBJ_WRITER) - instance_destroy() - con = 50 - global.interact = 1 - } -} -if (con == 50) -{ - undyne.sprite_index = undyne.dsprite - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_417") - scr_regulartext() - con = 51 -} -if (con == 51 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.vspeed = 0.5 - con = 50.1 - alarm[4] = 20 -} -if (con == 51.1) -{ - mkid.vspeed = 0 - con = 50.2 - alarm[4] = 30 -} -if (con == 51.2) -{ - blcon = instance_create((undyne.x + 10), (undyne.y - 15), obj_cosmeticblcon) - mkid.vspeed = 4 - con = 54 - alarm[4] = 30 -} -if (con == 55) -{ - with (blcon) - instance_destroy() - undyne.sprite_index = spr_undyne_jump0 - con = 56 - alarm[4] = 30 -} -if (con == 57) -{ - undyne.sprite_index = spr_undyne_jump1 - snd_play(snd_spearrise) - undyne.vspeed = -8 - undyne.gravity = 0.6 - undyne.gravity_direction = 270 - undyne.hspeed = 0.5 - con = 58 - alarm[4] = 20 -} -if (con == 59) -{ - snd_play(snd_fall) - con = 60 - alarm[4] = 90 -} -if (con == 61) -{ - snd_play(snd_undynestep) - con = 62 - alarm[4] = 20 -} -if (con == 63) -{ - snd_play(snd_grab) - con = 69 - alarm[4] = 80 -} -if (con == 70) -{ - global.facing = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_490") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_491") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_492") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_493") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_494") - if (charge == 1) - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_495") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_496") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_497") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_498") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_499") - global.msg[9] = scr_gettext("obj_monsterkidtrigger7_500") - global.msg[10] = scr_gettext("obj_monsterkidtrigger7_501") - scr_regulartext() - con = 71 -} -if (con == 71 && instance_exists(OBJ_WRITER) == 0) -{ - global.flag[98] = 2 - con = 72 -} -if (con == 72 && instance_exists(OBJ_WRITER) == 0) -{ - con = 73 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (idealxview >= (room_width - view_wview[0])) - idealxview = ((room_width - view_wview[0]) - 2) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 74) -{ - if (xdir == 1) - view_xview[0] += 4 - else - view_xview[0] -= 4 - if (abs((view_xview[0] - idealxview)) <= 5) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 80) -{ - with (interact) - instance_destroy() - global.interact = 1 - con = 81 - alarm[4] = 30 -} -if (con == 82) -{ - if (undyne.x > (view_xview[0] + 20)) - { - undyne.hspeed = -1 - undyne.image_speed = 0.12 - } - if (mkid.x <= obj_mainchara.x) - mkid.hspeed = -0.8 - if (mkid.x > obj_mainchara.x) - mkid.hspeed = 0.8 - mkid.vspeed = -1 - con = 83 - alarm[4] = 28 -} -if (con == 84) -{ - undyne.hspeed = 0 - undyne.image_index = 0 - undyne.hspeed = 0 - mkid.vspeed = 0 - mkid.hspeed = 0 - mkid.x = round(mkid.x) - if (obj_mainchara.x > mkid.x) - mkid.sprite_index = mkid.rtsprite - else - mkid.sprite_index = mkid.ltsprite - mkid.image_index = 0 - mkid.image_speed = 0 - con = 85 - alarm[4] = 40 -} -if (con == 86) -{ - undyne.hspeed = 0.5 - undyne.image_speed = 0.25 - blcon = instance_create(mkid.x, (mkid.y - 10), obj_cosmeticblcon) - con = 87 - alarm[4] = 16 -} -if (con == 88) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - with (blcon) - instance_destroy() - mkid.sprite_index = mkid.lsprite - con = 89 - alarm[4] = 30 -} -if (con == 90) -{ - if (mkid.x > obj_mainchara.x) - mkid.hspeed = -5 - else - mkid.hspeed = -0.5 - mkid.image_speed = 0.25 - con = 91 - alarm[4] = 10 -} -if (con == 92) -{ - mkid.hspeed = 0 - mkid.image_speed = 0 - con = 93 - alarm[4] = 30 -} -if (con == 94) -{ - mkid.sprite_index = mkid.ltsprite - mkid.image_speed = 0.25 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_643") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_644") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_645") - scr_regulartext() - con = 95 -} -if (con == 95 && instance_exists(OBJ_WRITER) == 0) -{ - con = 96 - alarm[4] = 30 -} -if (con == 97) -{ - mkid.image_speed = 0 - mkid.image_index = 0 - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98 - alarm[4] = 20 -} -if (con == 99) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 98.1 - alarm[4] = 30 -} -if (con == 99.1) -{ - undyne.hspeed = -0.5 - undyne.image_speed = 0.2 - undyne.image_index = 0 - con = 98.2 - alarm[4] = 20 -} -if (con == 99.2) -{ - undyne.hspeed = 0 - undyne.image_speed = 0 - undyne.image_index = 0 - con = 100 - alarm[4] = 60 -} -if (con == 101) -{ - undyne.sprite_index = undyne.lsprite - undyne.hspeed = -2 - undyne.image_speed = 0.25 - con = 102 - alarm[4] = 90 -} -if (con == 103) -{ - with (undyne) - instance_destroy() - con = 104 - mkid.sprite_index = mkid.rtsprite - alarm[4] = 30 -} -if (con == 105) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_714") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_715") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_716") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_717") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_718") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_719") - con = 106 - scr_regulartext() -} -if (con == 106 && instance_exists(OBJ_WRITER) == 0) -{ - con = 107 - alarm[4] = 20 -} -if (con == 108) -{ - mkid.sprite_index = mkid.lsprite - mkid.image_speed = 0.25 - mkid.hspeed = -1 - con = 109 - alarm[4] = 30 -} -if (con == 110) -{ - mkid.image_speed = 0 - mkid.hspeed = 0 - mkid.image_index = 0 - con = 111 - alarm[4] = 30 -} -if (con == 112) -{ - mkid.sprite_index = mkid.rtsprite - con = 113 - alarm[4] = 30 -} -if (con == 114) -{ - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_757") - scr_regulartext() - con = 115 -} -if (con == 115 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 116 - idealxview = round(((obj_mainchara.x - (view_wview[0] / 2)) + (obj_mainchara.sprite_width / 2))) - if (view_xview[0] > idealxview) - xdir = 0 - else - xdir = 1 - alarm[4] = 40 -} -if (con == 117) -{ - if (xdir == 1) - view_xview[0] += 2 - else - view_xview[0] -= 2 - if (abs((view_xview[0] - idealxview)) <= 2) - { - with (mkid) - instance_destroy() - view_object[0] = obj_mainchara - obj_mainchara.cutscene = false - with (doora) - instance_destroy() - with (doorb) - instance_destroy() - global.plot = 120 - global.flag[98] = 1 - caster_free(global.currentsong) - global.interact = 0 - instance_destroy() - } -} -if (con == 150 && instance_exists(OBJ_WRITER) == 1) -{ - if (OBJ_WRITER.stringno == 6) - global.facing = 2 -} -if (con == 150 && instance_exists(OBJ_WRITER) == 0) -{ - global.facing = 3 - obj_mainchara.hspeed = -2 - obj_mainchara.moving = 1 - obj_mainchara.image_speed = 0.25 - con = 151 - alarm[4] = 5 -} -if (con == 152) -{ - mkid.hspeed = -2 - mkid.sprite_index = spr_mkid_r - mkid.image_speed = 0.25 - con = 153 - alarm[4] = 10 -} -if (con == 154) -{ - obj_mainchara.hspeed = 0 - mkid.hspeed = 0 - mkid.image_speed = 0 - mkid.image_index = 0 - mkid.sprite_index = spr_mkid_rt - con = 155 - alarm[4] = 30 -} -if (con == 156) -{ - global.msc = 0 - global.typer = 5 - global.facechoice = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_836") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_837") - global.msg[2] = scr_gettext("obj_monsterkidtrigger7_838") - global.msg[3] = scr_gettext("obj_monsterkidtrigger7_839") - global.msg[4] = scr_gettext("obj_monsterkidtrigger7_840") - global.msg[5] = scr_gettext("obj_monsterkidtrigger7_841") - global.msg[6] = scr_gettext("obj_monsterkidtrigger7_842") - global.msg[7] = scr_gettext("obj_monsterkidtrigger7_843") - global.msg[8] = scr_gettext("obj_monsterkidtrigger7_844") - instance_create(0, 0, obj_dialoguer) - con = 157 -} -if (con == 157 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - mkid.sprite_index = spr_mkid_lt - if (OBJ_WRITER.stringno == 4) - mkid.sprite_index = spr_mkid_rt -} -if (con == 157 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.sprite_index = spr_mkid_rt - global.battlegroup = 91 - global.seriousbattle = 1 - global.mercy = 1 - instance_create(0, 0, obj_battler) - con = 158 - alarm[4] = 32 -} -if (con == 159) -{ - global.seriousbattle = 0 - global.mercy = 0 - global.interact = 1 - con = 160 - alarm[4] = 30 -} -if (con == 160) -{ - obj_mainchara.cutscene = false - view_object[0] = obj_mainchara - con = 160.1 - global.interact = 1 - alarm[4] = 30 - if (global.flag[350] == 1) - { - with (mkid) - instance_destroy() - con = 170 - alarm[4] = -1 - } - global.interact = 1 -} -if (con == 160.1) - global.interact = 1 -if (con == 161.1) -{ - global.interact = 1 - global.typer = 5 - global.facechoice = 0 - global.msc = 0 - global.msg[0] = scr_gettext("obj_monsterkidtrigger7_901") - global.msg[1] = scr_gettext("obj_monsterkidtrigger7_902") - instance_create(0, 0, obj_dialoguer) - con = 162 -} -if (con == 162) - global.interact = 1 -if (con == 162 && instance_exists(OBJ_WRITER) == 0) -{ - mkid.hspeed = -4 - mkid.image_speed = 0.5 - mkid.sprite_index = mkid.lsprite - con = 163 - alarm[4] = 40 -} -if (con == 164) - con = 170 -if (con == 170) -{ - global.facing = 0 - global.interact = 0 - if (global.plot < 120) - global.plot = 120 - con = 171 - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 945fd52bc..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index 8433d63d5..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,86 +0,0 @@ -var i, Won, CP, CH, BW, BP, BH, EndF; -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - exit -} -num_borders = 10 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - BW = ini_read_real("General", "BW", 0) - BP = ini_read_real("General", "BP", 0) - BH = ini_read_real("General", "BH", 0) - EndF = ini_read_real("EndF", "EndF", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 9205da15d..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,303 +0,0 @@ -var menu_max, vspacing, button_x, i, itext, xx, button, b, command, sprite, border_label, border_sel; -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_winter"), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_spring"), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_summer"), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), scr_gettext("joyconfig_fun_fall"), 1, 1, -20) -} -menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, scr_gettext("joyconfig_exit")) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, scr_gettext("settings_language")) -draw_text(92, 70, scr_gettext(("settings_language_" + global.language))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, scr_gettext("settings_button")) - vspacing = 18 - button_x = 0 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), itext) - draw_set_color(c_white) - xx = (40 + string_width(itext)) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - button = -4 - for (b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check(0, button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - command = string_char_at("ZXC", (i + 1)) - sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), scr_gettext("joyconfig_reset")) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), border_label) - if (global.screen_border_id == 0) - border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == -1) - border_sel = "@!%&" - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(border_label)) + 20), ((100 + (3 * vspacing)) + 50), border_sel) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, scr_gettext("settings_joyconfig")) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 2b5101147..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, scr_gettext("shop_exit_submenu")) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_undyneencounter1_Step_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_undyneencounter1_Step_0.gml deleted file mode 100644 index 7ef1c46aa..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_undyneencounter1_Step_0.gml +++ /dev/null @@ -1,136 +0,0 @@ -if (active == true) -{ - if instance_exists(obj_mainchara) - { - if (cn == 0 && global.interact == 0 && obj_mainchara.x > x) - { - global.interact = 1 - undyne.image_alpha = 0 - cn = 0.1 - ou = instance_create(0, 0, obj_musfadeout) - ou.fadespeed = 0.05 - snd_play(snd_arrow) - ar = instance_create((x + 30), -220, obj_npc_marker) - ar.visible = true - ar.sprite_index = spr_undynespear - ar.image_angle = -90 - ar.vspeed = 24 - ar.friction = -0.3 - } - } - if (cn == 0.1) - { - if (ar.y > 160) - { - ar.image_angle = 0 - ar.sprite_index = spr_undynespear_stabbed - ar.y += ar.vspeed - ar.vspeed = 0 - snd_play(snd_impact) - instance_create(0, 0, obj_flasher) - scr_shake(4, 4, 2) - cn = 0.2 - alarm[4] = 50 - instance_create(40, 180, obj_solidsmall) - instance_create(40, 200, obj_solidsmall) - instance_create(40, 220, obj_solidsmall) - yad = 0 - repeat (5) - { - ar2 = instance_create((50 - yad), (210 - (yad * 6)), obj_npc_marker) - ar2.visible = true - ar2.sprite_index = spr_undynespear_stabbed - yad += 2 - } - } - } - if (cn == 1.2) - { - if (ar.image_alpha > 0.02) - ar.image_alpha -= 0.1 - if (view_yview[0] > 10) - view_yview -= 5 - else - cn = 2 - } - if (cn == 2) - { - caster_play(ushock, 1, 1) - cn = 3 - alarm[4] = 30 - } - if (cn == 3) - { - if (undyne.image_alpha < 1) - undyne.image_alpha += 0.05 - } - if (cn == 4) - { - global.currentsong = usong - caster_loop(global.currentsong, 1, 1) - global.interact = 0 - global.flag[17] = 1 - global.flag[77] = global.armor - cn = 5 - } - if (cn == 5) - { - undyne.vspeed = 4 - undyne.image_speed = 0.25 - cn = 6 - alarm[4] = 6 - } - if (cn == 7) - { - undyne.image_speed = 0 - undyne.vspeed = 0 - sp = instance_create(undyne.x, undyne.y, obj_uspeargen) - cn = 8 - } - if (cn > 7) - { - sp.x = (undyne.x + 24) - sp.y = (undyne.y + 20) - } - if (cn == 8) - { - if (stk.image_alpha < 1) - stk.image_alpha += 0.1 - if (stopper == 1) - { - alarm[4] = -1 - cn = 10 - stopper = 0 - } - if (obj_mainchara.x > (undyne.x + 80) && undyne.x < room_width) - { - undyne.hspeed = 3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - if (obj_mainchara.x < (undyne.x - 60)) - { - undyne.hspeed = -3 - undyne.image_speed = 0.2 - alarm[4] = 20 - cn = 9 - } - } - if (cn == 10) - { - if (obj_mainchara.x > (undyne.x + 80) || obj_mainchara.x < (undyne.x - 60)) - cn = 8 - else - { - undyne.image_speed = 0 - undyne.hspeed = 0 - cn = 8 - } - } - if (cn == 9) - { - if (alarm[4] <= 0) - cn = 10 - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 915d6c2eb..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 082189db8..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6588 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y" - if (global.flag[22] == 2) - adder = "\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_conshake.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_conshake.gml deleted file mode 100644 index a15441510..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_conshake.gml +++ /dev/null @@ -1,3 +0,0 @@ -consiner += 1 -view_xview = (conshakex + (sin(consiner) * argument0)) -view_yview = (conshakey + (cos(consiner) * argument0)) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_conshakeend.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_conshakeend.gml deleted file mode 100644 index c77fee97d..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_conshakeend.gml +++ /dev/null @@ -1,4 +0,0 @@ -view_xview = conshakex -view_yview = conshakey -if instance_exists(obj_mainchara) - obj_mainchara.cutscene = false diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index 37c860d87..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,24 +0,0 @@ -var xx, yy, use_font, i; -xx = argument0 -yy = argument1 -if (global.language == "ja") -{ - use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, global.charname) -return string_width(global.charname); diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 54577d146..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,11 +0,0 @@ -var i, desc; -global.msg[0] = scr_gettext("scr_itemdesc_2") -i = 0 -while (true) -{ - desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc - i++ -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 87492e7d3..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,40 +0,0 @@ -var bc; -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 56ce2d2d1..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,902 +0,0 @@ -var credamt, credits_path, credfile, thiscred; -credamt = 0 -if (global.osflavor <= 2) -{ - credits_path = (working_directory + "credits.txt") - credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew " + chr(34) + "Southrop" + chr(34) + " Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara " + chr(34) + "Svenna" + chr(34) + " Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean " + chr(34) + "Ariamaki" + chr(34) + " Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin " + chr(34) + "BenaSPACE" + chr(34) + " McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn " + chr(34) + "Xisuu" + chr(34) + " Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan " + chr(34) + "ChessboardMan" + chr(34) + " Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles " + chr(34) + "Chip Champion" + chr(34) + " Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary " + chr(34) + "ZarroTsu" + chr(34) + " Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will " + chr(34) + "Radnar" + chr(34) + " Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin " + chr(34) + "AT" + chr(34) + " Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves " + chr(34) + "TehLazyOne" + chr(34) + "" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke " + chr(34) + "Association" + chr(34) + " Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index e5a4b22ab..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var xx, kana_count, i, Won, CP, CH, confirm, row, yy, col, menu_text0, menu_text1, menu_text2, charset_text0, charset_text1, charset_text2, old_col, best, bestdiff, diff, roomname, lvtext, timetext, namesize, lvsize, timesize, x_center, lvpos, namepos, timepos, continue_text, reset_text, action, lines, num_lines, label_x, key, label, yy2; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - Won = ini_read_real("General", "Won", 0) - CP = ini_read_real("General", "CP", 0) - CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - exit - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), charname, (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, spec_m) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (row = 0; row < rows; row++) - { - yy = ymap[row] - for (col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), charmap[row, col]) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, menu_text0) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, menu_text1) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, menu_text2) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, charset_text0) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, charset_text1) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, charset_text2) - } - old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, charname) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - roomname = scr_roomname(roome) - lvtext = scr_gettext("save_menu_lv", string(love)) - timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - namesize = string_width(substr(name, 1, 6)) - lvsize = string_width(lvtext) - timesize = string_width(timetext) - x_center = 160 - lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - namepos = 70 - timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, name) - draw_text(lvpos, 62, lvtext) - draw_text((timepos - timesize), 62, timetext) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, roomname) - if (selected3 == 0) - draw_set_color(c_yellow) - continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, continue_text) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, reset_text) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, scr_gettext("instructions_title")) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\*Z") - draw_text(115, 50, scr_gettext("instructions_confirm_label")) - scr_drawtext_icons(85, 70, "\*X") - draw_text(115, 70, scr_gettext("instructions_cancel_label")) - scr_drawtext_icons(85, 90, "\*C") - draw_text(115, 90, scr_gettext("instructions_menu_label")) - draw_text(86, 130, scr_gettext("instructions_hp0")) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - num_lines = 5 - if (global.language == "ja") - { - label_x = 0 - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), key) - xx = ((50 + string_width(key)) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), label) - } - draw_text(50, 145, scr_gettext("instructions_hp0")) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), ((key + " - ") + label)) - } - draw_text(85, 140, scr_gettext("instructions_hp0")) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, scr_gettext("instructions_begin")) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, scr_gettext("settings_name")) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/856219e69dd39e76deca0586a7f44307/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml deleted file mode 100644 index 7865cee5e..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml +++ /dev/null @@ -1,103 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - n += 2 - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "P") - script_execute(SCR_TEXTSETUP, 4, 255, x, y, (x + 150), 43, 4, 94, 10) - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - } - if (global.inbattle == 1) - halt = 5 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_OBJ_WRITER_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_OBJ_WRITER_Draw_0.gml deleted file mode 100644 index 241521ad2..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_OBJ_WRITER_Draw_0.gml +++ /dev/null @@ -1,255 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "L") - mycolor = $FFA914 - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "z") - { - sym = real(string_char_at(originalstring, (n + 2))) - sym_s = spr_infinitysign - if (sym == 4) - sym_s = spr_infinitysign - if (sym == 4) - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - if (myfont == fnt_comicsans) - { - if (myletter == "w") - myx += 2 - if (myletter == "m") - myx += 2 - if (myletter == "i") - myx -= 2 - if (myletter == "l") - myx -= 2 - if (myletter == "s") - myx -= 1 - if (myletter == "j") - myx -= 1 - } - if (myfont == fnt_papyrus) - { - if (myletter == "D") - myx += 1 - if (myletter == "Q") - myx += 3 - if (myletter == "M") - myx += 1 - if (myletter == "L") - myx -= 1 - if (myletter == "K") - myx -= 1 - if (myletter == "C") - myx += 1 - if (myletter == ".") - myx -= 3 - if (myletter == "!") - myx -= 3 - if (myletter == "O" || myletter == "W") - myx += 2 - if (myletter == "I") - myx -= 6 - if (myletter == "T") - myx -= 1 - if (myletter == "P") - myx -= 2 - if (myletter == "R") - myx -= 2 - if (myletter == "A") - myx += 1 - if (myletter == "H") - myx += 1 - if (myletter == "B") - myx += 1 - if (myletter == "G") - myx += 1 - if (myletter == "F") - myx -= 1 - if (myletter == "?") - myx -= 3 - if (myletter == "'") - myx -= 6 - if (myletter == "J") - myx -= 1 - } - n += nskip -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_flowey_writer_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_flowey_writer_Draw_0.gml deleted file mode 100644 index aa57ccad5..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_flowey_writer_Draw_0.gml +++ /dev/null @@ -1,181 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "f") - global.typer = 9 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else if (global.typer == 70 || global.typer == 71 || global.typer == 74 || global.typer == 75 || global.typer == 76 || global.typer == 77) - draw_text_transformed((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter, 2, 2, 0) - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - n += nskip -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 9a5ea7df7..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,398 +0,0 @@ -buffer -= 1 -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if keyboard_multicheck_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ini_close() - room_goto(room_intromenu) -} -draw_set_color(c_white) -draw_set_font(fnt_maintext) -if (weather != 3) - draw_text_transformed(100, 10, "JOYSTICK CONFIG", 2, 2, 0) -else - draw_text_transformed(10, 10, "JOYSTICK CONFIG", 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, "EXIT") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = "CONFIRM - [Z + ENTER] ::" - if (i == 2) - itext = "CANCEL - [X + SHIFT] ::" - if (i == 3) - itext = "MENU - [C + CTRL] ::" - draw_text(20, (60 + (i * 15)), itext) - draw_set_color(c_white) -} -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 75, 245, 90, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 75, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 90, 245, 105, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 90, "(PUSH BUTTON)") - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 90, global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 105, 245, 120, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 105, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 105, global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, "ANALOG SENSITIVITY:") -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense -= global.analog_sense_sense - if keyboard_check(vk_left) - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text_transformed(20, 150, "ANALOG SENSITIVITY SENSITIVITY:", 0.6, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense_sense -= 0.01 - if keyboard_check(vk_left) - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, "DIR CHOICE:") -if (global.joy_dir == 0) - draw_text(100, 170, "NORMAL") -if (global.joy_dir == 1) - draw_text(100, 170, "ANALOG ONLY") -if (global.joy_dir == 2) - draw_text(100, 170, "POV ONLY") -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, 185, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, 185, "RESET TO DEFAULT") -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = "SPAGHETTI..." - else - r_line = "RESETTED..." - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 200, "CONTROL TEST") -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "cold outside#but stay warm#inside of you", 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "spring time#back to school", 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "try to withstand#the sun's life-#giving rays", 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "sweep a leaf#sweep away a#troubles", 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - draw_rectangle((168 - rectile), -10, -1, 250, false) - draw_set_color(c_black) - draw_rectangle((152 + rectile), -10, 330, 250, false) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 7b8438b88..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = "PET?" - if (gg == 1) - global.msg[0] = "PAT?" - if (gg == 2) - global.msg[0] = "POT?" - global.msg[1] = "%%%" - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_readable_room1_Alarm_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_readable_room1_Alarm_0.gml deleted file mode 100644 index ca62366f8..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_readable_room1_Alarm_0.gml +++ /dev/null @@ -1,480 +0,0 @@ -myinteract = 3 -global.msc = 0 -global.typer = 5 -global.facechoice = 0 -global.faceemotion = 0 -global.msg[0] = "%%" -if (room == room_ruins2) - global.msg[0] = "* Only the fearless may proceed.&* Brave ones, foolish ones.&* Both walk not the middle road./%%" -if (room == room_ruins3) - global.msg[0] = "* Stay on the path./%%" -if (room == room_ruins5) - global.msg[0] = "* The western room is the& eastern room's blueprint./%%" -if (room == room_ruins9) - global.msg[0] = "* Three out of four grey rocks& recommend you push them./%%" -if (room == room_ruins13) - global.msg[0] = "* (There's an ant-sized frog in& a crack in the wall...^1)&* (It waves at you.)/%%" -if (room == room_ruins14) - global.msg[0] = "* There is just one switch./%%" -if (room == room_ruins15A) - global.msg[0] = "* The far door is not an exit^1.&* It simply marks a rotation& in perspective./%%" -if (room == room_ruins15B) - global.msg[0] = "* If you can read this^1,& press the blue switch./%%" -if (room == room_ruins15C) - global.msg[0] = "* If you can read this^1,& press the red switch./%%" -if (room == room_ruins15D) - global.msg[0] = "* If you can read this^1,& press the green switch./%%" -if (room == room_torhouse1) - global.msg[0] = "* These books are worn...&* They must have been read& many times./%%" -if (room == room_asghouse1) -{ - global.msg[0] = "* (There's an old calendar from& the end of 201X.^1)&* (A date is circled on it.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (The date I came here.)/%%" -} -if (room == room_torhouse2) - global.msg[0] = "* The ends of the tools have& been filed down to& make them safer./%%" -if (room == room_asghouse2) - global.msg[0] = "* Seems like gardening tools./%%" -if (room == room_asrielroom) - global.msg[0] = "* Look at these cool toys^2!&* They don't interest you& at all./%%" -if (room == room_asrielroom_final) - global.msg[0] = "* (Dusty toys.)/%%" -if (room == room_castle_finalshoehorn) - global.msg[0] = "* Throne Room/%%" -if (room == room_castle_coffins2) -{ - global.msg[0] = "* (It's a coffin.^1)&* (There's a name engraved on& it.)/" - global.msg[1] = (('* ("' + global.charname) + '.")/') - global.msg[2] = "* (It's empty.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (The coffin is empty...?)/" - global.msg[1] = "* (You didn't notice before^1,& but there's something like...)/" - global.msg[2] = "* (... mummy wrappings at the& bottom of it.)/%%" - } - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (It's as comfortable as it& looks.)/%%" -} -if (room == room_torielroom) -{ - global.msc = 524 - if (x > 192) - { - global.msc = 0 - global.msg[0] = "* You peek inside..^2.&* Scandalous!/" - global.msg[1] = "* It's TORIEL's sock& collection./%%" - if (read > 0) - global.msg[0] = "* You can't stop looking& at the socks./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (You came all the way& back here to look at& Toriel's socks.)/" - global.msg[1] = "* (You have great priorities& in life.)/%%" - } - } -} -if (room == room_asgoreroom) -{ - global.msg[0] = "* It's a clothes drawer^1.&* There are robes^1, button-up& shirts.../" - global.msg[1] = "* ... and a pink^1, hand-knit& sweater that says& " + chr(34) + "Mr. Dad Guy." + chr(34) + "/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* Still has that sweater./%%" - if (y > 120) - global.msg[0] = "* (It's just a chair.)/%%" -} -if (room == room_castle_throneroom) - global.msg[0] = "* (It's a throne.)/%%" -if (room == room_torhouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_asghouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_kitchen) - global.msg[0] = "* For some reason^1, there& is a brand-name chocolate& bar in the fridge./%%" -if (room == room_kitchen_final) -{ - global.msg[0] = "* (The fridge is full of& unopened containers of& snails.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* No chocolate./%%" -} -if (room == room_tundra1) - global.msg[0] = "* ...!^1?&* There's a camera hidden& in the bushes./%%" -if (room == room_tundra8A) - global.msg[0] = "* (His.)/%%" -if (room == room_tundra_snowpuzz) -{ - if (global.plot <= 48) - global.msg[0] = "* There's a switch hidden& in the snow^1.&* Click!/%%" - if (global.plot > 48) - global.msg[0] = "* The switch is stuck now./%%" - if (global.flag[64] == 0) - global.flag[64] = 1 - if (global.plot <= 48) - global.plot = 49 - if (scr_murderlv() >= 3) - global.msg[0] = "* There's a switch here^1.&* It's been depressed with& vines./%%" -} -if (room == room_tundra_lesserdog) - global.msg[0] = "* On the floor inside is& a box of pomeraisins./%%" -if (room == 9999999) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are super crap./" - global.msg[2] = "* When monsters die^1, their& bodies turn into dust./" - global.msg[3] = "* One time this kid at my school& went missing for a week and& everyone thought he was dead.../" - global.msg[4] = "* But then he came back!!!/" - global.msg[5] = "* Turns out he was visiting his& girlfriend in Hotland and& and didn't tell anyone!/" - global.msg[6] = "* To be scientific^1, it sucks& that no one ever knows& if anyone's dead or alive./" - global.msg[7] = "* So yeah^1, what do we do at& funerals^1, anyway?/" - global.msg[8] = "* Professionally speaking:/" - global.msg[9] = "* DUH!!!/" - global.msg[10] = "* We pour the dust on whatever& that person liked./" - global.msg[11] = "* Then they will live on..^1.& ... in that object...& ... symbolically.../" - global.msg[12] = "* Uhhh^1, did I reach the page& minimum yet^1?&* I'm kinda sick of writing./%%" -} -if (room == room_tundra_library) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are cool as heck./" - global.msg[2] = "* When monsters get old and& kick the bucket^1, they turn& into dust./" - global.msg[3] = "* At funerals^1, we take that& dust and spread it on that& person's favorite thing./" - global.msg[4] = "* Then their essence will live& on in that thing.../" - global.msg[5] = "* Uhhh^1, am I at the page& minimum yet^1?&* I'm kinda sick of writing this./%%" -} -if (room == room_tundra_inn) -{ - global.msg[0] = "\W* Mom says that sleeping& can recover your health& \Yabove your maximum HP\W./" - global.msg[1] = "* ... what's maximum HP?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* Mom says that we can& go to the surface world& now!/" - global.msg[1] = "* ... what's so great about& that^1, anyway^1?&* I don't wanna move./%%" - } - if (scr_murderlv() >= 7) - global.msg[0] = "* (It's merely a decoy.)/%%" -} -if (room == room_water12) -{ - global.msg[0] = "* " + chr(34) + "The power to take their& SOULs." + chr(34) + "/" - global.msg[1] = "* " + chr(34) + "This is the power that& the humans feared." + chr(34) + "/%%" -} -if (room == room_water7) -{ - global.msg[0] = "* (Ancient writing covers the& walls..^1. you can just make& out the words.)/" - global.msg[1] = "* " + chr(34) + "The War of Humans and& Monsters." + chr(34) + "/%%" -} -if (room == room_water14) - global.msg[0] = "* The northern room hides a& great treasure./%%" -if (room == room_water15) -{ - global.msg[0] = "* Hurt, beaten, and fearful for& our lives, we surrendered& to the humans./" - global.msg[1] = "* Seven of their greatest& magicians sealed us underground& with a magic spell./" - global.msg[2] = "* Anything can enter through the& seal, but only beings with a& powerful SOUL can leave./%%" -} -if (room == room_water19) -{ - global.msg[0] = "* However...&* There is a prophecy./" - global.msg[1] = "* The Angel...&* The One Who Has Seen The& Surface.../" - global.msg[2] = "* They will return.&* And the underground will go& empty./%%" -} -if (room == room_water_nicecream) - global.msg[0] = "* The ancient glyphs have been& painted over with a list of& 21 different flavors./%%" -if (room == room_water_prebird) - global.msg[0] = "* Achoo^1!&* Tried to catch a bug^1, but& I just caught a cold.../%%" -if (room == room_water_preundyne) -{ - global.msg[0] = "* The humans, afraid of our& power^1, declared war on us./" - global.msg[1] = "* They attacked suddenly, and& without mercy./%%" -} -if (room == room_water17) - global.msg[0] = "* Without candles or magic to& guide them Home^1, the monsters& used crystals to navigate./%%" -if (room == room_water20) -{ - if instance_exists(obj_monsterkidtrigger7) - obj_monsterkidtrigger7.con = 80 - cantalk = 0 -} -if (room == room_fire_lab1) -{ - global.msg[0] = "* (It's a beat-up figurine& of a female human with& cat ears.)/%%" - if (global.plot < 126 && scr_murderlv() < 12) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" -} -if (room == room_fire_lab2) - global.msg[0] = "* (Scientific books.^1)&* (They seem very dusty.)/%%" -if (room == room_fire_cookingshow) -{ - global.msg[0] = "* (It's a fridge.^1)&* (It's strangely warm.)/%%" - if (global.plot < 134) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" - if instance_exists(obj_mettaton_npc) - { - global.typer = 27 - global.msg[0] = "* MILK^1? EGGS^1? IN THE FRIDGE?/" - global.msg[1] = "* NO WAY^1, DARLING^1!&* THEY'D GET COLD!!!/%%" - } - if (global.plot == 134) - { - snd_play(snd_phone) - global.typer = 5 - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* Um^1, is it really& a good idea to be& getting a snack?/" - global.msg[3] = "\E8* Well^1, I guess I& really shouldn't& judge you.../" - global.msg[4] = "\E0* After all^1, I'm the& one eating potato& chips in my PJs!/" - global.msg[5] = "\E5* Uhhh^1, I mean..^1.&* H-hey^1, go over to& the right!/%%" - if (specialread > 0) - { - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* H-hey^1!&* Head over to the& right!/%%" - } - specialread += 1 - } -} -if (room == room_water_undynehouse) -{ - global.typer = 37 - global.facechoice = 5 - global.faceemotion = 4 - global.msc = 0 - if (x > 180) - { - global.msg[0] = "* I hate cold food./" - global.msg[1] = "\E0* So Alphys fixed up& my fridge so it& heats up food instead!/" - global.msg[2] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - if (read > 0) - global.msg[0] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - } - else - { - global.faceemotion = 0 - global.msg[0] = "* This oven is some& top-of-the-line& MTT thing./" - global.msg[1] = "\E4* But^1, y'know^1, as much& as technology& advances.../" - global.msg[2] = "\E0* Nothing beats food& home-cooked with& fire magic./%%" - } -} -if (room == room_fire_spidershop) -{ - global.msg[0] = "* (It looks like some sort of& powerful bracelet...)/" - global.msg[1] = "* (Wait.^1)&* (It's just a croissant...)/%%" -} -if (room == room_fire_hotelfront_2) - global.msg[0] = "* (It's just a regular wall.)/%%" -if (room == room_fire_core_branch) - global.msg[0] = "* (East...)&* (The End.)/%%" -if (room == room_fire_core_left) - global.msg[0] = "* (Solve this puzzle,& and The End will open.)/%%" -if (room == room_fire_core_top) - global.msg[0] = "* (Traverse the northern& room^1, and The End will& open.)/%%" -if (room == room_fire_core_right) -{ - global.msg[0] = "* (I cannot fight.)&* (I cannot think.)/" - global.msg[1] = "* (But^1, with patience^1,& I will make my way& through.)/%%" -} -if (room == room_fire_core_center) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_treasureleft) - global.msg[0] = "* (Why not relax and have& a nice snack?)/%%" -if (room == room_fire_core_treasureright) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_metttest) -{ - global.msg[0] = "* (It's completely trashed.^1)&* (There's no way it could& ever be repaired.)/%%" - if (global.flag[425] == 0) - global.msg[0] = "* (It's out of batteries.)/%%" -} -if (room == room_truelab_hall1) -{ - global.msg[0] = "* ENTRY NUMBER 1/" - global.msg[1] = "* This is it..^1.&* Time to do what the King& has asked me to do./" - global.msg[2] = "* I will create the power to& free us all./" - global.msg[3] = "* I will unleash the power of& the SOUL./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hub) -{ - global.msg[0] = "* POWER ROOM/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall2) -{ - global.msg[0] = "* ENTRY NUMBER 6/" - global.msg[1] = "* ASGORE asked everyone& outside the city for monsters& that had " + chr(34) + "fallen down." + chr(34) + "/" - global.msg[2] = "* Their bodies came in today./" - global.msg[3] = "* They're still comatose..^1.&* And soon^1, they'll all& turn into dust./" - global.msg[4] = "* But what happens if I& inject " + chr(34) + "determination" + chr(34) + " into& them?/" - global.msg[5] = "* If their SOULS persist& after they perish^1, then.../" - global.msg[6] = "* Freedom might be closer& than we all thought./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_operatingroom) -{ - global.msg[0] = "* ENTRY NUMBER 9/" - global.msg[1] = "* things aren't going well./" - global.msg[2] = "* none of the bodies have& turned into dust^1, so I& can't get the SOULs./" - global.msg[3] = "* i told the families that& i would give them the& dust back for the funerals./" - global.msg[4] = "* people are starting to& ask me what's happening./" - global.msg[5] = "* what do i do?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_prebed) -{ - global.msg[0] = "* ENTRY NUMBER 12/" - global.msg[1] = "* nothing is happening^1.&* i don't know what to do./" - global.msg[2] = "* i'll just keep injecting& everything with& " + chr(34) + "determination." + chr(34) + "/" - global.msg[3] = "* i want this to work./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_bedroom) -{ - global.msg[0] = "* ENTRY NUMBER 14/" - global.msg[1] = "* Everyone that had fallen& down.../" - global.msg[2] = "* ... has woken up./" - global.msg[3] = "* They're all walking around& and talking like nothing& is wrong./" - global.msg[4] = "* I thought they were& goners...?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_mirror) -{ - global.msg[0] = "* ENTRY NUMBER 7/" - global.msg[1] = "* We'll need a vessel to& wield the monster SOULs& when the time comes./" - global.msg[2] = "* After all^1, a monster& cannot absorb the SOULs& of other monsters./" - global.msg[3] = "* Just as a human cannot& absorb a human SOUL.../" - global.msg[4] = "* So then.../" - global.msg[5] = "* What about something that's& neither human nor monster?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall3) -{ - global.msg[0] = "* ENTRY NUMBER 15/" - global.msg[1] = "* Seems like this research& was a dead end.../" - global.msg[2] = "* But at least we got a& happy ending out of it...?/" - global.msg[3] = "* I sent the SOULS back to& ASGORE^1, returned the& vessel to his garden..../" - global.msg[4] = "* And I called all of the& families and told them& everyone's alive./" - global.msg[5] = "* I'll send everyone back& tomorrow. :) /%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* ENTRY NUMBER 17/" - global.msg[1] = "* monsters' physical forms& can't handle " + chr(34) + "determination" + chr(34) + "& like humans' can./" - global.msg[2] = "* with too much determination^1,& our bodies begin to break& down./" - global.msg[3] = "* everyone's melted together.../%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* DT EXTRACTION MACHINE&* STATUS: INACTIVE/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_tv) -{ - global.msg[0] = "* ENTRY NUMBER 4/" - global.msg[1] = "* I've been researching humans& to see if I can find any& info about their SOULS./" - global.msg[2] = "* I ended up snooping around& the castle...&* And found these weird tapes./" - global.msg[3] = "* I don't feel like ASGORE's& watched them.../" - global.msg[4] = "* I don't think he should./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_fan) - global.msc = 780 -if (room == room_truelab_cooler) -{ - global.msg[0] = "* ENTRY NUMBER 19/" - global.msg[1] = "* the families keep calling& me to ask when everyone& is coming home./" - global.msg[2] = "* what am i supposed to say?/" - global.msg[3] = "* i don't even answer the& phone anymore./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" - if (global.flag[490] == 0) - global.msg[0] = "* (It's too dark to see near& the walls.)/%%" -} -if (room == room_truelab_prepower) -{ - global.msg[0] = "* (Seems to be turned off.)/%%" - if (global.flag[485] == 1) - { - global.msg[0] = "* ENTRY NUMBER 8/" - global.msg[1] = "* I've chosen a candidate./" - global.msg[2] = "* I haven't told ASGORE yet^1,& because I want to surprise& him with it.../" - global.msg[3] = "* In the center of his& garden^1, there's something& special./" - global.msg[4] = "* The first golden flower^1,& that grew before all the& others./" - global.msg[5] = "* The flower from the outside& world./" - global.msg[6] = "* It appeared just before& the queen left./" - global.msg[7] = "* I wonder.../" - global.msg[8] = "* What happens when something& without a SOUL gains& the will to live?/%%" - } -} -if (room == room_truelab_elevatorinside) - global.msg[0] = "* (None of the buttons work.^1)&* (It seems to have lost power.)/%%" -if (room == room_castle_elevatorout) - global.msg[0] = "* (The door is jammed shut& with vines.)/%%" -if (room == room_truelab_castle_elevator) - global.msg[0] = "* (Seems like another elevator& has lost its power.)/%%" -if (room == room_tundra_grillby) - global.msg[0] = "* (The jukebox is broken.)/%%" -if (room == room_water_blookyard) - global.msg[0] = "* (It's locked.)/%%" -if (room == room_tundra_sansroom) - global.msg[0] = "* (It's a worn mattress.^1)&* (The sheets are bunched up in a& weird^1, creasy ball.)/%%" -if (room == room_tundra_sansbasement) -{ - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (He looks happy.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (... and^1, one photo of you& standing with Sans and all& your friends.)/" - global.msg[3] = "* (He looks happy.)/%%" - } - if (global.flag[279] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of..^1. Huh?)/" - global.msg[2] = "* (A card is sticking out from& the back flap of the binder.)/" - global.msg[3] = "* (It's a poorly drawn picture& of three smiling people.^1)&* (Written on it...)/" - global.msg[4] = "* " + chr(34) + "don't forget." + chr(34) + "/%%" - } -} -if (room == room_fire_pacing) -{ - global.msg[0] = "* (It's a poster for Mettaton's& latest stage performance.)/" - global.msg[1] = "* (A tragic tale of two star-& crossed lovers^1, kept apart& by the tides of fate...)/" - global.msg[2] = "* (Looks like it's almost time& for the performance.)/%%" -} -if (room == room_fire_hoteldoors) - global.msg[0] = "* (It's locked from the inside.)/%%" -if (room == room_fire_hotellobby) -{ - global.msg[0] = "* (There's an inscription on& this fountain.)/" - global.msg[1] = "* Royal Memorial Fountain&* Built 201X&* (Mettaton Added Last Week)/%%" -} -if (room == room_fire_restaurant) -{ - global.msg[0] = "* (It's a Wall of Fame full of& quotes and photos from visiting& celebrities.)/" - global.msg[1] = "* " + chr(34) + "The food is to die for!^1" + chr(34) + "&* " + chr(34) + "Gorgeous style and fragrance!^1" + chr(34) + "&* " + chr(34) + "My face tastes beautiful!" + chr(34) + "/" - global.msg[2] = "* (... these are all Mettaton.)/%%" -} -if (room == room_fire_hotelbed) -{ - global.msg[0] = "* (It's a lamp.^1)&* (There's no lightswitch.)/" - global.msg[1] = "* (It says that stars make& their own light...)/%%" -} -if (room == room_water_temvillage) - global.msg[0] = "* (Rich history of Tem.)/%%" -read += 1 -if (cantalk == 1) - mydialoguer = instance_create(0, 0, obj_dialoguer) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index d03c73c02..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - draw_set_font(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, "Exit") - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if keyboard_check_pressed(vk_return) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - draw_set_font(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (keyboard_check_pressed(vk_return) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_truechara_Step_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_truechara_Step_0.gml deleted file mode 100644 index 0b3663c04..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_truechara_Step_0.gml +++ /dev/null @@ -1,192 +0,0 @@ -if (con == 1) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Greetings./" - global.msg[1] = (("I^2 am " + global.charname) + "./%%") - instance_create(220, 320, OBJ_WRITER) - con = 2 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - caster_loop(ch_sfx1, 1, 1) - con = 3 - alarm[4] = 60 -} -if (con == 4) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Thank you./" - global.msg[1] = "Your power awakened&me from death./" - global.msg[2] = 'My "human soul."/' - global.msg[3] = 'My "determination."/' - global.msg[4] = "They were not mine^1,&but YOURS./" - global.msg[5] = "At first^1, I&was so confused./" - global.msg[6] = "Our plan had failed^1,&hadn't it?/" - global.msg[7] = "Why was I brought&back to life?/" - global.msg[8] = ".../" - global.msg[9] = "You./" - global.msg[10] = "With your guidance./" - global.msg[11] = "I realized the purpose&of my reincarnation./" - global.msg[12] = "Power./" - global.msg[13] = "Together^1, we eradicated&the enemy and became&strong./" - global.msg[14] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[15] = "Every time a number&increases^1, that&feeling.../" - global.msg[16] = "That's me./" - global.msg[17] = (('"' + global.charname) + '."/') - global.msg[18] = "Now./" - global.msg[19] = "Now, we have reached&the absolute./" - global.msg[20] = "There is nothing&left for us here./" - global.msg[21] = "Let us erase this&pointless world^1, and&move on to the next./%%" - if file_exists("system_information_963") - { - global.msg[0] = (('"' + global.charname) + '."/') - global.msg[1] = "The demon that comes&when people call&its name./" - global.msg[2] = "It doesn't matter when./" - global.msg[3] = "It doesn't matter where./" - global.msg[4] = "Time after time,&I will appear./" - global.msg[5] = "And, with your help./" - global.msg[6] = "We will eradicate the&enemy and become&strong./" - global.msg[7] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[8] = "Every time a number&increases^1, that&feeling.../" - global.msg[9] = "That's me./" - global.msg[10] = (('"' + global.charname) + '."/') - global.msg[11] = ".../" - global.msg[12] = "But./" - global.msg[13] = "You and I are not&the same^1, are we?/" - global.msg[14] = "This SOUL resonates&with a strange&feeling./" - global.msg[15] = "There is a reason&you continue to&recreate this world./" - global.msg[16] = "There is a reason&you continue to&destroy it./" - global.msg[17] = "You./" - global.msg[18] = "You are wracked with&a perverted&sentimentality./" - global.msg[19] = "Hmm./" - global.msg[20] = "I cannot understand&these feelings&any more./" - global.msg[21] = "Despite this./" - global.msg[22] = "I feel obligated to&suggest./" - global.msg[23] = "Should you choose to&create this world&once more./" - global.msg[24] = "Another path would&be better suited./" - global.msg[25] = "Now, partner./" - global.msg[26] = "Let us send this&world back into the&abyss./%%" - } - instance_create(150, 320, OBJ_WRITER) - con = 5 -} -if (con == 5 && instance_exists(OBJ_WRITER) == 0) -{ - con = 6 - alarm[4] = 30 -} -if (con == 7) -{ - con = 8 - choicer = 1 -} -if (con == 20) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Right^1. You are a&great partner./" - global.msg[1] = "We'll be together&forever^1, won't we?/%%" - con = 22 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 22 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - sprite_index = spr_truechara_weird -} -if (con == 22 && instance_exists(OBJ_WRITER) == 0) - con = 60 -if (con == 30) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "No...?/" - global.msg[1] = "Hmm.../" - global.msg[2] = "How curious./" - global.msg[3] = "You must have&misunderstood./" - global.msg[4] = "SINCE WHEN WERE YOU&THE ONE IN CONTROL?/%%" - if file_exists("system_information_963") - { - global.msg[0] = "No...?/" - global.msg[1] = "Hmm...&This feeling you have./" - global.msg[2] = "This is what I&spoke of./" - global.msg[3] = "Unfortunately,®arding this.../" - global.msg[4] = "YOU MADE YOUR CHOICE&LONG AGO./%%" - } - con = 31 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 31 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 4) - sprite_index = spr_truechara_weird -} -if (con == 31 && instance_exists(OBJ_WRITER) == 0) - con = 40 -if (con == 40) -{ - caster_stop(-3) - caster_play(ch_sfx2, 1, 0.95) - sprite_index = spr_truechara_laugh - image_speed = 0.5 - con = 41 - flashred = 1 - alarm[4] = 120 - wx = 0 - wy = 0 - if (global.osflavor == 1) - { - window_set_fullscreen(false) - window_set_caption(" ") - window_center() - wx = window_get_x() - wy = window_get_y() - } -} -if (con == 41) -{ - x = (((room_width / 2) + random(4)) - random(4)) - y = (((room_height / 2) + random(4)) - random(4)) - image_xscale += 0.08 - image_yscale += 0.08 - if (global.osflavor == 1) - window_set_position(((wx + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4))), ((wy + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4)))) -} -if (con == 42) -{ - con = 60 - if (global.osflavor == 1) - window_center() - flashred = 0 -} -if (con == 60) -{ - caster_free(-3) - snd_play(snd_laz) - image_speed = 0 - image_index = 0 - sprite_index = spr_strike - image_xscale = 5 - image_yscale = 5 - y = ((room_height / 2) - (sprite_height / 2)) - x = ((room_width / 2) - (sprite_width / 2)) - image_speed = 0.1 - con = 61 -} -if (con == 61) -{ - if (image_index >= 5.5) - { - visible = false - con = 62 - alarm[4] = 40 - } -} -if (con == 63) -{ - snd_play(snd_damage) - instance_create(0, 0, obj_gameshake) - con = 64 -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index f424d711c..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = string("0") - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ccf249543..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6411 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = " " - adder = "\W " - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y " - if (global.flag[22] == 2) - adder = "\p " - } - global.msg[0] = adder - global.msg[0] += (" * " + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += " A" - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += " B" - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += " C" - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = " " - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y " - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p " - } - } - global.msg[0] += " * Spare" - if (global.mercy == 0) - global.msg[0] += "& \W * Flee" - break - case 9: - global.msg[0] = ((" * " + global.itemnameb[0]) + " ") - if (global.item[1] != 0) - global.msg[0] += ("* " + global.itemnameb[1]) - global.msg[0] += " &" - if (global.item[2] != 0) - global.msg[0] += ((" * " + global.itemnameb[2]) + " ") - if (global.item[3] != 0) - global.msg[0] += ("* " + global.itemnameb[3]) - global.msg[0] += " & PAGE 1" - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = ((" * " + global.itemnameb[4]) + " ") - if (global.item[5] != 0) - global.msg[0] += ("* " + global.itemnameb[5]) - global.msg[0] += " &" - if (global.item[6] != 0) - global.msg[0] += ((" * " + global.itemnameb[6]) + " ") - if (global.item[7] != 0) - global.msg[0] += ("* " + global.itemnameb[7]) - global.msg[0] += " & PAGE 2" - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += (("* You recovered " + string(global.item[8])) + " HP!/%") - else - global.msg[0] += "* Your HP was maxed out./%" - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = (("* You bid a quiet farewell& to the " + global.itemname[global.menucoord[1]]) + ".") - if (i == 1) - global.msg[0] = (("* You put the " + global.itemname[global.menucoord[1]]) + "& on the ground and gave it a& little pat.") - if (i == 2) - global.msg[0] = (("* You threw the " + global.itemname[global.menucoord[1]]) + "& on the ground like the piece& of trash it is.") - if (i == 3) - global.msg[0] = (("* You abandoned the & " + global.itemname[global.menucoord[1]]) + ".") - if (i > 3) - global.msg[0] = (("* The " + global.itemname[global.menucoord[1]]) + " was& thrown away.") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = " * I'm outta here." - if (i == 2) - global.msg[0] = " * I've got better to do." - if (i > 3) - global.msg[0] = " * Escaped..." - if (i == 3) - global.msg[0] = " * Don't slow me down." - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = ((((" * Ran away with " + string(global.xpreward[3])) + " EXP& and ") + string(global.goldreward[3])) + " GOLD.") - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = "* (The shadow of the ruins& looms above^1, filling you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins7) - { - global.msg[0] = "* (Playfully crinkling through& the leaves fills you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins12A) - { - global.msg[0] = "* (Knowing the mouse might one& day leave its hole and& get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_ruins19) - global.msg[0] = "* (Seeing such a cute^1, tidy& house in the RUINS gives& you determination.)/%%" - if (global.flag[202] >= 20) - global.msg[0] = "* Determination./%%" - if (room == room_tundra1) - global.msg[0] = "* (The cold atmosphere of a& new land... it fills you& with determination.)/%%" - if (room == room_tundra3) - global.msg[0] = "* (The convenience of that& lamp still fills you& with determination.)/%%" - if (room == room_tundra_spaghetti) - { - global.msg[0] = "* (Knowing the mouse might one& day find a way to heat& up the spaghetti...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = "* (Knowing that dog will& never give up trying to& make the perfect snowdog...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - if (global.flag[55] == 1) - { - global.msg[0] = "* (Snow can always be broken& down and rebuilt into& something more useful.)/" - global.msg[1] = "* (This simple fact fills& you with determination.)/%%" - } - } - if (room == room_tundra_town) - global.msg[0] = "* (The sight of such a friendly& town fills you with& determination.)/%%" - if (room == room_water2) - global.msg[0] = "* (The sound of rushing water& fills you with& determination.)/%%" - if (room == room_water4) - global.msg[0] = "* (A feeling of dread hangs& over you...^1)&* (But you stay determined.)/%%" - if (room == room_water_savepoint1) - { - global.msg[0] = "* (Knowing the mouse might one& day extract the cheese from& the mystical crystal...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_preundyne) - { - global.msg[0] = "* (The sound of muffled rain& on the cavetop...)/" - if (global.flag[86] == 1) - global.msg[0] = "* (The serene sound of a& distant music box...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_trashzone2) - global.msg[0] = "* (The feeling of your socks& squishing as you step& gives you determination.)/%%" - if (room == room_water_trashsavepoint) - { - global.msg[0] = "* (The waterfall here seems& to flow from the& ceiling of the cavern...)/" - global.msg[1] = "* (Occasionally^1, a piece of& trash will flow& through...)/" - global.msg[2] = "* (... and fall into the& bottomless abyss below.)/" - global.msg[3] = "* (Viewing this endless& cycle of worthless& garbage...)/" - global.msg[4] = "* (It fills you with& determination.)/%%" - if (global.flag[91] == 1) - global.msg[0] = "* (Partaking in worthless& garbage fills you& with determination.)/%%" - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = "* (You feel a calming& tranquility^1. You're filled& with determination...)/%%" - if (room == room_water_temvillage) - global.msg[0] = "* (You feel..^1. something.)&* (You're filled with& detemmienation.)/%%" - if (room == room_water_undynefinal) - { - global.msg[0] = "* (The wind is howling^1.&* You're filled with& determination...)/%%" - if (global.flag[99] > 0) - global.msg[0] = "* (The howling wind is& now a breeze^1. This gives& you determination...)/%%" - if (global.flag[350] == 1) - global.msg[0] = "* (The wind has stopped^1.&* You're filled with& determination...)/%%" - } - if (room == room_fire_prelab) - { - global.msg[0] = "* (Seeing such a strange& laboratory in a place like& this...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire6) - global.msg[0] = "* (The wooshing sound of steam& and cogs..^1. it fills you& with determination.)/%%" - if (room == room_fire_savepoint1) - { - global.msg[0] = "* (An ominous structure looms& in the distance...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_mewmew2) - { - global.msg[0] = "* (Knowing the mouse might one& day hack the computerized& safe and get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_fire_hotelfront_1) - global.msg[0] = "* (A huge structure lies north.^1)&* (You're filled with& determination.)/%%" - if (room == room_fire_hotellobby) - global.msg[0] = "* (The relaxing atmosphere& of this hotel..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_branch) - global.msg[0] = "* (The air is filled with& the smell of ozone..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_premett) - { - global.msg[0] = "* (Behind this door must be& the elevator to the King's& castle.)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_savepoint2) - { - global.msg[0] = "* (The smell of cobwebs fills& the air...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& put away.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& tossed inside recklessly.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& placed thoughtfully inside.") - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& grabbed impatiently.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out and held like a& small puppy.") - global.msg[0] += "/%" - break - case 18: - global.msg[0] = "* You can't carry any more./%%" - break - case 19: - global.msg[0] = "* The box is full./%%" - break - case 23: - global.msg[0] = "* You leave the Quiche on the& ground and tell it you'll& be right back./%%" - break - case 30: - global.msg[0] = "* Use the box?& & Yes No \C " - global.msg[1] = " " - global.msg[2] = " " - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = " %%" - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = "* You have no items^1.&* You put a little time into& the box./%%" - if (gx == 1) - global.msg[0] = "* You have no items^1.&* You put a little effort& into the box./%%" - if (gx == 2) - global.msg[0] = "* You have no items^1.&* You put a little feeling& into the box./%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 200: - global.msg[0] = "\W* Howdy^2!&* I'm\Y FLOWEY\W.^2 &* \YFLOWEY\W the \YFLOWER\W!/" - global.msg[1] = "* Hmmm.../" - global.msg[2] = "* You're new to the& UNDERGROUND^2, aren'tcha?/" - global.msg[3] = "* Golly^1, you must be& so confused./" - global.msg[4] = "* Someone ought to teach& you how things work& around here!/" - global.msg[5] = "* I guess little old me& will have to do./" - global.msg[6] = "* Ready^2?&* Here we go!/%%" - break - case 201: - global.msg[0] = "\E2* This way./%%" - global.msg[1] = "%%%" - break - case 202: - global.msg[0] = "\E2* Welcome to your new& home^1, innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of the& RUINS./%%" - break - case 203: - global.msg[0] = "\E2* The RUINS are full of& puzzles./" - global.msg[1] = "* Ancient fusions between & diversions and doorkeys./" - global.msg[2] = "* One must solve them& to move from room to& room./" - global.msg[3] = "* Please adjust yourself to the sight of them./%" - break - case 204: - global.msg[0] = "\E2* To make progress here,^1 & you will need to trigger& several switches./" - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./%" - if (global.flag[6] == 1) - { - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./" - global.msg[2] = "* ... eh^1?&* It seems that the& labelling has worn away./" - global.msg[3] = "* Oh dear./" - global.msg[4] = "* This might be far more& challenging than I& anticipated.../%%" - } - break - case 205: - global.msg[0] = "\E2* The first switch is over& on the wall./%" - break - case 206: - global.msg[0] = "\E1* Do you need some help..^1?&* Press the switch on the wall./" - global.msg[1] = "\E0* Come on^1, you can do it!/%" - break - case 207: - global.msg[0] = "\E2* Go on^1, press the switch& on the left./%" - if (global.flag[6] == 1) - global.msg[0] = "\E2* I believe it was& the switch on the& left./%" - break - case 208: - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/" - global.msg[1] = "\E0* Press the switch that I& labelled for you./%" - if (global.flag[6] == 1) - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/%%" - break - case 209: - global.msg[0] = "\E1* You are very curious,^1 & are you not?/" - global.msg[1] = "\E1* Please understand.^2 & \E0I only want the best& for you./%" - break - case 210: - global.msg[0] = "\E0* Splendid!^2 &* I am proud of you,^1 & little one./" - global.msg[1] = "* Let us move to the& next room./%" - break - case 211: - global.msg[0] = "\E1* As a human living in& the UNDERGROUND,^1 & monsters may attack you./" - global.msg[1] = "\E2* You will need to be& prepared for this& situation./" - global.msg[2] = "\E0* However, worry not!^2 &* The process is simple./" - global.msg[3] = "\E2* When you encounter a & monster,^1 you will enter& a FIGHT./" - global.msg[4] = "* While you are in a& FIGHT^1, strike up a& friendly conversation./" - global.msg[5] = "\E2* Stall for time.& I will come to resolve& the conflict./" - global.msg[6] = "\E2* Practice talking to& the dummy./%" - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = "\E1* Ahh,^1 the dummies are& not for fighting!^2 &* They are for talking!/" - global.msg[1] = "* We do not want to hurt& anybody, do we...?^2 \E0 &* Come now./%" - } - if (global.flag[10] == 1) - global.msg[0] = "\E0* Ah,^1 very good!^2 &* You are very good./%" - if (global.flag[11] == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E1* ... you ran away.../" - global.msg[2] = "\E0* Truthfully^1, that was& not a poor choice./" - global.msg[3] = "\E0* It is better to& avoid conflict& whenever possible./" - global.msg[4] = "\E1* That..^1. however^1, is& only a dummy^2.&* It cannot harm you./" - global.msg[5] = "\E1* It is made of cotton^1.&* It has no desire& for revenge.../" - global.msg[6] = "\E0* Nevermind^2.&* Stay close to me and& I will keep you safe./%" - } - if (global.flag[13] == 1) - { - global.msg[0] = "\E3* ^1.^1.^1./" - global.msg[1] = "\E4* ^1.^1.^1./" - global.msg[2] = "\E0* The next room awaits./%" - } - break - case 213: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E2 &* I do not think the dummy& will be bothered./%" - break - case 214: - global.msg[0] = "\E0* Do you need some& ideas for conversation& topics?/" - global.msg[1] = "* Well^1, I often start with& a simple 'how do you& do...'/" - global.msg[2] = "* You could ask them about& their favorite books.../" - global.msg[3] = "* Jokes can be useful for& 'breaking the ice.'/" - global.msg[4] = "* Listen to this one.../" - global.msg[5] = "* What did the skeleton& tile his roof with?/" - global.msg[6] = "* ... SHIN-gles!/" - global.msg[7] = "\E1* .../" - global.msg[8] = "\E0* Well^1, I thought it& was amusing./%" - break - case 215: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E0 &* The dummy will not& be bothered./%" - break - case 216: - global.msg[0] = "\E1* There is another puzzle& in this room.../" - global.msg[1] = "\E0* I wonder if you can& solve it?/%" - break - case 217: - global.msg[0] = "\E1* This is the puzzle^1,& but.../" - global.msg[1] = "\E0* Here^1, take my hand& for a moment./%" - break - case 218: - global.msg[0] = "\E1* Puzzles seem a little& too dangerous for& now./%" - break - case 219: - global.msg[0] = ".../%" - break - case 220: - global.msg[0] = "\E2* Greetings,^1 my child^2.&* Do not worry^1, I did& not leave you./" - global.msg[1] = "\E0* I was merely behind this& pillar the whole time./" - global.msg[2] = "* Thank you for trusting& me./" - global.msg[3] = "\E2* However^1, there was an& important reason for& this exercise./" - global.msg[4] = "* ... to test your& independence./" - global.msg[5] = "\E1* I must attend to some& business^1, and you must& stay alone for a while./" - global.msg[6] = "\E0* Please remain here^2.&*\E1 It's dangerous to& explore by yourself./" - global.msg[7] = "\E0* I have an idea^2.&* I will give you a& CELL PHONE./" - global.msg[8] = "* If you have a need for& anything^1, just call./" - global.msg[9] = "\E1* Be good^1, alright?/%" - break - case 221: - global.msg[0] = "\E0* You have done& excellently thus& far^1, my child./" - global.msg[1] = "\E2* However... I have a& difficult request to ask& of you./" - global.msg[2] = "* .../" - global.msg[3] = "* I would like you to walk& to the end of the room& by yourself./" - global.msg[4] = "\E1* Forgive me for this./%" - break - case 222: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?& Cinnamon Bscotch \C" - global.msg[5] = " " - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ini_close() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - global.msg[0] = "* Oh^1, I see.&* Thank you very much!/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* Click.../%%" - global.msg[5] = "* /" - break - case 224: - global.msg[0] = "* It's a fishing rod affixed& to the ground.../" - global.msg[1] = "* Reel it in?& & Yes No \C " - global.msg[2] = " " - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = "* All that's attached to& the end is a photo of a& weird-looking monster.../" - global.msg[1] = "* (Call Me!& Here's my number!)/" - global.msg[2] = "* You decide not to call./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* All that's attached to& the end is a note./" - global.msg[1] = "* (Nevermind^1, guys!)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* You leave it alone./%%" - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = "* I shouldn't have given myself& away so easily.../%%" - if (global.flag[56] == 4) - { - global.msg[0] = "* Did you just...&* Consume the part of me& I had given you?/" - global.msg[1] = "* In front of my very eyes!?/" - global.msg[2] = "* I have no words for you..^1.&* Begone!/%%" - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = "* Thank you for taking care& of me.../%%" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = "* Huh^1? Again...?/" - global.msg[1] = "* I'm sorry..^1. if I give you& any more^1, there will be& nothing left of me./" - global.msg[2] = "* I suppose it is true^1.&* Travelling beyond our limits& is but a fantasy./" - global.msg[3] = "* It's no different for& anyone else./" - global.msg[4] = "* All of monsterkind& are doomed to stay& underground^1, forever.../%%" - } - } - if (global.flag[56] == 1) - { - global.msg[0] = "* How am I doing^1?&* By " + chr(34) + "I" + chr(34) + " I mean the piece& of me I gave you.../" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = "* Huh^1? You lost it...^1?&* ... I suppose I can give& you another piece.../" - scr_itemget(16) - if (noroom == 1) - global.msg[2] = "* You don't have any room^1?&* OK..^1. I understand I am not& a priority for you^1, then./%%" - else - { - global.msg[2] = "* Please be careful this& time./" - global.msg[3] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = "* Hello^1.&* I am a snowman./" - global.msg[1] = "* I want to see the world..^1.&* But I cannot move./" - global.msg[2] = "* If you would be so kind^1,& traveller^1, please.../" - global.msg[3] = "* Take a piece of me and& bring it very far away.& Yes No \C " - global.msg[4] = " " - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = "* It seems you do not& have enough room for me./%%" - else - { - global.msg[0] = "* Thank you... good luck!/" - global.msg[1] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* I see^1.&* Good journey^1, then./%%" - break - case 228: - global.msg[0] = "SANS!!^1!&THAT DIDN'T DO&ANYTHING!/" - if (global.flag[254] == 0) - global.msg[0] = "SANS!!^1!&THEY DIDN'T EVEN&LOOK AT IT!/" - scr_sansface(1, 0) - global.msg[2] = "* whoops./" - global.msg[3] = "* i knew i should have& used today's crossword& instead./" - scr_papface(4, 1) - global.msg[5] = "WHAT!^1?&CROSSWORD!?/" - global.msg[6] = "I CAN'T BELIEVE&YOU SAID THAT!!/" - global.msg[7] = "IN MY OPINION.../" - global.msg[8] = "\E3JUNIOR JUMBLE&IS EASILY THE&HARDEST./" - scr_sansface(9, 0) - global.msg[10] = "* what^1? really^1, dude^1?&* that easy-peasy word& scramble?/" - global.msg[11] = "\E1* that's for baby bones./" - scr_papface(12, 3) - global.msg[13] = "UN^1. BELIEVABLE./" - global.msg[14] = "\E0HUMAN!!^1!&SOLVE THIS DISPUTE!/" - global.msg[15] = "\TS \F0 \E0 \T0 %" - global.msg[16] = "* (Which is harder?)& & Jumble Crossword \C " - global.msg[17] = " " - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = "HA^1! HA^1! YES!/" - global.msg[2] = "HUMANS MUST BE&VERY INTELLIGENT!/" - global.msg[3] = "IF THEY ALSO FIND&JUNIOR JUMBLE&SO DIFFICULT!/" - global.msg[4] = "NYEH^1! HEH^1! HEH HEH!/%%" - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = "YOU TWO ARE WEIRD!/" - global.msg[2] = "\E3CROSSWORDS ARE SO&EASY./" - global.msg[3] = "IT'S THE SAME&SOLUTION EVERY&TIME./" - global.msg[4] = "\E0I JUST FILL ALL&THE BOXES IN WITH&THE LETTER " + chr(34) + "Z" + chr(34) + ".../" - global.msg[5] = "BECAUSE EVERY TIME&I LOOK AT A&CROSSWORD.../" - global.msg[6] = "ALL I CAN DO IS&SNORE!!!/" - global.msg[7] = "NYEH HEH HEH!!!/%%" - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here you go^1!&* Have a super-duper day^1!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1?&* You don't have enough& money.../" - global.msg[1] = "* I wish I could make& Nice Cream for free.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Out in the middle of& the woods.../%%" - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hey^1, you have an umbrella^1,& just like my cart.../" - global.msg[1] = "* Such solidarity^1!&* I have no choice but to& give you a deal!/" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Umbrella solidarity!^1?&* I guess I have to give& you a deal.../" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - } - if (itemcount > 2) - { - global.msg[0] = "* Hey^1!&* You have 3 Punch Cards!/" - global.msg[1] = "* How about redeeming them& for some Nice Cream!?/" - global.msg[2] = "* It's free!& & Yes No \C" - global.msg[3] = " " - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Super^1! Here you go^1!&* Your Card's in the box!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1? No money^1?&* Sorry^1, I can't give it to& you for free./%%" - if (global.flag[85] == 1) - global.msg[0] = "* Huh^1? You can't afford it& even with the discount^1?&* I.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = "* Here^1! A free Nice Cream^1!&* (You lost 3 cards and got& a Nice Cream.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Hidden in the depths of a& watery cavern.../%%" - } - break - case 235: - global.msg[0] = "* i've been thinking& about selling treats& too./" - global.msg[1] = "* want some fried snow^1?&* it's just 5G.& Buy No\C" - global.msg[2] = " " - break - case 236: - if (global.choice == 0) - { - global.msg[0] = "* did i say 5G^1?&* i meant 50G^1.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* i should charge way& more than than that./%%" - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = "* really^1?&* how about 5000G?& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* that's still too low./%%" - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = "* 50000G^1.&* that's my final offer.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* i have to pay for& the raw materials& somehow./%%" - break - case 239: - if (global.choice == 0) - { - global.msg[0] = "* what^1?&* you don't have the& money?/" - global.msg[1] = "* hey^1, that's okay./" - global.msg[2] = "\E1* i don't have any snow./%%" - if (global.gold >= 50000) - { - global.msg[0] = "* wow^1, that's a lot& of cash./" - global.msg[1] = "\E3* that's why i'm sorry& to say.../" - global.msg[2] = "\E3* i can't sell you& this fried snow./" - global.msg[3] = "\E2* it's got too much& sentimental value./%%" - } - } - if (global.choice == 1) - global.msg[0] = "* don't you know a& good deal when you& hear one?/%%" - break - case 240: - global.msg[0] = "WHAT!^1?&HOW DID YOU&AVOID MY TRAP?/" - global.msg[1] = "\E3AND^1, MORE&IMPORTANTLY.../" - global.msg[2] = "\E0IS THERE ANY&LEFT FOR ME???/" - global.msg[3] = "\TS \F0 \E0 \T0 %" - global.msg[4] = "* (What do you tell Papyrus& about his spaghetti?)& Ate it Left it \C " - global.msg[5] = " " - break - case 241: - scr_papface(0, 0) - global.msg[1] = "REALLY!?/" - if (global.choice == 0) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "NO ONE'S EVER&ENJOYED MY&COOKING BEFORE.../" - global.msg[4] = "\E0WELL THEN!!/" - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "YOU RESISTED THE&FLAVOR OF MY&HOMECOOKED PASTA.../" - global.msg[4] = "JUST SO YOU&COULD SHARE&IT WITH ME???/" - global.flag[62] = 2 - } - global.msg[5] = "\E0FRET NOT HUMAN^1!&I^1, MASTER CHEF&PAPYRUS.../" - global.msg[6] = "WILL MAKE YOU ALL&THE PASTA YOU&COULD EVER WANT!/" - global.msg[7] = "HEH HEH HEH HEH&HEH HEH NYEH!/%%" - break - case 243: - global.msg[0] = "HEY!/" - global.msg[1] = "IT'S THE HUMAN!/" - global.msg[2] = "\E0YOU'RE GONNA&LOVE THIS&PUZZLE!/" - global.msg[3] = "IT WAS MADE&BY THE GREAT&DR. ALPHYS!/" - global.msg[4] = "YOU SEE&THESE TILES&!?/" - global.msg[5] = "ONCE I THROW&THIS SWITCH.../" - global.msg[6] = "THEY WILL&BEGIN TO&CHANGE COLOR!/" - global.msg[7] = "EACH COLOR HAS&A DIFFERENT&FUNCTION!/" - global.msg[8] = "RED TILES ARE&IMPASSABLE!/" - global.msg[9] = "YOU CANNOT&WALK ON THEM!/" - global.msg[10] = "YELLOW TILES&ARE ELECTRIC!/" - global.msg[11] = "THEY WILL&ELECTROCUTE&YOU!/" - global.msg[12] = "GREEN TILES&ARE ALARM&TILES!/" - global.msg[13] = "IF YOU STEP&ON THEM.../" - global.msg[14] = "YOU WILL HAVE&TO FIGHT A&MONSTER!!/" - global.msg[15] = "ORANGE TILES&ARE ORANGE-&SCENTED./" - global.msg[16] = "THEY WILL MAKE&YOU SMELL&DELICIOUS!/" - global.msg[17] = "BLUE TILES ARE&WATER TILES./" - global.msg[18] = "SWIM THROUGH&IF YOU LIKE^1,&BUT.../" - global.msg[19] = "IF YOU SMELL&LIKE ORANGES!/" - global.msg[20] = "THE PIRANHAS&WILL BITE&YOU./" - global.msg[21] = "ALSO^1, IF A&BLUE TILE IS&NEXT TO A,/" - global.msg[22] = "YELLOW TILE^1,&THE WATER WILL&ALSO ZAP YOU!/" - global.msg[23] = "PURPLE TILES&ARE SLIPPERY!/" - global.msg[24] = "YOU WILL SLIDE&TO THE NEXT&TILE!/" - global.msg[25] = "HOWEVER^1, THE&SLIPPERY&SOAP.../" - global.msg[26] = "SMELLS LIKE&LEMONS!!/" - global.msg[27] = "WHICH PIRANHAS&DO NOT LIKE!/" - global.msg[28] = "PURPLE AND&BLUE ARE OK!/" - global.msg[29] = "FINALLY^1,&PINK TILES./" - global.msg[30] = "THEY DON'T DO&ANYTHING./" - global.msg[31] = "STEP ON THEM&ALL YOU LIKE./" - global.msg[32] = "HOW WAS THAT!^1?&UNDERSTAND???/" - global.msg[33] = "\TS \F0 \E0 \T0 %" - global.msg[34] = "* (Understand the explanation?)& & Of course No \C " - global.msg[35] = " " - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "OKAY..^1.&I GUESS I'LL&REPEAT MYSELF.../" - global.msg[2] = "\E0RED TILES ARE&IMPASSABLE./" - global.msg[3] = "YELLOW TILES ARE&ELECTRIC AND&DANGEROUS./" - global.msg[4] = "BLUE TILES MAKE&YOU FIGHT A&MONSTER./" - global.msg[5] = "GREEN TILES ARE&WATER TILES./" - global.msg[6] = "ORANGE TILES ARE&ORANGE SCENTED./" - global.msg[7] = "IF YOU STEP ON&ORANGE^1, DON'T STEP&ON GREEN./" - global.msg[8] = "\E3BROWN TILES ARE.../" - global.msg[9] = "\E1WAIT!!^1!&THERE ARE NO&BROWN TILES.../" - global.msg[10] = "\E0PURPLE TILES&SMELL LIKE&LEMONS.../" - global.msg[11] = "\E3WHY DON'T THE&YELLOW ONES&SMELL LEMONY?/" - global.msg[12] = "\E3UMM.../" - global.msg[13] = "\E1WAIT!^1!&DID I MIX UP&GREEN AND BLUE!?/" - global.msg[14] = "THE BLUE ONES&ARE WATER ONES!/" - global.msg[15] = "\E3PINK TILES.../" - global.msg[16] = "I DON'T..^1.&REMEMBER???/" - global.msg[17] = "\E1WAIT!!!/" - global.msg[18] = "\E3THOSE ONES DON'T&DO ANYTHING./" - global.msg[19] = "\E0OKAY^1!&DO YOU UNDERSTAND&BETTER NOW!?/" - global.msg[20] = "\TS \F0 \E0 \T0 %" - global.msg[21] = "* (Understand the explanation?)& & Yes Even less \C " - global.msg[22] = " " - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "........../" - global.msg[2] = "OK^1, YOU KNOW&WHAT???/" - global.msg[3] = "HOW ABOUT..^1.&YOU JUST.../" - global.msg[4] = "DO THIS PUZZLE..^1.&ON YOUR OWN.../" - global.msg[5] = "I'LL LEAVE THE&INSTRUCTIONS.../" - global.msg[6] = "JUST READ THEM./" - global.msg[7] = "THEN WHEN YOU&UNDERSTAND IT.../" - global.msg[8] = "YOU CAN THROW&THE SWITCH./" - global.msg[9] = "AND DO IT AT&YOUR OWN PACE./" - global.msg[10] = "GOOD LUCK./" - global.msg[11] = "NYEH..^1.&HEH..^1.&HEH!/%%" - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = "* (There's a lone quiche& sitting underneath& this bench.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* It's just a bench./%%" - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Abandoned& Quiche.)/%%" - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = "* (You're carrying too much.)/" - global.msg[1] = "* (You aren't ready for the& responsibility.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* (The quiche was left all& alone...)/%%" - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = "* (There's a tutu lying on& the ground here.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Old Tutu.)/%%" - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = (("* (The box contains " + card) + " cards.)/") - if (global.flag[80] > 2) - global.msg[0] = (("* (Two bugs in the box are& playing a " + card) + "-card game.)/") - if (global.flag[80] > 4) - global.msg[0] = (("* (There's a smiley face made& of " + card) + " cards in the box.)/") - if (global.flag[80] > 6) - global.msg[0] = (("* (A house made of " + card) + " cards& sits in the box.)/") - if (global.flag[80] > 12) - global.msg[0] = "* (The box is overstuffed with& cards.)/" - global.msg[1] = "* (Take a card?)& & Take Leave \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's a box for storing Punch& Cards^1.)&* (It's empty right now.)/%%" - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = "* (You got a Punch Card.)/%%" - if (global.flag[80] > 2) - global.msg[0] = "* (All games must end one day.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 4) - global.msg[0] = "* (Happiness is fleeting.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 6) - global.msg[0] = "* (The house collapses.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 12) - global.msg[0] = "* (You got a Punch Card.)/%%" - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = "* (It's a pair of ballet shoes.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Ballet Shoes.)/%%" - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 254: - global.msg[0] = "* (This little bird wants to& carry you across.)/" - global.msg[1] = "* (Accept the bird's offer?)& & Get ride No \C " - global.msg[2] = " " - if (global.flag[85] == 1) - global.msg[0] = "* (Umbrellas and birds...^1)&* (A bad combination.)/%%" - break - case 255: - global.msg[0] = " %%" - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = "* (It's a legendary artifact.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The artifact is gone.)/%%" - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = "* (This will never happen.)/%%" - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - if (noroom == 2) - global.msg[0] = "* (You're carrying too many& dogs.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/" - global.msg[1] = "* (Take a package of noodles?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/%%" - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Instant Noodles.)/%%" - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* (You decide to stay healthy.)/%%" - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = "* (There's a frypan lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Burnt Pan.)/%%" - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = "* (There's an apron lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Stained Apron.)/%%" - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = "* (There's a Glamburger inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Glamburger.)/%%" - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = "* (There's 100G inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = "* (You got 100G.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = "* (There's a worn dagger& inside the box.)/" - else - global.msg[0] = "* (Knife inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Worn Dagger.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got the Real Knife.)/%%" - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = "* (There's a heart-shaped& locket inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Heart-shaped& Locket.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got The Locket.)/%%" - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 272: - global.msg[0] = "* (The box is empty.)/%%" - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = "* Hello...&* Would you like some& Nice Cream...?/" - global.msg[1] = "* It's the frozen treat...&* That warms your heart./" - global.msg[2] = "* Now only 12G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[250] >= 1) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1.&* It's the frozen treat^1.&* That warms your heart./" - global.msg[2] = "* Now just 12G.& & Yes No \C" - global.msg[3] = " " - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here^1.&* (You got the Nice Cream.)/%%" - if (afford == 0) - global.msg[0] = "* You don't have enough& money.../%%" - } - if (noroom == 1) - global.msg[0] = "* Drop something./%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* Life..^1. is suffering./%%" - } - break - case 500: - global.msg[0] = "* (Golden flowers.^1)&* (They must have& broken your fall.)/%%" - global.msg[1] = "%%%" - break - case 501: - global.msg[0] = "* " + chr(34) + "Press [Z] to read signs!" + chr(34) + "/%%" - break - case 502: - global.msg[0] = "* Just a regular old pillar./%%" - break - case 503: - global.msg[0] = "* Please don't step on the& leaves./%%" - break - case 504: - global.msg[0] = "* Didn't you read the sign& downstairs?/%%" - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* WHOA there^1, pardner^2!&* Who said you could push& me around?/" - global.msg[1] = "* HMM^2?&* So you're ASKIN' me to& move over?/" - global.msg[2] = "* Okay^1, just for you^1,& pumpkin./%%" - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You want me to move some& more?/" - global.msg[1] = "* Alrighty^1, how's this?/%%" - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* That was the wrong direction?/" - global.msg[1] = "* Okay^1, think I got it./%%" - } - if (conversation == 9) - global.msg[0] = "* Was that helpful?/%%" - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You wanted me to STAY there?/" - global.msg[1] = "* You're giving me a real& workout./%%" - } - } - else - { - global.msg[0] = "* Aren't things easier when& you just ask?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* The exit's open^1?&* Guess I better roll out.../" - global.msg[1] = "* Hey^1, y'mind giving me a& push^1, pumpkin?/%%" - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = "*'Take one.'&* Take a candy?& Yes No \C" - if (global.flag[34] == 0) - global.msg[0] = "* It says 'take one.'&* Take a piece of candy?& Yes No \C" - } - else - global.msg[0] = "* Look at what you've done./%%" - global.msg[1] = " " - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = "* You took a piece of candy.&* (Press [C] to open the menu.)/%%" - if (global.flag[34] == 2) - global.msg[0] = "* You took more candy^1.&* How disgusting../%%" - if (global.flag[34] == 3) - global.msg[0] = "* You take another piece.&* You feel like the& scum of the earth.../%%" - if (global.flag[34] == 4) - global.msg[0] = "* You took too much too fast.&* The candy spills onto& the floor./%%" - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = "* In this hellish world^1, you& can only take 3 pieces& of candy.../%%" - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - } - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 510: - global.msg[0] = "* zzzzzzzzzzzzzzz..^1.&* zzzzzzzzzzzzzz.../" - global.msg[1] = "* zzzzzzzzzz..^1.&* (are they gone yet^1)&* zzzzzzzzzzzzzzz.../" - global.msg[2] = "* (This ghost keeps saying 'z'& out loud repeatedly^1,& pretending to sleep.)/" - global.msg[3] = "* Move it with force?& & Yes No \C" - global.msg[4] = " " - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = "* It says 'Take them all.'&* Take a candy?& Yes No \C" - global.msg[1] = " " - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = "* You took a piece.&* Boy^1, that's heavy./%%" - if (haveit == 1) - global.msg[0] = "* You can't carry more.&* It's just too heavy./%%" - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 7G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 18G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = "* You found a Faded Ribbon./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = "* Nothing happened./%%" - if (global.choice == 1) - global.msg[0] = "%%" - if (global.flag[43] > 25) - global.msg[0] = "* You're making the switches& uncomfortable with all& this attention./%%" - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = "* You hear a clicking sound./%%" - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = "* You found the Toy Knife./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = "* It's TORIEL's diary.&* Read the circled passage?& Yes No \C" - global.msg[1] = " " - break - case 525: - if (global.choice == 0) - { - global.msg[0] = "* You read the passage.../" - global.msg[1] = "* " + chr(34) + "Why did the skeleton want& a friend?" + chr(34) + "/" - global.msg[2] = "* " + chr(34) + "Because she was feeling& BONELY..." + chr(34) + "/" - global.msg[3] = "* The rest of the page is& filled with jokes of& a similar caliber./%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& butterscotch-cinnamon& pie./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& snail pie.../%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - break - case 527: - global.msg[0] = "* Hello there^1,& little one!/" - global.msg[1] = "* The pie has not& cooled down yet./" - global.msg[2] = "* Perhaps you should& take a nap.& Yes No \C " - global.msg[3] = " " - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = "* Sweet dreams./%%" - else - { - global.msg[0] = "\E1* You'd rather stay& up and chat with& me^1, then?/" - if (global.flag[103] > 0) - global.msg[0] = "* Up already^1, I see?/" - global.msg[1] = "\E0* Um^1, I want you to know& how glad I am to& have someone here./" - global.msg[2] = "* There are so many& old books I want& to share./" - global.msg[3] = "* I want to show you& my favorite bug-& hunting spot./" - global.msg[4] = "* I've also prepared& a curriculum for& your education./" - global.msg[5] = "* This may come as& a surprise to you.../" - global.msg[6] = "* But I have always& wanted to be a& teacher./" - global.msg[7] = "\E1* ... actually^1, perhaps& that isn't very& surprising./" - global.msg[8] = "\E5* STILL./" - global.msg[9] = "\E0* I am glad to have& you living here./" - global.msg[10] = "\E1* Oh^1, did you& want something?/" - global.msg[11] = "* What is it?& When can& Nothing I go home?\C " - global.msg[12] = " " - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = "* Well^1, talk to me& again if you& need anything./%%" - else - { - global.msg[0] = "\E1* What^1?&* This..^1. this IS your& home now./" - global.msg[1] = "* Um..^1. would you like& to hear about this& book I am reading?/" - if (global.choice == -1) - { - global.msg[0] = "\E0* Oh^1, hello!/" - global.msg[1] = "* Did you want to& hear about the& book I am reading?/" - } - global.msg[2] = "\E0* It is called& " + chr(34) + "72 Uses for Snails." + chr(34) + "/" - global.msg[3] = "* How about it?& How to exit& Sure the RUINS\C " - global.msg[4] = " " - } - break - case 530: - global.plot = 19.3 - global.msg[0] = "* Here is an exciting& snail fact./" - if (global.choice == 1) - global.msg[0] = "\E1* Um^1.^1.^1.&*\E0 How about an exciting& snail fact?/" - global.msg[1] = "\E2* Did you know& that snails.../" - r = round(random(3)) - if (r == 0) - global.msg[2] = "\E0* Have a chainsaw-like& tongue called a& radula?/" - if (r == 1) - global.msg[2] = "\E0* Sometimes flip their& digestive systems& as they mature?/" - if (r == 2) - global.msg[2] = "\E0* Make terrible& shoelaces?/" - if (r == 3) - global.msg[2] = "\E0* Talk^2. Really^2. Slowly^2?&* Just kidding^1, snails& don't talk./" - global.msg[3] = "\E0* Interesting.& How to exit& Yeah the RUINS\C " - global.msg[4] = " " - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = "* Well^1, bother me& if you need anything& else./%%" - else - { - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something^1.&* Stay here./%%" - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = "\E0* What is it?& How to exit& Nothing the RUINS\C " - } - global.msg[1] = " " - break - case 532: - if (global.choice == 0) - global.msg[0] = "* If you need anything^1,& just ask./%%" - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something.&* Stay here./%%." - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = " " - break - case 540: - global.msg[0] = "\E2NYOO HOO HOO.../" - global.msg[1] = "I CAN'T EVEN&STOP SOMEONE AS&WEAK AS YOU.../" - global.msg[2] = "UNDYNE'S GOING TO&BE DISAPPOINTED&IN ME./" - global.msg[3] = "I'LL NEVER JOIN THE&ROYAL GUARD..^1.&AND.../" - global.msg[4] = "MY FRIEND QUANTITY&WILL REMAIN&STAGNANT!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (What should you say?)& Let's be What a& friends loser\C" - global.msg[7] = " " - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = "\E0WOWIE!^1!&YOU DID IT!!!/" - global.msg[1] = "YOU DIDN'T DO A&VIOLENCE!!!/" - global.msg[2] = "\E5TO BE HONEST^1,&I WAS A LITTLE&AFRAID.../" - global.msg[3] = "\E0BUT YOU'RE ALREADY&BECOMING A GREAT&PERSON!/" - global.msg[4] = "\E7I'M SO PROUD I&COULD CRY!!!/" - global.msg[5] = "\E3... WAIT^1, WASN'T I&SUPPOSED TO&CAPTURE YOU...?/" - global.msg[6] = "\E0WELL^1, FORGET IT!/" - global.msg[7] = "I JUST WANT YOU&TO BE THE BEST&PERSON YOU CAN BE./" - global.msg[8] = "SO LET'S LET&BYBONES BE&BYBONES./" - global.msg[9] = "I'LL EVEN TELL YOU&HOW TO LEAVE THE&UNDERGROUND!/" - global.msg[10] = "JUST KEEP GOING&EAST!/" - global.msg[11] = "EVENTUALLY YOU'LL&REACH THE KING'S&CASTLE./" - global.msg[12] = "THEN YOU CAN&LEAVE!/%%" - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "REALLY!^1?&YOU WANT TO BE&FRIENDS^1, WITH ME???/" - global.msg[2] = "WELL THEN.../" - global.msg[3] = "\E0I GUESS..^1./" - global.msg[4] = "I GUESS&I CAN MAKE AN&ALLOWANCE FOR YOU!/" - global.msg[5] = " %" - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "HUH^1?&WHY WOULD YOU.../" - global.msg[2] = "BERATE YOURSELF&SO LOUDLY???/" - global.msg[3] = "IS IT BECAUSE.../" - global.msg[4] = "\E3YOU DON'T THINK&YOU'RE GOOD ENOUGH&TO BE MY FRIEND?/" - global.msg[5] = "\E0NO!!^1!&YOU'RE GREAT!!^1!&I'LL BE YOUR FRIEND!/" - } - if (global.flag[66] == 1) - { - global.msg[6] = "WOWIE!^1!&WE HAVEN'T EVEN HAD&OUR FIRST DATE.../" - global.msg[7] = "AND I'VE ALREADY&MANAGED TO HIT&THE FRIEND ZONE!!!/" - global.msg[8] = "WHO KNEW THAT&ALL I NEEDED TO&MAKE PALS.../" - } - else - { - global.msg[6] = "WOW!!!/" - global.msg[7] = "I HAVE FRIENDS!!!/" - global.msg[8] = "AND WHO KNEW THAT&ALL I NEEDED TO&MAKE THEM.../" - } - global.msg[9] = "WAS TO GIVE PEOPLE&AWFUL PUZZLES AND&THEN FIGHT THEM??/" - global.msg[10] = "YOU TAUGHT ME A&LOT^1, HUMAN./" - global.msg[11] = "I HEREBY GRANT&YOU PERMISSION&TO PASS THROUGH!/" - global.msg[12] = "AND I'LL GIVE&YOU DIRECTIONS&TO THE SURFACE./" - global.msg[13] = "CONTINUE FORWARD&UNTIL YOU REACH THE&END OF THE CAVERN./" - global.msg[14] = "\WTHEN..^1. WHEN YOU&REACH THE CAPITAL^1,&CROSS \YTHE BARRIER\W./" - global.msg[15] = "THAT'S THE MAGICAL&SEAL TRAPPING US&ALL UNDERGROUND./" - global.msg[16] = "ANYTHING CAN ENTER&THROUGH IT^1, BUT&NOTHING CAN EXIT.../" - global.msg[17] = "... EXCEPT SOMEONE&WITH A POWERFUL&SOUL./" - global.msg[18] = "... LIKE YOU!!!/" - global.msg[19] = "THAT'S WHY THE&KING WANTS TO&ACQUIRE A HUMAN./" - global.msg[20] = "HE WANTS TO OPEN&THE BARRIER WITH&SOUL POWER./" - global.msg[21] = "THEN US MONSTERS&CAN RETURN TO&THE SURFACE!/%%" - break - case 544: - global.msg[0] = "YOU'RE BACK AGAIN?!?!/" - global.msg[1] = "I FINALLY REALIZE&THE TRUE REASON WHY./" - global.msg[2] = "YOU.../" - global.msg[3] = "JUST MISS SEEING MY&FACE SO MUCH.../" - global.msg[4] = "I'M NOT SURE I&CAN FIGHT SOMEONE&WHO FEELS THIS WAY./" - global.msg[5] = "BUT MOSTLY..^1. I'M GETTING&REALLY TIRED OF&CAPTURING YOU!/" - global.msg[6] = "SO..^1.&WHAT DO YOU SAY?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* (Fight Papyrus?)& & Yes No\C" - global.msg[8] = " " - break - case 545: - global.msg[0] = "\TP %" - if (global.choice == 0) - { - global.msg[1] = "OKAY.../" - global.msg[2] = "I GUESS./" - global.msg[3] = "IF YOU WANT ME TO&CAPTURE YOU./" - global.msg[4] = "I'LL TRY AGAIN!!!/%%" - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = "... OKAY.../" - global.msg[2] = "I GUESS I'LL ACCEPT&MY FAILURE.../%%" - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = "* Welcome to Snowed Inn^1!&* Snowdin's premier hotel!/" - global.msg[1] = "* One night is 80G.& & Stay Leave\C" - if (global.flag[72] == 2) - { - global.msg[0] = "* Back again^1?&* Well^1, stay as long as you& like./" - global.msg[1] = "* How about it?& & Stay Leave\C" - } - global.msg[2] = " " - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = "* What^1?&* No^1, you can't get a& second key!" - if (global.flag[7] == 1) - { - global.msg[0] = "* Hello^1!&* Sorry^1, no time for a& nap.../" - global.msg[1] = "* Snowed Inn is shutting& down so we can all go& to the surface./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Oh^1, there you are^1.&* I was worrying about& you!/" - global.msg[1] = "* Things are going to be OK^1,& you hear?/" - global.msg[2] = "* We're all going to the& surface world soon.../" - global.msg[3] = "* There's bound to be a& place you can stay there!/%%" - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = "Error./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = "* ... You don't even have 80G?/" - global.msg[1] = "* Oh^1! You poor thing^1.&* I can only imagine what& you've been through./" - global.msg[2] = "* One of the rooms upstairs& is empty^1./" - global.msg[3] = "* You can sleep there for& free^1, okay?/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = "* You aren't carrying enough& money./%%" - } - else - global.msg[0] = "* Well^1, feel free to come& back any time./%%" - break - case 549: - global.msg[0] = "* (Look through the telescope?)& & Yes No\C" - global.msg[1] = " " - break - case 550: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = "* i'm thinking about& getting into the& telescope business./" - global.msg[1] = "* it's normally 50000G& to use this premium& telescope.../" - global.msg[2] = "* but..^1.&*\E1 since i know you^1,& you can use it for free./" - global.msg[3] = "\E2* howzabout it?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Use the telescope?)& & Yes No\C" - } - else - { - global.msg[0] = "* huh^1?&* you aren't satisfied?/" - global.msg[1] = "\E1* don't worry./" - global.msg[2] = "\E2* i'll give you a& full refund./%%" - } - global.msg[6] = " " - break - case 552: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = "* well^1, come back& whenever you want./%%" - } - break - case 553: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - global.flag[75] = global.armor - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "\E3HOW DID I GET THIS&NUMBER...?/" - global.msg[4] = "\E0IT WAS EASY!!!/" - global.msg[5] = "\E0I JUST DIALED EVERYNUMBER SEQUENTIALLYUNTIL I GOT YOURS!!!/" - global.msg[6] = "NYEH HEH HEH HEH!!/" - global.msg[7] = "\E2SO..^1.&WHAT ARE YOU&WEARING...?/" - global.msg[8] = "\E3I'M..^1.&ASKING FOR A&FRIEND./" - global.msg[9] = (("\E0SHE THOUGHT SHE&SAW YOU WEARING A&" + armor) + "./") - global.msg[10] = (("\E3IS THAT TRUE^1?&ARE YOU WEARING A&" + armor) + "?/") - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* (What will you say?)& & Yes No\C" - global.msg[13] = " " - break - case 554: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = (("SO YOU ARE WEARING&A " + armor) + ".../") - global.msg[2] = "GOT IT!!^1!&WINK WINK!!!/" - global.msg[3] = "HAVE A NICE DAY!/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - } - else - { - global.flag[76] = 1 - global.msg[1] = (("SO YOU AREN'T&WEARING A&" + armor) + ".../") - global.msg[2] = "GOT IT!/" - global.msg[3] = "YOU'RE MY FRIEND^1,&SO I TRUST YOU&100-PERCENT./" - global.msg[4] = "HAVE A NICE DAY!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - break - case 556: - global.msg[0] = "* (There's an empty pie tin& inside the stove.)/%%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "\E0MY BROTHER ALWAYS&GOES OUT TO EAT^1.&BUT.../" - global.msg[2] = "\E3RECENTLY^1, HE TRIED&'BAKING' SOMETHING./" - global.msg[3] = "IT WAS LIKE..^1.&A QUICHE./" - global.msg[4] = "BUT FILLED WITH A&SUGARY^1, NON-EGG&SUBSTANCE./" - global.msg[5] = "\E0HOW ABSURD!/%%" - } - break - case 557: - global.msg[0] = "* (It's a joke book.)/" - global.msg[1] = "* (Take a look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 558: - if (global.choice == 0) - { - global.msg[0] = "* (Inside the joke book was& a quantum physics book.)/" - global.msg[1] = "* (You look inside...)/" - global.msg[2] = "* (Inside the quantum physics& book was another joke& book.)/" - global.msg[3] = "* (You look inside...)/" - global.msg[4] = "* (There's another quantum& physics book...)/" - global.msg[5] = "* (You decide to stop.)/%%" - } - else - global.msg[0] = " %%" - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THAT'S MY ROOM^1!/" - global.msg[2] = "IF YOU'VE&FINISHED LOOKING&AROUND.../" - global.msg[3] = "WE COULD GO IN&AND.../" - global.msg[4] = "" + chr(34) + "HANG-OUT" + chr(34) + " LIKE&A PAIR OF VERY&COOL FRIENDS?/" - if (global.flag[66] == 1) - global.msg[4] = "\E3DO WHATEVER&PEOPLE DO WHEN&THEY DATE???/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Go inside?)& & Yes No\C" - global.msg[7] = " %" - } - else - { - global.msg[0] = "* (It's the door to& Papyrus's room.)/" - global.msg[1] = "* (It's covered in many& labels...)/" - global.msg[2] = "\TP %" - global.msg[3] = "* (NO GIRLS ALLOWED!)/" - global.msg[4] = "* (NO BOYS ALLOWED!)/" - global.msg[5] = "* (PAPYRUS ALLOWED.)/%%" - } - break - case 560: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THERE ARE NO&SKELETONS INSIDE&MY CLOSET!!!/" - global.msg[2] = "\E3EXCEPT ME&SOMETIMES./" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Look in the closet?)& & Yes No\C" - global.msg[5] = " " - } - else - { - global.msg[0] = "* (Look in the closet?)& & Yes No\C" - global.msg[1] = " " - } - break - case 562: - if (global.choice == 0) - global.msg[0] = "* (Clothes are hung up& neatly inside.)/%%" - else - { - global.msg[0] = " %%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "IT'S OK TO BE&INTIMIDATED BY&MY FASHION SENSE./%%" - } - } - break - case 563: - global.msg[0] = "\E3SO^1, UM.../" - global.msg[1] = "\E3IF YOU'VE SEEN&EVERYTHING.../" - global.msg[2] = "\E2DO YOU WANT TO&START HANGING OUT?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the hangouts?)& & Yes No\C" - global.msg[5] = " " - if (global.flag[66] == 1) - { - global.msg[2] = "\E2DO YOU WANT TO&START THE DATE?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the date?)& & Yes No\C" - global.msg[5] = " " - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = "\E0OKAY!!^1!&DATING START!!!/%%" - if (global.flag[66] == 0) - global.msg[1] = "\E0OKAY!!^1!&LET'S HANG TEN!!/%%" - } - else - { - scr_papface(0, 2) - global.msg[1] = "\E2TAKE YOUR TIME..^1.&I'LL WAIT FOR&YOU./%%" - } - break - case 565: - global.msg[0] = "* (This mailbox is labelled& " + chr(34) + "PAPYRUS" + chr(34) + ".)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 566: - if (global.choice == 0) - global.msg[0] = "* (It's empty.)/%%" - else - global.msg[0] = "* (You realize that would& probably be illegal.)/%%" - break - case 567: - global.msg[0] = "* what^1?&* haven't you seen a guy& with two jobs before?/" - global.msg[1] = "\E1* fortunately^1, two jobs& means twice as many& legally-required breaks./" - global.msg[2] = "\E0* i'm going to grillby's.&* wanna come?& Yeah I'm busy \C" - global.msg[3] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - if (scr_murderlv() >= 7) - { - global.msg[0] = "\E2* hey^1, looks like you're& really turning yourself& around./" - global.msg[1] = "\E0* how about i treat you& to lunch at grillby's?/" - global.msg[2] = "\E1* ... when everyone you& scared away comes& back^1, i mean./%%" - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = "* well^1, if you insist..^1.&* i'll pry myself away& from my work.../%%" - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* OK^1. have fun./%%" - break - case 570: - global.msg[0] = "\E1* whoops^1, watch where& you sit down./" - global.msg[1] = "* sometimes weirdos put& whoopee cushions on& the seats./" - global.msg[2] = "\E0* anyway^1, let's order./" - global.msg[3] = "* whaddya want...?& & Fries Burger\C" - global.msg[4] = " " - break - case 571: - global.msg[0] = "* ok^1, coming right up./%%" - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& fries./%%" - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& burg./%%" - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = "* so^1, what do you& think.../" - global.msg[1] = "* of my brother?& & Cool Uncool\C" - global.msg[2] = " " - break - case 573: - if (global.choice == 0) - { - global.msg[0] = "* of course he's cool./" - global.msg[1] = "\E1* you'd be cool too& if you wore that& outfit every day./" - global.msg[2] = "\E0* he'd only take that& thing off if he& absolutely had to./" - global.msg[3] = "* oh well^1.&* at least he washes& it./" - global.msg[4] = "\E1* and by that i mean& he wears it in& the shower./%%" - } - else - { - global.msg[0] = "* hey^1, pal./" - global.msg[1] = "\E1* sarcasm isn't funny^1,& okay?/" - global.msg[2] = "\E0* my brother's a real& star./" - global.msg[3] = "* he's the person who& pushed me to get& this sentry job./" - global.msg[4] = "* maybe it's a little& strange^1, but& sometimes.../" - global.msg[5] = "* ... it's nice to have& someone call you out& on being lazy./" - global.msg[6] = "\E1* even though nothing& could be further& from the truth./%%" - } - break - case 574: - global.msg[0] = "* here comes the grub./" - global.msg[1] = "* want some ketchup^1?& & Yes No \C" - global.msg[2] = " " - break - case 575: - if (global.choice == 0) - global.msg[0] = "\E2* bone appetit./%%" - else - { - global.msg[0] = "\E2* more for me./%%" - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = "\W* have you ever heard& of a \Ytalking flower\W?& Yes No \C" - global.msg[1] = " " - break - case 577: - if (global.choice == 0) - global.msg[0] = "\E1* so you know all& about it./" - if (global.choice == 1) - global.msg[0] = "\E1* i'll tell you^1, then./" - global.msg[1] = "\W*\E0 the \Becho flower\W./" - global.msg[2] = "* they're all over the& marsh./" - global.msg[3] = "* say something to them^1,& and they'll repeat it& over and over.../" - global.msg[4] = "* what about it?/" - global.msg[5] = "* well^1, papyrus told& me something interesting& the other day./" - global.msg[6] = "* sometimes^1, when no& one else is around.../" - global.msg[7] = "* a flower appears and& whispers things to& him./" - global.msg[8] = "* flattery..^1.&* advice..^1.&* encouragement.../" - global.msg[9] = "* ... predictions./" - global.msg[10] = "* weird^1, huh?/" - global.msg[11] = "* someone must be using& an echo flower to& play a trick on him./" - global.msg[12] = "* keep an eye out^1, ok?/" - global.msg[13] = "* thanks./%%" - break - case 578: - global.msg[0] = "\E1* oh^1, by the way.../" - global.msg[1] = "\E0* i'm flat broke^1.&* can you foot the& bill?/" - global.msg[2] = "* it's just 10000G.& & Yes No \C" - global.msg[3] = " " - break - case 579: - global.msg[0] = " %%" - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = "* My mind is running wild^1!&* I haven't felt like this& in a long time.../%%" - if (global.flag[84] == 5) - global.msg[0] = "* Please leave./%%" - if (global.flag[84] < 2) - { - global.msg[0] = "* You..^1.&* You came from outside^1,& didn't you?/" - global.msg[1] = "* People like you are so& rare.../" - global.msg[2] = "* Please^1!* Stranger!/" - global.msg[3] = "* Tell me about outside...?& & Yes No\C" - global.msg[4] = " " - } - if (global.flag[84] == 2) - global.msg[0] = "* Well^1, what are you& waiting for?/%%" - if (global.flag[84] == 3) - { - global.msg[0] = "* Oh^1!&* You're back!/" - global.msg[1] = "* How's the room?& & Different Same\C" - global.msg[2] = " " - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = "* Huh^1?&* " + chr(34) + "SURFACE" + chr(34) + "^1?&* What do you mean?/" - global.msg[1] = "* I just meant outside this& room./" - global.msg[2] = "* If you haven't noticed^1, my& mycelium have bound me& to the ground./" - global.msg[3] = "* Please^1!&* Stranger!/" - global.msg[4] = "* I'll make this simple./" - global.msg[5] = "* I've spent my whole life& in the same spot^1,& in the same room./" - global.msg[6] = "* But I've long wondered& what lies inside the& room to the right./" - global.msg[7] = "* Long I've fantasized& about entering^1, and& changing my scenery.../" - global.msg[8] = "* No..^1.&* Changing my LIFE!/" - global.msg[9] = "* Please^1.&* Go and tell me what's& inside./%%" - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* Is everyone out there& like you^1?&* How terrible./%%" - } - else - { - if (global.choice == 0) - { - global.msg[0] = "* Oh^1, that's a relief^1!/" - global.msg[1] = "* That's all I need to& continue my fantasies^1.&* Thank you^1, stranger./%%" - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = "* So it's the same./" - global.msg[1] = "* The same.../" - global.msg[2] = "* Same.../" - global.msg[3] = "* .../" - global.msg[4] = "* OK./%%" - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = "* (Take an umbrella?)& & Take one Do not\C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (Return the umbrella?)& & Put back Do not\C" - global.msg[1] = " " - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You took an umbrella.)/%%" - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = " %%" - } - else if (global.choice == 0) - { - global.msg[0] = "* (You returned the umbrella.)/%%" - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 585: - global.msg[0] = "* (It's a statue^1.)&* (The structures at its& feet seem dry.)/%%" - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = "* (Put the umbrella on the& statue?)& Yes Do not\C" - global.msg[1] = " " - } - if (global.flag[86] == 1) - global.msg[0] = "* (The music continues^1, and& doesn't stop.)/%%" - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You place the umbrella& atop the statue.)/" - global.msg[1] = "* (Inside the statue^1, a music& box begins to play...)/%%" - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 587: - global.msg[0] = "* (It's a rusty old& fridge.)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 588: - if (global.choice == 0) - { - global.msg[0] = "* (You open the fridge.^1)&* (The air fills with a& rotten stench.)/" - global.msg[1] = "* (All the food inside here& spoiled long ago.)/%%" - } - else - global.msg[0] = " %%" - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = "* error/%%" - if (global.flag[108] > 2) - global.msg[0] = "* (The cooler is empty.)/%%" - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = "* (Take a space food bar& from the cooler?)& Yes No \C" - global.msg[1] = " " - } - if (global.flag[108] == 0) - { - global.msg[0] = "* (It's a cooler^1.&* It has no brand^1, and& shows no signs of wear...)/" - global.msg[1] = "* (Inside are a couple& of freeze-dried space& food bars.)/" - global.msg[2] = "* (Take one?)& & Yes No \C" - global.msg[3] = " " - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = "* (You got the Astronaut Food.)/%%" - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* %%" - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = "* (Seems like a regular& training dummy.)/" - global.msg[1] = "* (Do you want to beat it& up?)& Yes No \C" - global.msg[2] = " " - } - else - global.msg[0] = "* (You've had enough of& the dummy.)/%%" - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = "* (You tap the dummy with& your fist.)/" - global.msg[1] = "* (You feel bad.)/%%" - } - if (global.lv > 1) - { - global.msg[0] = "* (You hit the dummy& lightly.)/" - global.msg[1] = "* (You don't feel like& you learned anything.)/%%" - } - if (global.lv > 4) - { - global.msg[0] = "* (You sock the dummy.)/" - global.msg[1] = "* (Who cares?)/%%" - } - if (global.lv > 7) - { - global.msg[0] = "* (You punch the dummy at& full force.)/" - global.msg[1] = "* (Feels good.)/%%" - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = "* (You stare into each& other's eyes for a& moment...)/%%" - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = "* (It's a horse stable.)/" - global.msg[1] = "* (Do you want to go& inside?)& Yes No \C" - global.msg[2] = " " - break - case 594: - if (global.choice == 0) - { - global.msg[0] = "* (You jostle the door.)&* (It's locked.)/" - global.msg[1] = "* (Suddenly^1, from inside& the [redacted], you hear a&/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 1) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* (Spooktunes are dead.)/%%" - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 608: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 2) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 610: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 3) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 612: - global.msg[0] = "* (Look inside the fridge?)& & Open it No\C" - global.msg[1] = " " - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = "* (There's a lonely sandwich& inside.)/%%" - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = "* (It's empty.)/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 615: - global.msg[0] = "* this is a ghost sandwich.../" - global.msg[1] = "* do you want to try it...& & Yes No\C" - global.msg[2] = " " - break - case 616: - if (global.choice == 0) - { - global.msg[0] = "* (You attempt to bite& into the ghost sandwich.)/" - global.msg[1] = "* (You phase right through& it...)/" - global.msg[2] = "* oh.../" - global.msg[3] = "* nevermind.../%%" - } - if (global.choice == 1) - global.msg[0] = "* oh.....................& ....................& ................./%%" - break - case 617: - global.msg[0] = "* after a great meal i like& to lie on the ground and& feel like garbage.../" - global.msg[1] = "* it's a family tradition.../" - global.msg[2] = "* do you want..^1.&* ... to join me...& Yes No\C" - global.msg[3] = " " - break - case 618: - if (global.choice == 0) - global.msg[0] = "* okay..^1.&* follow my lead.../%%" - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = "* oh.....................& ....................& ................./%%" - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = "* do you want to play a game^1?&* it's called thundersnail./" - global.msg[1] = "* the snails will race^1, and if& the yellow snail wins^1, you& win./" - global.msg[2] = "* it's 10G to play.& & Play No\C" - global.msg[3] = " " - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = "* um..^1.&* you don't have any money?/" - global.msg[1] = "* n-no^1, you can still play^1,& don't worry about it.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = "* um..^1. that's less than 10G./" - global.msg[1] = "* but since you're my only& real customer^1, i guess i'll& just take what you have.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[1] = "* ready?/%%" - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* oh.........../%%" - break - case 621: - global.msg[0] = "* .../" - global.msg[1] = "* Seven./" - global.msg[2] = "* Seven human souls./" - global.msg[3] = "* With the power of seven& human souls^1, our king.../" - global.msg[4] = "\W* \YKing \RASGORE \YDreemurr\W.../" - global.msg[5] = "* ... will become a god./" - global.msg[6] = "\W* With that power^1, \RASGORE\W & can finally shatter the& barrier./" - global.msg[7] = "* He will finally take the& surface back from humanity.../" - global.msg[8] = "* And give them back the& suffering and pain that& we have endured./" - global.msg[9] = "* .../" - global.msg[10] = "* Understand^1, human?/" - global.msg[11] = "* This is your only chance& at redemption./" - global.msg[12] = "* Give up your soul.../" - global.msg[13] = "* Or I'll tear it from& your body./%%" - break - case 622: - if (global.choice == 0) - { - global.msg[0] = "* That spark in your eyes.../" - global.msg[1] = "* You're really eager to& die^1, aren't you?/%%" - } - if (global.choice == 1) - global.msg[0] = "* .../%%" - break - case 623: - global.msg[0] = "* Yo^1, I know I'm not supposed& to be here^1, but.../" - global.msg[1] = "* I wanna ask you something./" - global.msg[2] = "* .../" - global.msg[3] = "* Man^1, I've never had to ask& anyone this before.../" - global.msg[4] = "* Umm.../" - global.msg[5] = "* Yo..^1. You're human^1, right?&* Haha./" - global.msg[6] = "* Man^1! I knew it!/" - global.msg[7] = "* ... well^1, I know it now^1,& I mean.../" - global.msg[8] = "* Undyne told me^1, um^1, " + chr(34) + "stay& away from that human." + chr(34) + "/" - global.msg[9] = "* So^1, like^1, ummm.../" - global.msg[10] = "* I guess that makes us enemies& or something./" - global.msg[11] = "* But I kinda stink at that^1,& haha./" - global.msg[12] = "* Yo^1, say something mean so& I can hate you?/" - global.msg[13] = "* Please? & & Yes No \C" - global.msg[14] = " " - break - case 624: - if (global.choice == 0) - { - global.msg[0] = "* Huh...?/" - global.msg[1] = "* Yo^1, that's your idea of& something mean?/" - global.msg[2] = "* My sister says that to me& ALL THE TIME!/" - global.msg[3] = "* Guess I have to do it^1, haha./" - global.msg[4] = "* Yo^1, I..^1. I hate your guts./" - global.msg[5] = "* .../" - global.msg[6] = "* Man^1, I..^1. I'm such a turd./" - global.msg[7] = "* I'm..^1. I'm gonna go home& now./%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Yo^1, what^1?&* So I have to do it?/" - global.msg[1] = "* Here goes nothing.../" - global.msg[2] = "* Yo^1, I..^1. I hate your guts./" - global.msg[3] = "* .../" - global.msg[4] = "* Man^1, I..^1. I'm such a turd./" - global.msg[5] = "* I'm..^1. I'm gonna go home& now./%%" - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = "* (It's a water cooler.)&* (Take a cup of water?)& Yes No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There's no more water left& in the cooler.)/%%" - if instance_exists(obj_undynefall) - global.msg[0] = "* (Sadistically^1, you've poured& out all the water right in& front of Undyne's eyes.)/%%" - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = "* (You take a cup of water.)/%%" - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 627: - global.msg[0] = "* (Get rid of the water?)& & Yes No \C" - global.msg[1] = " " - break - case 628: - if (global.choice == 0) - { - global.msg[0] = "* (You pour the water on& the ground next to the& water cooler.)/%%" - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 629: - global.msg[0] = "* A rousing error./%%" - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = "* (Give Undyne the water?)& & Yes No \C" - global.msg[1] = " " - } - else - global.msg[0] = "* (She looks dry...)/%%" - } - break - case 630: - global.msg[0] = " %%" - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = "BEPIS." - armor2 = "BEPIS." - if (global.flag[75] == 4) - armor1 = "GROSS BANDAGE" - if (global.flag[75] == 12) - armor1 = "FADED RIBBON" - if (global.flag[75] == 15) - armor1 = "BANDANNA" - if (global.flag[75] == 24) - armor1 = "DUSTY TUTU" - if (global.flag[77] == 4) - armor2 = "GROSS BANDAGE" - if (global.flag[77] == 12) - armor2 = "FADED RIBBON" - if (global.flag[77] == 15) - armor2 = "BANDANNA" - if (global.flag[77] == 24) - armor2 = "DUSTY TUTU" - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "REMEMBER WHEN&I ASKED YOU&ABOUT CLOTHES?/" - global.msg[4] = "\E3WELL^1, THE FRIEND&WHO WANTED TO&KNOW.../" - global.msg[5] = "\E0HER OPINION OF&YOU IS VERY.../" - global.msg[6] = "\E3MURDERY./" - global.msg[7] = "\E0ERROR!!^1!&SEE YOU LATER!/%%" - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I TOLD HER WHAT&YOU TOLD ME&YOU WERE WEARING!/" - global.msg[10] = (("A " + armor1) + "!/") - global.msg[11] = "BECAUSE I KNEW^1,&OF COURSE.../" - global.msg[12] = "\E3AFTER SUCH A&SUSPICIOUS&QUESTION.../" - global.msg[13] = "\E0YOU WOULD&OBVIOUSLY CHANGE&YOUR CLOTHES!/" - global.msg[14] = "YOU'RE SUCH A&SMART COOKIE!/" - global.msg[15] = "THIS WAY YOU'RE&SAFE AND I&DIDN'T LIE!!!/" - global.msg[16] = "NO BETRAYAL&ANYWHERE!!!/" - global.msg[17] = "BEING FRIENDS&WITH EVERYONE&IS EASY!!!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = "\E3I AM NOT A&CRUEL PERSON./" - global.msg[10] = "\E0I STRIVE TO BE&COMFORTING AND&PLEASANT./" - global.msg[11] = "PAPYRUS!&HE SMELLS LIKE&THE MOON./" - global.msg[12] = "SO, BECAUSE OF&MY INHERENT&GOODNESS.../" - global.msg[13] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[14] = "\E3EVEN THOUGH YOU&TOLD ME YOU&WERE!/" - global.msg[15] = "INSTEAD^1, I MADE&SOMETHING UP!/" - global.msg[16] = "I TOLD HER YOU&WERE WEARING.../" - global.msg[17] = (("\E0A " + armor2) + "./") - global.msg[18] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[19] = (("I KNOW YOU WOULD&NEVER EVER WEAR&A " + armor2) + "./") - global.msg[20] = "\E0BUT YOUR SAFETY&IS MORE IMPORTANT&THAN FASHION./" - global.msg[21] = "\E3DANG!/" - global.msg[22] = "I JUST WANT TO&BE FRIENDS WITH&EVERYONE.../" - global.msg[23] = "\TS \F0 \T0 %" - global.msg[24] = "* Click.../%%" - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "\E3PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = (("\WY\E0OU SAID YOU WERE\Y &NOT WEARING A&" + armor1) + "\W./") - global.msg[10] = "\E3SO OF COURSE&I ACTUALLY&TOLD HER.../" - global.msg[11] = (("\E0YOU WERE&INDEED WEARING&A " + armor1) + "!/") - global.msg[12] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[13] = (("BUT SINCE YOU&AREN'T WEARING&A " + armor1) + "./") - global.msg[14] = "\E0SHE SURELY&WON'T ATTACK&YOU!/" - global.msg[15] = "NOW YOU ARE&SAFE AND SOUND./" - global.msg[16] = "\E2WOWIE..^1.&THIS IS HARD./" - global.msg[17] = "I JUST WANT TO&BE EVERYBODY'S&FRIEND!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I KNEW WHEN&YOU SAID:/" - global.msg[10] = (('\E3"I AM NOT&WEARING A&' + armor1) + '."/') - global.msg[11] = "\E0IT WAS REALLY&A SECRET CODE!/" - global.msg[12] = "\E3YOU REALLY&MEANT.../" - global.msg[13] = (('\E0"I ACTUALLY AM&WEARING&A ' + armor1) + '!"/') - global.msg[14] = "YOU WERE TRYING&TO PROTECT&YOURSELF.../" - global.msg[15] = "WHILE MAKING IT&SO I DIDN'T&HAVE TO LIE!/" - global.msg[16] = "I PICKED UP ON&THIS, AND FOLLOWED&YOUR PLAN./" - global.msg[17] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[18] = "IN FACT I TOOK&IT ONE STEP&FURTHER!/" - global.msg[19] = "\E3I TOLD HER YOU&WERE PROBABLY.../" - global.msg[20] = (("\E0WEARING A&" + armor2) + "!/") - global.msg[21] = "\E3OF COURSE, YOU&WOULD NEVER&WEAR THAT./" - global.msg[22] = "\E0BUT THAT'S THE&POINT!/" - global.msg[23] = "SHE WON'T&RECOGNIZE YOU&NOW!/" - global.msg[24] = "AND I DIDN'T&HAVE TO BETRAY&EITHER OF YOU!/" - global.msg[25] = "SINCE I JUST&TOLD HER WHAT&YOU SAID!/" - global.msg[26] = "WOWIE^1!&YOU'RE SUCH A&SMART COOKIE!/" - global.msg[27] = "I REALLY CAN&BE FRIENDS WITH&EVERYONE!!!/" - global.msg[28] = "\TS \F0 \T0 %" - global.msg[29] = "* Click.../%%" - } - } - break - case 633: - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HEY^1!&WHAT'S UP!?/" - global.msg[3] = "I WAS JUST&THINKING.../" - global.msg[4] = "YOU^1, ME^1, AND&UNDYNE SHOULD ALL&HANG OUT SOMETIME!/" - global.msg[5] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE&LATER!/" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - if (global.flag[88] < 3) - { - global.msg[5] = "AFTER YOU HANG&OUT WITH ME.../" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE!/" - global.msg[7] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - } - break - case 635: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 636: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 637: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 638: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 639: - global.msg[0] = "* (It's a book labelled& Monster History Part 7.)& Read it Do not\C" - global.msg[1] = " " - break - case 640: - global.msg[0] = "* When a human dies^1, its& soul remains stable& outside the body./" - global.msg[1] = "* Meanwhile^1, a monster's soul& disappears near-instantly& upon death./" - global.msg[2] = "* This allows monsters to& absorb the souls of& humans.../" - global.msg[3] = "* While it is extremely& difficult for humans to& absorb a monster's soul./" - global.msg[4] = "* This is why they feared us./" - global.msg[5] = "* Though monsters are weak^1,& with enough human souls.../" - global.msg[6] = "* They could easily destroy& all of mankind./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 641: - global.msg[0] = "* (It's a book labelled& Monster History Part 8.)& Read it Do not\C" - global.msg[1] = " " - break - case 642: - global.msg[0] = "* There is one exception& to the aforementioned& rules:/" - global.msg[1] = "* A certain type of monster^1,& the " + chr(34) + "boss" + chr(34) + " monster./" - global.msg[2] = "* Due to its life cycle^1, it& possesses an incredibly& strong soul for a monster./" - global.msg[3] = "* This soul can remain& stable after death^1, if& only for a few moments./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 643: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 644: - global.msg[0] = "* (You look inside a book.)/" - global.msg[1] = "* (It's a comic of a giant& robot fighting a beautiful& alien princess.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 645: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 646: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (Two scantily-clad chefs are& flinging energy pancakes& at each other.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 647: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 648: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (A hideous android is running& to school with toast in& its mouth.)/" - global.msg[2] = "* (Seems like it's late.)/" - global.msg[3] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 660: - global.msg[0] = "* (There's a piano here.^1)&* (Play it?)& Yes No\C" - global.msg[1] = " " - break - case 661: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = "See that heart^1? &That is your SOUL^1,&the very culmination&of your being!/" - global.msg[1] = "Your SOUL starts off&weak^1, but can grow&strong if you gain&a lot of LV./" - global.msg[2] = "What's LV stand for^1?&Why^1, LOVE^1, of course!/" - global.msg[3] = "You want some&LOVE, don't you?/" - global.msg[4] = "Don't worry,&I'll share some&with you!/%" - break - case 667: - global.msg[0] = "Down here^1, LOVE is&shared through..^1./" - global.msg[1] = "Little white..^2.\E1 &" + chr(34) + "friendliness&pellets." + chr(34) + "/" - global.msg[2] = "\E2Are you ready\E0?/%" - break - case 668: - global.msg[0] = "Move around^1!&Get as many as&you can^2!%%%" - global.msg[1] = "%%%" - break - case 669: - global.msg[0] = "You idiot./" - global.msg[1] = "In this world^1, it's&kill or BE killed./" - global.msg[2] = "Why would ANYONE pass&up an opportunity&like this!?/%" - break - case 670: - global.msg[0] = "Die./%" - break - case 671: - global.msg[0] = "Hey buddy^1,&you missed them./" - global.msg[1] = "Let's try again^1,&okay?/%" - break - case 672: - global.msg[0] = "Is this a joke^2?&Are you braindead^2?&RUN^2. INTO^2. THE^2.&BULLETS!!!" - break - case 673: - global.msg[0] = "You know what's&going on here^1,&don't you?/" - global.msg[1] = "You just wanted to&see me suffer./%" - break - case 674: - global.msg[0] = "\E1What a terrible&creature^1, torturing&such a poor^1,&innocent youth.../" - global.msg[1] = "\E2Ah, do not be&afraid^1, my child./" - global.msg[2] = "\XI am \BTORIEL\X,&caretaker of&the \RRUINS\X./" - global.msg[3] = "I pass through this&place every day to&see if anyone has&fallen down./" - global.msg[4] = "You are the first&human to come here&in a long time./" - global.msg[5] = "I will do my best&to ensure your&protection during&your time here./%%" - global.msg[5] = "\E2Come^2!&I will guide you&through the&catacombs./%%" - global.msg[6] = "%%%" - break - case 680: - global.msg[0] = "* Three gold for the ferry.& & Yes No\C" - global.msg[1] = " " - break - case 681: - global.msg[0] = "* Later^1, then./%%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = "* Hop on!/%%" - } - break - case 682: - global.msg[0] = "* (It's a switch.)& & Press it Don't\C" - global.msg[1] = " " - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were deactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were reactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "\E1* Um.../" - global.msg[3] = "\E0* I noticed you've been& kind of quiet.../" - global.msg[4] = "\W*\E8 Are you w-worried& about meeting \RASGORE\W...?/" - global.msg[5] = "\E2* .../" - global.msg[6] = "\E0* W-well^1, don't worry^1,& okay?/" - global.msg[7] = "\E7* Th-the king is a& really nice guy.../" - global.msg[8] = "\E0* I'm sure you can& talk to him^1, and.../" - global.msg[9] = "* W-with your human& soul^1, you can pass& through the barrier!/" - global.msg[10] = "* S-so no worrying^1, OK^1?&* J-just forget about it& and smile./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* Click.../%%" - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = "* hey buddy^1, what's up^1?&* wanna buy a hot dog?/" - global.msg[1] = "* it's only 30G.& & Yes No \C" - global.msg[2] = " " - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = "* here^1.&* have fun./%%" - if (global.flag[380] == 1) - { - global.msg[0] = "* here's another hot& dog./" - global.msg[1] = "* it's on the house^1.&* well^1, no^1.&* it's on you./%%" - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = "* sorry^1, thirty is& the limit on& head-dogs./%%" - if (global.flag[381] == 0) - { - global.msg[0] = "\TS*^1 \Tsi'll be 'frank' with& you./" - global.msg[1] = "* as much as i like& putting hot dogs& on your head.../" - global.msg[2] = "* thirty is just& an excessive number./" - global.msg[3] = "* twenty-nine^1, now& that's fine^1, but& thirty.../" - global.msg[4] = "* does it look like& my arms can reach& that high?/%%" - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = "* thanks, kid^1.&* here's your hot dog./%%" - if (global.flag[379] == 0) - { - global.msg[0] = "* thanks, kid^1.&* here's your 'dog./" - global.msg[1] = "* yeah^1. 'dog^1.&* apostrophe-dog^1.&* it's short for hot-dog./%%" - } - if (global.flag[379] == 1) - { - global.msg[0] = "* another h'dog^1?&* here you go.../" - global.msg[1] = "* whoops^1, i'm actually& out of hot dogs./" - global.msg[2] = "* here^1, you can have& a hot cat instead./%%" - } - if (global.flag[379] == 2) - { - global.msg[0] = "* another dog^1, coming& right up.../" - global.msg[1] = "* ... you really like& hot animals^1, don't& you?/" - global.msg[2] = "* hey^1, i'm not judging./" - global.msg[3] = "* i'd be out of a job& without folks like you./%%" - } - if (global.flag[379] == 3) - { - global.msg[0] = "* cool^1.&* here's that ''dog./" - global.msg[1] = "* apostrophe-apostrophe& dog./" - global.msg[2] = "* it's short for& apostrophe-dog./" - global.msg[3] = "* which is^1, in turn^1,& short for.../%%" - } - if (global.flag[379] == 4) - { - global.msg[0] = "* another one^1?&* okay./" - global.msg[1] = "* careful^1.&* if you eat& too many hot dogs.../" - global.msg[2] = "* you'll probably get& huge like me./" - global.msg[3] = "* huge as in super-& popular^1, i mean./" - global.msg[4] = "* i'm practically& a hot-dog tycoon now./%%" - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = "* whoops^1, you don't have& enough cash./" - global.msg[1] = "* you should get a job^1.&* i've heard being a& sentry pays well./%%" - } - } - if (noroom == 1) - { - global.msg[0] = "* you're holding too much^1.&* ... guess i'll just put& it on your head./%%" - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* yeah^1, you've gotta& save your money for& college and spiders./%%" - break - case 690: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* L-looks like you& beat him!/" - global.msg[3] = "\E0* Y-you did a really& great job out there./" - global.msg[4] = " & All thanks& to you ... \C" - global.msg[5] = " " - break - case 691: - if (global.choice == 0) - { - global.msg[0] = "\E3* What^1?&* Oh no^1, I mean.../" - global.msg[1] = "\E4* You were the one& doing everything cool!/" - global.msg[2] = "\E0* I just wrote some& silly programs for& your phone./" - } - if (global.choice == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E2* .../" - global.msg[2] = "\E1* .../" - } - global.msg[3] = "\E2* .../" - global.msg[4] = "\E4* ... umm^1, h-hey^1, this& might sound strange^1,& but.../" - global.msg[5] = "\E6* ... c-can I tell& you something?/" - global.msg[6] = "\E9* .../" - global.msg[7] = "\E4* B-before I met you^1,& I d-didn't really.../" - global.msg[8] = "\E9* I didn't really& like myself very& much./" - global.msg[9] = "* For a long time^1,& I f-felt like a& total screw-up./" - global.msg[10] = "\E9* L-like I couldn't& do a-anything& w-without.../" - global.msg[11] = "\E9* W-without ending up& letting everyone& down./" - global.msg[12] = "\E3* B-but...!/" - global.msg[13] = "\E4* Guiding you has& made me feel.../" - global.msg[14] = "\E9* A lot better about& myself./" - global.msg[15] = "\E0* So... thanks for& letting me help& you./" - global.msg[16] = "\E9* .../" - global.msg[17] = "\E4* Uhhh^1, anyway^1, we're& almost to the CORE./" - global.msg[18] = "\E0* It's just past& MTT Resort./" - global.msg[19] = "\E6* Come on^1!&* Let's finish this!/%%" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* Click.../%%" - break - case 692: - global.msg[0] = "\E0EUREKA!!!/" - global.msg[1] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[2] = "\E3YOU SEEM LIKE&YOU'RE HAVING&FUN^1, THOUGH.../" - global.msg[3] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[6] = " " - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 694: - global.msg[0] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[1] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[4] = " " - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 696: - global.msg[0] = "* (There's a switch on the& trunk of this tree.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - break - case 697: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = "OHO^1!&THE HUMAN ARRIVES!/" - global.msg[1] = "ARE YOU READY TO&HANG OUT WITH&UNDYNE?/" - global.msg[2] = "I HAVE A PLAN&TO MAKE YOU TWO&GREAT FRIENDS!/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Will you hang out?)& & Yes No\C" - global.msg[5] = " " - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = "HMMM..^1.&STILL GETTING&READY?/" - global.msg[2] = "\E0TAKE YOUR TIME!/%%" - } - break - case 700: - global.msg[0] = "OKAY^1!&ALL READIED-UP&TO HANG OUT!?/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* (Will you hang out?)& & Yes No\C" - global.msg[3] = " " - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 703: - global.msg[0] = "\E4* .../" - global.msg[1] = "\E5* So why are YOU& here?/" - global.msg[2] = "\E4* To rub your victory& in my face?/" - global.msg[3] = "\E4* To humiliate me& even further?/" - global.msg[4] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[5] = " " - break - case 704: - if (global.choice == 0) - { - global.msg[0] = "\E2* Oh-ho-ho-ho./" - global.msg[1] = "\E1* Well^1, I've got news& for you^1, BRAT./" - global.msg[2] = "\E2* You're on MY& battlefield now./" - global.msg[3] = "\E3* And you AREN'T& going to& humiliate me./" - global.msg[4] = "\E3* I'll TELL you& what's going to& happen./" - global.msg[5] = "\E0* We're going to& hang out./" - global.msg[6] = "\E2* We're going to& have a good& time./" - global.msg[7] = "\M1* We're going to& become " + chr(34) + "friends." + chr(34) + "/" - global.msg[8] = "\E3* You'll become so& enamored with me.../" - global.msg[9] = "\E1* YOU'LL be the one& feeling humiliated& for your actions!/" - global.msg[10] = "\E6* Fuhuhuhuhu!!/" - global.msg[11] = "\M2* It's the perfect& revenge!!!/" - global.msg[12] = "\E1* Err.../" - global.msg[13] = "\E9* Why don't you& have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\E4* Then why are you& here?/" - global.msg[1] = "\E1* ...!/" - global.msg[2] = "\E2* Wait^1, I get it./" - global.msg[3] = "\E3* You think that I'm& gonna be friends& with you^1, huh?/" - global.msg[4] = "* Right???& NEVER & Yes with you\C" - global.msg[5] = " " - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = "\E6* Really^1?&* How delightful!^1!&* I accept!/" - global.msg[1] = "* Let's all frolick& in the fields& of friendship!/" - global.msg[2] = "\E2* ...NOT!/" - global.msg[3] = "\E2* Why would I EVER& be friends with& YOU!?/" - global.msg[4] = "\E3* If you weren't my& houseguest^1, I'd beat& you up right now!/" - global.msg[5] = "\E0* You're the enemy& of everyone's hopes& and dreams!/" - global.msg[6] = "\E1* I WILL NEVER& BE YOUR FRIEND./" - global.msg[7] = "\E3* Now get out of& my house!/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = "\E1* WHAT?/" - global.msg[1] = "\E4* First you parade& into my house^1,& then you INSULT me?/" - global.msg[2] = "\E2* You little BRAT^1!&* I have half a& mind to.../" - global.msg[3] = "\E1* .../" - global.msg[4] = "\E3* Wait./" - global.msg[5] = "\E2* I'll prove you& WRONG./" - global.msg[6] = "\E3* We ARE going to& be friends./" - global.msg[7] = "\E1* In fact.../" - global.msg[8] = "\E3* We./" - global.msg[9] = "\M1* Are going to be& BESTIES./" - global.msg[10] = "* I'll make you like& me so much.../" - global.msg[11] = "\E1* Your WHOLE LIFE& will revolve around& me!!/" - global.msg[12] = "\M2* It's the perfect& revenge!!!/" - global.msg[13] = "\E6* FUHUHUHUHU!!!/" - global.msg[14] = "\E1* Err.../" - global.msg[15] = "\E9* Now^1, why don't& you have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = "* (Sit down and progress?)& & Yes No\C" - global.msg[1] = " " - break - case 707: - global.msg[0] = " %%" - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = " %%" - global.msg[1] = " %%" - } - break - case 708: - global.msg[0] = "* That sugar's for& the tea./" - global.msg[1] = "\E2* I'm not gonna give& you a cup of& sugar!/" - global.msg[2] = "\E6* What do I look& like^1, the ice-cream& woman?/" - global.msg[3] = "\E2* Do human ice-cream& women TERRORIZE HUMANITY& with ENERGY SPEARS?/" - global.msg[4] = "\E3* Are their ice-cream& songs a PRELUDE TO& DESTRUCTION?/" - global.msg[5] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[6] = " " - break - case 709: - if (global.choice == 0) - { - global.msg[0] = "\E1* ... what^1?&* REALLY?/" - global.msg[1] = "\E6* That rules!!!/%%" - } - if (global.choice == 1) - global.msg[0] = "\E3* That's what I& thought./%%" - break - case 710: - global.msg[0] = "* Envision these& vegetables as your& greatest enemy!/" - global.msg[1] = "\E2* Now!^1!&* Pound them to dust& with your fists!!/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (How will you pound?)& & Strong Wimpy\C" - global.msg[4] = " " - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = "* (You punch the vegetables& at full force^1.&* You knock over a tomato.)/" - scr_undface(1, 6) - global.msg[2] = "* YEAH^1!&* YEAH!/" - global.msg[3] = "\E1* Our hearts are& uniting against these& healthy ingredients!/" - global.msg[4] = "\M2* NOW IT'S MY TURN!/" - global.msg[5] = "* NGAHHH!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = "* (You pet the vegetables& in an affectionate& manner.)/" - scr_undface(1, 1) - global.msg[2] = "* OH MY GOD!!^1!&* STOP PETTING THE& ENEMY!!!/" - global.msg[3] = "\M2* I'll show you& how it's done!/" - global.msg[4] = "* NGAHHH!/%%" - } - break - case 712: - global.msg[0] = "* ... we add the& noodles!/" - global.msg[1] = "\E0* Homemade noodles& are the best!/" - global.msg[2] = "\E6* BUT I JUST BUY& STORE-BRAND!/" - global.msg[3] = "\M2* THEY'RE THE& CHEAPEST!!!/" - global.msg[4] = "\E1* NGAHHHHHHHHH& HHHHHHHHHH!!!/" - global.msg[5] = "\E9* Uhh^1, just put them& in the pot./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "\M0* (How will you put them in?)& & Fiercely Careful\C" - global.msg[8] = " " - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = "* (You throw everything into& the pot as hard as you can^1,& including the box.)/" - global.msg[1] = "* (It clanks against the& empty bottom.)/" - scr_undface(2, 6) - global.msg[3] = "\M2* YEAH!!^1!&* I'M INTO IT!!!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = "* (You place the noodles& in one at a time.)/" - global.msg[1] = "* (They clank against the& empty bottom.)/" - scr_undface(2, 9) - global.msg[3] = "* Nice???/%%" - } - break - case 714: - global.msg[0] = "\E0* Humans suck^1, but& their history..^1.&* Kinda rules./" - global.msg[1] = "\E2* Case in point^1:&* This giant sword!/" - global.msg[2] = "\E0* Historically^1, humans& wielded swords up& to 10x their size./" - global.msg[3] = "\E1* RIGHT?& & True False\C" - global.msg[4] = " " - break - case 715: - if (global.choice == 0) - { - global.msg[0] = "\E6* Heh^1, I knew it!/" - global.msg[1] = "\E2* When I first heard& that^1, I immediately& wanted one!/" - global.msg[2] = "\E0* So me and Alphys& built a giant& sword together./" - global.msg[3] = "\E0* She figured out all& the specs herself.../" - global.msg[4] = "\E6* She's smart^1, huh!?/%%" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* Pfft^1!&* You liar!/" - global.msg[1] = "\E3* I've READ Alphys's& human history book& collection!/" - global.msg[2] = "\E3* I know all about& your giant swords.../" - global.msg[3] = "\E3* Your colossal^1,& alien-fighting& robots.../" - global.msg[4] = "* Your supernatural& princesses.../" - global.msg[5] = "\E6* Heh^1! There's no& way you're gonna& fool me!!!/%%" - } - break - case 716: - global.msg[0] = "* (Look inside the bone drawer?)& & Yes No\C" - global.msg[1] = " " - break - case 717: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = "\M5* WHAT A SENSATIONAL OPPORTUNITY& FOR A STORY!/" - global.msg[1] = "\M3* I CAN SEE THE HEADLINE NOW:/" - global.msg[2] = "\M4* " + chr(34) + "A DOG EXISTS SOMEWHERE." + chr(34) + "/" - global.msg[3] = "\M2* FRANKLY^1, I'M BLOWN AWAY./" - global.msg[4] = "* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 721: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 722: - global.msg[0] = "\M5* THIS DOG..^1.&* STILL EXISTS!/" - global.msg[1] = "* THIS STORY..^1.&* JUST KEEPS GETTING& BETTER AND BETTER!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 723: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 724: - global.msg[0] = "\M5* OH MY!!!!/" - global.msg[1] = "\M2* ... IT'S A COMPLETELY& NONDESCRIPT GLASS OF WATER./" - global.msg[2] = "\M4* BUT ANYTHING CAN MAKE& A GREAT STORY WITH ENOUGH& SPIN!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 725: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 726: - global.msg[0] = "\M3* I'M HONORED TO BE IN THE& PRESENCE OF SUCH A HUGE& LUKEWARM WATER FAN^1, FOLKS!/" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 727: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 728: - global.msg[0] = "\M5* OH NO!!^1!&* THAT MOVIE SCRIPT!!^1!&* HOW'D??^1? THAT GET THERE???/" - global.msg[1] = "\M4* IT'S A SUPER-JUICY SNEAK& PREVIEW OF MY LATEST& GUARANTEED-NOT-TO-BOMB FILM:/" - global.msg[2] = "\M6* METTATON THE MOVIE XXVIII..^1.& STARRING METTATON!/" - global.msg[3] = "\M1* I'VE HEARD THAT LIKE THE& OTHER FILMS.../" - global.msg[4] = "\M1* IT CONSISTS MOSTLY OF A SINGLE& FOUR-HOUR SHOT OF ROSE PETALS& SHOWERING ON MY RECLINING BODY./" - global.msg[5] = "\M5* OOH!!^1!&* BUT THAT'S!!^1!&* NOT CONFIRMED!!/" - global.msg[6] = "\M5* YOU WOULDN'T (COUGH) SPOIL MY& MOVIE FOR EVERYONE WITH A& PROMOTIONAL STORY^1, WOULD YOU?/" - global.msg[7] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[8] = " " - break - case 729: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\M5* PHEW!!^1! THAT WAS CLOSE!^1!&* YOU ALMOST GAVE ME A BUNCH& OF FREE ADVERTISEMENT!!/%%" - global.msg[1] = "\M2 %%" - } - break - case 730: - global.msg[0] = "\M3* OH^1!&* YOU'RE BACK!/" - global.msg[1] = "\M6* THAT'S RIGHT^1, FOLKS^1!&* IT SEEMS NO ONE CAN RESIST& THE ALLURE OF MY NEW FILM!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 731: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 732: - global.msg[0] = "\M4* BASKETBALL'S A BLAST^1, ISN'T IT^1,& DARLING?/" - global.msg[1] = "\M1* TOO BAD YOU CAN'T PLAY WITH& THESE BALLS./" - global.msg[2] = "\M4* THEY'RE MTT-BRAND FASHION& BASKETBALLS^1.&* FOR WEARING^1, NOT PLAYING./" - global.msg[3] = "\M6* YOU CAN'T GET RICH AND FAMOUS& LIKE MOI WITHOUT BEAUTIFYING& A FEW ORBS./" - global.msg[4] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 733: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 734: - global.msg[0] = "* IT SEEMS OUR REPORTER IS DRAWN& TO SPORTS LIKE MOTHS TO A& FLAMING BASKETBALL HOOP./" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 735: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 736: - global.msg[0] = "\M5* OH MY^1! IT'S A PRESENT^1!&* AND IT'S ADDRESSED TO YOU^1,& DARLING!/" - global.msg[1] = "\M6* AREN'T YOU JUST BURSTING& WITH EXCITEMENT?/" - global.msg[2] = "\M5* WHAT COULD BE INSIDE^1?&* WELL^1, NO TIME LIKE THE& " + chr(34) + "PRESENT" + chr(34) + " TO FIND OUT!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 737: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 738: - global.msg[0] = "\M4* READY FOR YOUR..^1.&* PRESENTATION?/" - global.msg[1] = "\M4* (... LET'S CUT THAT ONE IN& POST.)/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 739: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 740: - global.msg[0] = "\M5* OOH LA LA^1!&* THIS VIDEO GAME YOU FOUND..^1.&* IS DYNAMITE!!!/" - global.msg[1] = "\M4* THOUGH I DON'T MAKE AN& APPEARANCE IN IT UNTIL& THREE-FOURTHS IN./" - global.msg[2] = "\M3* BUT I LIKE THAT./" - global.msg[3] = "\M6* APPEARING FROM THE HEAVENS LIKE& MANNA^1, SLAKING THE AUDIENCE'S& HUNGER FOR GORGEOUS ROBOTS.../" - global.msg[4] = "\M5* OOH^1!&* THAT'S METTATON!/" - global.msg[5] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[6] = " " - break - case 741: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 742: - global.msg[0] = "* AH^1, YOU UNDERSTAND./" - global.msg[1] = "* THIS IS A GAME WHERE YOU& SHOULD CHECK EVERYTHING& TWICE./" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 743: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Cider for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Donut for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 748: - global.msg[0] = "* Ribbit^1, ribbit.&* (I have heard you are quite& merciful^1, for a human...)/" - global.msg[1] = "\W* (Surely you know by now a& monster wears a \YYELLOW\W name& when you can \YSPARE\W it.)/" - global.msg[2] = "* (What do you think of that?)& Very It's& Helpful Bad\C" - global.msg[3] = " " - break - case 749: - if (global.choice == 0) - { - global.msg[0] = "* (It is rather helpful.^1)&* (Remember^1, sparing is just& saying you won't fight.)/" - global.msg[1] = "* (Maybe one day^1, you'll& have to do it even if& their name isn't yellow.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Really^1? Then^1, I'll tell all& of my friends to tell& their friends' friends...)/" - global.msg[1] = "* (Never use yellow names.)&* (How about that?)/" - global.msg[2] = " Keep No more& Yellow Yellow& Names Names\C" - global.msg[3] = " " - } - break - case 750: - if (global.choice == 0) - global.msg[0] = "* (OK^1, they will still& use yellow names.)/%%" - if (global.choice == 1) - { - global.msg[0] = "* (OK^1, I will let them& know not to use yellow& names.)/%%" - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = "* Ribbit^1, ribbit^1.&* (How are you doing without& yellow names?)/" - global.msg[1] = " Bring & It's Them& great Back\C" - global.msg[2] = " " - break - case 752: - if (global.choice == 0) - { - global.msg[0] = "* (Glad to hear it.^1)&* (Though^1, I do not know why& you dislike yellow.)/" - global.msg[1] = "* (You had better hope you do& not encounter a banana-themed& monster.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Huh^1? It's rather inconvenient& that you changed your mind& like this.)/" - global.msg[1] = "* (Since I told everyone& not to use yellow names^1,& everyone threw theirs out.)/" - global.msg[2] = "* (This is really troubling...^1)&* (Hmmm...)/" - global.msg[2] = "\W* (Well^1, last year it was& fashionable to have \ppink\W & names.)/" - global.msg[3] = "* (I think everyone still& has those in their closets& somewhere...)/" - global.msg[4] = "* (I'll ask everyone to look.^1)&* (But this is the last time!)/%%" - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = "* Ribbit^1, ribbit...&* (I hope you're satisfied.)/%%" - break - case 754: - global.msg[0] = "* \YNAPSTABLOOK22 has sent you& a friend request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 755: - global.flag[409] = 1 - global.msg[0] = "* (It seems to have already& rejected itself...)/%%" - break - case 756: - global.msg[0] = "* \YMETTATON has sent you a& Mortal Enemy request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 757: - if (global.choice == 0) - { - global.msg[0] = "* Congratulations^1!&* You are now Mortal Enemies& with Mettaton./" - global.msg[1] = "* \YCOOLSKELETON95\W has posted& a comment on this change./" - global.msg[2] = "* CONGRATULATIONS^1, YOU TWO^1!&* WISH YOU A LONG AND& HORRIBLE RIVALRY./%%" - } - if (global.choice == 1) - global.msg[0] = "* You rejected the request./%%" - break - case 758: - global.msg[0] = "* \YMETTATON has sent you an& invitation to " + chr(34) + "Die." + chr(34) + "\W /" - global.msg[1] = "* RSVP?& & Respond Ignore\C" - global.msg[2] = " " - break - case 759: - if (global.choice == 0) - global.msg[0] = "* Bepis valley Granola Bars/%%" - if (global.choice == 1) - global.msg[0] = "* Bepis valley Granola Bars/%%" - break - case 760: - global.msg[0] = "* hey^1.&* i heard you're going& to the core./" - global.msg[1] = "\E0* how about grabbing some& dinner with me first?& Yeah I'm busy \C" - global.msg[2] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - break - case 761: - if (global.choice == 0) - { - global.msg[0] = "* great^1, thanks for& treating me./%%" - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* well^1, have fun in& there./%%" - break - case 762: - global.msg[0] = "* This is the barrier./" - global.msg[1] = "* This is what keeps& us all trapped& underground./" - global.msg[2] = "* .../" - global.msg[3] = "* If.../" - global.msg[4] = "* If by chance you& have any unfinished& business.../" - global.msg[5] = "* Please do what you& must./" - global.msg[6] = " & & Continue Go Back\C" - global.msg[7] = " " - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Anything you want to& do is important& enough./" - global.msg[2] = "* Even something as small& as reading a book^1,& or taking a walk.../" - global.msg[3] = "* Please take your time./%%" - } - break - case 764: - global.msg[0] = "* Oh..^1.&* Back so soon?/" - global.msg[1] = "* How are you feeling?/" - global.msg[2] = " & & Ready Go Back\C" - global.msg[3] = " " - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Do what you have to./%%" - } - break - case 770: - global.msg[0] = "* Tra la la^1.&* I am the riverman./" - global.msg[1] = "* Or am I the riverwoman...^1?&* It doesn't really matter./" - global.msg[2] = "* I love to ride in my boat^1.&* Would you care to join me?/" - global.msg[3] = "* (Ride in the boat?)& & Yes No\C" - global.msg[4] = " " - if (global.flag[460] > 0) - { - global.msg[0] = "* Tra la la^1.&* Care for a ride?/" - global.msg[1] = "* (Ride in the boat?)& & Yes No\C" - global.msg[2] = " " - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = "* Where will we go today?& & Error Error\C" - if (room == room_fire_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Waterfall\C" - if (room == room_water_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Hotland\C" - if (room == room_tundra_dock) - global.msg[0] = "* Where will we go today?& & Waterfall Hotland\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* Then perhaps another time^1.&* Or perhaps not^1.&* It doesn't really matter./%%" - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = "* Then we're off.../%%" - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = "* (There's a switch on the& wall.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = "* (The switch doesn't do& anything.)/%%" - break - case 781: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = "* (Seems like a comfortable& bed.)/" - global.msg[1] = "* (Lie on it?)& & Yes No\C" - global.msg[2] = " " - break - case 783: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = "* (It's just a regular suspicious& bed now.)/%%" - if (global.flag[484] == 1) - { - global.msg[0] = "* (It's a yellow key.^1)&* (You put it on your& keychain.)/%%" - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = "* (There's something under& the sheets.)/" - global.msg[1] = "* (Check it out?)& & Yes No\C" - global.msg[2] = " " - } - break - case 785: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = "* (The power has been turned& on.)/%%" - if (global.flag[491] == 0) - { - global.msg[0] = "* (It seems like this controls& the elevator's power.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - break - case 787: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = (("\E7* I always was a crybaby^1,& wasn't I^1, " + global.charname) + "?/") - global.msg[1] = "\E1* .../" - global.msg[2] = "\E2* ... I know./" - global.msg[3] = (("\E0* You're not actually& " + global.charname) + ", are you?/") - global.msg[4] = (("\E7* " + global.charname) + "'s been gone for& a long time./") - global.msg[5] = "* .../" - global.msg[6] = "\E9* Um..^1. what.../" - global.msg[7] = "\E0* What IS your name?/" - global.msg[8] = "\E2* .../" - global.msg[9] = "\E5* " + chr(34) + "Frisk?" + chr(34) + "/" - global.msg[10] = "\E7* That's.../" - global.msg[11] = "\E5* A nice name./" - global.msg[12] = "* .../" - global.msg[13] = "\E7* Frisk.../" - global.msg[14] = "\E0* I haven't felt like& this for a long time./" - global.msg[15] = "\E2* As a flower^1, I was& soulless./" - global.msg[16] = "\E1* I lacked the power to& love other people./" - global.msg[17] = "\E2* However^1, with everyone's& souls inside me.../" - global.msg[18] = "\E7* I not only have my own& compassion back.../" - global.msg[19] = "\E5* But I can feel every& other monster's as& well./" - global.msg[20] = "\E7* They all care about& each other so much./" - global.msg[21] = "\E0* And..^1. they care about& you too^1, Frisk./" - global.msg[22] = "* .../" - global.msg[23] = "\E7* I wish I could tell& you how everyone& feels about you./" - global.msg[24] = "* Papyrus..^1. Sans..^1.&* Undyne..^1. Alphys.../" - global.msg[25] = "\E0* ... Toriel./" - global.msg[26] = "\E7* Monsters are weird./" - global.msg[27] = "\E5* Even though they barely& know you.../" - global.msg[28] = "\E6* It feels like they& all really love& you./" - global.msg[29] = "\E8* Haha./" - global.msg[30] = "* .../" - global.msg[31] = "\E1* Frisk..^1. I..^1.&* I understand if you& can't forgive me./" - global.msg[32] = "* I understand if you& hate me./" - global.msg[33] = "* I acted so strange and& horrible./" - global.msg[34] = "\E3* I hurt you./" - global.msg[35] = "* I hurt so many people./" - global.msg[36] = "\E1* Friends^1, family^1,& bystanders.../" - global.msg[37] = "\E3* There's no excuse for& what I've done./" - global.msg[38] = " & & Forgive Do not\C" - global.msg[39] = " " - break - case 801: - if (global.choice == 0) - { - global.msg[0] = "\E3* Wh..^1. what?/" - global.msg[1] = "\E7* ... Frisk^1, come on./" - global.msg[2] = "\E0* You're..^1.&* You're gonna make me& cry again./" - global.msg[3] = "\E7* ... besides^1, even if& you do forgive me.../" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* ... right^1./" - global.msg[1] = "* I understand./" - global.msg[2] = "\E1* I just hope that.../" - global.msg[3] = "* I can make up for& it a little right& now./" - } - global.msg[4] = "\E1* I can't keep these& souls inside of me./" - global.msg[5] = "\E0* The least I can do& is return them./" - global.msg[6] = "\E2* But first.../" - global.msg[7] = "\E4* There's something I& have to do./" - global.msg[8] = "* Right now^1, I can feel& everyone's hearts& beating as one./" - global.msg[9] = "* They're all burning& with the same& desire./" - global.msg[10] = "* With everyone's power..^1.&* With everyone's& determination.../" - global.msg[11] = "* It's time for& monsters.../" - global.msg[12] = "* To finally go free./%%" - break - case 803: - global.msg[0] = "\E7* Frisk.../" - global.msg[1] = "\E0* I have to go now./" - global.msg[2] = "\E7* Without the power of& everyone's souls.../" - global.msg[3] = "\E1* I can't keep& maintaining this& form./" - global.msg[4] = "* In a little while.../" - global.msg[5] = "* I'll turn back into& a flower./" - global.msg[6] = "\E3* I'll stop being& " + chr(34) + "myself." + chr(34) + "/" - global.msg[7] = "* I'll stop being able& to feel love again./" - global.msg[8] = "\E1* So..^1. Frisk./" - global.msg[9] = "\E7* It's best if you& just forget about& me^1, OK?/" - global.msg[10] = "\E0* Just go be with& the people who& love you./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & Comfort& him Do not\C" - global.msg[13] = " " - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = "\E0* So^1, Alphys.../" - global.msg[1] = "\E9* What do you want& to do now that& we're all free?/" - global.msg[2] = "\E0* We have the whole& world to explore& now./" - scr_alface(3, 3) - global.msg[4] = "\E3* W-well^1, of course& I'm going to go& out and.../" - global.msg[5] = "\E4* Um.../" - global.msg[6] = "\E3* No^1, I should be& honest!!/" - global.msg[7] = "\E1* I'm gonna stay inside& and watch anime like& a total loser!/" - scr_papface(8, 0) - global.msg[9] = "\E0THAT'S THE SPIRIT!/" - global.msg[10] = "EVERYONE!!^1!&A CELEBRATION!!!&TO BEING LOSERS!!/" - scr_undface(11, 9) - global.msg[12] = "\E9* Heh^1.&* Papyrus has the& right idea./" - global.msg[13] = "\E0* Losing to Frisk is& the best thing to& ever happen to me./" - global.msg[14] = "\E0* So I'm glad that& we.../" - global.msg[15] = "\E9* Huh^1?&* What is it^1, Asgore?/" - scr_asgface(16, 2) - global.msg[17] = "\E2* Um..^1. what's an.../" - global.msg[18] = "\E0* ... anime?/" - scr_alface(19, 1) - global.msg[20] = "\E1* (Oh My God?)/" - global.msg[21] = "\E3* (Frisk^1. Please.)/" - global.msg[22] = "\E2* (Help me explain what& anime is to Asgore.)/" - global.msg[23] = "\E0* Y-you see^1, it's& like a cartoon^1,& but.../" - global.msg[24] = "\TS \F0 \T0 %" - global.msg[25] = " & With With& Sword's Gun's\C" - global.msg[26] = " " - break - case 807: - scr_asgface(0, 2) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with swords?/" - if (global.choice == 1) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with guns?/" - global.msg[2] = "\E0* Golly^1!&* That sounds neato!/" - global.msg[3] = "\E3* Where is this^1?&* Where can I see the& Anime./" - scr_alface(4, 3) - global.msg[5] = "\E3* H-hold on^1, uh..^1.&* I think I have& some on my phone./" - global.msg[6] = "\E0* Here^1, l-look at& this!/" - global.msg[7] = "\E0* .../" - global.msg[8] = "\E3*...Oh^1, uh.../" - global.msg[9] = "\E4* Um..^1. that's the..^1.&* That's the wrong.../" - global.msg[10] = "\E5* Uh^1, nevermind./" - scr_asgface(11, 1) - global.msg[12] = "* Golly^1.&* Were those two robots.../" - scr_undface(13, 9) - global.msg[14] = "\E9* ... kissing?/" - scr_asgface(15, 0) - global.msg[16] = "\E0* Boy^1!&* Technology sure is& something^1, isn't it?/" - scr_alface(17, 5) - global.msg[18] = "\E5* Eheheh..^1. yeah^1!&* It sure is!/%%" - break - case 808: - global.msg[0] = "\E0* Psst..^1.&* F-Frisk./" - global.msg[1] = "\E3* Um^1, you've gotta& tell me./" - global.msg[2] = "\E6* D..^1. do you think& Asgore and Toriel& are...?/" - global.msg[3] = "\E3* Uh^1, ever gonna get& back together?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "& & Yeah Nope\C" - global.msg[6] = " " - break - case 809: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = "\E7* Y-yeah!!^1!&* Yeah^1, that's what& I hope^1, too./" - global.msg[2] = "\E7* Just think about how& cute they must have& been together./" - global.msg[3] = "\E0* It's quickly becoming& my number one ship& of all time./" - global.msg[4] = "\E7* Tori and Gorey.../" - global.msg[5] = "\E5* My..^1.&* My old boss and& his ex-wife./" - global.msg[6] = "\E8* ... uh^1, that sounds& a lot less cool& all of a sudden./%%" - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = "\E8* ... yeah^1, that's what& I thought./" - global.msg[2] = "\E7* A woman can dream& though^1, right?/" - global.msg[3] = "\E2* And write fanfiction./" - global.msg[4] = "\E1* A LOT of fanfiction./%%" - } - break - case 810: - global.msg[0] = "\E0* Frisk^1!&* I just realized!/" - global.msg[1] = "\E3* Now that we aren't& fighting each& other.../" - global.msg[2] = "\E2* I can finally ask& you.../" - global.msg[3] = "\E0* " + chr(34) + "Would you like a& cup of tea?" + chr(34) + "/" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E0* Would you like a& cup of tea?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "& & Yes No\C" - global.msg[8] = " " - break - case 811: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = "* Oh^1!&* Well!/" - global.msg[2] = "\E3* Actually^1, the cup I& had is cold now./" - global.msg[3] = "* So you shouldn't& have it./" - global.msg[4] = "\E0* But^1, I am so& happy you said& yes./" - global.msg[5] = "\E0* As soon as I can^1,& I will make some& more for you./" - global.msg[6] = "\E0* Then we can be& great pals./%%" - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = "\E3* Oh.../" - global.msg[2] = "\E3* Okay./" - scr_undface(3, 2) - global.msg[4] = "\E2* Frisk^1! Stop^1!&* You're breaking his& big burly heart!/" - scr_asgface(5, 2) - global.msg[6] = "\E2* Um^1, it's OK^1, Undyne./" - global.msg[7] = "\E0* My heart's already& broken./" - scr_undface(8, 6) - global.msg[9] = "\E6* ASGORE^1! STOP^1!&* YOU'RE BREAKING MY& BIG BURLY HEART!/" - scr_alface(10, 9) - global.msg[11] = "\E9* Y-yeah^1, Asgore^1.&* Don't break Undyne's& heart./" - global.msg[12] = "\E2* That's my job./" - scr_undface(13, 2) - global.msg[14] = "\E2* OH MY GOD!&* YOU'RE GOING BACK& IN THE TRASH!!!/" - scr_papface(15, 0) - global.msg[16] = "\E0CAN I GO IN THE&TRASH TOO?/" - scr_undface(17, 9) - global.msg[18] = "\E9* Sure^1, Papyrus./" - scr_sansface(19, 1) - global.msg[20] = "\E1* guess i have to& go in the trash& too./" - scr_torface(21, 0) - global.msg[22] = "\E0* Oh^1, may I enter& the trash as well?/" - scr_undface(23, 1) - global.msg[24] = "\E1* Uh^1, okay?/" - scr_asgface(25, 0) - global.msg[26] = "\E0* Am I invited to& the trash?/" - scr_undface(27, 6) - global.msg[28] = "\E6* SURE!!!&* WHY NOT!!!/" - scr_torface(29, 1) - global.msg[30] = "\E1* On second thought^1,& do not put me& in the trash./" - scr_asgface(31, 5) - global.msg[32] = "\E5* Oh.../" - scr_undface(33, 1) - global.msg[34] = "\E1* OH MY GOD!!!/%%" - } - break - case 812: - global.msg[0] = "* (If you leave here^1, your& adventure will really& be over.)/" - global.msg[1] = "* (Your friends will follow& you out of the underground.)/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = " & Don't I'm& leave ready\C" - global.msg[4] = " " - break - case 813: - global.msg[0] = " %%" - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = "\E0* Oh my.../" - scr_asgface(1, 0) - global.msg[2] = "\E0* Isn't it beautiful^1,& everyone?/" - scr_alface(3, 3) - global.msg[4] = "\E3* Wow..^1. it's e-even& better than on TV./" - global.msg[5] = "\E7* WAY better^1!&* Better than I ever& imagined!/" - scr_undface(6, 1) - global.msg[7] = "\E1* Frisk^1, you LIVE with& this!?/" - global.msg[8] = "\E9* The sunlight is so& nice..^1. and the air& is so fresh!/" - global.msg[9] = "* I really feel alive!/" - scr_papface(10, 0) - global.msg[11] = "\E0HEY SANS.../" - global.msg[12] = "\E3WHAT'S THAT GIANT&BALL?/" - scr_sansface(13, 1) - global.msg[14] = "\E1* we call that& " + chr(34) + "the sun^1," + chr(34) + " my friend./" - scr_papface(15, 0) - global.msg[16] = "\E0THAT'S THE SUN!^1?&WOWIE!!!/" - global.msg[17] = "I CAN'T BELIEVE&I'M FINALLY MEETING&THE SUN!!!/" - scr_asgface(18, 0) - global.msg[19] = "\E0* I could stand here& and watch this for& hours.../" - scr_torface(20, 0) - global.msg[21] = "\E0* Yes^1, it is beautiful^1,& is it not?/" - global.msg[22] = "\E1* But we should really& think about what comes& next./" - scr_asgface(23, 3) - global.msg[24] = "\E3* Oh^1, right./" - global.msg[25] = "\E0* Everyone.../" - global.msg[26] = "* This is the beginning& of a bright new& future./" - global.msg[27] = "* An era of peace between& humans and monsters./" - global.msg[28] = "\E2* Frisk.../" - global.msg[29] = "* I have something to& ask of you./" - global.msg[30] = "\E0* Will you act as our& ambassador to the& humans?/" - global.msg[31] = "\TS \F0 \T0 %" - global.msg[32] = "* (Be the ambassador?)& & Yes No\C" - global.msg[33] = " " - break - case 815: - scr_papface(0, 0) - global.msg[1] = "WOWi, Nice error./%%" - if (global.choice == 0) - { - global.msg[1] = "\E0YEAH^1!&FRISK WILL BE THE&BEST AMBASSADOR!/" - global.msg[2] = "AND I^1, THE GREAT&PAPYRUS.../" - global.msg[3] = "WILL BE THE BEST&MASCOT!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E0IT'S OK FRISK^1!&I'VE GOT YOU&COVERED!/" - global.msg[2] = "IF YOU DON'T WANT&TO BE THE&AMBASSADOR.../" - global.msg[3] = "I CAN DO IT FOR&YOU!!!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - break - case 820: - global.msg[0] = "* Frisk.../" - global.msg[1] = "\E2* You came from this& world^1, right...?/" - global.msg[2] = "\E1* So you must have& a place to return to^1,& do you not?/" - global.msg[3] = "\E2* What will you do& now?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = " I want I have& to stay places& with you to go\C" - global.msg[6] = " " - break - case 821: - global.msg[0] = " %%" - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = "* (The door has no mail slot.)/" - global.msg[1] = "* (Slide the letter under?)& & Slide NO!!!! \C" - global.msg[2] = " " - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = "* (You slide the letter under& the door and give it a& knock.)/%%" - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* (You'll keep the letter& warm for a little longer.)/%%" - break - case 827: - global.msg[0] = "* (It's a note from Alphys.)/" - global.msg[1] = "* (Read it...?)& & Read Do not \C" - global.msg[2] = " " - break - case 828: - if (global.choice == 0) - { - global.msg[0] = "* (It's hard to read because& of the handwriting^1, but& you try your best...)/" - global.msg[1] = "* Hey./" - global.msg[2] = "* Thanks for your help back& there./" - global.msg[3] = "* You guys..^1.&* Your support really means a& lot to me./" - global.msg[4] = "* But..^1.&* As difficult as it is& to say this.../" - global.msg[5] = "* You guys alone can't& magically make my own& problems go away./" - global.msg[6] = "* I want to be a better& person./" - global.msg[7] = "* I don't want to be& afraid anymore./" - global.msg[8] = "* And for that to happen^1,& I have to be able to& face my own mistakes./" - global.msg[9] = "* I'm going to start& doing that now./" - global.msg[10] = "* I want to be clear./" - global.msg[11] = "* This isn't anyone else's& problem but mine./" - global.msg[12] = "* But if you don't ever& hear from me again.../" - global.msg[13] = "* If you want to know& " + chr(34) + "the truth." + chr(34) + "/" - global.msg[14] = "* Enter the door to the& north of this note./" - global.msg[15] = "* You all at least deserve& to know what I did./" - global.msg[16] = "* (That's all she wrote.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = "* (Buy chips for 25G?)& & Buy No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There were no chips left& in the machine.)/%%" - global.msg[1] = " " - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* (The vending machine& dispensed some chisps.)/%%" - if (afford == 0) - global.msg[0] = "* (You didn't have enough& gold.)/%%" - } - if (noroom == 1) - global.msg[0] = "* (You are carrying too& many items.)/%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 831: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?/" - global.msg[5] = "\E1* ... wait^1.&* Do not tell me./" - if (bs == 0) - global.msg[6] = "\E0* It is ERROR MESSAGE!& & Yes No \C" - if (bs == 1) - global.msg[6] = "\E0* Is it Butterscotch?& & Yes No \C" - if (bs == 2) - global.msg[6] = "\E0* Is it Cinnamon?& & Yes No \C" - global.msg[7] = " " - break - case 832: - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - if (bs == 2) - global.flag[46] = 0 - global.msg[0] = "\E0* Hee hee hee^1.&* I had a feeling./" - global.msg[1] = "\E1* When humans fall down& here^1, strangely..^1.&* I.../" - global.msg[2] = "\E1* I often feel like& I already know them./" - global.msg[3] = "\E0* Truthfully^1, when I first& saw you^1, I felt.../" - global.msg[4] = "\E1* ... like I was seeing& an old friend for& the first time./" - global.msg[5] = "\E0* Strange^1, is it not?/" - global.msg[6] = "* Well^1, thank you for& your selection./" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - if (bs == 2) - global.flag[46] = 1 - global.msg[0] = "\E1* Oh..^1. I see./" - global.msg[1] = "\E0* Well^1, thank you^1.&* Goodbye for now./" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* Click.../%%" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - break - case 833: - global.msg[0] = "* (Seems like you could skip& Mettaton's monologue by& turning him around now.)/" - global.msg[1] = "* (What will you do?)& & Skip Hear again\C" - global.msg[2] = " " - break - case 834: - if (global.choice == 0) - { - global.msg[0] = "* (You told Mettaton there& was something cool& behind him.)/%%" - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = " %%" - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = "* though.../" - global.msg[1] = "* one thing about you& always struck me& as kinda odd./" - global.msg[2] = "* now^1, i understand& acting in self-defense./" - global.msg[3] = "* you were thrown into& those situations& against your will./" - global.msg[4] = "* but.../" - global.msg[5] = "* sometimes.../" - global.msg[6] = "* you act like you& know what's gonna& happen./" - global.msg[7] = "* like you've already& experienced it all& before./" - global.msg[8] = "* this is an odd thing& to say^1, but.../" - global.msg[9] = "\W* if you have some sort& of \Yspecial power\W.../" - global.msg[10] = "* isn't it your& responsibility to do& the right thing?/" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & & Yes No\C" - global.msg[13] = " " - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* ah./" - global.msg[2] = "\E0* i see./" - global.msg[3] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* heh./" - global.msg[2] = "\E0* well^1, that's your& viewpoint./" - global.msg[3] = "\E2* i won't judge you& for it./" - global.msg[4] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = "* (Ring...)/" - scr_alface(1, 0) - global.msg[2] = "\E0* Hey!/" - global.msg[3] = "\E3* This um^1, doesn't have& anything to do with& guiding you..^1. but.../" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E6* Uhh^1, hey^1, would you want& to watch a human TV& show together???/" - global.msg[6] = "* Sometime???/" - global.msg[7] = "\E4* It's called^1, um^1,& M..^1.Mew Mew Kissy& Cutie.../" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = " & & Sure! ...no...\C" - global.msg[10] = " " - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = "* R-really!?/" - global.msg[2] = "\E3* It's so good^1!&* It's um^1, my favorite& show!/" - global.msg[3] = "* It's all about this& human girl named Mew Mew& who has cat ears!%" - global.msg[4] = "\E3* Which humans don't have!&* S-so she's all& sensitive about them!%" - global.msg[5] = "\E6* But like...&* Eventually!%" - global.msg[6] = "* She realizes that her& ears don't matter!%" - global.msg[7] = "* That her friends like& her despite the ears!%" - global.msg[8] = "\E7* It's really moving!%" - global.msg[9] = "\E5* Whoops, spoilers%" - global.msg[10] = "\E6* Also, this sounds& weird, but she has& the power!%" - global.msg[11] = "\E5* To control the minds& of anyone she kisses!%" - global.msg[12] = "\E3* She kisses people and& controls them to fix& her problems!!%" - global.msg[13] = "\E5* They don't remember& anything after the& kiss I mean!!%" - global.msg[14] = "\E3* BUT IF SHE MISSES& THE KISS!!!&* THEN!!%" - global.msg[15] = "\E4* Then^1, uh^1, and^1, uh^1,& also I mean^1, of course%" - global.msg[16] = "\E5* Eventually^1, she& realizes that& controlling people%" - global.msg[17] = "\E3* OKAY WELL I almost& spoiled the whole& show^1, but%" - global.msg[18] = "\E5* Uhhh^1, I think you'd& really like it!!!/" - global.msg[19] = "\E0* We should watch it^1!&* After you get through& all this!/" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* (Click...)/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E5* Um^1! Well^1!&* That's okay!/" - global.msg[2] = "* Just thought I'd!^1!&* Ask!!!/" - global.msg[3] = "\E6* B-but I think you'd& really like it!!/" - global.msg[4] = "* If you gave it a& chance!!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Click...)/%%" - } - break - case 839: - global.msg[0] = "\M1* Did y'hear!^1?&* You're back!/" - global.msg[1] = "\M0* I'll tell you a big secret./" - global.msg[2] = "\M1* I'm starting a band^1, y'hear?/" - global.msg[3] = "\M1* It's called the Red Hot& Chibi Peppers./" - global.msg[4] = "\M0* All I've thought of is& the name./" - global.msg[5] = "\M3* And I don't^1, play...&* Instruments^1, or sing./" - global.msg[6] = "\M1* Well^1!&* Do you think we'll be& popular!!!/" - global.msg[7] = " & & Yeah No\C" - global.msg[8] = " " - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = "\M0* Yeah^1, me too.../%%" - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = " %%" - } - break - case 845: - global.msg[0] = "* (It's a lamp.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - break - case 846: - if (global.choice == 0) - { - global.msg[0] = "* (There's no lightbulb.^1)&* (A flashlight is stuck in& the bulb socket.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = " %%" - break - case 847: - if (global.choice == 0) - global.msg[0] = "* (The flashlight is out of& batteries.)/%%" - else - global.msg[0] = " %%" - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = "* Hey^1, hey^1!&* Did you remember my name?/" - global.msg[1] = "* (Did you?)& & Yes No\C" - global.msg[2] = " " - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = "* Wh-WHAT!^1?&* You REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = "* Wh-WHAT!^1?&* You DON'T REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - break - case 853: - global.msg[0] = "* (It's a small white dog.^1)&* (It's fast asleep...)/" - global.msg[1] = "* (Fight the dog?)& & Yes No\C" - global.msg[2] = " " - break - case 854: - if (global.choice == 0) - { - global.msg[0] = "* (Can't fight the dog.)/" - global.msg[1] = "* (Seems like the fabric it's& sleeping on has too many& holes in it.)/" - global.msg[2] = "* (Seems like the dog needs& to " + chr(34) + "patch" + chr(34) + " the fabric.)/" - global.msg[3] = "* (Then you can fight the dog.^1)&* (... maybe.)/" - global.msg[4] = "* (Upon closer examination^1,& the holes in the fabric& seem to be growing.)/" - global.msg[5] = "* (Might take a while for the& dog to fix all of them.)/" - global.msg[6] = "* (Dogs aren't usually very& good at knitting.)/" - global.msg[7] = "* (A crocheting dog is out of& the question.)/%%" - } - else - global.msg[0] = "* (Let sleeping dogs lie^1, instead& of fighting them.^1)&* (That's how the saying goes.)/%%" - break - case 860: - global.msg[0] = "* (Knock knock)./" - if (global.flag[262] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Sea Tea" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a million ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = "* (You pour the Sea Tea under& the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 862: - global.msg[0] = "* (Knock knock)./" - if (global.flag[263] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Cinnamon Bun" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a trillion ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = "* (You flatten the Cinnamon Bun& until it's paper thin.)&* (You slide it under the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 864: - global.msg[0] = "* (You hear shuffling.)/" - global.msg[1] = "* (Seems like you could put& something under the door.)/" - global.msg[2] = " & & Put No Put\C" - global.msg[3] = " " - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - break - case 865: - if (global.choice == 0) - { - global.msg[0] = "* (...)/" - global.msg[1] = "* (But you didn't have anything& appealing.)/%%" - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = "* (You put a Hot Dog in front& of the door.)/" - global.msg[1] = "* (A white paw shoots out from& under the door.)/" - global.msg[2] = "* (It tries to pull the Hot Dog& into its room...)/" - global.msg[3] = "* (But it keeps pressing down too& hard^1, and the hot dog keeps& spinning away.)/" - global.msg[4] = "* (...)/" - global.msg[5] = "* (It finally succeeds.)/" - global.msg[6] = "* (...)/" - global.msg[7] = "* (You hear the grinding of& stone.)/" - global.msg[8] = "* (A single hushpuppy slides& out from under the door.)/" - global.msg[9] = "* (You got Hush Puppy.)/%%" - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = "* (You put a Hot Cat in front& of the door.)/" - global.msg[1] = "* (You hear growling...)/%%" - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = "* (You put a Dog Salad in front& of the door.^1)&* (It slides underneath.)/" - global.msg[1] = "* (...)/" - global.msg[2] = "* (The Dog Salad was absorbed& by the darkness.)/%%" - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = "* (You put a Dog Residue in& front of the door.)/" - global.msg[1] = "* (It slides underneath the door^1,& as if pulled by a magnet.)/" - global.msg[2] = "* (...)/" - if (noroom == 1) - global.msg[3] = "* (ZOMMM!!^1!)&* (It shoots back out at a& high speed!)/%%" - else - global.msg[3] = "* (Two Dog Residues slowly slide& back out from underneath& the door.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 866: - global.msg[0] = "* Yes^1, we know^1.&* The elevator to the city& is NOT working./" - global.msg[1] = "* Because of this incident^1, rooms& are running at a special rate!/" - global.msg[2] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[3] = " " - if (global.flag[267] == 2) - { - global.msg[0] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[1] = " " - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = "* Did you enjoy your stay?/" - global.msg[1] = "* What^1?&* Room..^1.&* Key?/" - global.msg[2] = "* No^1, we don't do that./" - global.msg[3] = "* If you leave your room^1,& you'll have to pay again./" - global.msg[4] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[5] = " " - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* Fabulous^1!&* We'll escort you to your& room!/%%" - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = "* ... that's not enough money./%%" - } - else - global.msg[0] = "* Do let us know if you& change your mind^1.&* Have a sparkular day!/%%" - break - case 870: - global.msg[0] = "* ... MY ONE TRUE LOVE?/" - global.msg[1] = "* .../" - global.msg[2] = "* (YOU LOOK BORED^1, DARLING.)/" - global.msg[3] = "* (I WANT THIS TO BE A STELLAR& PERFORMANCE^1, SO IF YOU& WON'T GIVE IT YOUR ALL...)/" - global.msg[4] = "* (THEN I'LL SKIP AHEAD FOR& THE AUDIENCE'S SAKE.)/" - global.msg[5] = "* (Perform?)& & Yeah Skip this\C" - global.msg[6] = " " - break - case 871: - if (global.choice == 0) - global.msg[0] = "* (UNDERSTOOD.^1)&* (LET'S KNOCK 'EM DEAD!)/%%" - else - { - global.msg[0] = "* (KA-SIGH...^1)&* (THE SHOW MUST GO ON!)/%%" - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = "Interesting./" - global.msg[1] = "You want to go back./" - global.msg[2] = "You want to go bac^1k&to the worl^2d&you destroyed./" - global.msg[3] = "It was you who pushed&everythin^1g to its edge./" - global.msg[4] = "It was you who led the worl^1d&to its destruction./" - global.msg[5] = "But you cannot accept it./" - global.msg[6] = "You think you are above&consequences.& Yes No\C" - global.msg[7] = "" - break - case 889: - if (global.choice == 0) - global.msg[0] = "Exactly./%%" - else - global.msg[0] = "Then what are you looking for?/%%" - break - case 890: - global.msg[0] = "Perhaps./" - global.msg[1] = "We can reach a compromise./" - global.msg[2] = "You still have somethin^1g&I want./" - global.msg[3] = "Give it to me./" - global.msg[4] = "And I will bring this&world back./" - global.msg[5] = " & & Yes No\C" - global.msg[6] = "" - break - case 891: - if (global.choice == 0) - { - global.msg[0] = "Then it is agreed./" - global.msg[1] = "You will give me your SOUL.& & Yes No\C" - global.msg[2] = " " - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = ".../" - global.msg[1] = "Then^1, it is done./%%" - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 900: - global.msg[0] = "* hey./" - global.msg[1] = "* is your refrigerator& running?/" - global.msg[2] = " & & yes no\C" - global.msg[3] = " " - break - case 901: - if (global.choice == 0) - global.msg[0] = "* nice^1.&* i'll be over to deposit& the brewskis./%%" - else - { - global.msg[0] = "* ok^1, i'll send someone& over to fix it./" - global.msg[1] = "* thanks for letting me& know./" - global.msg[2] = "* good communication is& important./%%" - } - break - case 1001: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = " * Check * Console& * Terrorize" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = " * Check * Talk& * Devour * Dinner" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = " * Check * Pick On& * Don't Pick On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = " * Check * Flirt& * Threat * Cheer" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = " * Check * Pet" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = " * Check * Pet& * Pet * Pet & * Pet * Pet " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = " * Check * Agree& * Clash * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = " * Check * Compliment& * Ignore * Steal" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = " * Check * Compliment" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = " * Check * Ditch" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = " * Check * Decorate& * Undecorate * Gift" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = " * Check * Flex& * Shoo" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = " * Check * Flex& * Feed Temmie * Talk& Flakes " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = " * Check * Flirt& * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = " * Check * Clean& * Touch * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = " * Check * Smile& * Hum * Conduct" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = " * Check * Plead& * Challenge" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = " * Check * Cry" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = " * Check * Flirt& * Approach" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = " * Check * Criticize& * Encourage * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = " * Check * Cool Down& * Heat Up * Invite" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = (((("\W * Check * Struggle& * Pay " + string(global.flag[382])) + "G& \YYour Money: ") + string(global.gold)) + "G \W ") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = " * Check * Yell" - if (global.flag[385] > 0) - global.msg[0] = "\W * Check \Y* Yellow \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = " * Check * Fake Attack" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = " * Check * Talk & * Stare * Clear Mind" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = " * Check * Talk & * Sing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = " * Check * Defuse Bomb" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = " * Check * Burn" - if (global.flag[424] > 0) - global.msg[0] = "\W * Check \Y* Turn \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = " * Check * Boast& * Pose * Heel Turn" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = " * Call * Hum& * Scream * Flex& * Unhug * Cry" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = " * Check * Pick On& * Mystify * Clean& * Hum * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = " * Check * ITEM & * STAT * CELL" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = " * Check * Join& * Refuse" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = " * Fake Hit * Recipe& * Smile * Clash" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = " * Encourage * Call & * Nerd Out * Quiz" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = " * Joke * Puzzle & * Recipe * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = " * Take break * Joke & * Judgment * Crossword" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = " * Talk * Mercy & * Hug * Preference" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = " * Talk * Mercy & * Stare * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = " * Check * Switch& * Fix * Lie Down" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = " * Check * Hiss& * Devour * Snack" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = " * Check * Applaud& * Boo * Nothing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = " * Check * Something" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = " * Check * Draw" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = " * Check * Hope & * Dream" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = " * Error" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = " * Struggle" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = "\W * Undyne " - else - global.msg[0] = "\W \Y* (Saved) \W " - if (global.flag[506] == 0) - global.msg[0] += "* Alphys \W &" - else - global.msg[0] += "\Y* (Saved)\W &" - if (global.flag[507] == 0) - global.msg[0] += "\W * Papyrus * Sans \W &" - else - global.msg[0] += "\Y * (Saved) * (Saved)\W &" - if (global.flag[508] == 0) - global.msg[0] += "\W * Toriel * Asgore \W " - else - global.msg[0] += "\Y * (Saved) * (Saved)\W " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = " * Someone else" - if (global.flag[501] == 3) - global.msg[0] = " * Asriel Dreemurr" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = "* Dialing..\E0.\TT /" - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You only wanted to& say hello...^2?&* Well then./" - global.msg[4] = "\E0* 'Hello!'/" - global.msg[5] = "* I hope that suffices^1.&* Hee hee./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 2) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You want to say& hello again?/" - global.msg[4] = "* 'Salutations!'/" - global.msg[5] = "* Is that enough?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Are you bored^1?&* I should have given& a book to you./" - global.msg[4] = "* My apologies./" - global.msg[5] = "* Why not use your& imagination to& divert yourself?/" - global.msg[6] = "* Pretend you are..^1.&* A monarch!/" - global.msg[7] = "* Rule over the leaf pile& with a fist of iron./" - global.msg[8] = "* Can you do that for me?/" - global.msg[9] = "\TS \F0 \T0 %" - global.msg[10] = "* Click.../%%" - } - if (global.flag[40] > 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Hello^1, my child./" - global.msg[4] = "\E1* Sorry^1, I do not have& much to say./" - global.msg[5] = "\E0* It was nice to hear& your voice^1, though^1./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - break - case 1502: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* Help with a puzzle^1.^1.^1.?/" - global.msg[4] = "* Um^1, you have not& left the room^1, have you?/" - global.msg[5] = "\E0* Wait patiently for& me and we can solve& it together!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1503: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* You want to know& more about me?/" - global.msg[4] = "* Well^1, I am afraid there& is not much to say./" - global.msg[5] = "\E0* I am just a silly little& lady who worries too& much!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1504: - global.flag[42] = 1 - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E8* Huh^2?&* Did you just call& me... " + chr(34) + "Mom" + chr(34) + "?/" - global.msg[4] = "\E1* Well...&* I suppose.../" - global.msg[5] = "* Would that make you& happy?/" - global.msg[6] = "* To call me..^2.&* " + chr(34) + "Mother?" + chr(34) + "/" - global.msg[7] = "\E0* Well then^1, call me& whatever you like!/!" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E8* ...^2 huh???/" - global.msg[3] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[4] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[5] = "* You can certainly find& better than an old woman& like me./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[41] == 2) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E1* Oh dear,^1 are you& serious...?/" - global.msg[3] = "\E1* I do not know if this is& pathetic,^1 or endearing./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - if (global.flag[42] == 1) - { - global.msg[3] = "\E8* And after you said you& want to call& me " + chr(34) + "mother..." + chr(34) + "/" - global.msg[4] = "\E0* You are an...^2 & \E1... " + chr(34) + "interesting" + chr(34) + "& child./" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* But nobody came./%%" - } - else - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* Nobody picked up./%%" - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* The ringing is coming from& inside your inventory./%%" - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = "* Dialing...\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hey^1, you silly& child./" - global.msg[3] = "* If you want to& talk to me^1, I am& right here./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - break - case 1508: - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* (Somewhere^1, signals deflected& by a dog.)/%%" - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = "* (No response.^1)&* (Their phone might be out& of batteries.)/%%" - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = "* (The box is aclog with the& the hair of a dog.)/%%" - break - case 2001: - global.msg[0] = "\E2* Welcome to your new& home,^1 innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of& the RUINS./%" - break - case 2002: - global.faceplate = 1 - global.msg[0] = "\E8* ...^2 huh???/" - global.msg[1] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[2] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[3] = "* You can certainly find& better than an old woman& like me./%" - break - case 3002: - global.msg[0] = "* You encountered the Dummy." - global.msg[1] = "%%%" - break - case 3003: - global.msg[0] = "* Froggit attacks you!" - global.msg[1] = "%%%" - break - case 3004: - global.msg[0] = "* Froggit hopped close!" - global.msg[1] = "%%%" - break - case 3005: - global.msg[0] = "* Whimsun approached meekly!" - global.msg[1] = "%%%" - break - case 3006: - global.msg[0] = "* Froggit and Whimsun drew near!" - global.msg[1] = "%%%" - break - case 3007: - global.msg[0] = "* Moldsmal blocked the way!" - global.msg[1] = "%%%" - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 18d1db209..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml deleted file mode 100644 index 7865cee5e..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml +++ /dev/null @@ -1,103 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - n += 2 - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "P") - script_execute(SCR_TEXTSETUP, 4, 255, x, y, (x + 150), 43, 4, 94, 10) - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - } - if (global.inbattle == 1) - halt = 5 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_OBJ_WRITER_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_OBJ_WRITER_Draw_0.gml deleted file mode 100644 index 241521ad2..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_OBJ_WRITER_Draw_0.gml +++ /dev/null @@ -1,255 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "L") - mycolor = $FFA914 - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "z") - { - sym = real(string_char_at(originalstring, (n + 2))) - sym_s = spr_infinitysign - if (sym == 4) - sym_s = spr_infinitysign - if (sym == 4) - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - if (myfont == fnt_comicsans) - { - if (myletter == "w") - myx += 2 - if (myletter == "m") - myx += 2 - if (myletter == "i") - myx -= 2 - if (myletter == "l") - myx -= 2 - if (myletter == "s") - myx -= 1 - if (myletter == "j") - myx -= 1 - } - if (myfont == fnt_papyrus) - { - if (myletter == "D") - myx += 1 - if (myletter == "Q") - myx += 3 - if (myletter == "M") - myx += 1 - if (myletter == "L") - myx -= 1 - if (myletter == "K") - myx -= 1 - if (myletter == "C") - myx += 1 - if (myletter == ".") - myx -= 3 - if (myletter == "!") - myx -= 3 - if (myletter == "O" || myletter == "W") - myx += 2 - if (myletter == "I") - myx -= 6 - if (myletter == "T") - myx -= 1 - if (myletter == "P") - myx -= 2 - if (myletter == "R") - myx -= 2 - if (myletter == "A") - myx += 1 - if (myletter == "H") - myx += 1 - if (myletter == "B") - myx += 1 - if (myletter == "G") - myx += 1 - if (myletter == "F") - myx -= 1 - if (myletter == "?") - myx -= 3 - if (myletter == "'") - myx -= 6 - if (myletter == "J") - myx -= 1 - } - n += nskip -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_flowey_writer_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_flowey_writer_Draw_0.gml deleted file mode 100644 index aa57ccad5..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_flowey_writer_Draw_0.gml +++ /dev/null @@ -1,181 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "f") - global.typer = 9 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else if (global.typer == 70 || global.typer == 71 || global.typer == 74 || global.typer == 75 || global.typer == 76 || global.typer == 77) - draw_text_transformed((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter, 2, 2, 0) - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - n += nskip -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 9a5ea7df7..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,398 +0,0 @@ -buffer -= 1 -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if keyboard_multicheck_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ini_close() - room_goto(room_intromenu) -} -draw_set_color(c_white) -draw_set_font(fnt_maintext) -if (weather != 3) - draw_text_transformed(100, 10, "JOYSTICK CONFIG", 2, 2, 0) -else - draw_text_transformed(10, 10, "JOYSTICK CONFIG", 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, "EXIT") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = "CONFIRM - [Z + ENTER] ::" - if (i == 2) - itext = "CANCEL - [X + SHIFT] ::" - if (i == 3) - itext = "MENU - [C + CTRL] ::" - draw_text(20, (60 + (i * 15)), itext) - draw_set_color(c_white) -} -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 75, 245, 90, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 75, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 90, 245, 105, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 90, "(PUSH BUTTON)") - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 90, global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 105, 245, 120, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 105, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 105, global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, "ANALOG SENSITIVITY:") -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense -= global.analog_sense_sense - if keyboard_check(vk_left) - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text_transformed(20, 150, "ANALOG SENSITIVITY SENSITIVITY:", 0.6, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense_sense -= 0.01 - if keyboard_check(vk_left) - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, "DIR CHOICE:") -if (global.joy_dir == 0) - draw_text(100, 170, "NORMAL") -if (global.joy_dir == 1) - draw_text(100, 170, "ANALOG ONLY") -if (global.joy_dir == 2) - draw_text(100, 170, "POV ONLY") -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, 185, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, 185, "RESET TO DEFAULT") -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = "SPAGHETTI..." - else - r_line = "RESETTED..." - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 200, "CONTROL TEST") -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "cold outside#but stay warm#inside of you", 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "spring time#back to school", 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "try to withstand#the sun's life-#giving rays", 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "sweep a leaf#sweep away a#troubles", 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - draw_rectangle((168 - rectile), -10, -1, 250, false) - draw_set_color(c_black) - draw_rectangle((152 + rectile), -10, 330, 250, false) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 7b8438b88..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = "PET?" - if (gg == 1) - global.msg[0] = "PAT?" - if (gg == 2) - global.msg[0] = "POT?" - global.msg[1] = "%%%" - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_readable_room1_Alarm_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_readable_room1_Alarm_0.gml deleted file mode 100644 index ca62366f8..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_readable_room1_Alarm_0.gml +++ /dev/null @@ -1,480 +0,0 @@ -myinteract = 3 -global.msc = 0 -global.typer = 5 -global.facechoice = 0 -global.faceemotion = 0 -global.msg[0] = "%%" -if (room == room_ruins2) - global.msg[0] = "* Only the fearless may proceed.&* Brave ones, foolish ones.&* Both walk not the middle road./%%" -if (room == room_ruins3) - global.msg[0] = "* Stay on the path./%%" -if (room == room_ruins5) - global.msg[0] = "* The western room is the& eastern room's blueprint./%%" -if (room == room_ruins9) - global.msg[0] = "* Three out of four grey rocks& recommend you push them./%%" -if (room == room_ruins13) - global.msg[0] = "* (There's an ant-sized frog in& a crack in the wall...^1)&* (It waves at you.)/%%" -if (room == room_ruins14) - global.msg[0] = "* There is just one switch./%%" -if (room == room_ruins15A) - global.msg[0] = "* The far door is not an exit^1.&* It simply marks a rotation& in perspective./%%" -if (room == room_ruins15B) - global.msg[0] = "* If you can read this^1,& press the blue switch./%%" -if (room == room_ruins15C) - global.msg[0] = "* If you can read this^1,& press the red switch./%%" -if (room == room_ruins15D) - global.msg[0] = "* If you can read this^1,& press the green switch./%%" -if (room == room_torhouse1) - global.msg[0] = "* These books are worn...&* They must have been read& many times./%%" -if (room == room_asghouse1) -{ - global.msg[0] = "* (There's an old calendar from& the end of 201X.^1)&* (A date is circled on it.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (The date I came here.)/%%" -} -if (room == room_torhouse2) - global.msg[0] = "* The ends of the tools have& been filed down to& make them safer./%%" -if (room == room_asghouse2) - global.msg[0] = "* Seems like gardening tools./%%" -if (room == room_asrielroom) - global.msg[0] = "* Look at these cool toys^2!&* They don't interest you& at all./%%" -if (room == room_asrielroom_final) - global.msg[0] = "* (Dusty toys.)/%%" -if (room == room_castle_finalshoehorn) - global.msg[0] = "* Throne Room/%%" -if (room == room_castle_coffins2) -{ - global.msg[0] = "* (It's a coffin.^1)&* (There's a name engraved on& it.)/" - global.msg[1] = (('* ("' + global.charname) + '.")/') - global.msg[2] = "* (It's empty.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (The coffin is empty...?)/" - global.msg[1] = "* (You didn't notice before^1,& but there's something like...)/" - global.msg[2] = "* (... mummy wrappings at the& bottom of it.)/%%" - } - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (It's as comfortable as it& looks.)/%%" -} -if (room == room_torielroom) -{ - global.msc = 524 - if (x > 192) - { - global.msc = 0 - global.msg[0] = "* You peek inside..^2.&* Scandalous!/" - global.msg[1] = "* It's TORIEL's sock& collection./%%" - if (read > 0) - global.msg[0] = "* You can't stop looking& at the socks./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (You came all the way& back here to look at& Toriel's socks.)/" - global.msg[1] = "* (You have great priorities& in life.)/%%" - } - } -} -if (room == room_asgoreroom) -{ - global.msg[0] = "* It's a clothes drawer^1.&* There are robes^1, button-up& shirts.../" - global.msg[1] = "* ... and a pink^1, hand-knit& sweater that says& " + chr(34) + "Mr. Dad Guy." + chr(34) + "/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* Still has that sweater./%%" - if (y > 120) - global.msg[0] = "* (It's just a chair.)/%%" -} -if (room == room_castle_throneroom) - global.msg[0] = "* (It's a throne.)/%%" -if (room == room_torhouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_asghouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_kitchen) - global.msg[0] = "* For some reason^1, there& is a brand-name chocolate& bar in the fridge./%%" -if (room == room_kitchen_final) -{ - global.msg[0] = "* (The fridge is full of& unopened containers of& snails.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* No chocolate./%%" -} -if (room == room_tundra1) - global.msg[0] = "* ...!^1?&* There's a camera hidden& in the bushes./%%" -if (room == room_tundra8A) - global.msg[0] = "* (His.)/%%" -if (room == room_tundra_snowpuzz) -{ - if (global.plot <= 48) - global.msg[0] = "* There's a switch hidden& in the snow^1.&* Click!/%%" - if (global.plot > 48) - global.msg[0] = "* The switch is stuck now./%%" - if (global.flag[64] == 0) - global.flag[64] = 1 - if (global.plot <= 48) - global.plot = 49 - if (scr_murderlv() >= 3) - global.msg[0] = "* There's a switch here^1.&* It's been depressed with& vines./%%" -} -if (room == room_tundra_lesserdog) - global.msg[0] = "* On the floor inside is& a box of pomeraisins./%%" -if (room == 9999999) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are super crap./" - global.msg[2] = "* When monsters die^1, their& bodies turn into dust./" - global.msg[3] = "* One time this kid at my school& went missing for a week and& everyone thought he was dead.../" - global.msg[4] = "* But then he came back!!!/" - global.msg[5] = "* Turns out he was visiting his& girlfriend in Hotland and& and didn't tell anyone!/" - global.msg[6] = "* To be scientific^1, it sucks& that no one ever knows& if anyone's dead or alive./" - global.msg[7] = "* So yeah^1, what do we do at& funerals^1, anyway?/" - global.msg[8] = "* Professionally speaking:/" - global.msg[9] = "* DUH!!!/" - global.msg[10] = "* We pour the dust on whatever& that person liked./" - global.msg[11] = "* Then they will live on..^1.& ... in that object...& ... symbolically.../" - global.msg[12] = "* Uhhh^1, did I reach the page& minimum yet^1?&* I'm kinda sick of writing./%%" -} -if (room == room_tundra_library) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are cool as heck./" - global.msg[2] = "* When monsters get old and& kick the bucket^1, they turn& into dust./" - global.msg[3] = "* At funerals^1, we take that& dust and spread it on that& person's favorite thing./" - global.msg[4] = "* Then their essence will live& on in that thing.../" - global.msg[5] = "* Uhhh^1, am I at the page& minimum yet^1?&* I'm kinda sick of writing this./%%" -} -if (room == room_tundra_inn) -{ - global.msg[0] = "\W* Mom says that sleeping& can recover your health& \Yabove your maximum HP\W./" - global.msg[1] = "* ... what's maximum HP?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* Mom says that we can& go to the surface world& now!/" - global.msg[1] = "* ... what's so great about& that^1, anyway^1?&* I don't wanna move./%%" - } - if (scr_murderlv() >= 7) - global.msg[0] = "* (It's merely a decoy.)/%%" -} -if (room == room_water12) -{ - global.msg[0] = "* " + chr(34) + "The power to take their& SOULs." + chr(34) + "/" - global.msg[1] = "* " + chr(34) + "This is the power that& the humans feared." + chr(34) + "/%%" -} -if (room == room_water7) -{ - global.msg[0] = "* (Ancient writing covers the& walls..^1. you can just make& out the words.)/" - global.msg[1] = "* " + chr(34) + "The War of Humans and& Monsters." + chr(34) + "/%%" -} -if (room == room_water14) - global.msg[0] = "* The northern room hides a& great treasure./%%" -if (room == room_water15) -{ - global.msg[0] = "* Hurt, beaten, and fearful for& our lives, we surrendered& to the humans./" - global.msg[1] = "* Seven of their greatest& magicians sealed us underground& with a magic spell./" - global.msg[2] = "* Anything can enter through the& seal, but only beings with a& powerful SOUL can leave./%%" -} -if (room == room_water19) -{ - global.msg[0] = "* However...&* There is a prophecy./" - global.msg[1] = "* The Angel...&* The One Who Has Seen The& Surface.../" - global.msg[2] = "* They will return.&* And the underground will go& empty./%%" -} -if (room == room_water_nicecream) - global.msg[0] = "* The ancient glyphs have been& painted over with a list of& 21 different flavors./%%" -if (room == room_water_prebird) - global.msg[0] = "* Achoo^1!&* Tried to catch a bug^1, but& I just caught a cold.../%%" -if (room == room_water_preundyne) -{ - global.msg[0] = "* The humans, afraid of our& power^1, declared war on us./" - global.msg[1] = "* They attacked suddenly, and& without mercy./%%" -} -if (room == room_water17) - global.msg[0] = "* Without candles or magic to& guide them Home^1, the monsters& used crystals to navigate./%%" -if (room == room_water20) -{ - if instance_exists(obj_monsterkidtrigger7) - obj_monsterkidtrigger7.con = 80 - cantalk = 0 -} -if (room == room_fire_lab1) -{ - global.msg[0] = "* (It's a beat-up figurine& of a female human with& cat ears.)/%%" - if (global.plot < 126 && scr_murderlv() < 12) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" -} -if (room == room_fire_lab2) - global.msg[0] = "* (Scientific books.^1)&* (They seem very dusty.)/%%" -if (room == room_fire_cookingshow) -{ - global.msg[0] = "* (It's a fridge.^1)&* (It's strangely warm.)/%%" - if (global.plot < 134) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" - if instance_exists(obj_mettaton_npc) - { - global.typer = 27 - global.msg[0] = "* MILK^1? EGGS^1? IN THE FRIDGE?/" - global.msg[1] = "* NO WAY^1, DARLING^1!&* THEY'D GET COLD!!!/%%" - } - if (global.plot == 134) - { - snd_play(snd_phone) - global.typer = 5 - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* Um^1, is it really& a good idea to be& getting a snack?/" - global.msg[3] = "\E8* Well^1, I guess I& really shouldn't& judge you.../" - global.msg[4] = "\E0* After all^1, I'm the& one eating potato& chips in my PJs!/" - global.msg[5] = "\E5* Uhhh^1, I mean..^1.&* H-hey^1, go over to& the right!/%%" - if (specialread > 0) - { - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* H-hey^1!&* Head over to the& right!/%%" - } - specialread += 1 - } -} -if (room == room_water_undynehouse) -{ - global.typer = 37 - global.facechoice = 5 - global.faceemotion = 4 - global.msc = 0 - if (x > 180) - { - global.msg[0] = "* I hate cold food./" - global.msg[1] = "\E0* So Alphys fixed up& my fridge so it& heats up food instead!/" - global.msg[2] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - if (read > 0) - global.msg[0] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - } - else - { - global.faceemotion = 0 - global.msg[0] = "* This oven is some& top-of-the-line& MTT thing./" - global.msg[1] = "\E4* But^1, y'know^1, as much& as technology& advances.../" - global.msg[2] = "\E0* Nothing beats food& home-cooked with& fire magic./%%" - } -} -if (room == room_fire_spidershop) -{ - global.msg[0] = "* (It looks like some sort of& powerful bracelet...)/" - global.msg[1] = "* (Wait.^1)&* (It's just a croissant...)/%%" -} -if (room == room_fire_hotelfront_2) - global.msg[0] = "* (It's just a regular wall.)/%%" -if (room == room_fire_core_branch) - global.msg[0] = "* (East...)&* (The End.)/%%" -if (room == room_fire_core_left) - global.msg[0] = "* (Solve this puzzle,& and The End will open.)/%%" -if (room == room_fire_core_top) - global.msg[0] = "* (Traverse the northern& room^1, and The End will& open.)/%%" -if (room == room_fire_core_right) -{ - global.msg[0] = "* (I cannot fight.)&* (I cannot think.)/" - global.msg[1] = "* (But^1, with patience^1,& I will make my way& through.)/%%" -} -if (room == room_fire_core_center) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_treasureleft) - global.msg[0] = "* (Why not relax and have& a nice snack?)/%%" -if (room == room_fire_core_treasureright) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_metttest) -{ - global.msg[0] = "* (It's completely trashed.^1)&* (There's no way it could& ever be repaired.)/%%" - if (global.flag[425] == 0) - global.msg[0] = "* (It's out of batteries.)/%%" -} -if (room == room_truelab_hall1) -{ - global.msg[0] = "* ENTRY NUMBER 1/" - global.msg[1] = "* This is it..^1.&* Time to do what the King& has asked me to do./" - global.msg[2] = "* I will create the power to& free us all./" - global.msg[3] = "* I will unleash the power of& the SOUL./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hub) -{ - global.msg[0] = "* POWER ROOM/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall2) -{ - global.msg[0] = "* ENTRY NUMBER 6/" - global.msg[1] = "* ASGORE asked everyone& outside the city for monsters& that had " + chr(34) + "fallen down." + chr(34) + "/" - global.msg[2] = "* Their bodies came in today./" - global.msg[3] = "* They're still comatose..^1.&* And soon^1, they'll all& turn into dust./" - global.msg[4] = "* But what happens if I& inject " + chr(34) + "determination" + chr(34) + " into& them?/" - global.msg[5] = "* If their SOULS persist& after they perish^1, then.../" - global.msg[6] = "* Freedom might be closer& than we all thought./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_operatingroom) -{ - global.msg[0] = "* ENTRY NUMBER 9/" - global.msg[1] = "* things aren't going well./" - global.msg[2] = "* none of the bodies have& turned into dust^1, so I& can't get the SOULs./" - global.msg[3] = "* i told the families that& i would give them the& dust back for the funerals./" - global.msg[4] = "* people are starting to& ask me what's happening./" - global.msg[5] = "* what do i do?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_prebed) -{ - global.msg[0] = "* ENTRY NUMBER 12/" - global.msg[1] = "* nothing is happening^1.&* i don't know what to do./" - global.msg[2] = "* i'll just keep injecting& everything with& " + chr(34) + "determination." + chr(34) + "/" - global.msg[3] = "* i want this to work./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_bedroom) -{ - global.msg[0] = "* ENTRY NUMBER 14/" - global.msg[1] = "* Everyone that had fallen& down.../" - global.msg[2] = "* ... has woken up./" - global.msg[3] = "* They're all walking around& and talking like nothing& is wrong./" - global.msg[4] = "* I thought they were& goners...?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_mirror) -{ - global.msg[0] = "* ENTRY NUMBER 7/" - global.msg[1] = "* We'll need a vessel to& wield the monster SOULs& when the time comes./" - global.msg[2] = "* After all^1, a monster& cannot absorb the SOULs& of other monsters./" - global.msg[3] = "* Just as a human cannot& absorb a human SOUL.../" - global.msg[4] = "* So then.../" - global.msg[5] = "* What about something that's& neither human nor monster?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall3) -{ - global.msg[0] = "* ENTRY NUMBER 15/" - global.msg[1] = "* Seems like this research& was a dead end.../" - global.msg[2] = "* But at least we got a& happy ending out of it...?/" - global.msg[3] = "* I sent the SOULS back to& ASGORE^1, returned the& vessel to his garden..../" - global.msg[4] = "* And I called all of the& families and told them& everyone's alive./" - global.msg[5] = "* I'll send everyone back& tomorrow. :) /%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* ENTRY NUMBER 17/" - global.msg[1] = "* monsters' physical forms& can't handle " + chr(34) + "determination" + chr(34) + "& like humans' can./" - global.msg[2] = "* with too much determination^1,& our bodies begin to break& down./" - global.msg[3] = "* everyone's melted together.../%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* DT EXTRACTION MACHINE&* STATUS: INACTIVE/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_tv) -{ - global.msg[0] = "* ENTRY NUMBER 4/" - global.msg[1] = "* I've been researching humans& to see if I can find any& info about their SOULS./" - global.msg[2] = "* I ended up snooping around& the castle...&* And found these weird tapes./" - global.msg[3] = "* I don't feel like ASGORE's& watched them.../" - global.msg[4] = "* I don't think he should./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_fan) - global.msc = 780 -if (room == room_truelab_cooler) -{ - global.msg[0] = "* ENTRY NUMBER 19/" - global.msg[1] = "* the families keep calling& me to ask when everyone& is coming home./" - global.msg[2] = "* what am i supposed to say?/" - global.msg[3] = "* i don't even answer the& phone anymore./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" - if (global.flag[490] == 0) - global.msg[0] = "* (It's too dark to see near& the walls.)/%%" -} -if (room == room_truelab_prepower) -{ - global.msg[0] = "* (Seems to be turned off.)/%%" - if (global.flag[485] == 1) - { - global.msg[0] = "* ENTRY NUMBER 8/" - global.msg[1] = "* I've chosen a candidate./" - global.msg[2] = "* I haven't told ASGORE yet^1,& because I want to surprise& him with it.../" - global.msg[3] = "* In the center of his& garden^1, there's something& special./" - global.msg[4] = "* The first golden flower^1,& that grew before all the& others./" - global.msg[5] = "* The flower from the outside& world./" - global.msg[6] = "* It appeared just before& the queen left./" - global.msg[7] = "* I wonder.../" - global.msg[8] = "* What happens when something& without a SOUL gains& the will to live?/%%" - } -} -if (room == room_truelab_elevatorinside) - global.msg[0] = "* (None of the buttons work.^1)&* (It seems to have lost power.)/%%" -if (room == room_castle_elevatorout) - global.msg[0] = "* (The door is jammed shut& with vines.)/%%" -if (room == room_truelab_castle_elevator) - global.msg[0] = "* (Seems like another elevator& has lost its power.)/%%" -if (room == room_tundra_grillby) - global.msg[0] = "* (The jukebox is broken.)/%%" -if (room == room_water_blookyard) - global.msg[0] = "* (It's locked.)/%%" -if (room == room_tundra_sansroom) - global.msg[0] = "* (It's a worn mattress.^1)&* (The sheets are bunched up in a& weird^1, creasy ball.)/%%" -if (room == room_tundra_sansbasement) -{ - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (He looks happy.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (... and^1, one photo of you& standing with Sans and all& your friends.)/" - global.msg[3] = "* (He looks happy.)/%%" - } - if (global.flag[279] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of..^1. Huh?)/" - global.msg[2] = "* (A card is sticking out from& the back flap of the binder.)/" - global.msg[3] = "* (It's a poorly drawn picture& of three smiling people.^1)&* (Written on it...)/" - global.msg[4] = "* " + chr(34) + "don't forget." + chr(34) + "/%%" - } -} -if (room == room_fire_pacing) -{ - global.msg[0] = "* (It's a poster for Mettaton's& latest stage performance.)/" - global.msg[1] = "* (A tragic tale of two star-& crossed lovers^1, kept apart& by the tides of fate...)/" - global.msg[2] = "* (Looks like it's almost time& for the performance.)/%%" -} -if (room == room_fire_hoteldoors) - global.msg[0] = "* (It's locked from the inside.)/%%" -if (room == room_fire_hotellobby) -{ - global.msg[0] = "* (There's an inscription on& this fountain.)/" - global.msg[1] = "* Royal Memorial Fountain&* Built 201X&* (Mettaton Added Last Week)/%%" -} -if (room == room_fire_restaurant) -{ - global.msg[0] = "* (It's a Wall of Fame full of& quotes and photos from visiting& celebrities.)/" - global.msg[1] = "* " + chr(34) + "The food is to die for!^1" + chr(34) + "&* " + chr(34) + "Gorgeous style and fragrance!^1" + chr(34) + "&* " + chr(34) + "My face tastes beautiful!" + chr(34) + "/" - global.msg[2] = "* (... these are all Mettaton.)/%%" -} -if (room == room_fire_hotelbed) -{ - global.msg[0] = "* (It's a lamp.^1)&* (There's no lightswitch.)/" - global.msg[1] = "* (It says that stars make& their own light...)/%%" -} -if (room == room_water_temvillage) - global.msg[0] = "* (Rich history of Tem.)/%%" -read += 1 -if (cantalk == 1) - mydialoguer = instance_create(0, 0, obj_dialoguer) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index d03c73c02..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - draw_set_font(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, "Exit") - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if keyboard_check_pressed(vk_return) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - draw_set_font(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (keyboard_check_pressed(vk_return) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_truechara_Step_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_truechara_Step_0.gml deleted file mode 100644 index 0b3663c04..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_truechara_Step_0.gml +++ /dev/null @@ -1,192 +0,0 @@ -if (con == 1) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Greetings./" - global.msg[1] = (("I^2 am " + global.charname) + "./%%") - instance_create(220, 320, OBJ_WRITER) - con = 2 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - caster_loop(ch_sfx1, 1, 1) - con = 3 - alarm[4] = 60 -} -if (con == 4) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Thank you./" - global.msg[1] = "Your power awakened&me from death./" - global.msg[2] = 'My "human soul."/' - global.msg[3] = 'My "determination."/' - global.msg[4] = "They were not mine^1,&but YOURS./" - global.msg[5] = "At first^1, I&was so confused./" - global.msg[6] = "Our plan had failed^1,&hadn't it?/" - global.msg[7] = "Why was I brought&back to life?/" - global.msg[8] = ".../" - global.msg[9] = "You./" - global.msg[10] = "With your guidance./" - global.msg[11] = "I realized the purpose&of my reincarnation./" - global.msg[12] = "Power./" - global.msg[13] = "Together^1, we eradicated&the enemy and became&strong./" - global.msg[14] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[15] = "Every time a number&increases^1, that&feeling.../" - global.msg[16] = "That's me./" - global.msg[17] = (('"' + global.charname) + '."/') - global.msg[18] = "Now./" - global.msg[19] = "Now, we have reached&the absolute./" - global.msg[20] = "There is nothing&left for us here./" - global.msg[21] = "Let us erase this&pointless world^1, and&move on to the next./%%" - if file_exists("system_information_963") - { - global.msg[0] = (('"' + global.charname) + '."/') - global.msg[1] = "The demon that comes&when people call&its name./" - global.msg[2] = "It doesn't matter when./" - global.msg[3] = "It doesn't matter where./" - global.msg[4] = "Time after time,&I will appear./" - global.msg[5] = "And, with your help./" - global.msg[6] = "We will eradicate the&enemy and become&strong./" - global.msg[7] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[8] = "Every time a number&increases^1, that&feeling.../" - global.msg[9] = "That's me./" - global.msg[10] = (('"' + global.charname) + '."/') - global.msg[11] = ".../" - global.msg[12] = "But./" - global.msg[13] = "You and I are not&the same^1, are we?/" - global.msg[14] = "This SOUL resonates&with a strange&feeling./" - global.msg[15] = "There is a reason&you continue to&recreate this world./" - global.msg[16] = "There is a reason&you continue to&destroy it./" - global.msg[17] = "You./" - global.msg[18] = "You are wracked with&a perverted&sentimentality./" - global.msg[19] = "Hmm./" - global.msg[20] = "I cannot understand&these feelings&any more./" - global.msg[21] = "Despite this./" - global.msg[22] = "I feel obligated to&suggest./" - global.msg[23] = "Should you choose to&create this world&once more./" - global.msg[24] = "Another path would&be better suited./" - global.msg[25] = "Now, partner./" - global.msg[26] = "Let us send this&world back into the&abyss./%%" - } - instance_create(150, 320, OBJ_WRITER) - con = 5 -} -if (con == 5 && instance_exists(OBJ_WRITER) == 0) -{ - con = 6 - alarm[4] = 30 -} -if (con == 7) -{ - con = 8 - choicer = 1 -} -if (con == 20) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Right^1. You are a&great partner./" - global.msg[1] = "We'll be together&forever^1, won't we?/%%" - con = 22 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 22 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - sprite_index = spr_truechara_weird -} -if (con == 22 && instance_exists(OBJ_WRITER) == 0) - con = 60 -if (con == 30) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "No...?/" - global.msg[1] = "Hmm.../" - global.msg[2] = "How curious./" - global.msg[3] = "You must have&misunderstood./" - global.msg[4] = "SINCE WHEN WERE YOU&THE ONE IN CONTROL?/%%" - if file_exists("system_information_963") - { - global.msg[0] = "No...?/" - global.msg[1] = "Hmm...&This feeling you have./" - global.msg[2] = "This is what I&spoke of./" - global.msg[3] = "Unfortunately,®arding this.../" - global.msg[4] = "YOU MADE YOUR CHOICE&LONG AGO./%%" - } - con = 31 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 31 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 4) - sprite_index = spr_truechara_weird -} -if (con == 31 && instance_exists(OBJ_WRITER) == 0) - con = 40 -if (con == 40) -{ - caster_stop(-3) - caster_play(ch_sfx2, 1, 0.95) - sprite_index = spr_truechara_laugh - image_speed = 0.5 - con = 41 - flashred = 1 - alarm[4] = 120 - wx = 0 - wy = 0 - if (global.osflavor == 1) - { - window_set_fullscreen(false) - window_set_caption(" ") - window_center() - wx = window_get_x() - wy = window_get_y() - } -} -if (con == 41) -{ - x = (((room_width / 2) + random(4)) - random(4)) - y = (((room_height / 2) + random(4)) - random(4)) - image_xscale += 0.08 - image_yscale += 0.08 - if (global.osflavor == 1) - window_set_position(((wx + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4))), ((wy + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4)))) -} -if (con == 42) -{ - con = 60 - if (global.osflavor == 1) - window_center() - flashred = 0 -} -if (con == 60) -{ - caster_free(-3) - snd_play(snd_laz) - image_speed = 0 - image_index = 0 - sprite_index = spr_strike - image_xscale = 5 - image_yscale = 5 - y = ((room_height / 2) - (sprite_height / 2)) - x = ((room_width / 2) - (sprite_width / 2)) - image_speed = 0.1 - con = 61 -} -if (con == 61) -{ - if (image_index >= 5.5) - { - visible = false - con = 62 - alarm[4] = 40 - } -} -if (con == 63) -{ - snd_play(snd_damage) - instance_create(0, 0, obj_gameshake) - con = 64 -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index f424d711c..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = string("0") - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ccf249543..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6411 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = " " - adder = "\W " - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y " - if (global.flag[22] == 2) - adder = "\p " - } - global.msg[0] = adder - global.msg[0] += (" * " + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += " A" - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += " B" - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += " C" - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = " " - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y " - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p " - } - } - global.msg[0] += " * Spare" - if (global.mercy == 0) - global.msg[0] += "& \W * Flee" - break - case 9: - global.msg[0] = ((" * " + global.itemnameb[0]) + " ") - if (global.item[1] != 0) - global.msg[0] += ("* " + global.itemnameb[1]) - global.msg[0] += " &" - if (global.item[2] != 0) - global.msg[0] += ((" * " + global.itemnameb[2]) + " ") - if (global.item[3] != 0) - global.msg[0] += ("* " + global.itemnameb[3]) - global.msg[0] += " & PAGE 1" - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = ((" * " + global.itemnameb[4]) + " ") - if (global.item[5] != 0) - global.msg[0] += ("* " + global.itemnameb[5]) - global.msg[0] += " &" - if (global.item[6] != 0) - global.msg[0] += ((" * " + global.itemnameb[6]) + " ") - if (global.item[7] != 0) - global.msg[0] += ("* " + global.itemnameb[7]) - global.msg[0] += " & PAGE 2" - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += (("* You recovered " + string(global.item[8])) + " HP!/%") - else - global.msg[0] += "* Your HP was maxed out./%" - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = (("* You bid a quiet farewell& to the " + global.itemname[global.menucoord[1]]) + ".") - if (i == 1) - global.msg[0] = (("* You put the " + global.itemname[global.menucoord[1]]) + "& on the ground and gave it a& little pat.") - if (i == 2) - global.msg[0] = (("* You threw the " + global.itemname[global.menucoord[1]]) + "& on the ground like the piece& of trash it is.") - if (i == 3) - global.msg[0] = (("* You abandoned the & " + global.itemname[global.menucoord[1]]) + ".") - if (i > 3) - global.msg[0] = (("* The " + global.itemname[global.menucoord[1]]) + " was& thrown away.") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = " * I'm outta here." - if (i == 2) - global.msg[0] = " * I've got better to do." - if (i > 3) - global.msg[0] = " * Escaped..." - if (i == 3) - global.msg[0] = " * Don't slow me down." - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = ((((" * Ran away with " + string(global.xpreward[3])) + " EXP& and ") + string(global.goldreward[3])) + " GOLD.") - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = "* (The shadow of the ruins& looms above^1, filling you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins7) - { - global.msg[0] = "* (Playfully crinkling through& the leaves fills you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins12A) - { - global.msg[0] = "* (Knowing the mouse might one& day leave its hole and& get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_ruins19) - global.msg[0] = "* (Seeing such a cute^1, tidy& house in the RUINS gives& you determination.)/%%" - if (global.flag[202] >= 20) - global.msg[0] = "* Determination./%%" - if (room == room_tundra1) - global.msg[0] = "* (The cold atmosphere of a& new land... it fills you& with determination.)/%%" - if (room == room_tundra3) - global.msg[0] = "* (The convenience of that& lamp still fills you& with determination.)/%%" - if (room == room_tundra_spaghetti) - { - global.msg[0] = "* (Knowing the mouse might one& day find a way to heat& up the spaghetti...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = "* (Knowing that dog will& never give up trying to& make the perfect snowdog...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - if (global.flag[55] == 1) - { - global.msg[0] = "* (Snow can always be broken& down and rebuilt into& something more useful.)/" - global.msg[1] = "* (This simple fact fills& you with determination.)/%%" - } - } - if (room == room_tundra_town) - global.msg[0] = "* (The sight of such a friendly& town fills you with& determination.)/%%" - if (room == room_water2) - global.msg[0] = "* (The sound of rushing water& fills you with& determination.)/%%" - if (room == room_water4) - global.msg[0] = "* (A feeling of dread hangs& over you...^1)&* (But you stay determined.)/%%" - if (room == room_water_savepoint1) - { - global.msg[0] = "* (Knowing the mouse might one& day extract the cheese from& the mystical crystal...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_preundyne) - { - global.msg[0] = "* (The sound of muffled rain& on the cavetop...)/" - if (global.flag[86] == 1) - global.msg[0] = "* (The serene sound of a& distant music box...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_trashzone2) - global.msg[0] = "* (The feeling of your socks& squishing as you step& gives you determination.)/%%" - if (room == room_water_trashsavepoint) - { - global.msg[0] = "* (The waterfall here seems& to flow from the& ceiling of the cavern...)/" - global.msg[1] = "* (Occasionally^1, a piece of& trash will flow& through...)/" - global.msg[2] = "* (... and fall into the& bottomless abyss below.)/" - global.msg[3] = "* (Viewing this endless& cycle of worthless& garbage...)/" - global.msg[4] = "* (It fills you with& determination.)/%%" - if (global.flag[91] == 1) - global.msg[0] = "* (Partaking in worthless& garbage fills you& with determination.)/%%" - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = "* (You feel a calming& tranquility^1. You're filled& with determination...)/%%" - if (room == room_water_temvillage) - global.msg[0] = "* (You feel..^1. something.)&* (You're filled with& detemmienation.)/%%" - if (room == room_water_undynefinal) - { - global.msg[0] = "* (The wind is howling^1.&* You're filled with& determination...)/%%" - if (global.flag[99] > 0) - global.msg[0] = "* (The howling wind is& now a breeze^1. This gives& you determination...)/%%" - if (global.flag[350] == 1) - global.msg[0] = "* (The wind has stopped^1.&* You're filled with& determination...)/%%" - } - if (room == room_fire_prelab) - { - global.msg[0] = "* (Seeing such a strange& laboratory in a place like& this...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire6) - global.msg[0] = "* (The wooshing sound of steam& and cogs..^1. it fills you& with determination.)/%%" - if (room == room_fire_savepoint1) - { - global.msg[0] = "* (An ominous structure looms& in the distance...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_mewmew2) - { - global.msg[0] = "* (Knowing the mouse might one& day hack the computerized& safe and get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_fire_hotelfront_1) - global.msg[0] = "* (A huge structure lies north.^1)&* (You're filled with& determination.)/%%" - if (room == room_fire_hotellobby) - global.msg[0] = "* (The relaxing atmosphere& of this hotel..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_branch) - global.msg[0] = "* (The air is filled with& the smell of ozone..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_premett) - { - global.msg[0] = "* (Behind this door must be& the elevator to the King's& castle.)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_savepoint2) - { - global.msg[0] = "* (The smell of cobwebs fills& the air...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& put away.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& tossed inside recklessly.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& placed thoughtfully inside.") - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& grabbed impatiently.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out and held like a& small puppy.") - global.msg[0] += "/%" - break - case 18: - global.msg[0] = "* You can't carry any more./%%" - break - case 19: - global.msg[0] = "* The box is full./%%" - break - case 23: - global.msg[0] = "* You leave the Quiche on the& ground and tell it you'll& be right back./%%" - break - case 30: - global.msg[0] = "* Use the box?& & Yes No \C " - global.msg[1] = " " - global.msg[2] = " " - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = " %%" - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = "* You have no items^1.&* You put a little time into& the box./%%" - if (gx == 1) - global.msg[0] = "* You have no items^1.&* You put a little effort& into the box./%%" - if (gx == 2) - global.msg[0] = "* You have no items^1.&* You put a little feeling& into the box./%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 200: - global.msg[0] = "\W* Howdy^2!&* I'm\Y FLOWEY\W.^2 &* \YFLOWEY\W the \YFLOWER\W!/" - global.msg[1] = "* Hmmm.../" - global.msg[2] = "* You're new to the& UNDERGROUND^2, aren'tcha?/" - global.msg[3] = "* Golly^1, you must be& so confused./" - global.msg[4] = "* Someone ought to teach& you how things work& around here!/" - global.msg[5] = "* I guess little old me& will have to do./" - global.msg[6] = "* Ready^2?&* Here we go!/%%" - break - case 201: - global.msg[0] = "\E2* This way./%%" - global.msg[1] = "%%%" - break - case 202: - global.msg[0] = "\E2* Welcome to your new& home^1, innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of the& RUINS./%%" - break - case 203: - global.msg[0] = "\E2* The RUINS are full of& puzzles./" - global.msg[1] = "* Ancient fusions between & diversions and doorkeys./" - global.msg[2] = "* One must solve them& to move from room to& room./" - global.msg[3] = "* Please adjust yourself to the sight of them./%" - break - case 204: - global.msg[0] = "\E2* To make progress here,^1 & you will need to trigger& several switches./" - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./%" - if (global.flag[6] == 1) - { - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./" - global.msg[2] = "* ... eh^1?&* It seems that the& labelling has worn away./" - global.msg[3] = "* Oh dear./" - global.msg[4] = "* This might be far more& challenging than I& anticipated.../%%" - } - break - case 205: - global.msg[0] = "\E2* The first switch is over& on the wall./%" - break - case 206: - global.msg[0] = "\E1* Do you need some help..^1?&* Press the switch on the wall./" - global.msg[1] = "\E0* Come on^1, you can do it!/%" - break - case 207: - global.msg[0] = "\E2* Go on^1, press the switch& on the left./%" - if (global.flag[6] == 1) - global.msg[0] = "\E2* I believe it was& the switch on the& left./%" - break - case 208: - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/" - global.msg[1] = "\E0* Press the switch that I& labelled for you./%" - if (global.flag[6] == 1) - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/%%" - break - case 209: - global.msg[0] = "\E1* You are very curious,^1 & are you not?/" - global.msg[1] = "\E1* Please understand.^2 & \E0I only want the best& for you./%" - break - case 210: - global.msg[0] = "\E0* Splendid!^2 &* I am proud of you,^1 & little one./" - global.msg[1] = "* Let us move to the& next room./%" - break - case 211: - global.msg[0] = "\E1* As a human living in& the UNDERGROUND,^1 & monsters may attack you./" - global.msg[1] = "\E2* You will need to be& prepared for this& situation./" - global.msg[2] = "\E0* However, worry not!^2 &* The process is simple./" - global.msg[3] = "\E2* When you encounter a & monster,^1 you will enter& a FIGHT./" - global.msg[4] = "* While you are in a& FIGHT^1, strike up a& friendly conversation./" - global.msg[5] = "\E2* Stall for time.& I will come to resolve& the conflict./" - global.msg[6] = "\E2* Practice talking to& the dummy./%" - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = "\E1* Ahh,^1 the dummies are& not for fighting!^2 &* They are for talking!/" - global.msg[1] = "* We do not want to hurt& anybody, do we...?^2 \E0 &* Come now./%" - } - if (global.flag[10] == 1) - global.msg[0] = "\E0* Ah,^1 very good!^2 &* You are very good./%" - if (global.flag[11] == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E1* ... you ran away.../" - global.msg[2] = "\E0* Truthfully^1, that was& not a poor choice./" - global.msg[3] = "\E0* It is better to& avoid conflict& whenever possible./" - global.msg[4] = "\E1* That..^1. however^1, is& only a dummy^2.&* It cannot harm you./" - global.msg[5] = "\E1* It is made of cotton^1.&* It has no desire& for revenge.../" - global.msg[6] = "\E0* Nevermind^2.&* Stay close to me and& I will keep you safe./%" - } - if (global.flag[13] == 1) - { - global.msg[0] = "\E3* ^1.^1.^1./" - global.msg[1] = "\E4* ^1.^1.^1./" - global.msg[2] = "\E0* The next room awaits./%" - } - break - case 213: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E2 &* I do not think the dummy& will be bothered./%" - break - case 214: - global.msg[0] = "\E0* Do you need some& ideas for conversation& topics?/" - global.msg[1] = "* Well^1, I often start with& a simple 'how do you& do...'/" - global.msg[2] = "* You could ask them about& their favorite books.../" - global.msg[3] = "* Jokes can be useful for& 'breaking the ice.'/" - global.msg[4] = "* Listen to this one.../" - global.msg[5] = "* What did the skeleton& tile his roof with?/" - global.msg[6] = "* ... SHIN-gles!/" - global.msg[7] = "\E1* .../" - global.msg[8] = "\E0* Well^1, I thought it& was amusing./%" - break - case 215: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E0 &* The dummy will not& be bothered./%" - break - case 216: - global.msg[0] = "\E1* There is another puzzle& in this room.../" - global.msg[1] = "\E0* I wonder if you can& solve it?/%" - break - case 217: - global.msg[0] = "\E1* This is the puzzle^1,& but.../" - global.msg[1] = "\E0* Here^1, take my hand& for a moment./%" - break - case 218: - global.msg[0] = "\E1* Puzzles seem a little& too dangerous for& now./%" - break - case 219: - global.msg[0] = ".../%" - break - case 220: - global.msg[0] = "\E2* Greetings,^1 my child^2.&* Do not worry^1, I did& not leave you./" - global.msg[1] = "\E0* I was merely behind this& pillar the whole time./" - global.msg[2] = "* Thank you for trusting& me./" - global.msg[3] = "\E2* However^1, there was an& important reason for& this exercise./" - global.msg[4] = "* ... to test your& independence./" - global.msg[5] = "\E1* I must attend to some& business^1, and you must& stay alone for a while./" - global.msg[6] = "\E0* Please remain here^2.&*\E1 It's dangerous to& explore by yourself./" - global.msg[7] = "\E0* I have an idea^2.&* I will give you a& CELL PHONE./" - global.msg[8] = "* If you have a need for& anything^1, just call./" - global.msg[9] = "\E1* Be good^1, alright?/%" - break - case 221: - global.msg[0] = "\E0* You have done& excellently thus& far^1, my child./" - global.msg[1] = "\E2* However... I have a& difficult request to ask& of you./" - global.msg[2] = "* .../" - global.msg[3] = "* I would like you to walk& to the end of the room& by yourself./" - global.msg[4] = "\E1* Forgive me for this./%" - break - case 222: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?& Cinnamon Bscotch \C" - global.msg[5] = " " - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ini_close() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - global.msg[0] = "* Oh^1, I see.&* Thank you very much!/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* Click.../%%" - global.msg[5] = "* /" - break - case 224: - global.msg[0] = "* It's a fishing rod affixed& to the ground.../" - global.msg[1] = "* Reel it in?& & Yes No \C " - global.msg[2] = " " - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = "* All that's attached to& the end is a photo of a& weird-looking monster.../" - global.msg[1] = "* (Call Me!& Here's my number!)/" - global.msg[2] = "* You decide not to call./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* All that's attached to& the end is a note./" - global.msg[1] = "* (Nevermind^1, guys!)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* You leave it alone./%%" - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = "* I shouldn't have given myself& away so easily.../%%" - if (global.flag[56] == 4) - { - global.msg[0] = "* Did you just...&* Consume the part of me& I had given you?/" - global.msg[1] = "* In front of my very eyes!?/" - global.msg[2] = "* I have no words for you..^1.&* Begone!/%%" - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = "* Thank you for taking care& of me.../%%" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = "* Huh^1? Again...?/" - global.msg[1] = "* I'm sorry..^1. if I give you& any more^1, there will be& nothing left of me./" - global.msg[2] = "* I suppose it is true^1.&* Travelling beyond our limits& is but a fantasy./" - global.msg[3] = "* It's no different for& anyone else./" - global.msg[4] = "* All of monsterkind& are doomed to stay& underground^1, forever.../%%" - } - } - if (global.flag[56] == 1) - { - global.msg[0] = "* How am I doing^1?&* By " + chr(34) + "I" + chr(34) + " I mean the piece& of me I gave you.../" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = "* Huh^1? You lost it...^1?&* ... I suppose I can give& you another piece.../" - scr_itemget(16) - if (noroom == 1) - global.msg[2] = "* You don't have any room^1?&* OK..^1. I understand I am not& a priority for you^1, then./%%" - else - { - global.msg[2] = "* Please be careful this& time./" - global.msg[3] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = "* Hello^1.&* I am a snowman./" - global.msg[1] = "* I want to see the world..^1.&* But I cannot move./" - global.msg[2] = "* If you would be so kind^1,& traveller^1, please.../" - global.msg[3] = "* Take a piece of me and& bring it very far away.& Yes No \C " - global.msg[4] = " " - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = "* It seems you do not& have enough room for me./%%" - else - { - global.msg[0] = "* Thank you... good luck!/" - global.msg[1] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* I see^1.&* Good journey^1, then./%%" - break - case 228: - global.msg[0] = "SANS!!^1!&THAT DIDN'T DO&ANYTHING!/" - if (global.flag[254] == 0) - global.msg[0] = "SANS!!^1!&THEY DIDN'T EVEN&LOOK AT IT!/" - scr_sansface(1, 0) - global.msg[2] = "* whoops./" - global.msg[3] = "* i knew i should have& used today's crossword& instead./" - scr_papface(4, 1) - global.msg[5] = "WHAT!^1?&CROSSWORD!?/" - global.msg[6] = "I CAN'T BELIEVE&YOU SAID THAT!!/" - global.msg[7] = "IN MY OPINION.../" - global.msg[8] = "\E3JUNIOR JUMBLE&IS EASILY THE&HARDEST./" - scr_sansface(9, 0) - global.msg[10] = "* what^1? really^1, dude^1?&* that easy-peasy word& scramble?/" - global.msg[11] = "\E1* that's for baby bones./" - scr_papface(12, 3) - global.msg[13] = "UN^1. BELIEVABLE./" - global.msg[14] = "\E0HUMAN!!^1!&SOLVE THIS DISPUTE!/" - global.msg[15] = "\TS \F0 \E0 \T0 %" - global.msg[16] = "* (Which is harder?)& & Jumble Crossword \C " - global.msg[17] = " " - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = "HA^1! HA^1! YES!/" - global.msg[2] = "HUMANS MUST BE&VERY INTELLIGENT!/" - global.msg[3] = "IF THEY ALSO FIND&JUNIOR JUMBLE&SO DIFFICULT!/" - global.msg[4] = "NYEH^1! HEH^1! HEH HEH!/%%" - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = "YOU TWO ARE WEIRD!/" - global.msg[2] = "\E3CROSSWORDS ARE SO&EASY./" - global.msg[3] = "IT'S THE SAME&SOLUTION EVERY&TIME./" - global.msg[4] = "\E0I JUST FILL ALL&THE BOXES IN WITH&THE LETTER " + chr(34) + "Z" + chr(34) + ".../" - global.msg[5] = "BECAUSE EVERY TIME&I LOOK AT A&CROSSWORD.../" - global.msg[6] = "ALL I CAN DO IS&SNORE!!!/" - global.msg[7] = "NYEH HEH HEH!!!/%%" - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here you go^1!&* Have a super-duper day^1!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1?&* You don't have enough& money.../" - global.msg[1] = "* I wish I could make& Nice Cream for free.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Out in the middle of& the woods.../%%" - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hey^1, you have an umbrella^1,& just like my cart.../" - global.msg[1] = "* Such solidarity^1!&* I have no choice but to& give you a deal!/" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Umbrella solidarity!^1?&* I guess I have to give& you a deal.../" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - } - if (itemcount > 2) - { - global.msg[0] = "* Hey^1!&* You have 3 Punch Cards!/" - global.msg[1] = "* How about redeeming them& for some Nice Cream!?/" - global.msg[2] = "* It's free!& & Yes No \C" - global.msg[3] = " " - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Super^1! Here you go^1!&* Your Card's in the box!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1? No money^1?&* Sorry^1, I can't give it to& you for free./%%" - if (global.flag[85] == 1) - global.msg[0] = "* Huh^1? You can't afford it& even with the discount^1?&* I.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = "* Here^1! A free Nice Cream^1!&* (You lost 3 cards and got& a Nice Cream.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Hidden in the depths of a& watery cavern.../%%" - } - break - case 235: - global.msg[0] = "* i've been thinking& about selling treats& too./" - global.msg[1] = "* want some fried snow^1?&* it's just 5G.& Buy No\C" - global.msg[2] = " " - break - case 236: - if (global.choice == 0) - { - global.msg[0] = "* did i say 5G^1?&* i meant 50G^1.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* i should charge way& more than than that./%%" - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = "* really^1?&* how about 5000G?& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* that's still too low./%%" - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = "* 50000G^1.&* that's my final offer.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* i have to pay for& the raw materials& somehow./%%" - break - case 239: - if (global.choice == 0) - { - global.msg[0] = "* what^1?&* you don't have the& money?/" - global.msg[1] = "* hey^1, that's okay./" - global.msg[2] = "\E1* i don't have any snow./%%" - if (global.gold >= 50000) - { - global.msg[0] = "* wow^1, that's a lot& of cash./" - global.msg[1] = "\E3* that's why i'm sorry& to say.../" - global.msg[2] = "\E3* i can't sell you& this fried snow./" - global.msg[3] = "\E2* it's got too much& sentimental value./%%" - } - } - if (global.choice == 1) - global.msg[0] = "* don't you know a& good deal when you& hear one?/%%" - break - case 240: - global.msg[0] = "WHAT!^1?&HOW DID YOU&AVOID MY TRAP?/" - global.msg[1] = "\E3AND^1, MORE&IMPORTANTLY.../" - global.msg[2] = "\E0IS THERE ANY&LEFT FOR ME???/" - global.msg[3] = "\TS \F0 \E0 \T0 %" - global.msg[4] = "* (What do you tell Papyrus& about his spaghetti?)& Ate it Left it \C " - global.msg[5] = " " - break - case 241: - scr_papface(0, 0) - global.msg[1] = "REALLY!?/" - if (global.choice == 0) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "NO ONE'S EVER&ENJOYED MY&COOKING BEFORE.../" - global.msg[4] = "\E0WELL THEN!!/" - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "YOU RESISTED THE&FLAVOR OF MY&HOMECOOKED PASTA.../" - global.msg[4] = "JUST SO YOU&COULD SHARE&IT WITH ME???/" - global.flag[62] = 2 - } - global.msg[5] = "\E0FRET NOT HUMAN^1!&I^1, MASTER CHEF&PAPYRUS.../" - global.msg[6] = "WILL MAKE YOU ALL&THE PASTA YOU&COULD EVER WANT!/" - global.msg[7] = "HEH HEH HEH HEH&HEH HEH NYEH!/%%" - break - case 243: - global.msg[0] = "HEY!/" - global.msg[1] = "IT'S THE HUMAN!/" - global.msg[2] = "\E0YOU'RE GONNA&LOVE THIS&PUZZLE!/" - global.msg[3] = "IT WAS MADE&BY THE GREAT&DR. ALPHYS!/" - global.msg[4] = "YOU SEE&THESE TILES&!?/" - global.msg[5] = "ONCE I THROW&THIS SWITCH.../" - global.msg[6] = "THEY WILL&BEGIN TO&CHANGE COLOR!/" - global.msg[7] = "EACH COLOR HAS&A DIFFERENT&FUNCTION!/" - global.msg[8] = "RED TILES ARE&IMPASSABLE!/" - global.msg[9] = "YOU CANNOT&WALK ON THEM!/" - global.msg[10] = "YELLOW TILES&ARE ELECTRIC!/" - global.msg[11] = "THEY WILL&ELECTROCUTE&YOU!/" - global.msg[12] = "GREEN TILES&ARE ALARM&TILES!/" - global.msg[13] = "IF YOU STEP&ON THEM.../" - global.msg[14] = "YOU WILL HAVE&TO FIGHT A&MONSTER!!/" - global.msg[15] = "ORANGE TILES&ARE ORANGE-&SCENTED./" - global.msg[16] = "THEY WILL MAKE&YOU SMELL&DELICIOUS!/" - global.msg[17] = "BLUE TILES ARE&WATER TILES./" - global.msg[18] = "SWIM THROUGH&IF YOU LIKE^1,&BUT.../" - global.msg[19] = "IF YOU SMELL&LIKE ORANGES!/" - global.msg[20] = "THE PIRANHAS&WILL BITE&YOU./" - global.msg[21] = "ALSO^1, IF A&BLUE TILE IS&NEXT TO A,/" - global.msg[22] = "YELLOW TILE^1,&THE WATER WILL&ALSO ZAP YOU!/" - global.msg[23] = "PURPLE TILES&ARE SLIPPERY!/" - global.msg[24] = "YOU WILL SLIDE&TO THE NEXT&TILE!/" - global.msg[25] = "HOWEVER^1, THE&SLIPPERY&SOAP.../" - global.msg[26] = "SMELLS LIKE&LEMONS!!/" - global.msg[27] = "WHICH PIRANHAS&DO NOT LIKE!/" - global.msg[28] = "PURPLE AND&BLUE ARE OK!/" - global.msg[29] = "FINALLY^1,&PINK TILES./" - global.msg[30] = "THEY DON'T DO&ANYTHING./" - global.msg[31] = "STEP ON THEM&ALL YOU LIKE./" - global.msg[32] = "HOW WAS THAT!^1?&UNDERSTAND???/" - global.msg[33] = "\TS \F0 \E0 \T0 %" - global.msg[34] = "* (Understand the explanation?)& & Of course No \C " - global.msg[35] = " " - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "OKAY..^1.&I GUESS I'LL&REPEAT MYSELF.../" - global.msg[2] = "\E0RED TILES ARE&IMPASSABLE./" - global.msg[3] = "YELLOW TILES ARE&ELECTRIC AND&DANGEROUS./" - global.msg[4] = "BLUE TILES MAKE&YOU FIGHT A&MONSTER./" - global.msg[5] = "GREEN TILES ARE&WATER TILES./" - global.msg[6] = "ORANGE TILES ARE&ORANGE SCENTED./" - global.msg[7] = "IF YOU STEP ON&ORANGE^1, DON'T STEP&ON GREEN./" - global.msg[8] = "\E3BROWN TILES ARE.../" - global.msg[9] = "\E1WAIT!!^1!&THERE ARE NO&BROWN TILES.../" - global.msg[10] = "\E0PURPLE TILES&SMELL LIKE&LEMONS.../" - global.msg[11] = "\E3WHY DON'T THE&YELLOW ONES&SMELL LEMONY?/" - global.msg[12] = "\E3UMM.../" - global.msg[13] = "\E1WAIT!^1!&DID I MIX UP&GREEN AND BLUE!?/" - global.msg[14] = "THE BLUE ONES&ARE WATER ONES!/" - global.msg[15] = "\E3PINK TILES.../" - global.msg[16] = "I DON'T..^1.&REMEMBER???/" - global.msg[17] = "\E1WAIT!!!/" - global.msg[18] = "\E3THOSE ONES DON'T&DO ANYTHING./" - global.msg[19] = "\E0OKAY^1!&DO YOU UNDERSTAND&BETTER NOW!?/" - global.msg[20] = "\TS \F0 \E0 \T0 %" - global.msg[21] = "* (Understand the explanation?)& & Yes Even less \C " - global.msg[22] = " " - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "........../" - global.msg[2] = "OK^1, YOU KNOW&WHAT???/" - global.msg[3] = "HOW ABOUT..^1.&YOU JUST.../" - global.msg[4] = "DO THIS PUZZLE..^1.&ON YOUR OWN.../" - global.msg[5] = "I'LL LEAVE THE&INSTRUCTIONS.../" - global.msg[6] = "JUST READ THEM./" - global.msg[7] = "THEN WHEN YOU&UNDERSTAND IT.../" - global.msg[8] = "YOU CAN THROW&THE SWITCH./" - global.msg[9] = "AND DO IT AT&YOUR OWN PACE./" - global.msg[10] = "GOOD LUCK./" - global.msg[11] = "NYEH..^1.&HEH..^1.&HEH!/%%" - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = "* (There's a lone quiche& sitting underneath& this bench.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* It's just a bench./%%" - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Abandoned& Quiche.)/%%" - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = "* (You're carrying too much.)/" - global.msg[1] = "* (You aren't ready for the& responsibility.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* (The quiche was left all& alone...)/%%" - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = "* (There's a tutu lying on& the ground here.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Old Tutu.)/%%" - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = (("* (The box contains " + card) + " cards.)/") - if (global.flag[80] > 2) - global.msg[0] = (("* (Two bugs in the box are& playing a " + card) + "-card game.)/") - if (global.flag[80] > 4) - global.msg[0] = (("* (There's a smiley face made& of " + card) + " cards in the box.)/") - if (global.flag[80] > 6) - global.msg[0] = (("* (A house made of " + card) + " cards& sits in the box.)/") - if (global.flag[80] > 12) - global.msg[0] = "* (The box is overstuffed with& cards.)/" - global.msg[1] = "* (Take a card?)& & Take Leave \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's a box for storing Punch& Cards^1.)&* (It's empty right now.)/%%" - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = "* (You got a Punch Card.)/%%" - if (global.flag[80] > 2) - global.msg[0] = "* (All games must end one day.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 4) - global.msg[0] = "* (Happiness is fleeting.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 6) - global.msg[0] = "* (The house collapses.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 12) - global.msg[0] = "* (You got a Punch Card.)/%%" - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = "* (It's a pair of ballet shoes.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Ballet Shoes.)/%%" - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 254: - global.msg[0] = "* (This little bird wants to& carry you across.)/" - global.msg[1] = "* (Accept the bird's offer?)& & Get ride No \C " - global.msg[2] = " " - if (global.flag[85] == 1) - global.msg[0] = "* (Umbrellas and birds...^1)&* (A bad combination.)/%%" - break - case 255: - global.msg[0] = " %%" - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = "* (It's a legendary artifact.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The artifact is gone.)/%%" - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = "* (This will never happen.)/%%" - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - if (noroom == 2) - global.msg[0] = "* (You're carrying too many& dogs.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/" - global.msg[1] = "* (Take a package of noodles?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/%%" - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Instant Noodles.)/%%" - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* (You decide to stay healthy.)/%%" - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = "* (There's a frypan lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Burnt Pan.)/%%" - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = "* (There's an apron lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Stained Apron.)/%%" - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = "* (There's a Glamburger inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Glamburger.)/%%" - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = "* (There's 100G inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = "* (You got 100G.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = "* (There's a worn dagger& inside the box.)/" - else - global.msg[0] = "* (Knife inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Worn Dagger.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got the Real Knife.)/%%" - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = "* (There's a heart-shaped& locket inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Heart-shaped& Locket.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got The Locket.)/%%" - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 272: - global.msg[0] = "* (The box is empty.)/%%" - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = "* Hello...&* Would you like some& Nice Cream...?/" - global.msg[1] = "* It's the frozen treat...&* That warms your heart./" - global.msg[2] = "* Now only 12G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[250] >= 1) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1.&* It's the frozen treat^1.&* That warms your heart./" - global.msg[2] = "* Now just 12G.& & Yes No \C" - global.msg[3] = " " - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here^1.&* (You got the Nice Cream.)/%%" - if (afford == 0) - global.msg[0] = "* You don't have enough& money.../%%" - } - if (noroom == 1) - global.msg[0] = "* Drop something./%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* Life..^1. is suffering./%%" - } - break - case 500: - global.msg[0] = "* (Golden flowers.^1)&* (They must have& broken your fall.)/%%" - global.msg[1] = "%%%" - break - case 501: - global.msg[0] = "* " + chr(34) + "Press [Z] to read signs!" + chr(34) + "/%%" - break - case 502: - global.msg[0] = "* Just a regular old pillar./%%" - break - case 503: - global.msg[0] = "* Please don't step on the& leaves./%%" - break - case 504: - global.msg[0] = "* Didn't you read the sign& downstairs?/%%" - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* WHOA there^1, pardner^2!&* Who said you could push& me around?/" - global.msg[1] = "* HMM^2?&* So you're ASKIN' me to& move over?/" - global.msg[2] = "* Okay^1, just for you^1,& pumpkin./%%" - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You want me to move some& more?/" - global.msg[1] = "* Alrighty^1, how's this?/%%" - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* That was the wrong direction?/" - global.msg[1] = "* Okay^1, think I got it./%%" - } - if (conversation == 9) - global.msg[0] = "* Was that helpful?/%%" - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You wanted me to STAY there?/" - global.msg[1] = "* You're giving me a real& workout./%%" - } - } - else - { - global.msg[0] = "* Aren't things easier when& you just ask?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* The exit's open^1?&* Guess I better roll out.../" - global.msg[1] = "* Hey^1, y'mind giving me a& push^1, pumpkin?/%%" - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = "*'Take one.'&* Take a candy?& Yes No \C" - if (global.flag[34] == 0) - global.msg[0] = "* It says 'take one.'&* Take a piece of candy?& Yes No \C" - } - else - global.msg[0] = "* Look at what you've done./%%" - global.msg[1] = " " - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = "* You took a piece of candy.&* (Press [C] to open the menu.)/%%" - if (global.flag[34] == 2) - global.msg[0] = "* You took more candy^1.&* How disgusting../%%" - if (global.flag[34] == 3) - global.msg[0] = "* You take another piece.&* You feel like the& scum of the earth.../%%" - if (global.flag[34] == 4) - global.msg[0] = "* You took too much too fast.&* The candy spills onto& the floor./%%" - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = "* In this hellish world^1, you& can only take 3 pieces& of candy.../%%" - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - } - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 510: - global.msg[0] = "* zzzzzzzzzzzzzzz..^1.&* zzzzzzzzzzzzzz.../" - global.msg[1] = "* zzzzzzzzzz..^1.&* (are they gone yet^1)&* zzzzzzzzzzzzzzz.../" - global.msg[2] = "* (This ghost keeps saying 'z'& out loud repeatedly^1,& pretending to sleep.)/" - global.msg[3] = "* Move it with force?& & Yes No \C" - global.msg[4] = " " - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = "* It says 'Take them all.'&* Take a candy?& Yes No \C" - global.msg[1] = " " - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = "* You took a piece.&* Boy^1, that's heavy./%%" - if (haveit == 1) - global.msg[0] = "* You can't carry more.&* It's just too heavy./%%" - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 7G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 18G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = "* You found a Faded Ribbon./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = "* Nothing happened./%%" - if (global.choice == 1) - global.msg[0] = "%%" - if (global.flag[43] > 25) - global.msg[0] = "* You're making the switches& uncomfortable with all& this attention./%%" - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = "* You hear a clicking sound./%%" - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = "* You found the Toy Knife./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = "* It's TORIEL's diary.&* Read the circled passage?& Yes No \C" - global.msg[1] = " " - break - case 525: - if (global.choice == 0) - { - global.msg[0] = "* You read the passage.../" - global.msg[1] = "* " + chr(34) + "Why did the skeleton want& a friend?" + chr(34) + "/" - global.msg[2] = "* " + chr(34) + "Because she was feeling& BONELY..." + chr(34) + "/" - global.msg[3] = "* The rest of the page is& filled with jokes of& a similar caliber./%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& butterscotch-cinnamon& pie./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& snail pie.../%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - break - case 527: - global.msg[0] = "* Hello there^1,& little one!/" - global.msg[1] = "* The pie has not& cooled down yet./" - global.msg[2] = "* Perhaps you should& take a nap.& Yes No \C " - global.msg[3] = " " - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = "* Sweet dreams./%%" - else - { - global.msg[0] = "\E1* You'd rather stay& up and chat with& me^1, then?/" - if (global.flag[103] > 0) - global.msg[0] = "* Up already^1, I see?/" - global.msg[1] = "\E0* Um^1, I want you to know& how glad I am to& have someone here./" - global.msg[2] = "* There are so many& old books I want& to share./" - global.msg[3] = "* I want to show you& my favorite bug-& hunting spot./" - global.msg[4] = "* I've also prepared& a curriculum for& your education./" - global.msg[5] = "* This may come as& a surprise to you.../" - global.msg[6] = "* But I have always& wanted to be a& teacher./" - global.msg[7] = "\E1* ... actually^1, perhaps& that isn't very& surprising./" - global.msg[8] = "\E5* STILL./" - global.msg[9] = "\E0* I am glad to have& you living here./" - global.msg[10] = "\E1* Oh^1, did you& want something?/" - global.msg[11] = "* What is it?& When can& Nothing I go home?\C " - global.msg[12] = " " - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = "* Well^1, talk to me& again if you& need anything./%%" - else - { - global.msg[0] = "\E1* What^1?&* This..^1. this IS your& home now./" - global.msg[1] = "* Um..^1. would you like& to hear about this& book I am reading?/" - if (global.choice == -1) - { - global.msg[0] = "\E0* Oh^1, hello!/" - global.msg[1] = "* Did you want to& hear about the& book I am reading?/" - } - global.msg[2] = "\E0* It is called& " + chr(34) + "72 Uses for Snails." + chr(34) + "/" - global.msg[3] = "* How about it?& How to exit& Sure the RUINS\C " - global.msg[4] = " " - } - break - case 530: - global.plot = 19.3 - global.msg[0] = "* Here is an exciting& snail fact./" - if (global.choice == 1) - global.msg[0] = "\E1* Um^1.^1.^1.&*\E0 How about an exciting& snail fact?/" - global.msg[1] = "\E2* Did you know& that snails.../" - r = round(random(3)) - if (r == 0) - global.msg[2] = "\E0* Have a chainsaw-like& tongue called a& radula?/" - if (r == 1) - global.msg[2] = "\E0* Sometimes flip their& digestive systems& as they mature?/" - if (r == 2) - global.msg[2] = "\E0* Make terrible& shoelaces?/" - if (r == 3) - global.msg[2] = "\E0* Talk^2. Really^2. Slowly^2?&* Just kidding^1, snails& don't talk./" - global.msg[3] = "\E0* Interesting.& How to exit& Yeah the RUINS\C " - global.msg[4] = " " - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = "* Well^1, bother me& if you need anything& else./%%" - else - { - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something^1.&* Stay here./%%" - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = "\E0* What is it?& How to exit& Nothing the RUINS\C " - } - global.msg[1] = " " - break - case 532: - if (global.choice == 0) - global.msg[0] = "* If you need anything^1,& just ask./%%" - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something.&* Stay here./%%." - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = " " - break - case 540: - global.msg[0] = "\E2NYOO HOO HOO.../" - global.msg[1] = "I CAN'T EVEN&STOP SOMEONE AS&WEAK AS YOU.../" - global.msg[2] = "UNDYNE'S GOING TO&BE DISAPPOINTED&IN ME./" - global.msg[3] = "I'LL NEVER JOIN THE&ROYAL GUARD..^1.&AND.../" - global.msg[4] = "MY FRIEND QUANTITY&WILL REMAIN&STAGNANT!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (What should you say?)& Let's be What a& friends loser\C" - global.msg[7] = " " - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = "\E0WOWIE!^1!&YOU DID IT!!!/" - global.msg[1] = "YOU DIDN'T DO A&VIOLENCE!!!/" - global.msg[2] = "\E5TO BE HONEST^1,&I WAS A LITTLE&AFRAID.../" - global.msg[3] = "\E0BUT YOU'RE ALREADY&BECOMING A GREAT&PERSON!/" - global.msg[4] = "\E7I'M SO PROUD I&COULD CRY!!!/" - global.msg[5] = "\E3... WAIT^1, WASN'T I&SUPPOSED TO&CAPTURE YOU...?/" - global.msg[6] = "\E0WELL^1, FORGET IT!/" - global.msg[7] = "I JUST WANT YOU&TO BE THE BEST&PERSON YOU CAN BE./" - global.msg[8] = "SO LET'S LET&BYBONES BE&BYBONES./" - global.msg[9] = "I'LL EVEN TELL YOU&HOW TO LEAVE THE&UNDERGROUND!/" - global.msg[10] = "JUST KEEP GOING&EAST!/" - global.msg[11] = "EVENTUALLY YOU'LL&REACH THE KING'S&CASTLE./" - global.msg[12] = "THEN YOU CAN&LEAVE!/%%" - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "REALLY!^1?&YOU WANT TO BE&FRIENDS^1, WITH ME???/" - global.msg[2] = "WELL THEN.../" - global.msg[3] = "\E0I GUESS..^1./" - global.msg[4] = "I GUESS&I CAN MAKE AN&ALLOWANCE FOR YOU!/" - global.msg[5] = " %" - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "HUH^1?&WHY WOULD YOU.../" - global.msg[2] = "BERATE YOURSELF&SO LOUDLY???/" - global.msg[3] = "IS IT BECAUSE.../" - global.msg[4] = "\E3YOU DON'T THINK&YOU'RE GOOD ENOUGH&TO BE MY FRIEND?/" - global.msg[5] = "\E0NO!!^1!&YOU'RE GREAT!!^1!&I'LL BE YOUR FRIEND!/" - } - if (global.flag[66] == 1) - { - global.msg[6] = "WOWIE!^1!&WE HAVEN'T EVEN HAD&OUR FIRST DATE.../" - global.msg[7] = "AND I'VE ALREADY&MANAGED TO HIT&THE FRIEND ZONE!!!/" - global.msg[8] = "WHO KNEW THAT&ALL I NEEDED TO&MAKE PALS.../" - } - else - { - global.msg[6] = "WOW!!!/" - global.msg[7] = "I HAVE FRIENDS!!!/" - global.msg[8] = "AND WHO KNEW THAT&ALL I NEEDED TO&MAKE THEM.../" - } - global.msg[9] = "WAS TO GIVE PEOPLE&AWFUL PUZZLES AND&THEN FIGHT THEM??/" - global.msg[10] = "YOU TAUGHT ME A&LOT^1, HUMAN./" - global.msg[11] = "I HEREBY GRANT&YOU PERMISSION&TO PASS THROUGH!/" - global.msg[12] = "AND I'LL GIVE&YOU DIRECTIONS&TO THE SURFACE./" - global.msg[13] = "CONTINUE FORWARD&UNTIL YOU REACH THE&END OF THE CAVERN./" - global.msg[14] = "\WTHEN..^1. WHEN YOU&REACH THE CAPITAL^1,&CROSS \YTHE BARRIER\W./" - global.msg[15] = "THAT'S THE MAGICAL&SEAL TRAPPING US&ALL UNDERGROUND./" - global.msg[16] = "ANYTHING CAN ENTER&THROUGH IT^1, BUT&NOTHING CAN EXIT.../" - global.msg[17] = "... EXCEPT SOMEONE&WITH A POWERFUL&SOUL./" - global.msg[18] = "... LIKE YOU!!!/" - global.msg[19] = "THAT'S WHY THE&KING WANTS TO&ACQUIRE A HUMAN./" - global.msg[20] = "HE WANTS TO OPEN&THE BARRIER WITH&SOUL POWER./" - global.msg[21] = "THEN US MONSTERS&CAN RETURN TO&THE SURFACE!/%%" - break - case 544: - global.msg[0] = "YOU'RE BACK AGAIN?!?!/" - global.msg[1] = "I FINALLY REALIZE&THE TRUE REASON WHY./" - global.msg[2] = "YOU.../" - global.msg[3] = "JUST MISS SEEING MY&FACE SO MUCH.../" - global.msg[4] = "I'M NOT SURE I&CAN FIGHT SOMEONE&WHO FEELS THIS WAY./" - global.msg[5] = "BUT MOSTLY..^1. I'M GETTING&REALLY TIRED OF&CAPTURING YOU!/" - global.msg[6] = "SO..^1.&WHAT DO YOU SAY?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* (Fight Papyrus?)& & Yes No\C" - global.msg[8] = " " - break - case 545: - global.msg[0] = "\TP %" - if (global.choice == 0) - { - global.msg[1] = "OKAY.../" - global.msg[2] = "I GUESS./" - global.msg[3] = "IF YOU WANT ME TO&CAPTURE YOU./" - global.msg[4] = "I'LL TRY AGAIN!!!/%%" - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = "... OKAY.../" - global.msg[2] = "I GUESS I'LL ACCEPT&MY FAILURE.../%%" - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = "* Welcome to Snowed Inn^1!&* Snowdin's premier hotel!/" - global.msg[1] = "* One night is 80G.& & Stay Leave\C" - if (global.flag[72] == 2) - { - global.msg[0] = "* Back again^1?&* Well^1, stay as long as you& like./" - global.msg[1] = "* How about it?& & Stay Leave\C" - } - global.msg[2] = " " - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = "* What^1?&* No^1, you can't get a& second key!" - if (global.flag[7] == 1) - { - global.msg[0] = "* Hello^1!&* Sorry^1, no time for a& nap.../" - global.msg[1] = "* Snowed Inn is shutting& down so we can all go& to the surface./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Oh^1, there you are^1.&* I was worrying about& you!/" - global.msg[1] = "* Things are going to be OK^1,& you hear?/" - global.msg[2] = "* We're all going to the& surface world soon.../" - global.msg[3] = "* There's bound to be a& place you can stay there!/%%" - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = "Error./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = "* ... You don't even have 80G?/" - global.msg[1] = "* Oh^1! You poor thing^1.&* I can only imagine what& you've been through./" - global.msg[2] = "* One of the rooms upstairs& is empty^1./" - global.msg[3] = "* You can sleep there for& free^1, okay?/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = "* You aren't carrying enough& money./%%" - } - else - global.msg[0] = "* Well^1, feel free to come& back any time./%%" - break - case 549: - global.msg[0] = "* (Look through the telescope?)& & Yes No\C" - global.msg[1] = " " - break - case 550: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = "* i'm thinking about& getting into the& telescope business./" - global.msg[1] = "* it's normally 50000G& to use this premium& telescope.../" - global.msg[2] = "* but..^1.&*\E1 since i know you^1,& you can use it for free./" - global.msg[3] = "\E2* howzabout it?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Use the telescope?)& & Yes No\C" - } - else - { - global.msg[0] = "* huh^1?&* you aren't satisfied?/" - global.msg[1] = "\E1* don't worry./" - global.msg[2] = "\E2* i'll give you a& full refund./%%" - } - global.msg[6] = " " - break - case 552: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = "* well^1, come back& whenever you want./%%" - } - break - case 553: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - global.flag[75] = global.armor - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "\E3HOW DID I GET THIS&NUMBER...?/" - global.msg[4] = "\E0IT WAS EASY!!!/" - global.msg[5] = "\E0I JUST DIALED EVERYNUMBER SEQUENTIALLYUNTIL I GOT YOURS!!!/" - global.msg[6] = "NYEH HEH HEH HEH!!/" - global.msg[7] = "\E2SO..^1.&WHAT ARE YOU&WEARING...?/" - global.msg[8] = "\E3I'M..^1.&ASKING FOR A&FRIEND./" - global.msg[9] = (("\E0SHE THOUGHT SHE&SAW YOU WEARING A&" + armor) + "./") - global.msg[10] = (("\E3IS THAT TRUE^1?&ARE YOU WEARING A&" + armor) + "?/") - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* (What will you say?)& & Yes No\C" - global.msg[13] = " " - break - case 554: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = (("SO YOU ARE WEARING&A " + armor) + ".../") - global.msg[2] = "GOT IT!!^1!&WINK WINK!!!/" - global.msg[3] = "HAVE A NICE DAY!/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - } - else - { - global.flag[76] = 1 - global.msg[1] = (("SO YOU AREN'T&WEARING A&" + armor) + ".../") - global.msg[2] = "GOT IT!/" - global.msg[3] = "YOU'RE MY FRIEND^1,&SO I TRUST YOU&100-PERCENT./" - global.msg[4] = "HAVE A NICE DAY!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - break - case 556: - global.msg[0] = "* (There's an empty pie tin& inside the stove.)/%%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "\E0MY BROTHER ALWAYS&GOES OUT TO EAT^1.&BUT.../" - global.msg[2] = "\E3RECENTLY^1, HE TRIED&'BAKING' SOMETHING./" - global.msg[3] = "IT WAS LIKE..^1.&A QUICHE./" - global.msg[4] = "BUT FILLED WITH A&SUGARY^1, NON-EGG&SUBSTANCE./" - global.msg[5] = "\E0HOW ABSURD!/%%" - } - break - case 557: - global.msg[0] = "* (It's a joke book.)/" - global.msg[1] = "* (Take a look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 558: - if (global.choice == 0) - { - global.msg[0] = "* (Inside the joke book was& a quantum physics book.)/" - global.msg[1] = "* (You look inside...)/" - global.msg[2] = "* (Inside the quantum physics& book was another joke& book.)/" - global.msg[3] = "* (You look inside...)/" - global.msg[4] = "* (There's another quantum& physics book...)/" - global.msg[5] = "* (You decide to stop.)/%%" - } - else - global.msg[0] = " %%" - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THAT'S MY ROOM^1!/" - global.msg[2] = "IF YOU'VE&FINISHED LOOKING&AROUND.../" - global.msg[3] = "WE COULD GO IN&AND.../" - global.msg[4] = "" + chr(34) + "HANG-OUT" + chr(34) + " LIKE&A PAIR OF VERY&COOL FRIENDS?/" - if (global.flag[66] == 1) - global.msg[4] = "\E3DO WHATEVER&PEOPLE DO WHEN&THEY DATE???/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Go inside?)& & Yes No\C" - global.msg[7] = " %" - } - else - { - global.msg[0] = "* (It's the door to& Papyrus's room.)/" - global.msg[1] = "* (It's covered in many& labels...)/" - global.msg[2] = "\TP %" - global.msg[3] = "* (NO GIRLS ALLOWED!)/" - global.msg[4] = "* (NO BOYS ALLOWED!)/" - global.msg[5] = "* (PAPYRUS ALLOWED.)/%%" - } - break - case 560: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THERE ARE NO&SKELETONS INSIDE&MY CLOSET!!!/" - global.msg[2] = "\E3EXCEPT ME&SOMETIMES./" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Look in the closet?)& & Yes No\C" - global.msg[5] = " " - } - else - { - global.msg[0] = "* (Look in the closet?)& & Yes No\C" - global.msg[1] = " " - } - break - case 562: - if (global.choice == 0) - global.msg[0] = "* (Clothes are hung up& neatly inside.)/%%" - else - { - global.msg[0] = " %%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "IT'S OK TO BE&INTIMIDATED BY&MY FASHION SENSE./%%" - } - } - break - case 563: - global.msg[0] = "\E3SO^1, UM.../" - global.msg[1] = "\E3IF YOU'VE SEEN&EVERYTHING.../" - global.msg[2] = "\E2DO YOU WANT TO&START HANGING OUT?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the hangouts?)& & Yes No\C" - global.msg[5] = " " - if (global.flag[66] == 1) - { - global.msg[2] = "\E2DO YOU WANT TO&START THE DATE?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the date?)& & Yes No\C" - global.msg[5] = " " - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = "\E0OKAY!!^1!&DATING START!!!/%%" - if (global.flag[66] == 0) - global.msg[1] = "\E0OKAY!!^1!&LET'S HANG TEN!!/%%" - } - else - { - scr_papface(0, 2) - global.msg[1] = "\E2TAKE YOUR TIME..^1.&I'LL WAIT FOR&YOU./%%" - } - break - case 565: - global.msg[0] = "* (This mailbox is labelled& " + chr(34) + "PAPYRUS" + chr(34) + ".)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 566: - if (global.choice == 0) - global.msg[0] = "* (It's empty.)/%%" - else - global.msg[0] = "* (You realize that would& probably be illegal.)/%%" - break - case 567: - global.msg[0] = "* what^1?&* haven't you seen a guy& with two jobs before?/" - global.msg[1] = "\E1* fortunately^1, two jobs& means twice as many& legally-required breaks./" - global.msg[2] = "\E0* i'm going to grillby's.&* wanna come?& Yeah I'm busy \C" - global.msg[3] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - if (scr_murderlv() >= 7) - { - global.msg[0] = "\E2* hey^1, looks like you're& really turning yourself& around./" - global.msg[1] = "\E0* how about i treat you& to lunch at grillby's?/" - global.msg[2] = "\E1* ... when everyone you& scared away comes& back^1, i mean./%%" - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = "* well^1, if you insist..^1.&* i'll pry myself away& from my work.../%%" - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* OK^1. have fun./%%" - break - case 570: - global.msg[0] = "\E1* whoops^1, watch where& you sit down./" - global.msg[1] = "* sometimes weirdos put& whoopee cushions on& the seats./" - global.msg[2] = "\E0* anyway^1, let's order./" - global.msg[3] = "* whaddya want...?& & Fries Burger\C" - global.msg[4] = " " - break - case 571: - global.msg[0] = "* ok^1, coming right up./%%" - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& fries./%%" - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& burg./%%" - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = "* so^1, what do you& think.../" - global.msg[1] = "* of my brother?& & Cool Uncool\C" - global.msg[2] = " " - break - case 573: - if (global.choice == 0) - { - global.msg[0] = "* of course he's cool./" - global.msg[1] = "\E1* you'd be cool too& if you wore that& outfit every day./" - global.msg[2] = "\E0* he'd only take that& thing off if he& absolutely had to./" - global.msg[3] = "* oh well^1.&* at least he washes& it./" - global.msg[4] = "\E1* and by that i mean& he wears it in& the shower./%%" - } - else - { - global.msg[0] = "* hey^1, pal./" - global.msg[1] = "\E1* sarcasm isn't funny^1,& okay?/" - global.msg[2] = "\E0* my brother's a real& star./" - global.msg[3] = "* he's the person who& pushed me to get& this sentry job./" - global.msg[4] = "* maybe it's a little& strange^1, but& sometimes.../" - global.msg[5] = "* ... it's nice to have& someone call you out& on being lazy./" - global.msg[6] = "\E1* even though nothing& could be further& from the truth./%%" - } - break - case 574: - global.msg[0] = "* here comes the grub./" - global.msg[1] = "* want some ketchup^1?& & Yes No \C" - global.msg[2] = " " - break - case 575: - if (global.choice == 0) - global.msg[0] = "\E2* bone appetit./%%" - else - { - global.msg[0] = "\E2* more for me./%%" - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = "\W* have you ever heard& of a \Ytalking flower\W?& Yes No \C" - global.msg[1] = " " - break - case 577: - if (global.choice == 0) - global.msg[0] = "\E1* so you know all& about it./" - if (global.choice == 1) - global.msg[0] = "\E1* i'll tell you^1, then./" - global.msg[1] = "\W*\E0 the \Becho flower\W./" - global.msg[2] = "* they're all over the& marsh./" - global.msg[3] = "* say something to them^1,& and they'll repeat it& over and over.../" - global.msg[4] = "* what about it?/" - global.msg[5] = "* well^1, papyrus told& me something interesting& the other day./" - global.msg[6] = "* sometimes^1, when no& one else is around.../" - global.msg[7] = "* a flower appears and& whispers things to& him./" - global.msg[8] = "* flattery..^1.&* advice..^1.&* encouragement.../" - global.msg[9] = "* ... predictions./" - global.msg[10] = "* weird^1, huh?/" - global.msg[11] = "* someone must be using& an echo flower to& play a trick on him./" - global.msg[12] = "* keep an eye out^1, ok?/" - global.msg[13] = "* thanks./%%" - break - case 578: - global.msg[0] = "\E1* oh^1, by the way.../" - global.msg[1] = "\E0* i'm flat broke^1.&* can you foot the& bill?/" - global.msg[2] = "* it's just 10000G.& & Yes No \C" - global.msg[3] = " " - break - case 579: - global.msg[0] = " %%" - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = "* My mind is running wild^1!&* I haven't felt like this& in a long time.../%%" - if (global.flag[84] == 5) - global.msg[0] = "* Please leave./%%" - if (global.flag[84] < 2) - { - global.msg[0] = "* You..^1.&* You came from outside^1,& didn't you?/" - global.msg[1] = "* People like you are so& rare.../" - global.msg[2] = "* Please^1!* Stranger!/" - global.msg[3] = "* Tell me about outside...?& & Yes No\C" - global.msg[4] = " " - } - if (global.flag[84] == 2) - global.msg[0] = "* Well^1, what are you& waiting for?/%%" - if (global.flag[84] == 3) - { - global.msg[0] = "* Oh^1!&* You're back!/" - global.msg[1] = "* How's the room?& & Different Same\C" - global.msg[2] = " " - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = "* Huh^1?&* " + chr(34) + "SURFACE" + chr(34) + "^1?&* What do you mean?/" - global.msg[1] = "* I just meant outside this& room./" - global.msg[2] = "* If you haven't noticed^1, my& mycelium have bound me& to the ground./" - global.msg[3] = "* Please^1!&* Stranger!/" - global.msg[4] = "* I'll make this simple./" - global.msg[5] = "* I've spent my whole life& in the same spot^1,& in the same room./" - global.msg[6] = "* But I've long wondered& what lies inside the& room to the right./" - global.msg[7] = "* Long I've fantasized& about entering^1, and& changing my scenery.../" - global.msg[8] = "* No..^1.&* Changing my LIFE!/" - global.msg[9] = "* Please^1.&* Go and tell me what's& inside./%%" - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* Is everyone out there& like you^1?&* How terrible./%%" - } - else - { - if (global.choice == 0) - { - global.msg[0] = "* Oh^1, that's a relief^1!/" - global.msg[1] = "* That's all I need to& continue my fantasies^1.&* Thank you^1, stranger./%%" - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = "* So it's the same./" - global.msg[1] = "* The same.../" - global.msg[2] = "* Same.../" - global.msg[3] = "* .../" - global.msg[4] = "* OK./%%" - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = "* (Take an umbrella?)& & Take one Do not\C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (Return the umbrella?)& & Put back Do not\C" - global.msg[1] = " " - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You took an umbrella.)/%%" - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = " %%" - } - else if (global.choice == 0) - { - global.msg[0] = "* (You returned the umbrella.)/%%" - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 585: - global.msg[0] = "* (It's a statue^1.)&* (The structures at its& feet seem dry.)/%%" - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = "* (Put the umbrella on the& statue?)& Yes Do not\C" - global.msg[1] = " " - } - if (global.flag[86] == 1) - global.msg[0] = "* (The music continues^1, and& doesn't stop.)/%%" - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You place the umbrella& atop the statue.)/" - global.msg[1] = "* (Inside the statue^1, a music& box begins to play...)/%%" - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 587: - global.msg[0] = "* (It's a rusty old& fridge.)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 588: - if (global.choice == 0) - { - global.msg[0] = "* (You open the fridge.^1)&* (The air fills with a& rotten stench.)/" - global.msg[1] = "* (All the food inside here& spoiled long ago.)/%%" - } - else - global.msg[0] = " %%" - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = "* error/%%" - if (global.flag[108] > 2) - global.msg[0] = "* (The cooler is empty.)/%%" - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = "* (Take a space food bar& from the cooler?)& Yes No \C" - global.msg[1] = " " - } - if (global.flag[108] == 0) - { - global.msg[0] = "* (It's a cooler^1.&* It has no brand^1, and& shows no signs of wear...)/" - global.msg[1] = "* (Inside are a couple& of freeze-dried space& food bars.)/" - global.msg[2] = "* (Take one?)& & Yes No \C" - global.msg[3] = " " - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = "* (You got the Astronaut Food.)/%%" - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* %%" - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = "* (Seems like a regular& training dummy.)/" - global.msg[1] = "* (Do you want to beat it& up?)& Yes No \C" - global.msg[2] = " " - } - else - global.msg[0] = "* (You've had enough of& the dummy.)/%%" - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = "* (You tap the dummy with& your fist.)/" - global.msg[1] = "* (You feel bad.)/%%" - } - if (global.lv > 1) - { - global.msg[0] = "* (You hit the dummy& lightly.)/" - global.msg[1] = "* (You don't feel like& you learned anything.)/%%" - } - if (global.lv > 4) - { - global.msg[0] = "* (You sock the dummy.)/" - global.msg[1] = "* (Who cares?)/%%" - } - if (global.lv > 7) - { - global.msg[0] = "* (You punch the dummy at& full force.)/" - global.msg[1] = "* (Feels good.)/%%" - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = "* (You stare into each& other's eyes for a& moment...)/%%" - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = "* (It's a horse stable.)/" - global.msg[1] = "* (Do you want to go& inside?)& Yes No \C" - global.msg[2] = " " - break - case 594: - if (global.choice == 0) - { - global.msg[0] = "* (You jostle the door.)&* (It's locked.)/" - global.msg[1] = "* (Suddenly^1, from inside& the [redacted], you hear a&/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 1) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* (Spooktunes are dead.)/%%" - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 608: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 2) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 610: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 3) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 612: - global.msg[0] = "* (Look inside the fridge?)& & Open it No\C" - global.msg[1] = " " - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = "* (There's a lonely sandwich& inside.)/%%" - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = "* (It's empty.)/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 615: - global.msg[0] = "* this is a ghost sandwich.../" - global.msg[1] = "* do you want to try it...& & Yes No\C" - global.msg[2] = " " - break - case 616: - if (global.choice == 0) - { - global.msg[0] = "* (You attempt to bite& into the ghost sandwich.)/" - global.msg[1] = "* (You phase right through& it...)/" - global.msg[2] = "* oh.../" - global.msg[3] = "* nevermind.../%%" - } - if (global.choice == 1) - global.msg[0] = "* oh.....................& ....................& ................./%%" - break - case 617: - global.msg[0] = "* after a great meal i like& to lie on the ground and& feel like garbage.../" - global.msg[1] = "* it's a family tradition.../" - global.msg[2] = "* do you want..^1.&* ... to join me...& Yes No\C" - global.msg[3] = " " - break - case 618: - if (global.choice == 0) - global.msg[0] = "* okay..^1.&* follow my lead.../%%" - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = "* oh.....................& ....................& ................./%%" - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = "* do you want to play a game^1?&* it's called thundersnail./" - global.msg[1] = "* the snails will race^1, and if& the yellow snail wins^1, you& win./" - global.msg[2] = "* it's 10G to play.& & Play No\C" - global.msg[3] = " " - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = "* um..^1.&* you don't have any money?/" - global.msg[1] = "* n-no^1, you can still play^1,& don't worry about it.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = "* um..^1. that's less than 10G./" - global.msg[1] = "* but since you're my only& real customer^1, i guess i'll& just take what you have.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[1] = "* ready?/%%" - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* oh.........../%%" - break - case 621: - global.msg[0] = "* .../" - global.msg[1] = "* Seven./" - global.msg[2] = "* Seven human souls./" - global.msg[3] = "* With the power of seven& human souls^1, our king.../" - global.msg[4] = "\W* \YKing \RASGORE \YDreemurr\W.../" - global.msg[5] = "* ... will become a god./" - global.msg[6] = "\W* With that power^1, \RASGORE\W & can finally shatter the& barrier./" - global.msg[7] = "* He will finally take the& surface back from humanity.../" - global.msg[8] = "* And give them back the& suffering and pain that& we have endured./" - global.msg[9] = "* .../" - global.msg[10] = "* Understand^1, human?/" - global.msg[11] = "* This is your only chance& at redemption./" - global.msg[12] = "* Give up your soul.../" - global.msg[13] = "* Or I'll tear it from& your body./%%" - break - case 622: - if (global.choice == 0) - { - global.msg[0] = "* That spark in your eyes.../" - global.msg[1] = "* You're really eager to& die^1, aren't you?/%%" - } - if (global.choice == 1) - global.msg[0] = "* .../%%" - break - case 623: - global.msg[0] = "* Yo^1, I know I'm not supposed& to be here^1, but.../" - global.msg[1] = "* I wanna ask you something./" - global.msg[2] = "* .../" - global.msg[3] = "* Man^1, I've never had to ask& anyone this before.../" - global.msg[4] = "* Umm.../" - global.msg[5] = "* Yo..^1. You're human^1, right?&* Haha./" - global.msg[6] = "* Man^1! I knew it!/" - global.msg[7] = "* ... well^1, I know it now^1,& I mean.../" - global.msg[8] = "* Undyne told me^1, um^1, " + chr(34) + "stay& away from that human." + chr(34) + "/" - global.msg[9] = "* So^1, like^1, ummm.../" - global.msg[10] = "* I guess that makes us enemies& or something./" - global.msg[11] = "* But I kinda stink at that^1,& haha./" - global.msg[12] = "* Yo^1, say something mean so& I can hate you?/" - global.msg[13] = "* Please? & & Yes No \C" - global.msg[14] = " " - break - case 624: - if (global.choice == 0) - { - global.msg[0] = "* Huh...?/" - global.msg[1] = "* Yo^1, that's your idea of& something mean?/" - global.msg[2] = "* My sister says that to me& ALL THE TIME!/" - global.msg[3] = "* Guess I have to do it^1, haha./" - global.msg[4] = "* Yo^1, I..^1. I hate your guts./" - global.msg[5] = "* .../" - global.msg[6] = "* Man^1, I..^1. I'm such a turd./" - global.msg[7] = "* I'm..^1. I'm gonna go home& now./%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Yo^1, what^1?&* So I have to do it?/" - global.msg[1] = "* Here goes nothing.../" - global.msg[2] = "* Yo^1, I..^1. I hate your guts./" - global.msg[3] = "* .../" - global.msg[4] = "* Man^1, I..^1. I'm such a turd./" - global.msg[5] = "* I'm..^1. I'm gonna go home& now./%%" - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = "* (It's a water cooler.)&* (Take a cup of water?)& Yes No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There's no more water left& in the cooler.)/%%" - if instance_exists(obj_undynefall) - global.msg[0] = "* (Sadistically^1, you've poured& out all the water right in& front of Undyne's eyes.)/%%" - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = "* (You take a cup of water.)/%%" - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 627: - global.msg[0] = "* (Get rid of the water?)& & Yes No \C" - global.msg[1] = " " - break - case 628: - if (global.choice == 0) - { - global.msg[0] = "* (You pour the water on& the ground next to the& water cooler.)/%%" - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 629: - global.msg[0] = "* A rousing error./%%" - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = "* (Give Undyne the water?)& & Yes No \C" - global.msg[1] = " " - } - else - global.msg[0] = "* (She looks dry...)/%%" - } - break - case 630: - global.msg[0] = " %%" - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = "BEPIS." - armor2 = "BEPIS." - if (global.flag[75] == 4) - armor1 = "GROSS BANDAGE" - if (global.flag[75] == 12) - armor1 = "FADED RIBBON" - if (global.flag[75] == 15) - armor1 = "BANDANNA" - if (global.flag[75] == 24) - armor1 = "DUSTY TUTU" - if (global.flag[77] == 4) - armor2 = "GROSS BANDAGE" - if (global.flag[77] == 12) - armor2 = "FADED RIBBON" - if (global.flag[77] == 15) - armor2 = "BANDANNA" - if (global.flag[77] == 24) - armor2 = "DUSTY TUTU" - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "REMEMBER WHEN&I ASKED YOU&ABOUT CLOTHES?/" - global.msg[4] = "\E3WELL^1, THE FRIEND&WHO WANTED TO&KNOW.../" - global.msg[5] = "\E0HER OPINION OF&YOU IS VERY.../" - global.msg[6] = "\E3MURDERY./" - global.msg[7] = "\E0ERROR!!^1!&SEE YOU LATER!/%%" - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I TOLD HER WHAT&YOU TOLD ME&YOU WERE WEARING!/" - global.msg[10] = (("A " + armor1) + "!/") - global.msg[11] = "BECAUSE I KNEW^1,&OF COURSE.../" - global.msg[12] = "\E3AFTER SUCH A&SUSPICIOUS&QUESTION.../" - global.msg[13] = "\E0YOU WOULD&OBVIOUSLY CHANGE&YOUR CLOTHES!/" - global.msg[14] = "YOU'RE SUCH A&SMART COOKIE!/" - global.msg[15] = "THIS WAY YOU'RE&SAFE AND I&DIDN'T LIE!!!/" - global.msg[16] = "NO BETRAYAL&ANYWHERE!!!/" - global.msg[17] = "BEING FRIENDS&WITH EVERYONE&IS EASY!!!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = "\E3I AM NOT A&CRUEL PERSON./" - global.msg[10] = "\E0I STRIVE TO BE&COMFORTING AND&PLEASANT./" - global.msg[11] = "PAPYRUS!&HE SMELLS LIKE&THE MOON./" - global.msg[12] = "SO, BECAUSE OF&MY INHERENT&GOODNESS.../" - global.msg[13] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[14] = "\E3EVEN THOUGH YOU&TOLD ME YOU&WERE!/" - global.msg[15] = "INSTEAD^1, I MADE&SOMETHING UP!/" - global.msg[16] = "I TOLD HER YOU&WERE WEARING.../" - global.msg[17] = (("\E0A " + armor2) + "./") - global.msg[18] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[19] = (("I KNOW YOU WOULD&NEVER EVER WEAR&A " + armor2) + "./") - global.msg[20] = "\E0BUT YOUR SAFETY&IS MORE IMPORTANT&THAN FASHION./" - global.msg[21] = "\E3DANG!/" - global.msg[22] = "I JUST WANT TO&BE FRIENDS WITH&EVERYONE.../" - global.msg[23] = "\TS \F0 \T0 %" - global.msg[24] = "* Click.../%%" - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "\E3PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = (("\WY\E0OU SAID YOU WERE\Y &NOT WEARING A&" + armor1) + "\W./") - global.msg[10] = "\E3SO OF COURSE&I ACTUALLY&TOLD HER.../" - global.msg[11] = (("\E0YOU WERE&INDEED WEARING&A " + armor1) + "!/") - global.msg[12] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[13] = (("BUT SINCE YOU&AREN'T WEARING&A " + armor1) + "./") - global.msg[14] = "\E0SHE SURELY&WON'T ATTACK&YOU!/" - global.msg[15] = "NOW YOU ARE&SAFE AND SOUND./" - global.msg[16] = "\E2WOWIE..^1.&THIS IS HARD./" - global.msg[17] = "I JUST WANT TO&BE EVERYBODY'S&FRIEND!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I KNEW WHEN&YOU SAID:/" - global.msg[10] = (('\E3"I AM NOT&WEARING A&' + armor1) + '."/') - global.msg[11] = "\E0IT WAS REALLY&A SECRET CODE!/" - global.msg[12] = "\E3YOU REALLY&MEANT.../" - global.msg[13] = (('\E0"I ACTUALLY AM&WEARING&A ' + armor1) + '!"/') - global.msg[14] = "YOU WERE TRYING&TO PROTECT&YOURSELF.../" - global.msg[15] = "WHILE MAKING IT&SO I DIDN'T&HAVE TO LIE!/" - global.msg[16] = "I PICKED UP ON&THIS, AND FOLLOWED&YOUR PLAN./" - global.msg[17] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[18] = "IN FACT I TOOK&IT ONE STEP&FURTHER!/" - global.msg[19] = "\E3I TOLD HER YOU&WERE PROBABLY.../" - global.msg[20] = (("\E0WEARING A&" + armor2) + "!/") - global.msg[21] = "\E3OF COURSE, YOU&WOULD NEVER&WEAR THAT./" - global.msg[22] = "\E0BUT THAT'S THE&POINT!/" - global.msg[23] = "SHE WON'T&RECOGNIZE YOU&NOW!/" - global.msg[24] = "AND I DIDN'T&HAVE TO BETRAY&EITHER OF YOU!/" - global.msg[25] = "SINCE I JUST&TOLD HER WHAT&YOU SAID!/" - global.msg[26] = "WOWIE^1!&YOU'RE SUCH A&SMART COOKIE!/" - global.msg[27] = "I REALLY CAN&BE FRIENDS WITH&EVERYONE!!!/" - global.msg[28] = "\TS \F0 \T0 %" - global.msg[29] = "* Click.../%%" - } - } - break - case 633: - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HEY^1!&WHAT'S UP!?/" - global.msg[3] = "I WAS JUST&THINKING.../" - global.msg[4] = "YOU^1, ME^1, AND&UNDYNE SHOULD ALL&HANG OUT SOMETIME!/" - global.msg[5] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE&LATER!/" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - if (global.flag[88] < 3) - { - global.msg[5] = "AFTER YOU HANG&OUT WITH ME.../" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE!/" - global.msg[7] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - } - break - case 635: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 636: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 637: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 638: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 639: - global.msg[0] = "* (It's a book labelled& Monster History Part 7.)& Read it Do not\C" - global.msg[1] = " " - break - case 640: - global.msg[0] = "* When a human dies^1, its& soul remains stable& outside the body./" - global.msg[1] = "* Meanwhile^1, a monster's soul& disappears near-instantly& upon death./" - global.msg[2] = "* This allows monsters to& absorb the souls of& humans.../" - global.msg[3] = "* While it is extremely& difficult for humans to& absorb a monster's soul./" - global.msg[4] = "* This is why they feared us./" - global.msg[5] = "* Though monsters are weak^1,& with enough human souls.../" - global.msg[6] = "* They could easily destroy& all of mankind./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 641: - global.msg[0] = "* (It's a book labelled& Monster History Part 8.)& Read it Do not\C" - global.msg[1] = " " - break - case 642: - global.msg[0] = "* There is one exception& to the aforementioned& rules:/" - global.msg[1] = "* A certain type of monster^1,& the " + chr(34) + "boss" + chr(34) + " monster./" - global.msg[2] = "* Due to its life cycle^1, it& possesses an incredibly& strong soul for a monster./" - global.msg[3] = "* This soul can remain& stable after death^1, if& only for a few moments./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 643: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 644: - global.msg[0] = "* (You look inside a book.)/" - global.msg[1] = "* (It's a comic of a giant& robot fighting a beautiful& alien princess.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 645: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 646: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (Two scantily-clad chefs are& flinging energy pancakes& at each other.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 647: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 648: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (A hideous android is running& to school with toast in& its mouth.)/" - global.msg[2] = "* (Seems like it's late.)/" - global.msg[3] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 660: - global.msg[0] = "* (There's a piano here.^1)&* (Play it?)& Yes No\C" - global.msg[1] = " " - break - case 661: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = "See that heart^1? &That is your SOUL^1,&the very culmination&of your being!/" - global.msg[1] = "Your SOUL starts off&weak^1, but can grow&strong if you gain&a lot of LV./" - global.msg[2] = "What's LV stand for^1?&Why^1, LOVE^1, of course!/" - global.msg[3] = "You want some&LOVE, don't you?/" - global.msg[4] = "Don't worry,&I'll share some&with you!/%" - break - case 667: - global.msg[0] = "Down here^1, LOVE is&shared through..^1./" - global.msg[1] = "Little white..^2.\E1 &" + chr(34) + "friendliness&pellets." + chr(34) + "/" - global.msg[2] = "\E2Are you ready\E0?/%" - break - case 668: - global.msg[0] = "Move around^1!&Get as many as&you can^2!%%%" - global.msg[1] = "%%%" - break - case 669: - global.msg[0] = "You idiot./" - global.msg[1] = "In this world^1, it's&kill or BE killed./" - global.msg[2] = "Why would ANYONE pass&up an opportunity&like this!?/%" - break - case 670: - global.msg[0] = "Die./%" - break - case 671: - global.msg[0] = "Hey buddy^1,&you missed them./" - global.msg[1] = "Let's try again^1,&okay?/%" - break - case 672: - global.msg[0] = "Is this a joke^2?&Are you braindead^2?&RUN^2. INTO^2. THE^2.&BULLETS!!!" - break - case 673: - global.msg[0] = "You know what's&going on here^1,&don't you?/" - global.msg[1] = "You just wanted to&see me suffer./%" - break - case 674: - global.msg[0] = "\E1What a terrible&creature^1, torturing&such a poor^1,&innocent youth.../" - global.msg[1] = "\E2Ah, do not be&afraid^1, my child./" - global.msg[2] = "\XI am \BTORIEL\X,&caretaker of&the \RRUINS\X./" - global.msg[3] = "I pass through this&place every day to&see if anyone has&fallen down./" - global.msg[4] = "You are the first&human to come here&in a long time./" - global.msg[5] = "I will do my best&to ensure your&protection during&your time here./%%" - global.msg[5] = "\E2Come^2!&I will guide you&through the&catacombs./%%" - global.msg[6] = "%%%" - break - case 680: - global.msg[0] = "* Three gold for the ferry.& & Yes No\C" - global.msg[1] = " " - break - case 681: - global.msg[0] = "* Later^1, then./%%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = "* Hop on!/%%" - } - break - case 682: - global.msg[0] = "* (It's a switch.)& & Press it Don't\C" - global.msg[1] = " " - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were deactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were reactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "\E1* Um.../" - global.msg[3] = "\E0* I noticed you've been& kind of quiet.../" - global.msg[4] = "\W*\E8 Are you w-worried& about meeting \RASGORE\W...?/" - global.msg[5] = "\E2* .../" - global.msg[6] = "\E0* W-well^1, don't worry^1,& okay?/" - global.msg[7] = "\E7* Th-the king is a& really nice guy.../" - global.msg[8] = "\E0* I'm sure you can& talk to him^1, and.../" - global.msg[9] = "* W-with your human& soul^1, you can pass& through the barrier!/" - global.msg[10] = "* S-so no worrying^1, OK^1?&* J-just forget about it& and smile./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* Click.../%%" - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = "* hey buddy^1, what's up^1?&* wanna buy a hot dog?/" - global.msg[1] = "* it's only 30G.& & Yes No \C" - global.msg[2] = " " - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = "* here^1.&* have fun./%%" - if (global.flag[380] == 1) - { - global.msg[0] = "* here's another hot& dog./" - global.msg[1] = "* it's on the house^1.&* well^1, no^1.&* it's on you./%%" - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = "* sorry^1, thirty is& the limit on& head-dogs./%%" - if (global.flag[381] == 0) - { - global.msg[0] = "\TS*^1 \Tsi'll be 'frank' with& you./" - global.msg[1] = "* as much as i like& putting hot dogs& on your head.../" - global.msg[2] = "* thirty is just& an excessive number./" - global.msg[3] = "* twenty-nine^1, now& that's fine^1, but& thirty.../" - global.msg[4] = "* does it look like& my arms can reach& that high?/%%" - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = "* thanks, kid^1.&* here's your hot dog./%%" - if (global.flag[379] == 0) - { - global.msg[0] = "* thanks, kid^1.&* here's your 'dog./" - global.msg[1] = "* yeah^1. 'dog^1.&* apostrophe-dog^1.&* it's short for hot-dog./%%" - } - if (global.flag[379] == 1) - { - global.msg[0] = "* another h'dog^1?&* here you go.../" - global.msg[1] = "* whoops^1, i'm actually& out of hot dogs./" - global.msg[2] = "* here^1, you can have& a hot cat instead./%%" - } - if (global.flag[379] == 2) - { - global.msg[0] = "* another dog^1, coming& right up.../" - global.msg[1] = "* ... you really like& hot animals^1, don't& you?/" - global.msg[2] = "* hey^1, i'm not judging./" - global.msg[3] = "* i'd be out of a job& without folks like you./%%" - } - if (global.flag[379] == 3) - { - global.msg[0] = "* cool^1.&* here's that ''dog./" - global.msg[1] = "* apostrophe-apostrophe& dog./" - global.msg[2] = "* it's short for& apostrophe-dog./" - global.msg[3] = "* which is^1, in turn^1,& short for.../%%" - } - if (global.flag[379] == 4) - { - global.msg[0] = "* another one^1?&* okay./" - global.msg[1] = "* careful^1.&* if you eat& too many hot dogs.../" - global.msg[2] = "* you'll probably get& huge like me./" - global.msg[3] = "* huge as in super-& popular^1, i mean./" - global.msg[4] = "* i'm practically& a hot-dog tycoon now./%%" - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = "* whoops^1, you don't have& enough cash./" - global.msg[1] = "* you should get a job^1.&* i've heard being a& sentry pays well./%%" - } - } - if (noroom == 1) - { - global.msg[0] = "* you're holding too much^1.&* ... guess i'll just put& it on your head./%%" - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* yeah^1, you've gotta& save your money for& college and spiders./%%" - break - case 690: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* L-looks like you& beat him!/" - global.msg[3] = "\E0* Y-you did a really& great job out there./" - global.msg[4] = " & All thanks& to you ... \C" - global.msg[5] = " " - break - case 691: - if (global.choice == 0) - { - global.msg[0] = "\E3* What^1?&* Oh no^1, I mean.../" - global.msg[1] = "\E4* You were the one& doing everything cool!/" - global.msg[2] = "\E0* I just wrote some& silly programs for& your phone./" - } - if (global.choice == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E2* .../" - global.msg[2] = "\E1* .../" - } - global.msg[3] = "\E2* .../" - global.msg[4] = "\E4* ... umm^1, h-hey^1, this& might sound strange^1,& but.../" - global.msg[5] = "\E6* ... c-can I tell& you something?/" - global.msg[6] = "\E9* .../" - global.msg[7] = "\E4* B-before I met you^1,& I d-didn't really.../" - global.msg[8] = "\E9* I didn't really& like myself very& much./" - global.msg[9] = "* For a long time^1,& I f-felt like a& total screw-up./" - global.msg[10] = "\E9* L-like I couldn't& do a-anything& w-without.../" - global.msg[11] = "\E9* W-without ending up& letting everyone& down./" - global.msg[12] = "\E3* B-but...!/" - global.msg[13] = "\E4* Guiding you has& made me feel.../" - global.msg[14] = "\E9* A lot better about& myself./" - global.msg[15] = "\E0* So... thanks for& letting me help& you./" - global.msg[16] = "\E9* .../" - global.msg[17] = "\E4* Uhhh^1, anyway^1, we're& almost to the CORE./" - global.msg[18] = "\E0* It's just past& MTT Resort./" - global.msg[19] = "\E6* Come on^1!&* Let's finish this!/%%" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* Click.../%%" - break - case 692: - global.msg[0] = "\E0EUREKA!!!/" - global.msg[1] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[2] = "\E3YOU SEEM LIKE&YOU'RE HAVING&FUN^1, THOUGH.../" - global.msg[3] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[6] = " " - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 694: - global.msg[0] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[1] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[4] = " " - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 696: - global.msg[0] = "* (There's a switch on the& trunk of this tree.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - break - case 697: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = "OHO^1!&THE HUMAN ARRIVES!/" - global.msg[1] = "ARE YOU READY TO&HANG OUT WITH&UNDYNE?/" - global.msg[2] = "I HAVE A PLAN&TO MAKE YOU TWO&GREAT FRIENDS!/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Will you hang out?)& & Yes No\C" - global.msg[5] = " " - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = "HMMM..^1.&STILL GETTING&READY?/" - global.msg[2] = "\E0TAKE YOUR TIME!/%%" - } - break - case 700: - global.msg[0] = "OKAY^1!&ALL READIED-UP&TO HANG OUT!?/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* (Will you hang out?)& & Yes No\C" - global.msg[3] = " " - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 703: - global.msg[0] = "\E4* .../" - global.msg[1] = "\E5* So why are YOU& here?/" - global.msg[2] = "\E4* To rub your victory& in my face?/" - global.msg[3] = "\E4* To humiliate me& even further?/" - global.msg[4] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[5] = " " - break - case 704: - if (global.choice == 0) - { - global.msg[0] = "\E2* Oh-ho-ho-ho./" - global.msg[1] = "\E1* Well^1, I've got news& for you^1, BRAT./" - global.msg[2] = "\E2* You're on MY& battlefield now./" - global.msg[3] = "\E3* And you AREN'T& going to& humiliate me./" - global.msg[4] = "\E3* I'll TELL you& what's going to& happen./" - global.msg[5] = "\E0* We're going to& hang out./" - global.msg[6] = "\E2* We're going to& have a good& time./" - global.msg[7] = "\M1* We're going to& become " + chr(34) + "friends." + chr(34) + "/" - global.msg[8] = "\E3* You'll become so& enamored with me.../" - global.msg[9] = "\E1* YOU'LL be the one& feeling humiliated& for your actions!/" - global.msg[10] = "\E6* Fuhuhuhuhu!!/" - global.msg[11] = "\M2* It's the perfect& revenge!!!/" - global.msg[12] = "\E1* Err.../" - global.msg[13] = "\E9* Why don't you& have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\E4* Then why are you& here?/" - global.msg[1] = "\E1* ...!/" - global.msg[2] = "\E2* Wait^1, I get it./" - global.msg[3] = "\E3* You think that I'm& gonna be friends& with you^1, huh?/" - global.msg[4] = "* Right???& NEVER & Yes with you\C" - global.msg[5] = " " - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = "\E6* Really^1?&* How delightful!^1!&* I accept!/" - global.msg[1] = "* Let's all frolick& in the fields& of friendship!/" - global.msg[2] = "\E2* ...NOT!/" - global.msg[3] = "\E2* Why would I EVER& be friends with& YOU!?/" - global.msg[4] = "\E3* If you weren't my& houseguest^1, I'd beat& you up right now!/" - global.msg[5] = "\E0* You're the enemy& of everyone's hopes& and dreams!/" - global.msg[6] = "\E1* I WILL NEVER& BE YOUR FRIEND./" - global.msg[7] = "\E3* Now get out of& my house!/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = "\E1* WHAT?/" - global.msg[1] = "\E4* First you parade& into my house^1,& then you INSULT me?/" - global.msg[2] = "\E2* You little BRAT^1!&* I have half a& mind to.../" - global.msg[3] = "\E1* .../" - global.msg[4] = "\E3* Wait./" - global.msg[5] = "\E2* I'll prove you& WRONG./" - global.msg[6] = "\E3* We ARE going to& be friends./" - global.msg[7] = "\E1* In fact.../" - global.msg[8] = "\E3* We./" - global.msg[9] = "\M1* Are going to be& BESTIES./" - global.msg[10] = "* I'll make you like& me so much.../" - global.msg[11] = "\E1* Your WHOLE LIFE& will revolve around& me!!/" - global.msg[12] = "\M2* It's the perfect& revenge!!!/" - global.msg[13] = "\E6* FUHUHUHUHU!!!/" - global.msg[14] = "\E1* Err.../" - global.msg[15] = "\E9* Now^1, why don't& you have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = "* (Sit down and progress?)& & Yes No\C" - global.msg[1] = " " - break - case 707: - global.msg[0] = " %%" - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = " %%" - global.msg[1] = " %%" - } - break - case 708: - global.msg[0] = "* That sugar's for& the tea./" - global.msg[1] = "\E2* I'm not gonna give& you a cup of& sugar!/" - global.msg[2] = "\E6* What do I look& like^1, the ice-cream& woman?/" - global.msg[3] = "\E2* Do human ice-cream& women TERRORIZE HUMANITY& with ENERGY SPEARS?/" - global.msg[4] = "\E3* Are their ice-cream& songs a PRELUDE TO& DESTRUCTION?/" - global.msg[5] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[6] = " " - break - case 709: - if (global.choice == 0) - { - global.msg[0] = "\E1* ... what^1?&* REALLY?/" - global.msg[1] = "\E6* That rules!!!/%%" - } - if (global.choice == 1) - global.msg[0] = "\E3* That's what I& thought./%%" - break - case 710: - global.msg[0] = "* Envision these& vegetables as your& greatest enemy!/" - global.msg[1] = "\E2* Now!^1!&* Pound them to dust& with your fists!!/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (How will you pound?)& & Strong Wimpy\C" - global.msg[4] = " " - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = "* (You punch the vegetables& at full force^1.&* You knock over a tomato.)/" - scr_undface(1, 6) - global.msg[2] = "* YEAH^1!&* YEAH!/" - global.msg[3] = "\E1* Our hearts are& uniting against these& healthy ingredients!/" - global.msg[4] = "\M2* NOW IT'S MY TURN!/" - global.msg[5] = "* NGAHHH!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = "* (You pet the vegetables& in an affectionate& manner.)/" - scr_undface(1, 1) - global.msg[2] = "* OH MY GOD!!^1!&* STOP PETTING THE& ENEMY!!!/" - global.msg[3] = "\M2* I'll show you& how it's done!/" - global.msg[4] = "* NGAHHH!/%%" - } - break - case 712: - global.msg[0] = "* ... we add the& noodles!/" - global.msg[1] = "\E0* Homemade noodles& are the best!/" - global.msg[2] = "\E6* BUT I JUST BUY& STORE-BRAND!/" - global.msg[3] = "\M2* THEY'RE THE& CHEAPEST!!!/" - global.msg[4] = "\E1* NGAHHHHHHHHH& HHHHHHHHHH!!!/" - global.msg[5] = "\E9* Uhh^1, just put them& in the pot./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "\M0* (How will you put them in?)& & Fiercely Careful\C" - global.msg[8] = " " - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = "* (You throw everything into& the pot as hard as you can^1,& including the box.)/" - global.msg[1] = "* (It clanks against the& empty bottom.)/" - scr_undface(2, 6) - global.msg[3] = "\M2* YEAH!!^1!&* I'M INTO IT!!!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = "* (You place the noodles& in one at a time.)/" - global.msg[1] = "* (They clank against the& empty bottom.)/" - scr_undface(2, 9) - global.msg[3] = "* Nice???/%%" - } - break - case 714: - global.msg[0] = "\E0* Humans suck^1, but& their history..^1.&* Kinda rules./" - global.msg[1] = "\E2* Case in point^1:&* This giant sword!/" - global.msg[2] = "\E0* Historically^1, humans& wielded swords up& to 10x their size./" - global.msg[3] = "\E1* RIGHT?& & True False\C" - global.msg[4] = " " - break - case 715: - if (global.choice == 0) - { - global.msg[0] = "\E6* Heh^1, I knew it!/" - global.msg[1] = "\E2* When I first heard& that^1, I immediately& wanted one!/" - global.msg[2] = "\E0* So me and Alphys& built a giant& sword together./" - global.msg[3] = "\E0* She figured out all& the specs herself.../" - global.msg[4] = "\E6* She's smart^1, huh!?/%%" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* Pfft^1!&* You liar!/" - global.msg[1] = "\E3* I've READ Alphys's& human history book& collection!/" - global.msg[2] = "\E3* I know all about& your giant swords.../" - global.msg[3] = "\E3* Your colossal^1,& alien-fighting& robots.../" - global.msg[4] = "* Your supernatural& princesses.../" - global.msg[5] = "\E6* Heh^1! There's no& way you're gonna& fool me!!!/%%" - } - break - case 716: - global.msg[0] = "* (Look inside the bone drawer?)& & Yes No\C" - global.msg[1] = " " - break - case 717: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = "\M5* WHAT A SENSATIONAL OPPORTUNITY& FOR A STORY!/" - global.msg[1] = "\M3* I CAN SEE THE HEADLINE NOW:/" - global.msg[2] = "\M4* " + chr(34) + "A DOG EXISTS SOMEWHERE." + chr(34) + "/" - global.msg[3] = "\M2* FRANKLY^1, I'M BLOWN AWAY./" - global.msg[4] = "* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 721: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 722: - global.msg[0] = "\M5* THIS DOG..^1.&* STILL EXISTS!/" - global.msg[1] = "* THIS STORY..^1.&* JUST KEEPS GETTING& BETTER AND BETTER!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 723: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 724: - global.msg[0] = "\M5* OH MY!!!!/" - global.msg[1] = "\M2* ... IT'S A COMPLETELY& NONDESCRIPT GLASS OF WATER./" - global.msg[2] = "\M4* BUT ANYTHING CAN MAKE& A GREAT STORY WITH ENOUGH& SPIN!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 725: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 726: - global.msg[0] = "\M3* I'M HONORED TO BE IN THE& PRESENCE OF SUCH A HUGE& LUKEWARM WATER FAN^1, FOLKS!/" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 727: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 728: - global.msg[0] = "\M5* OH NO!!^1!&* THAT MOVIE SCRIPT!!^1!&* HOW'D??^1? THAT GET THERE???/" - global.msg[1] = "\M4* IT'S A SUPER-JUICY SNEAK& PREVIEW OF MY LATEST& GUARANTEED-NOT-TO-BOMB FILM:/" - global.msg[2] = "\M6* METTATON THE MOVIE XXVIII..^1.& STARRING METTATON!/" - global.msg[3] = "\M1* I'VE HEARD THAT LIKE THE& OTHER FILMS.../" - global.msg[4] = "\M1* IT CONSISTS MOSTLY OF A SINGLE& FOUR-HOUR SHOT OF ROSE PETALS& SHOWERING ON MY RECLINING BODY./" - global.msg[5] = "\M5* OOH!!^1!&* BUT THAT'S!!^1!&* NOT CONFIRMED!!/" - global.msg[6] = "\M5* YOU WOULDN'T (COUGH) SPOIL MY& MOVIE FOR EVERYONE WITH A& PROMOTIONAL STORY^1, WOULD YOU?/" - global.msg[7] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[8] = " " - break - case 729: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\M5* PHEW!!^1! THAT WAS CLOSE!^1!&* YOU ALMOST GAVE ME A BUNCH& OF FREE ADVERTISEMENT!!/%%" - global.msg[1] = "\M2 %%" - } - break - case 730: - global.msg[0] = "\M3* OH^1!&* YOU'RE BACK!/" - global.msg[1] = "\M6* THAT'S RIGHT^1, FOLKS^1!&* IT SEEMS NO ONE CAN RESIST& THE ALLURE OF MY NEW FILM!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 731: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 732: - global.msg[0] = "\M4* BASKETBALL'S A BLAST^1, ISN'T IT^1,& DARLING?/" - global.msg[1] = "\M1* TOO BAD YOU CAN'T PLAY WITH& THESE BALLS./" - global.msg[2] = "\M4* THEY'RE MTT-BRAND FASHION& BASKETBALLS^1.&* FOR WEARING^1, NOT PLAYING./" - global.msg[3] = "\M6* YOU CAN'T GET RICH AND FAMOUS& LIKE MOI WITHOUT BEAUTIFYING& A FEW ORBS./" - global.msg[4] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 733: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 734: - global.msg[0] = "* IT SEEMS OUR REPORTER IS DRAWN& TO SPORTS LIKE MOTHS TO A& FLAMING BASKETBALL HOOP./" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 735: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 736: - global.msg[0] = "\M5* OH MY^1! IT'S A PRESENT^1!&* AND IT'S ADDRESSED TO YOU^1,& DARLING!/" - global.msg[1] = "\M6* AREN'T YOU JUST BURSTING& WITH EXCITEMENT?/" - global.msg[2] = "\M5* WHAT COULD BE INSIDE^1?&* WELL^1, NO TIME LIKE THE& " + chr(34) + "PRESENT" + chr(34) + " TO FIND OUT!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 737: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 738: - global.msg[0] = "\M4* READY FOR YOUR..^1.&* PRESENTATION?/" - global.msg[1] = "\M4* (... LET'S CUT THAT ONE IN& POST.)/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 739: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 740: - global.msg[0] = "\M5* OOH LA LA^1!&* THIS VIDEO GAME YOU FOUND..^1.&* IS DYNAMITE!!!/" - global.msg[1] = "\M4* THOUGH I DON'T MAKE AN& APPEARANCE IN IT UNTIL& THREE-FOURTHS IN./" - global.msg[2] = "\M3* BUT I LIKE THAT./" - global.msg[3] = "\M6* APPEARING FROM THE HEAVENS LIKE& MANNA^1, SLAKING THE AUDIENCE'S& HUNGER FOR GORGEOUS ROBOTS.../" - global.msg[4] = "\M5* OOH^1!&* THAT'S METTATON!/" - global.msg[5] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[6] = " " - break - case 741: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 742: - global.msg[0] = "* AH^1, YOU UNDERSTAND./" - global.msg[1] = "* THIS IS A GAME WHERE YOU& SHOULD CHECK EVERYTHING& TWICE./" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 743: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Cider for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Donut for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 748: - global.msg[0] = "* Ribbit^1, ribbit.&* (I have heard you are quite& merciful^1, for a human...)/" - global.msg[1] = "\W* (Surely you know by now a& monster wears a \YYELLOW\W name& when you can \YSPARE\W it.)/" - global.msg[2] = "* (What do you think of that?)& Very It's& Helpful Bad\C" - global.msg[3] = " " - break - case 749: - if (global.choice == 0) - { - global.msg[0] = "* (It is rather helpful.^1)&* (Remember^1, sparing is just& saying you won't fight.)/" - global.msg[1] = "* (Maybe one day^1, you'll& have to do it even if& their name isn't yellow.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Really^1? Then^1, I'll tell all& of my friends to tell& their friends' friends...)/" - global.msg[1] = "* (Never use yellow names.)&* (How about that?)/" - global.msg[2] = " Keep No more& Yellow Yellow& Names Names\C" - global.msg[3] = " " - } - break - case 750: - if (global.choice == 0) - global.msg[0] = "* (OK^1, they will still& use yellow names.)/%%" - if (global.choice == 1) - { - global.msg[0] = "* (OK^1, I will let them& know not to use yellow& names.)/%%" - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = "* Ribbit^1, ribbit^1.&* (How are you doing without& yellow names?)/" - global.msg[1] = " Bring & It's Them& great Back\C" - global.msg[2] = " " - break - case 752: - if (global.choice == 0) - { - global.msg[0] = "* (Glad to hear it.^1)&* (Though^1, I do not know why& you dislike yellow.)/" - global.msg[1] = "* (You had better hope you do& not encounter a banana-themed& monster.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Huh^1? It's rather inconvenient& that you changed your mind& like this.)/" - global.msg[1] = "* (Since I told everyone& not to use yellow names^1,& everyone threw theirs out.)/" - global.msg[2] = "* (This is really troubling...^1)&* (Hmmm...)/" - global.msg[2] = "\W* (Well^1, last year it was& fashionable to have \ppink\W & names.)/" - global.msg[3] = "* (I think everyone still& has those in their closets& somewhere...)/" - global.msg[4] = "* (I'll ask everyone to look.^1)&* (But this is the last time!)/%%" - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = "* Ribbit^1, ribbit...&* (I hope you're satisfied.)/%%" - break - case 754: - global.msg[0] = "* \YNAPSTABLOOK22 has sent you& a friend request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 755: - global.flag[409] = 1 - global.msg[0] = "* (It seems to have already& rejected itself...)/%%" - break - case 756: - global.msg[0] = "* \YMETTATON has sent you a& Mortal Enemy request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 757: - if (global.choice == 0) - { - global.msg[0] = "* Congratulations^1!&* You are now Mortal Enemies& with Mettaton./" - global.msg[1] = "* \YCOOLSKELETON95\W has posted& a comment on this change./" - global.msg[2] = "* CONGRATULATIONS^1, YOU TWO^1!&* WISH YOU A LONG AND& HORRIBLE RIVALRY./%%" - } - if (global.choice == 1) - global.msg[0] = "* You rejected the request./%%" - break - case 758: - global.msg[0] = "* \YMETTATON has sent you an& invitation to " + chr(34) + "Die." + chr(34) + "\W /" - global.msg[1] = "* RSVP?& & Respond Ignore\C" - global.msg[2] = " " - break - case 759: - if (global.choice == 0) - global.msg[0] = "* Bepis valley Granola Bars/%%" - if (global.choice == 1) - global.msg[0] = "* Bepis valley Granola Bars/%%" - break - case 760: - global.msg[0] = "* hey^1.&* i heard you're going& to the core./" - global.msg[1] = "\E0* how about grabbing some& dinner with me first?& Yeah I'm busy \C" - global.msg[2] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - break - case 761: - if (global.choice == 0) - { - global.msg[0] = "* great^1, thanks for& treating me./%%" - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* well^1, have fun in& there./%%" - break - case 762: - global.msg[0] = "* This is the barrier./" - global.msg[1] = "* This is what keeps& us all trapped& underground./" - global.msg[2] = "* .../" - global.msg[3] = "* If.../" - global.msg[4] = "* If by chance you& have any unfinished& business.../" - global.msg[5] = "* Please do what you& must./" - global.msg[6] = " & & Continue Go Back\C" - global.msg[7] = " " - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Anything you want to& do is important& enough./" - global.msg[2] = "* Even something as small& as reading a book^1,& or taking a walk.../" - global.msg[3] = "* Please take your time./%%" - } - break - case 764: - global.msg[0] = "* Oh..^1.&* Back so soon?/" - global.msg[1] = "* How are you feeling?/" - global.msg[2] = " & & Ready Go Back\C" - global.msg[3] = " " - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Do what you have to./%%" - } - break - case 770: - global.msg[0] = "* Tra la la^1.&* I am the riverman./" - global.msg[1] = "* Or am I the riverwoman...^1?&* It doesn't really matter./" - global.msg[2] = "* I love to ride in my boat^1.&* Would you care to join me?/" - global.msg[3] = "* (Ride in the boat?)& & Yes No\C" - global.msg[4] = " " - if (global.flag[460] > 0) - { - global.msg[0] = "* Tra la la^1.&* Care for a ride?/" - global.msg[1] = "* (Ride in the boat?)& & Yes No\C" - global.msg[2] = " " - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = "* Where will we go today?& & Error Error\C" - if (room == room_fire_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Waterfall\C" - if (room == room_water_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Hotland\C" - if (room == room_tundra_dock) - global.msg[0] = "* Where will we go today?& & Waterfall Hotland\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* Then perhaps another time^1.&* Or perhaps not^1.&* It doesn't really matter./%%" - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = "* Then we're off.../%%" - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = "* (There's a switch on the& wall.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = "* (The switch doesn't do& anything.)/%%" - break - case 781: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = "* (Seems like a comfortable& bed.)/" - global.msg[1] = "* (Lie on it?)& & Yes No\C" - global.msg[2] = " " - break - case 783: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = "* (It's just a regular suspicious& bed now.)/%%" - if (global.flag[484] == 1) - { - global.msg[0] = "* (It's a yellow key.^1)&* (You put it on your& keychain.)/%%" - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = "* (There's something under& the sheets.)/" - global.msg[1] = "* (Check it out?)& & Yes No\C" - global.msg[2] = " " - } - break - case 785: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = "* (The power has been turned& on.)/%%" - if (global.flag[491] == 0) - { - global.msg[0] = "* (It seems like this controls& the elevator's power.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - break - case 787: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = (("\E7* I always was a crybaby^1,& wasn't I^1, " + global.charname) + "?/") - global.msg[1] = "\E1* .../" - global.msg[2] = "\E2* ... I know./" - global.msg[3] = (("\E0* You're not actually& " + global.charname) + ", are you?/") - global.msg[4] = (("\E7* " + global.charname) + "'s been gone for& a long time./") - global.msg[5] = "* .../" - global.msg[6] = "\E9* Um..^1. what.../" - global.msg[7] = "\E0* What IS your name?/" - global.msg[8] = "\E2* .../" - global.msg[9] = "\E5* " + chr(34) + "Frisk?" + chr(34) + "/" - global.msg[10] = "\E7* That's.../" - global.msg[11] = "\E5* A nice name./" - global.msg[12] = "* .../" - global.msg[13] = "\E7* Frisk.../" - global.msg[14] = "\E0* I haven't felt like& this for a long time./" - global.msg[15] = "\E2* As a flower^1, I was& soulless./" - global.msg[16] = "\E1* I lacked the power to& love other people./" - global.msg[17] = "\E2* However^1, with everyone's& souls inside me.../" - global.msg[18] = "\E7* I not only have my own& compassion back.../" - global.msg[19] = "\E5* But I can feel every& other monster's as& well./" - global.msg[20] = "\E7* They all care about& each other so much./" - global.msg[21] = "\E0* And..^1. they care about& you too^1, Frisk./" - global.msg[22] = "* .../" - global.msg[23] = "\E7* I wish I could tell& you how everyone& feels about you./" - global.msg[24] = "* Papyrus..^1. Sans..^1.&* Undyne..^1. Alphys.../" - global.msg[25] = "\E0* ... Toriel./" - global.msg[26] = "\E7* Monsters are weird./" - global.msg[27] = "\E5* Even though they barely& know you.../" - global.msg[28] = "\E6* It feels like they& all really love& you./" - global.msg[29] = "\E8* Haha./" - global.msg[30] = "* .../" - global.msg[31] = "\E1* Frisk..^1. I..^1.&* I understand if you& can't forgive me./" - global.msg[32] = "* I understand if you& hate me./" - global.msg[33] = "* I acted so strange and& horrible./" - global.msg[34] = "\E3* I hurt you./" - global.msg[35] = "* I hurt so many people./" - global.msg[36] = "\E1* Friends^1, family^1,& bystanders.../" - global.msg[37] = "\E3* There's no excuse for& what I've done./" - global.msg[38] = " & & Forgive Do not\C" - global.msg[39] = " " - break - case 801: - if (global.choice == 0) - { - global.msg[0] = "\E3* Wh..^1. what?/" - global.msg[1] = "\E7* ... Frisk^1, come on./" - global.msg[2] = "\E0* You're..^1.&* You're gonna make me& cry again./" - global.msg[3] = "\E7* ... besides^1, even if& you do forgive me.../" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* ... right^1./" - global.msg[1] = "* I understand./" - global.msg[2] = "\E1* I just hope that.../" - global.msg[3] = "* I can make up for& it a little right& now./" - } - global.msg[4] = "\E1* I can't keep these& souls inside of me./" - global.msg[5] = "\E0* The least I can do& is return them./" - global.msg[6] = "\E2* But first.../" - global.msg[7] = "\E4* There's something I& have to do./" - global.msg[8] = "* Right now^1, I can feel& everyone's hearts& beating as one./" - global.msg[9] = "* They're all burning& with the same& desire./" - global.msg[10] = "* With everyone's power..^1.&* With everyone's& determination.../" - global.msg[11] = "* It's time for& monsters.../" - global.msg[12] = "* To finally go free./%%" - break - case 803: - global.msg[0] = "\E7* Frisk.../" - global.msg[1] = "\E0* I have to go now./" - global.msg[2] = "\E7* Without the power of& everyone's souls.../" - global.msg[3] = "\E1* I can't keep& maintaining this& form./" - global.msg[4] = "* In a little while.../" - global.msg[5] = "* I'll turn back into& a flower./" - global.msg[6] = "\E3* I'll stop being& " + chr(34) + "myself." + chr(34) + "/" - global.msg[7] = "* I'll stop being able& to feel love again./" - global.msg[8] = "\E1* So..^1. Frisk./" - global.msg[9] = "\E7* It's best if you& just forget about& me^1, OK?/" - global.msg[10] = "\E0* Just go be with& the people who& love you./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & Comfort& him Do not\C" - global.msg[13] = " " - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = "\E0* So^1, Alphys.../" - global.msg[1] = "\E9* What do you want& to do now that& we're all free?/" - global.msg[2] = "\E0* We have the whole& world to explore& now./" - scr_alface(3, 3) - global.msg[4] = "\E3* W-well^1, of course& I'm going to go& out and.../" - global.msg[5] = "\E4* Um.../" - global.msg[6] = "\E3* No^1, I should be& honest!!/" - global.msg[7] = "\E1* I'm gonna stay inside& and watch anime like& a total loser!/" - scr_papface(8, 0) - global.msg[9] = "\E0THAT'S THE SPIRIT!/" - global.msg[10] = "EVERYONE!!^1!&A CELEBRATION!!!&TO BEING LOSERS!!/" - scr_undface(11, 9) - global.msg[12] = "\E9* Heh^1.&* Papyrus has the& right idea./" - global.msg[13] = "\E0* Losing to Frisk is& the best thing to& ever happen to me./" - global.msg[14] = "\E0* So I'm glad that& we.../" - global.msg[15] = "\E9* Huh^1?&* What is it^1, Asgore?/" - scr_asgface(16, 2) - global.msg[17] = "\E2* Um..^1. what's an.../" - global.msg[18] = "\E0* ... anime?/" - scr_alface(19, 1) - global.msg[20] = "\E1* (Oh My God?)/" - global.msg[21] = "\E3* (Frisk^1. Please.)/" - global.msg[22] = "\E2* (Help me explain what& anime is to Asgore.)/" - global.msg[23] = "\E0* Y-you see^1, it's& like a cartoon^1,& but.../" - global.msg[24] = "\TS \F0 \T0 %" - global.msg[25] = " & With With& Sword's Gun's\C" - global.msg[26] = " " - break - case 807: - scr_asgface(0, 2) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with swords?/" - if (global.choice == 1) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with guns?/" - global.msg[2] = "\E0* Golly^1!&* That sounds neato!/" - global.msg[3] = "\E3* Where is this^1?&* Where can I see the& Anime./" - scr_alface(4, 3) - global.msg[5] = "\E3* H-hold on^1, uh..^1.&* I think I have& some on my phone./" - global.msg[6] = "\E0* Here^1, l-look at& this!/" - global.msg[7] = "\E0* .../" - global.msg[8] = "\E3*...Oh^1, uh.../" - global.msg[9] = "\E4* Um..^1. that's the..^1.&* That's the wrong.../" - global.msg[10] = "\E5* Uh^1, nevermind./" - scr_asgface(11, 1) - global.msg[12] = "* Golly^1.&* Were those two robots.../" - scr_undface(13, 9) - global.msg[14] = "\E9* ... kissing?/" - scr_asgface(15, 0) - global.msg[16] = "\E0* Boy^1!&* Technology sure is& something^1, isn't it?/" - scr_alface(17, 5) - global.msg[18] = "\E5* Eheheh..^1. yeah^1!&* It sure is!/%%" - break - case 808: - global.msg[0] = "\E0* Psst..^1.&* F-Frisk./" - global.msg[1] = "\E3* Um^1, you've gotta& tell me./" - global.msg[2] = "\E6* D..^1. do you think& Asgore and Toriel& are...?/" - global.msg[3] = "\E3* Uh^1, ever gonna get& back together?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "& & Yeah Nope\C" - global.msg[6] = " " - break - case 809: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = "\E7* Y-yeah!!^1!&* Yeah^1, that's what& I hope^1, too./" - global.msg[2] = "\E7* Just think about how& cute they must have& been together./" - global.msg[3] = "\E0* It's quickly becoming& my number one ship& of all time./" - global.msg[4] = "\E7* Tori and Gorey.../" - global.msg[5] = "\E5* My..^1.&* My old boss and& his ex-wife./" - global.msg[6] = "\E8* ... uh^1, that sounds& a lot less cool& all of a sudden./%%" - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = "\E8* ... yeah^1, that's what& I thought./" - global.msg[2] = "\E7* A woman can dream& though^1, right?/" - global.msg[3] = "\E2* And write fanfiction./" - global.msg[4] = "\E1* A LOT of fanfiction./%%" - } - break - case 810: - global.msg[0] = "\E0* Frisk^1!&* I just realized!/" - global.msg[1] = "\E3* Now that we aren't& fighting each& other.../" - global.msg[2] = "\E2* I can finally ask& you.../" - global.msg[3] = "\E0* " + chr(34) + "Would you like a& cup of tea?" + chr(34) + "/" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E0* Would you like a& cup of tea?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "& & Yes No\C" - global.msg[8] = " " - break - case 811: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = "* Oh^1!&* Well!/" - global.msg[2] = "\E3* Actually^1, the cup I& had is cold now./" - global.msg[3] = "* So you shouldn't& have it./" - global.msg[4] = "\E0* But^1, I am so& happy you said& yes./" - global.msg[5] = "\E0* As soon as I can^1,& I will make some& more for you./" - global.msg[6] = "\E0* Then we can be& great pals./%%" - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = "\E3* Oh.../" - global.msg[2] = "\E3* Okay./" - scr_undface(3, 2) - global.msg[4] = "\E2* Frisk^1! Stop^1!&* You're breaking his& big burly heart!/" - scr_asgface(5, 2) - global.msg[6] = "\E2* Um^1, it's OK^1, Undyne./" - global.msg[7] = "\E0* My heart's already& broken./" - scr_undface(8, 6) - global.msg[9] = "\E6* ASGORE^1! STOP^1!&* YOU'RE BREAKING MY& BIG BURLY HEART!/" - scr_alface(10, 9) - global.msg[11] = "\E9* Y-yeah^1, Asgore^1.&* Don't break Undyne's& heart./" - global.msg[12] = "\E2* That's my job./" - scr_undface(13, 2) - global.msg[14] = "\E2* OH MY GOD!&* YOU'RE GOING BACK& IN THE TRASH!!!/" - scr_papface(15, 0) - global.msg[16] = "\E0CAN I GO IN THE&TRASH TOO?/" - scr_undface(17, 9) - global.msg[18] = "\E9* Sure^1, Papyrus./" - scr_sansface(19, 1) - global.msg[20] = "\E1* guess i have to& go in the trash& too./" - scr_torface(21, 0) - global.msg[22] = "\E0* Oh^1, may I enter& the trash as well?/" - scr_undface(23, 1) - global.msg[24] = "\E1* Uh^1, okay?/" - scr_asgface(25, 0) - global.msg[26] = "\E0* Am I invited to& the trash?/" - scr_undface(27, 6) - global.msg[28] = "\E6* SURE!!!&* WHY NOT!!!/" - scr_torface(29, 1) - global.msg[30] = "\E1* On second thought^1,& do not put me& in the trash./" - scr_asgface(31, 5) - global.msg[32] = "\E5* Oh.../" - scr_undface(33, 1) - global.msg[34] = "\E1* OH MY GOD!!!/%%" - } - break - case 812: - global.msg[0] = "* (If you leave here^1, your& adventure will really& be over.)/" - global.msg[1] = "* (Your friends will follow& you out of the underground.)/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = " & Don't I'm& leave ready\C" - global.msg[4] = " " - break - case 813: - global.msg[0] = " %%" - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = "\E0* Oh my.../" - scr_asgface(1, 0) - global.msg[2] = "\E0* Isn't it beautiful^1,& everyone?/" - scr_alface(3, 3) - global.msg[4] = "\E3* Wow..^1. it's e-even& better than on TV./" - global.msg[5] = "\E7* WAY better^1!&* Better than I ever& imagined!/" - scr_undface(6, 1) - global.msg[7] = "\E1* Frisk^1, you LIVE with& this!?/" - global.msg[8] = "\E9* The sunlight is so& nice..^1. and the air& is so fresh!/" - global.msg[9] = "* I really feel alive!/" - scr_papface(10, 0) - global.msg[11] = "\E0HEY SANS.../" - global.msg[12] = "\E3WHAT'S THAT GIANT&BALL?/" - scr_sansface(13, 1) - global.msg[14] = "\E1* we call that& " + chr(34) + "the sun^1," + chr(34) + " my friend./" - scr_papface(15, 0) - global.msg[16] = "\E0THAT'S THE SUN!^1?&WOWIE!!!/" - global.msg[17] = "I CAN'T BELIEVE&I'M FINALLY MEETING&THE SUN!!!/" - scr_asgface(18, 0) - global.msg[19] = "\E0* I could stand here& and watch this for& hours.../" - scr_torface(20, 0) - global.msg[21] = "\E0* Yes^1, it is beautiful^1,& is it not?/" - global.msg[22] = "\E1* But we should really& think about what comes& next./" - scr_asgface(23, 3) - global.msg[24] = "\E3* Oh^1, right./" - global.msg[25] = "\E0* Everyone.../" - global.msg[26] = "* This is the beginning& of a bright new& future./" - global.msg[27] = "* An era of peace between& humans and monsters./" - global.msg[28] = "\E2* Frisk.../" - global.msg[29] = "* I have something to& ask of you./" - global.msg[30] = "\E0* Will you act as our& ambassador to the& humans?/" - global.msg[31] = "\TS \F0 \T0 %" - global.msg[32] = "* (Be the ambassador?)& & Yes No\C" - global.msg[33] = " " - break - case 815: - scr_papface(0, 0) - global.msg[1] = "WOWi, Nice error./%%" - if (global.choice == 0) - { - global.msg[1] = "\E0YEAH^1!&FRISK WILL BE THE&BEST AMBASSADOR!/" - global.msg[2] = "AND I^1, THE GREAT&PAPYRUS.../" - global.msg[3] = "WILL BE THE BEST&MASCOT!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E0IT'S OK FRISK^1!&I'VE GOT YOU&COVERED!/" - global.msg[2] = "IF YOU DON'T WANT&TO BE THE&AMBASSADOR.../" - global.msg[3] = "I CAN DO IT FOR&YOU!!!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - break - case 820: - global.msg[0] = "* Frisk.../" - global.msg[1] = "\E2* You came from this& world^1, right...?/" - global.msg[2] = "\E1* So you must have& a place to return to^1,& do you not?/" - global.msg[3] = "\E2* What will you do& now?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = " I want I have& to stay places& with you to go\C" - global.msg[6] = " " - break - case 821: - global.msg[0] = " %%" - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = "* (The door has no mail slot.)/" - global.msg[1] = "* (Slide the letter under?)& & Slide NO!!!! \C" - global.msg[2] = " " - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = "* (You slide the letter under& the door and give it a& knock.)/%%" - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* (You'll keep the letter& warm for a little longer.)/%%" - break - case 827: - global.msg[0] = "* (It's a note from Alphys.)/" - global.msg[1] = "* (Read it...?)& & Read Do not \C" - global.msg[2] = " " - break - case 828: - if (global.choice == 0) - { - global.msg[0] = "* (It's hard to read because& of the handwriting^1, but& you try your best...)/" - global.msg[1] = "* Hey./" - global.msg[2] = "* Thanks for your help back& there./" - global.msg[3] = "* You guys..^1.&* Your support really means a& lot to me./" - global.msg[4] = "* But..^1.&* As difficult as it is& to say this.../" - global.msg[5] = "* You guys alone can't& magically make my own& problems go away./" - global.msg[6] = "* I want to be a better& person./" - global.msg[7] = "* I don't want to be& afraid anymore./" - global.msg[8] = "* And for that to happen^1,& I have to be able to& face my own mistakes./" - global.msg[9] = "* I'm going to start& doing that now./" - global.msg[10] = "* I want to be clear./" - global.msg[11] = "* This isn't anyone else's& problem but mine./" - global.msg[12] = "* But if you don't ever& hear from me again.../" - global.msg[13] = "* If you want to know& " + chr(34) + "the truth." + chr(34) + "/" - global.msg[14] = "* Enter the door to the& north of this note./" - global.msg[15] = "* You all at least deserve& to know what I did./" - global.msg[16] = "* (That's all she wrote.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = "* (Buy chips for 25G?)& & Buy No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There were no chips left& in the machine.)/%%" - global.msg[1] = " " - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* (The vending machine& dispensed some chisps.)/%%" - if (afford == 0) - global.msg[0] = "* (You didn't have enough& gold.)/%%" - } - if (noroom == 1) - global.msg[0] = "* (You are carrying too& many items.)/%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 831: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?/" - global.msg[5] = "\E1* ... wait^1.&* Do not tell me./" - if (bs == 0) - global.msg[6] = "\E0* It is ERROR MESSAGE!& & Yes No \C" - if (bs == 1) - global.msg[6] = "\E0* Is it Butterscotch?& & Yes No \C" - if (bs == 2) - global.msg[6] = "\E0* Is it Cinnamon?& & Yes No \C" - global.msg[7] = " " - break - case 832: - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - if (bs == 2) - global.flag[46] = 0 - global.msg[0] = "\E0* Hee hee hee^1.&* I had a feeling./" - global.msg[1] = "\E1* When humans fall down& here^1, strangely..^1.&* I.../" - global.msg[2] = "\E1* I often feel like& I already know them./" - global.msg[3] = "\E0* Truthfully^1, when I first& saw you^1, I felt.../" - global.msg[4] = "\E1* ... like I was seeing& an old friend for& the first time./" - global.msg[5] = "\E0* Strange^1, is it not?/" - global.msg[6] = "* Well^1, thank you for& your selection./" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - if (bs == 2) - global.flag[46] = 1 - global.msg[0] = "\E1* Oh..^1. I see./" - global.msg[1] = "\E0* Well^1, thank you^1.&* Goodbye for now./" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* Click.../%%" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - break - case 833: - global.msg[0] = "* (Seems like you could skip& Mettaton's monologue by& turning him around now.)/" - global.msg[1] = "* (What will you do?)& & Skip Hear again\C" - global.msg[2] = " " - break - case 834: - if (global.choice == 0) - { - global.msg[0] = "* (You told Mettaton there& was something cool& behind him.)/%%" - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = " %%" - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = "* though.../" - global.msg[1] = "* one thing about you& always struck me& as kinda odd./" - global.msg[2] = "* now^1, i understand& acting in self-defense./" - global.msg[3] = "* you were thrown into& those situations& against your will./" - global.msg[4] = "* but.../" - global.msg[5] = "* sometimes.../" - global.msg[6] = "* you act like you& know what's gonna& happen./" - global.msg[7] = "* like you've already& experienced it all& before./" - global.msg[8] = "* this is an odd thing& to say^1, but.../" - global.msg[9] = "\W* if you have some sort& of \Yspecial power\W.../" - global.msg[10] = "* isn't it your& responsibility to do& the right thing?/" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & & Yes No\C" - global.msg[13] = " " - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* ah./" - global.msg[2] = "\E0* i see./" - global.msg[3] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* heh./" - global.msg[2] = "\E0* well^1, that's your& viewpoint./" - global.msg[3] = "\E2* i won't judge you& for it./" - global.msg[4] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = "* (Ring...)/" - scr_alface(1, 0) - global.msg[2] = "\E0* Hey!/" - global.msg[3] = "\E3* This um^1, doesn't have& anything to do with& guiding you..^1. but.../" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E6* Uhh^1, hey^1, would you want& to watch a human TV& show together???/" - global.msg[6] = "* Sometime???/" - global.msg[7] = "\E4* It's called^1, um^1,& M..^1.Mew Mew Kissy& Cutie.../" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = " & & Sure! ...no...\C" - global.msg[10] = " " - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = "* R-really!?/" - global.msg[2] = "\E3* It's so good^1!&* It's um^1, my favorite& show!/" - global.msg[3] = "* It's all about this& human girl named Mew Mew& who has cat ears!%" - global.msg[4] = "\E3* Which humans don't have!&* S-so she's all& sensitive about them!%" - global.msg[5] = "\E6* But like...&* Eventually!%" - global.msg[6] = "* She realizes that her& ears don't matter!%" - global.msg[7] = "* That her friends like& her despite the ears!%" - global.msg[8] = "\E7* It's really moving!%" - global.msg[9] = "\E5* Whoops, spoilers%" - global.msg[10] = "\E6* Also, this sounds& weird, but she has& the power!%" - global.msg[11] = "\E5* To control the minds& of anyone she kisses!%" - global.msg[12] = "\E3* She kisses people and& controls them to fix& her problems!!%" - global.msg[13] = "\E5* They don't remember& anything after the& kiss I mean!!%" - global.msg[14] = "\E3* BUT IF SHE MISSES& THE KISS!!!&* THEN!!%" - global.msg[15] = "\E4* Then^1, uh^1, and^1, uh^1,& also I mean^1, of course%" - global.msg[16] = "\E5* Eventually^1, she& realizes that& controlling people%" - global.msg[17] = "\E3* OKAY WELL I almost& spoiled the whole& show^1, but%" - global.msg[18] = "\E5* Uhhh^1, I think you'd& really like it!!!/" - global.msg[19] = "\E0* We should watch it^1!&* After you get through& all this!/" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* (Click...)/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E5* Um^1! Well^1!&* That's okay!/" - global.msg[2] = "* Just thought I'd!^1!&* Ask!!!/" - global.msg[3] = "\E6* B-but I think you'd& really like it!!/" - global.msg[4] = "* If you gave it a& chance!!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Click...)/%%" - } - break - case 839: - global.msg[0] = "\M1* Did y'hear!^1?&* You're back!/" - global.msg[1] = "\M0* I'll tell you a big secret./" - global.msg[2] = "\M1* I'm starting a band^1, y'hear?/" - global.msg[3] = "\M1* It's called the Red Hot& Chibi Peppers./" - global.msg[4] = "\M0* All I've thought of is& the name./" - global.msg[5] = "\M3* And I don't^1, play...&* Instruments^1, or sing./" - global.msg[6] = "\M1* Well^1!&* Do you think we'll be& popular!!!/" - global.msg[7] = " & & Yeah No\C" - global.msg[8] = " " - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = "\M0* Yeah^1, me too.../%%" - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = " %%" - } - break - case 845: - global.msg[0] = "* (It's a lamp.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - break - case 846: - if (global.choice == 0) - { - global.msg[0] = "* (There's no lightbulb.^1)&* (A flashlight is stuck in& the bulb socket.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = " %%" - break - case 847: - if (global.choice == 0) - global.msg[0] = "* (The flashlight is out of& batteries.)/%%" - else - global.msg[0] = " %%" - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = "* Hey^1, hey^1!&* Did you remember my name?/" - global.msg[1] = "* (Did you?)& & Yes No\C" - global.msg[2] = " " - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = "* Wh-WHAT!^1?&* You REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = "* Wh-WHAT!^1?&* You DON'T REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - break - case 853: - global.msg[0] = "* (It's a small white dog.^1)&* (It's fast asleep...)/" - global.msg[1] = "* (Fight the dog?)& & Yes No\C" - global.msg[2] = " " - break - case 854: - if (global.choice == 0) - { - global.msg[0] = "* (Can't fight the dog.)/" - global.msg[1] = "* (Seems like the fabric it's& sleeping on has too many& holes in it.)/" - global.msg[2] = "* (Seems like the dog needs& to " + chr(34) + "patch" + chr(34) + " the fabric.)/" - global.msg[3] = "* (Then you can fight the dog.^1)&* (... maybe.)/" - global.msg[4] = "* (Upon closer examination^1,& the holes in the fabric& seem to be growing.)/" - global.msg[5] = "* (Might take a while for the& dog to fix all of them.)/" - global.msg[6] = "* (Dogs aren't usually very& good at knitting.)/" - global.msg[7] = "* (A crocheting dog is out of& the question.)/%%" - } - else - global.msg[0] = "* (Let sleeping dogs lie^1, instead& of fighting them.^1)&* (That's how the saying goes.)/%%" - break - case 860: - global.msg[0] = "* (Knock knock)./" - if (global.flag[262] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Sea Tea" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a million ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = "* (You pour the Sea Tea under& the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 862: - global.msg[0] = "* (Knock knock)./" - if (global.flag[263] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Cinnamon Bun" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a trillion ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = "* (You flatten the Cinnamon Bun& until it's paper thin.)&* (You slide it under the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 864: - global.msg[0] = "* (You hear shuffling.)/" - global.msg[1] = "* (Seems like you could put& something under the door.)/" - global.msg[2] = " & & Put No Put\C" - global.msg[3] = " " - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - break - case 865: - if (global.choice == 0) - { - global.msg[0] = "* (...)/" - global.msg[1] = "* (But you didn't have anything& appealing.)/%%" - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = "* (You put a Hot Dog in front& of the door.)/" - global.msg[1] = "* (A white paw shoots out from& under the door.)/" - global.msg[2] = "* (It tries to pull the Hot Dog& into its room...)/" - global.msg[3] = "* (But it keeps pressing down too& hard^1, and the hot dog keeps& spinning away.)/" - global.msg[4] = "* (...)/" - global.msg[5] = "* (It finally succeeds.)/" - global.msg[6] = "* (...)/" - global.msg[7] = "* (You hear the grinding of& stone.)/" - global.msg[8] = "* (A single hushpuppy slides& out from under the door.)/" - global.msg[9] = "* (You got Hush Puppy.)/%%" - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = "* (You put a Hot Cat in front& of the door.)/" - global.msg[1] = "* (You hear growling...)/%%" - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = "* (You put a Dog Salad in front& of the door.^1)&* (It slides underneath.)/" - global.msg[1] = "* (...)/" - global.msg[2] = "* (The Dog Salad was absorbed& by the darkness.)/%%" - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = "* (You put a Dog Residue in& front of the door.)/" - global.msg[1] = "* (It slides underneath the door^1,& as if pulled by a magnet.)/" - global.msg[2] = "* (...)/" - if (noroom == 1) - global.msg[3] = "* (ZOMMM!!^1!)&* (It shoots back out at a& high speed!)/%%" - else - global.msg[3] = "* (Two Dog Residues slowly slide& back out from underneath& the door.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 866: - global.msg[0] = "* Yes^1, we know^1.&* The elevator to the city& is NOT working./" - global.msg[1] = "* Because of this incident^1, rooms& are running at a special rate!/" - global.msg[2] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[3] = " " - if (global.flag[267] == 2) - { - global.msg[0] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[1] = " " - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = "* Did you enjoy your stay?/" - global.msg[1] = "* What^1?&* Room..^1.&* Key?/" - global.msg[2] = "* No^1, we don't do that./" - global.msg[3] = "* If you leave your room^1,& you'll have to pay again./" - global.msg[4] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[5] = " " - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* Fabulous^1!&* We'll escort you to your& room!/%%" - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = "* ... that's not enough money./%%" - } - else - global.msg[0] = "* Do let us know if you& change your mind^1.&* Have a sparkular day!/%%" - break - case 870: - global.msg[0] = "* ... MY ONE TRUE LOVE?/" - global.msg[1] = "* .../" - global.msg[2] = "* (YOU LOOK BORED^1, DARLING.)/" - global.msg[3] = "* (I WANT THIS TO BE A STELLAR& PERFORMANCE^1, SO IF YOU& WON'T GIVE IT YOUR ALL...)/" - global.msg[4] = "* (THEN I'LL SKIP AHEAD FOR& THE AUDIENCE'S SAKE.)/" - global.msg[5] = "* (Perform?)& & Yeah Skip this\C" - global.msg[6] = " " - break - case 871: - if (global.choice == 0) - global.msg[0] = "* (UNDERSTOOD.^1)&* (LET'S KNOCK 'EM DEAD!)/%%" - else - { - global.msg[0] = "* (KA-SIGH...^1)&* (THE SHOW MUST GO ON!)/%%" - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = "Interesting./" - global.msg[1] = "You want to go back./" - global.msg[2] = "You want to go bac^1k&to the worl^2d&you destroyed./" - global.msg[3] = "It was you who pushed&everythin^1g to its edge./" - global.msg[4] = "It was you who led the worl^1d&to its destruction./" - global.msg[5] = "But you cannot accept it./" - global.msg[6] = "You think you are above&consequences.& Yes No\C" - global.msg[7] = "" - break - case 889: - if (global.choice == 0) - global.msg[0] = "Exactly./%%" - else - global.msg[0] = "Then what are you looking for?/%%" - break - case 890: - global.msg[0] = "Perhaps./" - global.msg[1] = "We can reach a compromise./" - global.msg[2] = "You still have somethin^1g&I want./" - global.msg[3] = "Give it to me./" - global.msg[4] = "And I will bring this&world back./" - global.msg[5] = " & & Yes No\C" - global.msg[6] = "" - break - case 891: - if (global.choice == 0) - { - global.msg[0] = "Then it is agreed./" - global.msg[1] = "You will give me your SOUL.& & Yes No\C" - global.msg[2] = " " - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = ".../" - global.msg[1] = "Then^1, it is done./%%" - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 900: - global.msg[0] = "* hey./" - global.msg[1] = "* is your refrigerator& running?/" - global.msg[2] = " & & yes no\C" - global.msg[3] = " " - break - case 901: - if (global.choice == 0) - global.msg[0] = "* nice^1.&* i'll be over to deposit& the brewskis./%%" - else - { - global.msg[0] = "* ok^1, i'll send someone& over to fix it./" - global.msg[1] = "* thanks for letting me& know./" - global.msg[2] = "* good communication is& important./%%" - } - break - case 1001: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = " * Check * Console& * Terrorize" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = " * Check * Talk& * Devour * Dinner" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = " * Check * Pick On& * Don't Pick On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = " * Check * Flirt& * Threat * Cheer" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = " * Check * Pet" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = " * Check * Pet& * Pet * Pet & * Pet * Pet " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = " * Check * Agree& * Clash * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = " * Check * Compliment& * Ignore * Steal" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = " * Check * Compliment" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = " * Check * Ditch" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = " * Check * Decorate& * Undecorate * Gift" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = " * Check * Flex& * Shoo" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = " * Check * Flex& * Feed Temmie * Talk& Flakes " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = " * Check * Flirt& * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = " * Check * Clean& * Touch * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = " * Check * Smile& * Hum * Conduct" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = " * Check * Plead& * Challenge" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = " * Check * Cry" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = " * Check * Flirt& * Approach" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = " * Check * Criticize& * Encourage * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = " * Check * Cool Down& * Heat Up * Invite" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = (((("\W * Check * Struggle& * Pay " + string(global.flag[382])) + "G& \YYour Money: ") + string(global.gold)) + "G \W ") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = " * Check * Yell" - if (global.flag[385] > 0) - global.msg[0] = "\W * Check \Y* Yellow \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = " * Check * Fake Attack" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = " * Check * Talk & * Stare * Clear Mind" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = " * Check * Talk & * Sing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = " * Check * Defuse Bomb" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = " * Check * Burn" - if (global.flag[424] > 0) - global.msg[0] = "\W * Check \Y* Turn \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = " * Check * Boast& * Pose * Heel Turn" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = " * Call * Hum& * Scream * Flex& * Unhug * Cry" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = " * Check * Pick On& * Mystify * Clean& * Hum * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = " * Check * ITEM & * STAT * CELL" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = " * Check * Join& * Refuse" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = " * Fake Hit * Recipe& * Smile * Clash" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = " * Encourage * Call & * Nerd Out * Quiz" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = " * Joke * Puzzle & * Recipe * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = " * Take break * Joke & * Judgment * Crossword" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = " * Talk * Mercy & * Hug * Preference" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = " * Talk * Mercy & * Stare * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = " * Check * Switch& * Fix * Lie Down" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = " * Check * Hiss& * Devour * Snack" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = " * Check * Applaud& * Boo * Nothing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = " * Check * Something" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = " * Check * Draw" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = " * Check * Hope & * Dream" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = " * Error" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = " * Struggle" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = "\W * Undyne " - else - global.msg[0] = "\W \Y* (Saved) \W " - if (global.flag[506] == 0) - global.msg[0] += "* Alphys \W &" - else - global.msg[0] += "\Y* (Saved)\W &" - if (global.flag[507] == 0) - global.msg[0] += "\W * Papyrus * Sans \W &" - else - global.msg[0] += "\Y * (Saved) * (Saved)\W &" - if (global.flag[508] == 0) - global.msg[0] += "\W * Toriel * Asgore \W " - else - global.msg[0] += "\Y * (Saved) * (Saved)\W " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = " * Someone else" - if (global.flag[501] == 3) - global.msg[0] = " * Asriel Dreemurr" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = "* Dialing..\E0.\TT /" - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You only wanted to& say hello...^2?&* Well then./" - global.msg[4] = "\E0* 'Hello!'/" - global.msg[5] = "* I hope that suffices^1.&* Hee hee./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 2) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You want to say& hello again?/" - global.msg[4] = "* 'Salutations!'/" - global.msg[5] = "* Is that enough?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Are you bored^1?&* I should have given& a book to you./" - global.msg[4] = "* My apologies./" - global.msg[5] = "* Why not use your& imagination to& divert yourself?/" - global.msg[6] = "* Pretend you are..^1.&* A monarch!/" - global.msg[7] = "* Rule over the leaf pile& with a fist of iron./" - global.msg[8] = "* Can you do that for me?/" - global.msg[9] = "\TS \F0 \T0 %" - global.msg[10] = "* Click.../%%" - } - if (global.flag[40] > 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Hello^1, my child./" - global.msg[4] = "\E1* Sorry^1, I do not have& much to say./" - global.msg[5] = "\E0* It was nice to hear& your voice^1, though^1./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - break - case 1502: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* Help with a puzzle^1.^1.^1.?/" - global.msg[4] = "* Um^1, you have not& left the room^1, have you?/" - global.msg[5] = "\E0* Wait patiently for& me and we can solve& it together!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1503: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* You want to know& more about me?/" - global.msg[4] = "* Well^1, I am afraid there& is not much to say./" - global.msg[5] = "\E0* I am just a silly little& lady who worries too& much!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1504: - global.flag[42] = 1 - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E8* Huh^2?&* Did you just call& me... " + chr(34) + "Mom" + chr(34) + "?/" - global.msg[4] = "\E1* Well...&* I suppose.../" - global.msg[5] = "* Would that make you& happy?/" - global.msg[6] = "* To call me..^2.&* " + chr(34) + "Mother?" + chr(34) + "/" - global.msg[7] = "\E0* Well then^1, call me& whatever you like!/!" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E8* ...^2 huh???/" - global.msg[3] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[4] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[5] = "* You can certainly find& better than an old woman& like me./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[41] == 2) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E1* Oh dear,^1 are you& serious...?/" - global.msg[3] = "\E1* I do not know if this is& pathetic,^1 or endearing./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - if (global.flag[42] == 1) - { - global.msg[3] = "\E8* And after you said you& want to call& me " + chr(34) + "mother..." + chr(34) + "/" - global.msg[4] = "\E0* You are an...^2 & \E1... " + chr(34) + "interesting" + chr(34) + "& child./" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* But nobody came./%%" - } - else - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* Nobody picked up./%%" - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* The ringing is coming from& inside your inventory./%%" - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = "* Dialing...\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hey^1, you silly& child./" - global.msg[3] = "* If you want to& talk to me^1, I am& right here./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - break - case 1508: - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* (Somewhere^1, signals deflected& by a dog.)/%%" - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = "* (No response.^1)&* (Their phone might be out& of batteries.)/%%" - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = "* (The box is aclog with the& the hair of a dog.)/%%" - break - case 2001: - global.msg[0] = "\E2* Welcome to your new& home,^1 innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of& the RUINS./%" - break - case 2002: - global.faceplate = 1 - global.msg[0] = "\E8* ...^2 huh???/" - global.msg[1] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[2] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[3] = "* You can certainly find& better than an old woman& like me./%" - break - case 3002: - global.msg[0] = "* You encountered the Dummy." - global.msg[1] = "%%%" - break - case 3003: - global.msg[0] = "* Froggit attacks you!" - global.msg[1] = "%%%" - break - case 3004: - global.msg[0] = "* Froggit hopped close!" - global.msg[1] = "%%%" - break - case 3005: - global.msg[0] = "* Whimsun approached meekly!" - global.msg[1] = "%%%" - break - case 3006: - global.msg[0] = "* Froggit and Whimsun drew near!" - global.msg[1] = "%%%" - break - case 3007: - global.msg[0] = "* Moldsmal blocked the way!" - global.msg[1] = "%%%" - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 18d1db209..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/88ae093aa1ae0c90da0d3ff1e15aa724/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/README.txt b/UndertaleModTool/Corrections/README.txt new file mode 100644 index 000000000..420b3a79a --- /dev/null +++ b/UndertaleModTool/Corrections/README.txt @@ -0,0 +1,2 @@ +This folder is for GML decompiled code corrections. +In older versions of this tool, this contained built-in code corrections for Undertale and Deltarune, but they have been obsoleted by the Underanalyzer decompiler. diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 0ba119150..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,54 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - show_debug_message((((((("layer: " + string(__i)) + " ") + __name) + "[") + string(__numels)) + "]")) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - var __inst = layer_instance_get_instance(__id) - __name = object_get_name(__inst.object_index) - show_debug_message((((" instance:" + string(__j)) + ": ") + __name)) - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - show_debug_message((" tile: " + string(__j))) - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index 1c4a7918f..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,923 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - if (global.submenu >= 30 && global.submenu <= 33) - { - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(abs((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_0") - if window_get_fullscreen() - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_1") - draw_sprite(spr_heart, 0, (xx + 145), ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text((xx + 170), (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text((xx + 430), (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text((xx + 170), (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text((xx + 170), (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text((xx + 430), (yy + 220), string_hash_to_newline(flashoff)) - draw_text((xx + 170), (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_93_0"))) - draw_text((xx + 430), (yy + 255), string_hash_to_newline(fullscreenoff)) - draw_text((xx + 170), (yy + 290), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text((xx + 430), (yy + 290), string_hash_to_newline(runoff)) - draw_text((xx + 170), (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_95_0"))) - draw_text((xx + 170), (yy + 360), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - draw_set_color(c_white) - draw_text((xx + 105), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - draw_text((xx + 325), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_114_0"))) - if obj_time.gamepad_active - draw_text((xx + 435), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), ((yy + 150) + (global.submenucoord[35] * 28))) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), ((yy + 140) + (i * 28)), string_hash_to_newline(function[i])) - if (i < 7) - { - draw_text((xx + 325), ((yy + 140) + (i * 28)), string_hash_to_newline(global.asc_def[global.input_k[i]])) - if obj_time.gamepad_active - draw_text((xx + 495), ((yy + 140) + (i * 28)), string_hash_to_newline(string(global.input_g[i]))) - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index bd6ba38ef..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1232 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 6) - global.submenucoord[30] = 6 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - with (obj_time) - fullscreen_toggle = 1 - } - if (global.submenucoord[30] == 4) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 5) - global.submenu = 34 - if (global.submenucoord[30] == 6) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - m_quit = 1 - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - game_end() - if (button2_p() && twobuffer < 0) - { - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - gamepad_exists = obj_time.gamepad_active - gamepad_id = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if keyboard_check_pressed(vk_anykey) - { - for (i = 48; i <= 90; i += 1) - { - if keyboard_check_pressed(i) - { - new_key = i - control_select_con = 2 - } - } - if keyboard_check_pressed(ord(";")) - { - new_key = 59 - control_select_con = 2 - } - if keyboard_check_pressed(vk_printscreen) - { - new_key = 44 - control_select_con = 2 - } - if keyboard_check_pressed(vk_delete) - { - new_key = 46 - control_select_con = 2 - } - if keyboard_check_pressed(ord("/")) - { - new_key = 47 - control_select_con = 2 - } - if keyboard_check_pressed(ord("\\")) - { - new_key = 92 - control_select_con = 2 - } - if keyboard_check_pressed(ord("]")) - { - new_key = 93 - control_select_con = 2 - } - if keyboard_check_pressed(ord("[")) - { - new_key = 91 - control_select_con = 2 - } - if keyboard_check_pressed(vk_numpad0) - { - new_key = 96 - control_select_con = 2 - } - if keyboard_check_pressed(vk_insert) - { - new_key = 45 - control_select_con = 2 - } - if keyboard_check_pressed(ord("=")) - { - new_key = 61 - control_select_con = 2 - } - if keyboard_check_pressed(vk_left) - { - new_key = 37 - control_select_con = 2 - } - if keyboard_check_pressed(vk_right) - { - new_key = 39 - control_select_con = 2 - } - if keyboard_check_pressed(vk_up) - { - new_key = 38 - control_select_con = 2 - } - if keyboard_check_pressed(vk_down) - { - new_key = 40 - control_select_con = 2 - } - if keyboard_check_pressed(vk_return) - { - new_key = 13 - control_select_con = 2 - } - if keyboard_check_pressed(vk_shift) - { - new_key = 16 - control_select_con = 2 - } - if keyboard_check_pressed(vk_control) - { - new_key = 17 - control_select_con = 2 - } - if keyboard_check_pressed(vk_backspace) - { - new_key = 8 - control_select_con = 2 - } - if keyboard_check_pressed(vk_alt) - { - new_key = 18 - control_select_con = 2 - } - if keyboard_check_pressed(vk_escape) - { - new_key = -1 - control_select_con = 0 - } - } - if (gamepad_exists == 1 && control_select_con == 1) - { - gpc = gamepad_button_count(gamepad_id) - if (gpc >= 40) - gpc = 40 - for (i = 0; i <= gpc; i += 1) - { - if gamepad_button_check_pressed(gamepad_id, i) - { - new_gamepad_key = i - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - onebuffer = 2 - twobuffer = 2 - ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_close() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - global.submenucoord[21] -= 1 - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - global.submenucoord[21] += 1 - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 1 - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - else if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[2] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 1 - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[4] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 2 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - global.submenu = 5 - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - deschaver = 1 - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - } - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - pagemax[0] -= 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - pagemax[1] -= 1 - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - pagemax[0] += 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - pagemax[1] += 1 - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - scr_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index c5cd6bc0b..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,201 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 5008a9c96..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,634 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } -} -if (global.interact == 0) -{ - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), (y + py), obj_solidblock) - xymeet = 1 - if place_meeting((x + px), y, obj_solidblock) - { - if place_meeting((x + px), y, obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - snd_play(snd_step1) - stepped = true - } - if (image_index == 0 || image_index == 2) - stepped = false - if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} -if scr_debug() -{ - if keyboard_check_pressed(ord("P")) - room_speed = 60 - if keyboard_check_pressed(ord("O")) - room_speed = 3 - if (keyboard_check(ord("3")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_dark1) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 2 - global.interact = 0 - global.darkzone = true - room_goto(room_field_checkers5) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_castle_tutorial) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_field1) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_area3) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_fightsusie) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("D"))) - { - global.char[0] = 2 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.plot = 154 - room_goto(room_cc_prison_cells) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.plot = 165 - scr_keyitemget(5) - global.tempflag[4] = 1 - repeat (13) - scr_weaponget(5) - room_goto(room_cc_prison_prejoker) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.flag[248] = 0 - room_goto(room_cc_kingbattle) - } - if (keyboard_check(ord("2")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_town_krisyard) - } - if (keyboard_check(ord("3")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_schooldoor) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_school_unusedroom) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_school) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_north) - } - if keyboard_check_pressed(vk_insert) - room_goto_next() - if keyboard_check_pressed(vk_delete) - room_goto_previous() -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_get_element.gml deleted file mode 100644 index 0cccd2b46..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index 1d09600a3..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,21 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) - - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index f6477c8d7..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,395 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 0ba119150..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,54 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - show_debug_message((((((("layer: " + string(__i)) + " ") + __name) + "[") + string(__numels)) + "]")) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - var __inst = layer_instance_get_instance(__id) - __name = object_get_name(__inst.object_index) - show_debug_message((((" instance:" + string(__j)) + ": ") + __name)) - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - show_debug_message((" tile: " + string(__j))) - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index 1c4a7918f..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,923 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - if (global.submenu >= 30 && global.submenu <= 33) - { - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(abs((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_0") - if window_get_fullscreen() - fullscreenoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_82_1") - draw_sprite(spr_heart, 0, (xx + 145), ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text((xx + 170), (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text((xx + 430), (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text((xx + 170), (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text((xx + 170), (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text((xx + 430), (yy + 220), string_hash_to_newline(flashoff)) - draw_text((xx + 170), (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_93_0"))) - draw_text((xx + 430), (yy + 255), string_hash_to_newline(fullscreenoff)) - draw_text((xx + 170), (yy + 290), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text((xx + 430), (yy + 290), string_hash_to_newline(runoff)) - draw_text((xx + 170), (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_95_0"))) - draw_text((xx + 170), (yy + 360), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - draw_set_color(c_white) - draw_text((xx + 105), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - draw_text((xx + 325), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_114_0"))) - if obj_time.gamepad_active - draw_text((xx + 435), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), ((yy + 150) + (global.submenucoord[35] * 28))) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), ((yy + 140) + (i * 28)), string_hash_to_newline(function[i])) - if (i < 7) - { - draw_text((xx + 325), ((yy + 140) + (i * 28)), string_hash_to_newline(global.asc_def[global.input_k[i]])) - if obj_time.gamepad_active - draw_text((xx + 495), ((yy + 140) + (i * 28)), string_hash_to_newline(string(global.input_g[i]))) - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index bd6ba38ef..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1232 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 6) - global.submenucoord[30] = 6 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - with (obj_time) - fullscreen_toggle = 1 - } - if (global.submenucoord[30] == 4) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 5) - global.submenu = 34 - if (global.submenucoord[30] == 6) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - m_quit = 1 - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - game_end() - if (button2_p() && twobuffer < 0) - { - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - gamepad_exists = obj_time.gamepad_active - gamepad_id = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if keyboard_check_pressed(vk_anykey) - { - for (i = 48; i <= 90; i += 1) - { - if keyboard_check_pressed(i) - { - new_key = i - control_select_con = 2 - } - } - if keyboard_check_pressed(ord(";")) - { - new_key = 59 - control_select_con = 2 - } - if keyboard_check_pressed(vk_printscreen) - { - new_key = 44 - control_select_con = 2 - } - if keyboard_check_pressed(vk_delete) - { - new_key = 46 - control_select_con = 2 - } - if keyboard_check_pressed(ord("/")) - { - new_key = 47 - control_select_con = 2 - } - if keyboard_check_pressed(ord("\\")) - { - new_key = 92 - control_select_con = 2 - } - if keyboard_check_pressed(ord("]")) - { - new_key = 93 - control_select_con = 2 - } - if keyboard_check_pressed(ord("[")) - { - new_key = 91 - control_select_con = 2 - } - if keyboard_check_pressed(vk_numpad0) - { - new_key = 96 - control_select_con = 2 - } - if keyboard_check_pressed(vk_insert) - { - new_key = 45 - control_select_con = 2 - } - if keyboard_check_pressed(ord("=")) - { - new_key = 61 - control_select_con = 2 - } - if keyboard_check_pressed(vk_left) - { - new_key = 37 - control_select_con = 2 - } - if keyboard_check_pressed(vk_right) - { - new_key = 39 - control_select_con = 2 - } - if keyboard_check_pressed(vk_up) - { - new_key = 38 - control_select_con = 2 - } - if keyboard_check_pressed(vk_down) - { - new_key = 40 - control_select_con = 2 - } - if keyboard_check_pressed(vk_return) - { - new_key = 13 - control_select_con = 2 - } - if keyboard_check_pressed(vk_shift) - { - new_key = 16 - control_select_con = 2 - } - if keyboard_check_pressed(vk_control) - { - new_key = 17 - control_select_con = 2 - } - if keyboard_check_pressed(vk_backspace) - { - new_key = 8 - control_select_con = 2 - } - if keyboard_check_pressed(vk_alt) - { - new_key = 18 - control_select_con = 2 - } - if keyboard_check_pressed(vk_escape) - { - new_key = -1 - control_select_con = 0 - } - } - if (gamepad_exists == 1 && control_select_con == 1) - { - gpc = gamepad_button_count(gamepad_id) - if (gpc >= 40) - gpc = 40 - for (i = 0; i <= gpc; i += 1) - { - if gamepad_button_check_pressed(gamepad_id, i) - { - new_gamepad_key = i - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - onebuffer = 2 - twobuffer = 2 - ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_close() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - global.submenucoord[21] -= 1 - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - global.submenucoord[21] += 1 - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 1 - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - global.submenucoord[2] += 2 - else if (global.item[(global.submenucoord[2] + 1)] != 0) - global.submenucoord[2] += 1 - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[2] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[2] -= 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 1 - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - global.submenucoord[4] += 2 - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - global.submenucoord[4] += 1 - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - global.submenucoord[4] -= 2 - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - global.submenucoord[4] -= 2 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - global.submenu = 5 - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - deschaver = 1 - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - } - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - pagemax[0] -= 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - pagemax[1] -= 1 - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - pagemax[0] += 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - pagemax[1] += 1 - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - scr_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index c5cd6bc0b..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,201 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 5008a9c96..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,634 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } -} -if (global.interact == 0) -{ - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), (y + py), obj_solidblock) - xymeet = 1 - if place_meeting((x + px), y, obj_solidblock) - { - if place_meeting((x + px), y, obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_solidblock) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - snd_play(snd_step1) - stepped = true - } - if (image_index == 0 || image_index == 2) - stepped = false - if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} -if scr_debug() -{ - if keyboard_check_pressed(ord("P")) - room_speed = 60 - if keyboard_check_pressed(ord("O")) - room_speed = 3 - if (keyboard_check(ord("3")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_dark1) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 2 - global.interact = 0 - global.darkzone = true - room_goto(room_field_checkers5) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_castle_tutorial) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_field1) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_area3) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("D"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - room_goto(room_forest_fightsusie) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("D"))) - { - global.char[0] = 2 - global.char[1] = 0 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.plot = 154 - room_goto(room_cc_prison_cells) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 3 - global.char[2] = 0 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("7")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - room_goto(room_battletest) - } - if (keyboard_check(ord("8")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.plot = 165 - scr_keyitemget(5) - global.tempflag[4] = 1 - repeat (13) - scr_weaponget(5) - room_goto(room_cc_prison_prejoker) - } - if (keyboard_check(ord("9")) && keyboard_check(ord("J"))) - { - global.char[0] = 1 - global.char[1] = 2 - global.char[2] = 3 - global.interact = 0 - global.darkzone = true - global.charauto[2] = 0 - global.flag[248] = 0 - room_goto(room_cc_kingbattle) - } - if (keyboard_check(ord("2")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_town_krisyard) - } - if (keyboard_check(ord("3")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_schooldoor) - } - if (keyboard_check(ord("4")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - room_goto(room_school_unusedroom) - } - if (keyboard_check(ord("5")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_school) - } - if (keyboard_check(ord("6")) && keyboard_check(ord("W"))) - { - global.interact = 0 - global.darkzone = false - global.plot = 251 - room_goto(room_town_north) - } - if keyboard_check_pressed(vk_insert) - room_goto_next() - if keyboard_check_pressed(vk_delete) - room_goto_previous() -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index 0cccd2b46..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index 1d09600a3..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,21 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) - - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index f6477c8d7..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,395 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/a88a2db3a68c714ca2b1ff57ac08a032/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index f2890f546..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,939 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index 169e54ff6..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1277 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - ossafe_savedata_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 4d10561e9..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,479 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_84_debug.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_84_debug.gml deleted file mode 100644 index da6bc884f..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_84_debug.gml +++ /dev/null @@ -1,847 +0,0 @@ -var strings; -var process = argument0 -if (!variable_global_exists("chemg_menu_depth")) -{ - global.chemg_menu_indices = array_create(0) - global.chemg_menu_indices[0] = 0 - global.chemg_menu_depth = 0 - global.chemg_god_mode = 0 - global.chemg_show_room = 1 - global.chemg_font_test = 0 - var parent = ds_list_create() - show_debug_message("init debug") - var group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Options") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[loadj]", "", "reload japanese") - scr_84_add_menu_item(parent, "[lang]", "ja", "use japanese") - scr_84_add_menu_item(parent, "[lang]", "en", "use english") - scr_84_add_menu_item(parent, "[showroom]", "", "toggle room name") - scr_84_add_menu_item(parent, "[restart]", "", "restart room") - scr_84_add_menu_item(parent, "[god]", "", "god mode") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[item]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[item]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[item]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[item]", 4, "Manual") - scr_84_add_menu_item(parent, "[item]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[item]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[item]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[item]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[item]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[item]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[item]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[item]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[item]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[item]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[item]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give light item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[lightitem]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[lightitem]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[lightitem]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[lightitem]", 4, "Manual") - scr_84_add_menu_item(parent, "[lightitem]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[lightitem]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[lightitem]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[lightitem]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[lightitem]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[lightitem]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[lightitem]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[lightitem]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[lightitem]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[lightitem]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[lightitem]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give key item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[keyitem]", 1, "Cell Phone") - scr_84_add_menu_item(parent, "[keyitem]", 2, "Egg") - scr_84_add_menu_item(parent, "[keyitem]", 3, "BrokenCake") - scr_84_add_menu_item(parent, "[keyitem]", 4, "Broken Key A") - scr_84_add_menu_item(parent, "[keyitem]", 5, "Door Key") - scr_84_add_menu_item(parent, "[keyitem]", 6, "Broken Key B") - scr_84_add_menu_item(parent, "[keyitem]", 7, "Broken Key C") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give weapon") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[weaponitem]", 1, "Wood Blade") - scr_84_add_menu_item(parent, "[weaponitem]", 2, "Mane Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 3, "Red Scarf") - scr_84_add_menu_item(parent, "[weaponitem]", 4, "EverybodyWeapon") - scr_84_add_menu_item(parent, "[weaponitem]", 5, "Spookysword") - scr_84_add_menu_item(parent, "[weaponitem]", 6, "Brave Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 7, "Devilsknife") - scr_84_add_menu_item(parent, "[weaponitem]", 8, "Trefoil") - scr_84_add_menu_item(parent, "[weaponitem]", 9, "Ragger") - scr_84_add_menu_item(parent, "[weaponitem]", 10, "DaintyScarf") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give armor") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[armoritem]", 1, "Amber Card") - scr_84_add_menu_item(parent, "[armoritem]", 2, "Dice Brace") - scr_84_add_menu_item(parent, "[armoritem]", 3, "Pink Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 4, "White Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 5, "IronShackle") - scr_84_add_menu_item(parent, "[armoritem]", 6, "MouseToken") - scr_84_add_menu_item(parent, "[armoritem]", 7, "Jevilstail") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[phone]", "", "give phone number") - scr_84_add_menu_item(parent, "[gold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[gold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[lightgold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[lightgold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[fonttest]", "", "font test") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Rooms") - scr_84_push(parent) - parent = group - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - scr_84_add_menu_item(parent, "[room]", 145, "room_splashscreen") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "rooms") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 0, "ROOM_INITIALIZE") - scr_84_add_menu_item(parent, "[room]", 1, "PLACE_CONTACT") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[room]", 141, "room_empty") - scr_84_add_menu_item(parent, "[room]", 142, "room_man") - scr_84_add_menu_item(parent, "[roomdark]", 143, "room_DARKempty") - scr_84_add_menu_item(parent, "[room]", 144, "room_battletest") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - parent = scr_84_pop() - global.chemg_menus = parent -} -if process - return global.chemg_menu_depth > 0; -if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_stickr) -{ - global.chemg_menu_depth = 1 - global.chemg_interact = global.interact - global.chemg_yoffset = 0 - global.interact = 0 -} -if (global.chemg_menu_depth > 0) -{ - parent = global.chemg_menus - var change = 0 - var depth_ndx = (global.chemg_menu_depth - 1) - var i = 0 - do - { - var choice_ndx = global.chemg_menu_indices[i] - var choice = ds_list_find_value(parent, choice_ndx * 3) - var choice_data = ds_list_find_value(parent, choice_ndx * 3 + 1) - var choice_name = ds_list_find_value(parent, choice_ndx * 3 + 2) - i += 1 - if i == global.chemg_menu_depth - { - break; - } - parent = choice_data - } - until false; - var num_choices = (ds_list_size(parent) / 3) - if (keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padu)) - change = -1 - else if (keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padd)) - change = 1 - else if (keyboard_check_pressed(vk_return) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face2)) - { - if (choice == "[group]") - { - global.chemg_menu_indices[global.chemg_menu_depth] = 0 - global.chemg_menu_depth += 1 - } - else if (choice == "[loadj]") - { - var type = scr_84_lang_load() - show_debug_message((("loaded " + type) + " lang file")) - show_message((("loaded " + type) + " lang file")) - global.chemg_menu_depth = 0 - } - else if (choice == "[room]") - { - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[roomdark]") - { - show_debug_message(("room_goto: " + choice_name)) - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[lang]") - { - show_debug_message(("switch lang: " + choice_data)) - global.lang = choice_data - global.chemg_menu_depth = 0 - scr_84_init_localization() - room_restart() - } - else if (choice == "[restart]") - { - show_debug_message("restart room") - room_restart() - global.chemg_menu_depth = 0 - } - else if (choice == "[god]") - global.chemg_god_mode = (1 - global.chemg_god_mode) - else if (choice == "[lightitem]") - { - if (scr_litemcheck(choice_data) == 0) - scr_litemget(choice_data) - } - else if (choice == "[item]") - { - if (scr_itemcheck(choice_data) == 0) - scr_itemget(choice_data) - } - else if (choice == "[keyitem]") - { - if (scr_keyitemcheck(choice_data) == 0) - scr_keyitemget(choice_data) - } - else if (choice == "[weaponitem]") - { - if (scr_weaponcheck_inventory(choice_data) == 0) - scr_weaponget(choice_data) - } - else if (choice == "[armoritem]") - { - if (scr_armorcheck_inventory(choice_data) == 0) - scr_armorget(choice_data) - } - else if (choice == "[phone]") - scr_phoneadd(202) - else if (choice == "[gold]") - global.gold = max(0, (global.gold + choice_data)) - else if (choice == "[lightgold]") - global.lgold = max(0, (global.lgold + choice_data)) - else if (choice == "[showroom]") - global.chemg_show_room = (!global.chemg_show_room) - else if (choice == "[fonttest]") - { - global.chemg_font_test = (!global.chemg_font_test) - global.chemg_menu_depth = 0 - } - else - show_debug_message(("unknown menu cmd:" + choice)) - } - else if (keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face1)) - { - if (global.chemg_menu_depth > 0) - global.chemg_menu_depth -= 1 - if (global.chemg_menu_depth == 0) - global.interact = global.chemg_interact - } - for (i = 0; i < 10; i += 1) - { - global.input_pressed[i] = 0 - global.input_held[i] = 0 - global.input_released[i] = 0 - } - keyboard_clear(vk_up) - keyboard_clear(vk_down) - keyboard_clear(vk_left) - keyboard_clear(vk_right) - keyboard_clear(vk_escape) - keyboard_clear(vk_return) - if (change != 0) - global.chemg_menu_indices[depth_ndx] = (((global.chemg_menu_indices[depth_ndx] + num_choices) + change) % num_choices) - draw_set_font(fnt_main) - draw_set_colour(c_white) - draw_set_halign(fa_left) - draw_set_valign(fa_top) - var yy = global.chemg_yoffset - var vspacing = 15 - scr_84_draw_text_outline(10, yy, (((("====[ menu ]====[ gold: " + string(global.gold)) + " light gold: ") + string(global.lgold)) + " ]")) - yy += vspacing - global.chemg_max_depth = -1 - global.chemg_cursor_y = 0 - scr_84_draw_menu(global.chemg_menus, 10, yy, vspacing, global.chemg_menu_indices, 0, (global.chemg_menu_depth - 1)) - global.chemg_yoffset = min(10, (400 - (global.chemg_cursor_y - global.chemg_yoffset))) -} -var chemg_room_name = room_get_name(room) -if (global.chemg_god_mode > 0) - chemg_room_name = (chemg_room_name + "[god]") -if global.chemg_show_room -{ - draw_set_font(fnt_main) - draw_set_colour(c_white) - var chemg_x = (635 - string_width(chemg_room_name)) - var chemg_y = 5 - scr_84_draw_text_outline(chemg_x, chemg_y, chemg_room_name) -} -if global.chemg_font_test -{ - if (!variable_global_exists("chemg_font_init")) - { - global.chemg_font_init = 1 - var ft = fnt_tinynoelle - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = "NORMAL FONT" - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = "SLOWER, SILENT" - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = "normal enemy font." - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = "battle dialogue" - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = "NORMAL MAIN FONT" - ft[array_length_1d(ft)] = fnt_ja_small - ft[array_length_1d(ft)] = "NORMAL FONT BIG" - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = "toriel font" - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = "toriel font slow" - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = "susie font" - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = "ralsei font" - ft[array_length_1d(ft)] = 12 - ft[array_length_1d(ft)] = "noelle font" - ft[array_length_1d(ft)] = 13 - ft[array_length_1d(ft)] = "berdly font" - ft[array_length_1d(ft)] = 14 - ft[array_length_1d(ft)] = "sans font" - ft[array_length_1d(ft)] = 15 - ft[array_length_1d(ft)] = "pap font" - ft[array_length_1d(ft)] = 16 - ft[array_length_1d(ft)] = ")??? font" - ft[array_length_1d(ft)] = 17 - ft[array_length_1d(ft)] = "undyne font" - ft[array_length_1d(ft)] = 18 - ft[array_length_1d(ft)] = "asgore font" - ft[array_length_1d(ft)] = 19 - ft[array_length_1d(ft)] = "lancer font" - ft[array_length_1d(ft)] = 20 - ft[array_length_1d(ft)] = "alphys font" - ft[array_length_1d(ft)] = 21 - ft[array_length_1d(ft)] = "temmie font" - ft[array_length_1d(ft)] = 22 - ft[array_length_1d(ft)] = "alphys font small" - ft[array_length_1d(ft)] = 23 - ft[array_length_1d(ft)] = "noelle font small" - ft[array_length_1d(ft)] = 30 - ft[array_length_1d(ft)] = "susie dark world" - ft[array_length_1d(ft)] = 31 - ft[array_length_1d(ft)] = "ralsei dark world" - ft[array_length_1d(ft)] = 32 - ft[array_length_1d(ft)] = "lancer dark world" - ft[array_length_1d(ft)] = 33 - ft[array_length_1d(ft)] = "king dark world" - ft[array_length_1d(ft)] = 35 - ft[array_length_1d(ft)] = "joker dark world" - ft[array_length_1d(ft)] = 36 - ft[array_length_1d(ft)] = "NORMAL FONT SILENT" - ft[array_length_1d(ft)] = 37 - ft[array_length_1d(ft)] = "susie dark world slow, spaced." - ft[array_length_1d(ft)] = 40 - ft[array_length_1d(ft)] = "inteo" - ft[array_length_1d(ft)] = 41 - ft[array_length_1d(ft)] = "intro slower" - ft[array_length_1d(ft)] = 42 - ft[array_length_1d(ft)] = "big silent slower" - ft[array_length_1d(ft)] = 45 - ft[array_length_1d(ft)] = "battle dialogue ral" - ft[array_length_1d(ft)] = 46 - ft[array_length_1d(ft)] = "battle dialogue lan" - ft[array_length_1d(ft)] = 47 - ft[array_length_1d(ft)] = "battle dialogue sus" - ft[array_length_1d(ft)] = 48 - ft[array_length_1d(ft)] = "king dark world battle" - ft[array_length_1d(ft)] = 50 - ft[array_length_1d(ft)] = "enemy" - ft[array_length_1d(ft)] = 51 - ft[array_length_1d(ft)] = "hellish yak text" - ft[array_length_1d(ft)] = 52 - ft[array_length_1d(ft)] = "hellish yak text 2" - ft[array_length_1d(ft)] = 53 - ft[array_length_1d(ft)] = "enemy: Susie" - ft[array_length_1d(ft)] = 54 - ft[array_length_1d(ft)] = "enemy: Susie 2" - ft[array_length_1d(ft)] = 55 - ft[array_length_1d(ft)] = "rudy font" - ft[array_length_1d(ft)] = 60 - ft[array_length_1d(ft)] = "SLOWER, SILENT 2" - ft[array_length_1d(ft)] = 666 - ft[array_length_1d(ft)] = "GLOW TEXT" - ft[array_length_1d(ft)] = 667 - ft[array_length_1d(ft)] = "GLOW TEXT 2" - ft[array_length_1d(ft)] = -1 - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = -2 - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = -3 - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = -4 - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = -5 - ft[array_length_1d(ft)] = fnt_tinynoelle - ft[array_length_1d(ft)] = -6 - ft[array_length_1d(ft)] = fnt_ja_tinynoelle - ft[array_length_1d(ft)] = -7 - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = -8 - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = -9 - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = -10 - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = -11 - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = -12 - ft[array_length_1d(ft)] = fnt_ja_small - global.chemg_font_types = ft - global.chemg_font_type_ndx = 0 - } - ft = global.chemg_font_types - var num_types = (array_length_1d(ft) / 2) - change = 0 - if (keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padr)) - change = 1 - else if (keyboard_check_pressed(vk_left) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padl)) - change = -1 - global.chemg_font_type_ndx = (((global.chemg_font_type_ndx + change) + num_types) % num_types) - var fndx = (global.chemg_font_type_ndx * 2) - var xx = 10 - yy = 250 - strings[0] = "Pack my box with five" - strings[1] = "dozen liquor jugs." - strings[2] = "これは日本語です。" - strings[3] = "魔物に食われない!" - var typer = ft[fndx] - if (typer >= 0) - { - global.typer = typer - scr_texttype() - var font = myfont - var msg = ((((("(" + string(global.typer)) + ") ") + ft[(fndx + 1)]) + ", font: ") + font_get_name(myfont)) - vspacing = vspace - } - else - { - font = ft[(fndx + 1)] - msg = ("font: " + font_get_name(font)) - vspacing = (font_get_size(font) + 2) - } - draw_set_font(font) - draw_set_colour(c_white) - for (i = 0; i < array_length_1d(strings); i += 1) - { - var str = strings[i] - if (typer >= 0) - { - var len = string_length(str) - var wx = xx - for (var j = 1; j <= len; j += 1) - { - var mychar = string_copy(str, j, 1) - draw_text(wx, ((yy + 20) + (i * vspacing)), mychar) - wx += hspace - if (global.lang == "ja") - { - if (ord(mychar) < 256 || (ord(mychar) >= 65377 && ord(mychar) <= 65439)) - wx -= (hspace / 2) - } - } - } - else - draw_text(xx, ((yy + 20) + (i * vspacing)), str) - } - draw_set_colour(c_white) - draw_set_font(fnt_main) - draw_text(xx, yy, ("<-/-> to change typer: " + msg)) -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index f2890f546..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,939 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index 169e54ff6..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1277 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 -if scr_debug() -{ - if keyboard_check_pressed(ord("S")) - instance_create(0, 0, obj_savemenu) - if keyboard_check_pressed(ord("L")) - ossafe_savedata_load() - if keyboard_check_pressed(ord("R")) - game_restart_true() -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 4d10561e9..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,479 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - with (obj_overworldc) - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_84_debug.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_84_debug.gml deleted file mode 100644 index da6bc884f..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_84_debug.gml +++ /dev/null @@ -1,847 +0,0 @@ -var strings; -var process = argument0 -if (!variable_global_exists("chemg_menu_depth")) -{ - global.chemg_menu_indices = array_create(0) - global.chemg_menu_indices[0] = 0 - global.chemg_menu_depth = 0 - global.chemg_god_mode = 0 - global.chemg_show_room = 1 - global.chemg_font_test = 0 - var parent = ds_list_create() - show_debug_message("init debug") - var group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Options") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[loadj]", "", "reload japanese") - scr_84_add_menu_item(parent, "[lang]", "ja", "use japanese") - scr_84_add_menu_item(parent, "[lang]", "en", "use english") - scr_84_add_menu_item(parent, "[showroom]", "", "toggle room name") - scr_84_add_menu_item(parent, "[restart]", "", "restart room") - scr_84_add_menu_item(parent, "[god]", "", "god mode") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[item]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[item]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[item]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[item]", 4, "Manual") - scr_84_add_menu_item(parent, "[item]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[item]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[item]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[item]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[item]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[item]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[item]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[item]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[item]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[item]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[item]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give light item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[lightitem]", 1, "Dark Candy") - scr_84_add_menu_item(parent, "[lightitem]", 2, "ReviveMint") - scr_84_add_menu_item(parent, "[lightitem]", 3, "Glowshard") - scr_84_add_menu_item(parent, "[lightitem]", 4, "Manual") - scr_84_add_menu_item(parent, "[lightitem]", 5, "BrokenCake") - scr_84_add_menu_item(parent, "[lightitem]", 6, "Top Cake") - scr_84_add_menu_item(parent, "[lightitem]", 7, "SpinCake") - scr_84_add_menu_item(parent, "[lightitem]", 8, "Darkburger") - scr_84_add_menu_item(parent, "[lightitem]", 9, "LancerCookie") - scr_84_add_menu_item(parent, "[lightitem]", 10, "GigaSalad") - scr_84_add_menu_item(parent, "[lightitem]", 11, "Clubswich") - scr_84_add_menu_item(parent, "[lightitem]", 12, "HeartsDonut") - scr_84_add_menu_item(parent, "[lightitem]", 13, "ChocDiamond") - scr_84_add_menu_item(parent, "[lightitem]", 14, "FavSandwich") - scr_84_add_menu_item(parent, "[lightitem]", 15, "RouxlsRoux") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give key item") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[keyitem]", 1, "Cell Phone") - scr_84_add_menu_item(parent, "[keyitem]", 2, "Egg") - scr_84_add_menu_item(parent, "[keyitem]", 3, "BrokenCake") - scr_84_add_menu_item(parent, "[keyitem]", 4, "Broken Key A") - scr_84_add_menu_item(parent, "[keyitem]", 5, "Door Key") - scr_84_add_menu_item(parent, "[keyitem]", 6, "Broken Key B") - scr_84_add_menu_item(parent, "[keyitem]", 7, "Broken Key C") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give weapon") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[weaponitem]", 1, "Wood Blade") - scr_84_add_menu_item(parent, "[weaponitem]", 2, "Mane Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 3, "Red Scarf") - scr_84_add_menu_item(parent, "[weaponitem]", 4, "EverybodyWeapon") - scr_84_add_menu_item(parent, "[weaponitem]", 5, "Spookysword") - scr_84_add_menu_item(parent, "[weaponitem]", 6, "Brave Ax") - scr_84_add_menu_item(parent, "[weaponitem]", 7, "Devilsknife") - scr_84_add_menu_item(parent, "[weaponitem]", 8, "Trefoil") - scr_84_add_menu_item(parent, "[weaponitem]", 9, "Ragger") - scr_84_add_menu_item(parent, "[weaponitem]", 10, "DaintyScarf") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "give armor") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[armoritem]", 1, "Amber Card") - scr_84_add_menu_item(parent, "[armoritem]", 2, "Dice Brace") - scr_84_add_menu_item(parent, "[armoritem]", 3, "Pink Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 4, "White Ribbon") - scr_84_add_menu_item(parent, "[armoritem]", 5, "IronShackle") - scr_84_add_menu_item(parent, "[armoritem]", 6, "MouseToken") - scr_84_add_menu_item(parent, "[armoritem]", 7, "Jevilstail") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[phone]", "", "give phone number") - scr_84_add_menu_item(parent, "[gold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[gold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[lightgold]", 25, "+25 gold") - scr_84_add_menu_item(parent, "[lightgold]", -25, "-25 gold") - scr_84_add_menu_item(parent, "[fonttest]", "", "font test") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "Rooms") - scr_84_push(parent) - parent = group - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - scr_84_add_menu_item(parent, "[room]", 145, "room_splashscreen") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "rooms") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 0, "ROOM_INITIALIZE") - scr_84_add_menu_item(parent, "[room]", 1, "PLACE_CONTACT") - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "myhouse") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 2, "room_krisroom") - scr_84_add_menu_item(parent, "[room]", 3, "room_krishallway") - scr_84_add_menu_item(parent, "[room]", 4, "room_torroom") - scr_84_add_menu_item(parent, "[room]", 5, "room_torhouse") - scr_84_add_menu_item(parent, "[room]", 6, "room_torbathroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_exterior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 7, "room_town_krisyard") - scr_84_add_menu_item(parent, "[room]", 8, "room_town_northwest") - scr_84_add_menu_item(parent, "[room]", 9, "room_town_north") - scr_84_add_menu_item(parent, "[room]", 10, "room_beach") - scr_84_add_menu_item(parent, "[room]", 11, "room_town_mid") - scr_84_add_menu_item(parent, "[room]", 12, "room_town_apartments") - scr_84_add_menu_item(parent, "[room]", 13, "room_town_south") - scr_84_add_menu_item(parent, "[room]", 14, "room_town_school") - scr_84_add_menu_item(parent, "[room]", 15, "room_town_church") - scr_84_add_menu_item(parent, "[room]", 16, "room_graveyard") - scr_84_add_menu_item(parent, "[room]", 17, "room_town_shelter") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "school") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 28, "room_torielclass") - scr_84_add_menu_item(parent, "[room]", 29, "room_schoollobby") - scr_84_add_menu_item(parent, "[room]", 30, "room_alphysclass") - scr_84_add_menu_item(parent, "[room]", 31, "room_schooldoor") - scr_84_add_menu_item(parent, "[room]", 32, "room_insidecloset") - scr_84_add_menu_item(parent, "[room]", 33, "room_school_unusedroom") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark_start") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 34, "room_dark1") - scr_84_add_menu_item(parent, "[roomdark]", 35, "room_dark1a") - scr_84_add_menu_item(parent, "[roomdark]", 36, "room_dark2") - scr_84_add_menu_item(parent, "[roomdark]", 37, "room_dark3") - scr_84_add_menu_item(parent, "[roomdark]", 38, "room_dark3a") - scr_84_add_menu_item(parent, "[roomdark]", 39, "room_dark_wobbles") - scr_84_add_menu_item(parent, "[roomdark]", 40, "room_dark_eyepuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 41, "room_dark7") - scr_84_add_menu_item(parent, "[roomdark]", 42, "room_dark_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 43, "room_dark_chase2") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "ralsei_castle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 44, "room_castle_outskirts") - scr_84_add_menu_item(parent, "[roomdark]", 45, "room_castle_town") - scr_84_add_menu_item(parent, "[roomdark]", 46, "room_castle_front") - scr_84_add_menu_item(parent, "[roomdark]", 47, "room_castle_tutorial") - scr_84_add_menu_item(parent, "[roomdark]", 48, "room_castle_darkdoor") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark forest") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 73, "room_forest_savepoint1") - scr_84_add_menu_item(parent, "[roomdark]", 74, "room_forest_area0") - scr_84_add_menu_item(parent, "[roomdark]", 75, "room_forest_area1") - scr_84_add_menu_item(parent, "[roomdark]", 76, "room_forest_area2") - scr_84_add_menu_item(parent, "[roomdark]", 77, "room_forest_area2A") - scr_84_add_menu_item(parent, "[roomdark]", 78, "room_forest_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 79, "room_forest_beforeclover") - scr_84_add_menu_item(parent, "[roomdark]", 80, "room_forest_area3A") - scr_84_add_menu_item(parent, "[roomdark]", 81, "room_forest_area3") - scr_84_add_menu_item(parent, "[roomdark]", 82, "room_forest_savepoint2") - scr_84_add_menu_item(parent, "[roomdark]", 83, "room_forest_smith") - scr_84_add_menu_item(parent, "[roomdark]", 84, "room_forest_area4") - scr_84_add_menu_item(parent, "[roomdark]", 85, "room_forest_dancers1") - scr_84_add_menu_item(parent, "[roomdark]", 86, "room_forest_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 87, "room_forest_thrashmaker") - scr_84_add_menu_item(parent, "[roomdark]", 88, "room_forest_starwalker") - scr_84_add_menu_item(parent, "[roomdark]", 89, "room_forest_area5") - scr_84_add_menu_item(parent, "[roomdark]", 90, "room_forest_savepoint_relax") - scr_84_add_menu_item(parent, "[roomdark]", 91, "room_forest_maze1") - scr_84_add_menu_item(parent, "[roomdark]", 92, "room_forest_maze_deadend") - scr_84_add_menu_item(parent, "[roomdark]", 93, "room_forest_maze_susie") - scr_84_add_menu_item(parent, "[roomdark]", 94, "room_forest_maze2") - scr_84_add_menu_item(parent, "[roomdark]", 95, "room_forest_maze_deadend2") - scr_84_add_menu_item(parent, "[roomdark]", 96, "room_forest_savepoint3") - scr_84_add_menu_item(parent, "[roomdark]", 97, "room_forest_fightsusie") - scr_84_add_menu_item(parent, "[roomdark]", 98, "room_forest_afterthrash2") - scr_84_add_menu_item(parent, "[roomdark]", 99, "room_forest_afterthrash3") - scr_84_add_menu_item(parent, "[roomdark]", 100, "room_forest_afterthrash4") - scr_84_add_menu_item(parent, "[roomdark]", 101, "room_forest_castleview") - scr_84_add_menu_item(parent, "[roomdark]", 102, "room_forest_chase1") - scr_84_add_menu_item(parent, "[roomdark]", 103, "room_forest_chase2") - scr_84_add_menu_item(parent, "[roomdark]", 104, "room_forest_castlefront") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "cardcastle") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 105, "room_cc_prison_cells") - scr_84_add_menu_item(parent, "[roomdark]", 106, "room_cc_prisonlancer") - scr_84_add_menu_item(parent, "[roomdark]", 107, "room_cc_prison_to_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 108, "room_cc_prison2") - scr_84_add_menu_item(parent, "[roomdark]", 109, "room_cc_prisonelevator") - scr_84_add_menu_item(parent, "[roomdark]", 110, "room_cc_elevator") - scr_84_add_menu_item(parent, "[roomdark]", 111, "room_cc_prison_prejoker") - scr_84_add_menu_item(parent, "[roomdark]", 112, "room_cc_joker") - scr_84_add_menu_item(parent, "[roomdark]", 113, "room_cc_entrance") - scr_84_add_menu_item(parent, "[roomdark]", 114, "room_cc_1f") - scr_84_add_menu_item(parent, "[roomdark]", 115, "room_cc_rudinn") - scr_84_add_menu_item(parent, "[roomdark]", 116, "room_cc_2f") - scr_84_add_menu_item(parent, "[roomdark]", 117, "room_cc_rurus1") - scr_84_add_menu_item(parent, "[roomdark]", 118, "room_cc_3f") - scr_84_add_menu_item(parent, "[roomdark]", 119, "room_cc_hathy") - scr_84_add_menu_item(parent, "[roomdark]", 120, "room_cc_4f") - scr_84_add_menu_item(parent, "[roomdark]", 121, "room_cc_rurus2") - scr_84_add_menu_item(parent, "[roomdark]", 122, "room_cc_clover") - scr_84_add_menu_item(parent, "[roomdark]", 123, "room_cc_5f") - scr_84_add_menu_item(parent, "[roomdark]", 124, "room_cc_lancer") - scr_84_add_menu_item(parent, "[roomdark]", 125, "room_cc_6f") - scr_84_add_menu_item(parent, "[roomdark]", 126, "room_cc_throneroom") - scr_84_add_menu_item(parent, "[roomdark]", 127, "room_cc_preroof") - scr_84_add_menu_item(parent, "[roomdark]", 128, "room_cc_kingbattle") - scr_84_add_menu_item(parent, "[roomdark]", 129, "room_cc_prefountain") - scr_84_add_menu_item(parent, "[roomdark]", 130, "room_cc_fountain") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "special") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 131, "PLACE_DOG") - scr_84_add_menu_item(parent, "[room]", 132, "room_legend") - scr_84_add_menu_item(parent, "[room]", 133, "room_shop1") - scr_84_add_menu_item(parent, "[room]", 134, "room_shop2") - scr_84_add_menu_item(parent, "[room]", 135, "room_gameover") - scr_84_add_menu_item(parent, "[room]", 136, "room_myroom_dark") - scr_84_add_menu_item(parent, "[room]", 137, "PLACE_LOGO") - scr_84_add_menu_item(parent, "[room]", 138, "PLACE_FAILURE") - scr_84_add_menu_item(parent, "[room]", 139, "PLACE_MENU") - scr_84_add_menu_item(parent, "[room]", 140, "room_ed") - parent = scr_84_pop() - scr_84_add_menu_item(parent, "[room]", 141, "room_empty") - scr_84_add_menu_item(parent, "[room]", 142, "room_man") - scr_84_add_menu_item(parent, "[roomdark]", 143, "room_DARKempty") - scr_84_add_menu_item(parent, "[room]", 144, "room_battletest") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "dark field") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[roomdark]", 49, "room_field_start") - scr_84_add_menu_item(parent, "[roomdark]", 50, "room_field_forest") - scr_84_add_menu_item(parent, "[roomdark]", 51, "room_field1") - scr_84_add_menu_item(parent, "[roomdark]", 52, "room_field2") - scr_84_add_menu_item(parent, "[roomdark]", 53, "room_field2A") - scr_84_add_menu_item(parent, "[roomdark]", 54, "room_field_topchef") - scr_84_add_menu_item(parent, "[roomdark]", 55, "room_field_puzzle1") - scr_84_add_menu_item(parent, "[roomdark]", 56, "room_field_maze") - scr_84_add_menu_item(parent, "[roomdark]", 57, "room_field_puzzle2") - scr_84_add_menu_item(parent, "[roomdark]", 58, "room_field_getsusie") - scr_84_add_menu_item(parent, "[roomdark]", 59, "room_field_shop1") - scr_84_add_menu_item(parent, "[roomdark]", 60, "room_field_puzzletutorial") - scr_84_add_menu_item(parent, "[roomdark]", 61, "room_field3") - scr_84_add_menu_item(parent, "[roomdark]", 62, "room_field_boxpuzzle") - scr_84_add_menu_item(parent, "[roomdark]", 63, "room_field4") - scr_84_add_menu_item(parent, "[roomdark]", 64, "room_field_secret1") - scr_84_add_menu_item(parent, "[roomdark]", 65, "room_field_checkers4") - scr_84_add_menu_item(parent, "[roomdark]", 66, "room_field_checkers2") - scr_84_add_menu_item(parent, "[roomdark]", 67, "room_field_checkers6") - scr_84_add_menu_item(parent, "[roomdark]", 68, "room_field_checkers3") - scr_84_add_menu_item(parent, "[roomdark]", 69, "room_field_checkers1") - scr_84_add_menu_item(parent, "[roomdark]", 70, "room_field_checkers5") - scr_84_add_menu_item(parent, "[roomdark]", 71, "room_field_checkers7") - scr_84_add_menu_item(parent, "[roomdark]", 72, "room_field_checkersboss") - parent = scr_84_pop() - group = ds_list_create() - scr_84_add_menu_item(parent, "[group]", group, "lightworld_interior") - scr_84_push(parent) - parent = group - scr_84_add_menu_item(parent, "[room]", 18, "room_hospital_lobby") - scr_84_add_menu_item(parent, "[room]", 19, "room_hospital_hallway") - scr_84_add_menu_item(parent, "[room]", 20, "room_hospital_rudy") - scr_84_add_menu_item(parent, "[room]", 21, "room_hospital_room2") - scr_84_add_menu_item(parent, "[room]", 22, "room_diner") - scr_84_add_menu_item(parent, "[room]", 23, "room_townhall") - scr_84_add_menu_item(parent, "[room]", 24, "room_flowershop_1f") - scr_84_add_menu_item(parent, "[room]", 25, "room_flowershop_2f") - scr_84_add_menu_item(parent, "[room]", 26, "room_library") - scr_84_add_menu_item(parent, "[room]", 27, "room_alphysalley") - parent = scr_84_pop() - parent = scr_84_pop() - global.chemg_menus = parent -} -if process - return global.chemg_menu_depth > 0; -if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_stickr) -{ - global.chemg_menu_depth = 1 - global.chemg_interact = global.interact - global.chemg_yoffset = 0 - global.interact = 0 -} -if (global.chemg_menu_depth > 0) -{ - parent = global.chemg_menus - var change = 0 - var depth_ndx = (global.chemg_menu_depth - 1) - var i = 0 - do - { - var choice_ndx = global.chemg_menu_indices[i] - var choice = ds_list_find_value(parent, choice_ndx * 3) - var choice_data = ds_list_find_value(parent, choice_ndx * 3 + 1) - var choice_name = ds_list_find_value(parent, choice_ndx * 3 + 2) - i += 1 - if i == global.chemg_menu_depth - { - break; - } - parent = choice_data - } - until false; - var num_choices = (ds_list_size(parent) / 3) - if (keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padu)) - change = -1 - else if (keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padd)) - change = 1 - else if (keyboard_check_pressed(vk_return) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face2)) - { - if (choice == "[group]") - { - global.chemg_menu_indices[global.chemg_menu_depth] = 0 - global.chemg_menu_depth += 1 - } - else if (choice == "[loadj]") - { - var type = scr_84_lang_load() - show_debug_message((("loaded " + type) + " lang file")) - show_message((("loaded " + type) + " lang file")) - global.chemg_menu_depth = 0 - } - else if (choice == "[room]") - { - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[roomdark]") - { - show_debug_message(("room_goto: " + choice_name)) - room_goto(choice_data) - global.chemg_menu_depth = 0 - } - else if (choice == "[lang]") - { - show_debug_message(("switch lang: " + choice_data)) - global.lang = choice_data - global.chemg_menu_depth = 0 - scr_84_init_localization() - room_restart() - } - else if (choice == "[restart]") - { - show_debug_message("restart room") - room_restart() - global.chemg_menu_depth = 0 - } - else if (choice == "[god]") - global.chemg_god_mode = (1 - global.chemg_god_mode) - else if (choice == "[lightitem]") - { - if (scr_litemcheck(choice_data) == 0) - scr_litemget(choice_data) - } - else if (choice == "[item]") - { - if (scr_itemcheck(choice_data) == 0) - scr_itemget(choice_data) - } - else if (choice == "[keyitem]") - { - if (scr_keyitemcheck(choice_data) == 0) - scr_keyitemget(choice_data) - } - else if (choice == "[weaponitem]") - { - if (scr_weaponcheck_inventory(choice_data) == 0) - scr_weaponget(choice_data) - } - else if (choice == "[armoritem]") - { - if (scr_armorcheck_inventory(choice_data) == 0) - scr_armorget(choice_data) - } - else if (choice == "[phone]") - scr_phoneadd(202) - else if (choice == "[gold]") - global.gold = max(0, (global.gold + choice_data)) - else if (choice == "[lightgold]") - global.lgold = max(0, (global.lgold + choice_data)) - else if (choice == "[showroom]") - global.chemg_show_room = (!global.chemg_show_room) - else if (choice == "[fonttest]") - { - global.chemg_font_test = (!global.chemg_font_test) - global.chemg_menu_depth = 0 - } - else - show_debug_message(("unknown menu cmd:" + choice)) - } - else if (keyboard_check_pressed(vk_escape) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_face1)) - { - if (global.chemg_menu_depth > 0) - global.chemg_menu_depth -= 1 - if (global.chemg_menu_depth == 0) - global.interact = global.chemg_interact - } - for (i = 0; i < 10; i += 1) - { - global.input_pressed[i] = 0 - global.input_held[i] = 0 - global.input_released[i] = 0 - } - keyboard_clear(vk_up) - keyboard_clear(vk_down) - keyboard_clear(vk_left) - keyboard_clear(vk_right) - keyboard_clear(vk_escape) - keyboard_clear(vk_return) - if (change != 0) - global.chemg_menu_indices[depth_ndx] = (((global.chemg_menu_indices[depth_ndx] + num_choices) + change) % num_choices) - draw_set_font(fnt_main) - draw_set_colour(c_white) - draw_set_halign(fa_left) - draw_set_valign(fa_top) - var yy = global.chemg_yoffset - var vspacing = 15 - scr_84_draw_text_outline(10, yy, (((("====[ menu ]====[ gold: " + string(global.gold)) + " light gold: ") + string(global.lgold)) + " ]")) - yy += vspacing - global.chemg_max_depth = -1 - global.chemg_cursor_y = 0 - scr_84_draw_menu(global.chemg_menus, 10, yy, vspacing, global.chemg_menu_indices, 0, (global.chemg_menu_depth - 1)) - global.chemg_yoffset = min(10, (400 - (global.chemg_cursor_y - global.chemg_yoffset))) -} -var chemg_room_name = room_get_name(room) -if (global.chemg_god_mode > 0) - chemg_room_name = (chemg_room_name + "[god]") -if global.chemg_show_room -{ - draw_set_font(fnt_main) - draw_set_colour(c_white) - var chemg_x = (635 - string_width(chemg_room_name)) - var chemg_y = 5 - scr_84_draw_text_outline(chemg_x, chemg_y, chemg_room_name) -} -if global.chemg_font_test -{ - if (!variable_global_exists("chemg_font_init")) - { - global.chemg_font_init = 1 - var ft = fnt_tinynoelle - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = "NORMAL FONT" - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = "SLOWER, SILENT" - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = "normal enemy font." - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = "battle dialogue" - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = "NORMAL MAIN FONT" - ft[array_length_1d(ft)] = fnt_ja_small - ft[array_length_1d(ft)] = "NORMAL FONT BIG" - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = "toriel font" - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = "toriel font slow" - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = "susie font" - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = "ralsei font" - ft[array_length_1d(ft)] = 12 - ft[array_length_1d(ft)] = "noelle font" - ft[array_length_1d(ft)] = 13 - ft[array_length_1d(ft)] = "berdly font" - ft[array_length_1d(ft)] = 14 - ft[array_length_1d(ft)] = "sans font" - ft[array_length_1d(ft)] = 15 - ft[array_length_1d(ft)] = "pap font" - ft[array_length_1d(ft)] = 16 - ft[array_length_1d(ft)] = ")??? font" - ft[array_length_1d(ft)] = 17 - ft[array_length_1d(ft)] = "undyne font" - ft[array_length_1d(ft)] = 18 - ft[array_length_1d(ft)] = "asgore font" - ft[array_length_1d(ft)] = 19 - ft[array_length_1d(ft)] = "lancer font" - ft[array_length_1d(ft)] = 20 - ft[array_length_1d(ft)] = "alphys font" - ft[array_length_1d(ft)] = 21 - ft[array_length_1d(ft)] = "temmie font" - ft[array_length_1d(ft)] = 22 - ft[array_length_1d(ft)] = "alphys font small" - ft[array_length_1d(ft)] = 23 - ft[array_length_1d(ft)] = "noelle font small" - ft[array_length_1d(ft)] = 30 - ft[array_length_1d(ft)] = "susie dark world" - ft[array_length_1d(ft)] = 31 - ft[array_length_1d(ft)] = "ralsei dark world" - ft[array_length_1d(ft)] = 32 - ft[array_length_1d(ft)] = "lancer dark world" - ft[array_length_1d(ft)] = 33 - ft[array_length_1d(ft)] = "king dark world" - ft[array_length_1d(ft)] = 35 - ft[array_length_1d(ft)] = "joker dark world" - ft[array_length_1d(ft)] = 36 - ft[array_length_1d(ft)] = "NORMAL FONT SILENT" - ft[array_length_1d(ft)] = 37 - ft[array_length_1d(ft)] = "susie dark world slow, spaced." - ft[array_length_1d(ft)] = 40 - ft[array_length_1d(ft)] = "inteo" - ft[array_length_1d(ft)] = 41 - ft[array_length_1d(ft)] = "intro slower" - ft[array_length_1d(ft)] = 42 - ft[array_length_1d(ft)] = "big silent slower" - ft[array_length_1d(ft)] = 45 - ft[array_length_1d(ft)] = "battle dialogue ral" - ft[array_length_1d(ft)] = 46 - ft[array_length_1d(ft)] = "battle dialogue lan" - ft[array_length_1d(ft)] = 47 - ft[array_length_1d(ft)] = "battle dialogue sus" - ft[array_length_1d(ft)] = 48 - ft[array_length_1d(ft)] = "king dark world battle" - ft[array_length_1d(ft)] = 50 - ft[array_length_1d(ft)] = "enemy" - ft[array_length_1d(ft)] = 51 - ft[array_length_1d(ft)] = "hellish yak text" - ft[array_length_1d(ft)] = 52 - ft[array_length_1d(ft)] = "hellish yak text 2" - ft[array_length_1d(ft)] = 53 - ft[array_length_1d(ft)] = "enemy: Susie" - ft[array_length_1d(ft)] = 54 - ft[array_length_1d(ft)] = "enemy: Susie 2" - ft[array_length_1d(ft)] = 55 - ft[array_length_1d(ft)] = "rudy font" - ft[array_length_1d(ft)] = 60 - ft[array_length_1d(ft)] = "SLOWER, SILENT 2" - ft[array_length_1d(ft)] = 666 - ft[array_length_1d(ft)] = "GLOW TEXT" - ft[array_length_1d(ft)] = 667 - ft[array_length_1d(ft)] = "GLOW TEXT 2" - ft[array_length_1d(ft)] = -1 - ft[array_length_1d(ft)] = fnt_main - ft[array_length_1d(ft)] = -2 - ft[array_length_1d(ft)] = fnt_ja_main - ft[array_length_1d(ft)] = -3 - ft[array_length_1d(ft)] = fnt_mainbig - ft[array_length_1d(ft)] = -4 - ft[array_length_1d(ft)] = fnt_ja_mainbig - ft[array_length_1d(ft)] = -5 - ft[array_length_1d(ft)] = fnt_tinynoelle - ft[array_length_1d(ft)] = -6 - ft[array_length_1d(ft)] = fnt_ja_tinynoelle - ft[array_length_1d(ft)] = -7 - ft[array_length_1d(ft)] = fnt_dotumche - ft[array_length_1d(ft)] = -8 - ft[array_length_1d(ft)] = fnt_ja_dotumche - ft[array_length_1d(ft)] = -9 - ft[array_length_1d(ft)] = fnt_comicsans - ft[array_length_1d(ft)] = -10 - ft[array_length_1d(ft)] = fnt_ja_comicsans - ft[array_length_1d(ft)] = -11 - ft[array_length_1d(ft)] = fnt_small - ft[array_length_1d(ft)] = -12 - ft[array_length_1d(ft)] = fnt_ja_small - global.chemg_font_types = ft - global.chemg_font_type_ndx = 0 - } - ft = global.chemg_font_types - var num_types = (array_length_1d(ft) / 2) - change = 0 - if (keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padr)) - change = 1 - else if (keyboard_check_pressed(vk_left) || gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gp_padl)) - change = -1 - global.chemg_font_type_ndx = (((global.chemg_font_type_ndx + change) + num_types) % num_types) - var fndx = (global.chemg_font_type_ndx * 2) - var xx = 10 - yy = 250 - strings[0] = "Pack my box with five" - strings[1] = "dozen liquor jugs." - strings[2] = "これは日本語です。" - strings[3] = "魔物に食われない!" - var typer = ft[fndx] - if (typer >= 0) - { - global.typer = typer - scr_texttype() - var font = myfont - var msg = ((((("(" + string(global.typer)) + ") ") + ft[(fndx + 1)]) + ", font: ") + font_get_name(myfont)) - vspacing = vspace - } - else - { - font = ft[(fndx + 1)] - msg = ("font: " + font_get_name(font)) - vspacing = (font_get_size(font) + 2) - } - draw_set_font(font) - draw_set_colour(c_white) - for (i = 0; i < array_length_1d(strings); i += 1) - { - var str = strings[i] - if (typer >= 0) - { - var len = string_length(str) - var wx = xx - for (var j = 1; j <= len; j += 1) - { - var mychar = string_copy(str, j, 1) - draw_text(wx, ((yy + 20) + (i * vspacing)), mychar) - wx += hspace - if (global.lang == "ja") - { - if (ord(mychar) < 256 || (ord(mychar) >= 65377 && ord(mychar) <= 65439)) - wx -= (hspace / 2) - } - } - } - else - draw_text(xx, ((yy + 20) + (i * vspacing)), str) - } - draw_set_colour(c_white) - draw_set_font(fnt_main) - draw_text(xx, yy, ("<-/-> to change typer: " + msg)) -} diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/b6825187ca2e32c618e4899e6d0c4c50/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml deleted file mode 100644 index 7865cee5e..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml +++ /dev/null @@ -1,103 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - n += 2 - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "P") - script_execute(SCR_TEXTSETUP, 4, 255, x, y, (x + 150), 43, 4, 94, 10) - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - } - if (global.inbattle == 1) - halt = 5 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_OBJ_WRITER_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_OBJ_WRITER_Draw_0.gml deleted file mode 100644 index 241521ad2..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_OBJ_WRITER_Draw_0.gml +++ /dev/null @@ -1,255 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "L") - mycolor = $FFA914 - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "z") - { - sym = real(string_char_at(originalstring, (n + 2))) - sym_s = spr_infinitysign - if (sym == 4) - sym_s = spr_infinitysign - if (sym == 4) - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - if (myfont == fnt_comicsans) - { - if (myletter == "w") - myx += 2 - if (myletter == "m") - myx += 2 - if (myletter == "i") - myx -= 2 - if (myletter == "l") - myx -= 2 - if (myletter == "s") - myx -= 1 - if (myletter == "j") - myx -= 1 - } - if (myfont == fnt_papyrus) - { - if (myletter == "D") - myx += 1 - if (myletter == "Q") - myx += 3 - if (myletter == "M") - myx += 1 - if (myletter == "L") - myx -= 1 - if (myletter == "K") - myx -= 1 - if (myletter == "C") - myx += 1 - if (myletter == ".") - myx -= 3 - if (myletter == "!") - myx -= 3 - if (myletter == "O" || myletter == "W") - myx += 2 - if (myletter == "I") - myx -= 6 - if (myletter == "T") - myx -= 1 - if (myletter == "P") - myx -= 2 - if (myletter == "R") - myx -= 2 - if (myletter == "A") - myx += 1 - if (myletter == "H") - myx += 1 - if (myletter == "B") - myx += 1 - if (myletter == "G") - myx += 1 - if (myletter == "F") - myx -= 1 - if (myletter == "?") - myx -= 3 - if (myletter == "'") - myx -= 6 - if (myletter == "J") - myx -= 1 - } - n += nskip -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_flowey_writer_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_flowey_writer_Draw_0.gml deleted file mode 100644 index aa57ccad5..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_flowey_writer_Draw_0.gml +++ /dev/null @@ -1,181 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "f") - global.typer = 9 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else if (global.typer == 70 || global.typer == 71 || global.typer == 74 || global.typer == 75 || global.typer == 76 || global.typer == 77) - draw_text_transformed((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter, 2, 2, 0) - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - n += nskip -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 9a5ea7df7..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,398 +0,0 @@ -buffer -= 1 -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if keyboard_multicheck_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ini_close() - room_goto(room_intromenu) -} -draw_set_color(c_white) -draw_set_font(fnt_maintext) -if (weather != 3) - draw_text_transformed(100, 10, "JOYSTICK CONFIG", 2, 2, 0) -else - draw_text_transformed(10, 10, "JOYSTICK CONFIG", 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, "EXIT") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = "CONFIRM - [Z + ENTER] ::" - if (i == 2) - itext = "CANCEL - [X + SHIFT] ::" - if (i == 3) - itext = "MENU - [C + CTRL] ::" - draw_text(20, (60 + (i * 15)), itext) - draw_set_color(c_white) -} -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 75, 245, 90, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 75, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 90, 245, 105, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 90, "(PUSH BUTTON)") - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 90, global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 105, 245, 120, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 105, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 105, global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, "ANALOG SENSITIVITY:") -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense -= global.analog_sense_sense - if keyboard_check(vk_left) - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text_transformed(20, 150, "ANALOG SENSITIVITY SENSITIVITY:", 0.6, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense_sense -= 0.01 - if keyboard_check(vk_left) - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, "DIR CHOICE:") -if (global.joy_dir == 0) - draw_text(100, 170, "NORMAL") -if (global.joy_dir == 1) - draw_text(100, 170, "ANALOG ONLY") -if (global.joy_dir == 2) - draw_text(100, 170, "POV ONLY") -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, 185, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, 185, "RESET TO DEFAULT") -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = "SPAGHETTI..." - else - r_line = "RESETTED..." - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 200, "CONTROL TEST") -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "cold outside#but stay warm#inside of you", 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "spring time#back to school", 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "try to withstand#the sun's life-#giving rays", 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "sweep a leaf#sweep away a#troubles", 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - draw_rectangle((168 - rectile), -10, -1, 250, false) - draw_set_color(c_black) - draw_rectangle((152 + rectile), -10, 330, 250, false) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 7b8438b88..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = "PET?" - if (gg == 1) - global.msg[0] = "PAT?" - if (gg == 2) - global.msg[0] = "POT?" - global.msg[1] = "%%%" - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_readable_room1_Alarm_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_readable_room1_Alarm_0.gml deleted file mode 100644 index ca62366f8..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_readable_room1_Alarm_0.gml +++ /dev/null @@ -1,480 +0,0 @@ -myinteract = 3 -global.msc = 0 -global.typer = 5 -global.facechoice = 0 -global.faceemotion = 0 -global.msg[0] = "%%" -if (room == room_ruins2) - global.msg[0] = "* Only the fearless may proceed.&* Brave ones, foolish ones.&* Both walk not the middle road./%%" -if (room == room_ruins3) - global.msg[0] = "* Stay on the path./%%" -if (room == room_ruins5) - global.msg[0] = "* The western room is the& eastern room's blueprint./%%" -if (room == room_ruins9) - global.msg[0] = "* Three out of four grey rocks& recommend you push them./%%" -if (room == room_ruins13) - global.msg[0] = "* (There's an ant-sized frog in& a crack in the wall...^1)&* (It waves at you.)/%%" -if (room == room_ruins14) - global.msg[0] = "* There is just one switch./%%" -if (room == room_ruins15A) - global.msg[0] = "* The far door is not an exit^1.&* It simply marks a rotation& in perspective./%%" -if (room == room_ruins15B) - global.msg[0] = "* If you can read this^1,& press the blue switch./%%" -if (room == room_ruins15C) - global.msg[0] = "* If you can read this^1,& press the red switch./%%" -if (room == room_ruins15D) - global.msg[0] = "* If you can read this^1,& press the green switch./%%" -if (room == room_torhouse1) - global.msg[0] = "* These books are worn...&* They must have been read& many times./%%" -if (room == room_asghouse1) -{ - global.msg[0] = "* (There's an old calendar from& the end of 201X.^1)&* (A date is circled on it.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (The date I came here.)/%%" -} -if (room == room_torhouse2) - global.msg[0] = "* The ends of the tools have& been filed down to& make them safer./%%" -if (room == room_asghouse2) - global.msg[0] = "* Seems like gardening tools./%%" -if (room == room_asrielroom) - global.msg[0] = "* Look at these cool toys^2!&* They don't interest you& at all./%%" -if (room == room_asrielroom_final) - global.msg[0] = "* (Dusty toys.)/%%" -if (room == room_castle_finalshoehorn) - global.msg[0] = "* Throne Room/%%" -if (room == room_castle_coffins2) -{ - global.msg[0] = "* (It's a coffin.^1)&* (There's a name engraved on& it.)/" - global.msg[1] = (('* ("' + global.charname) + '.")/') - global.msg[2] = "* (It's empty.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (The coffin is empty...?)/" - global.msg[1] = "* (You didn't notice before^1,& but there's something like...)/" - global.msg[2] = "* (... mummy wrappings at the& bottom of it.)/%%" - } - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (It's as comfortable as it& looks.)/%%" -} -if (room == room_torielroom) -{ - global.msc = 524 - if (x > 192) - { - global.msc = 0 - global.msg[0] = "* You peek inside..^2.&* Scandalous!/" - global.msg[1] = "* It's TORIEL's sock& collection./%%" - if (read > 0) - global.msg[0] = "* You can't stop looking& at the socks./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (You came all the way& back here to look at& Toriel's socks.)/" - global.msg[1] = "* (You have great priorities& in life.)/%%" - } - } -} -if (room == room_asgoreroom) -{ - global.msg[0] = "* It's a clothes drawer^1.&* There are robes^1, button-up& shirts.../" - global.msg[1] = "* ... and a pink^1, hand-knit& sweater that says& " + chr(34) + "Mr. Dad Guy." + chr(34) + "/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* Still has that sweater./%%" - if (y > 120) - global.msg[0] = "* (It's just a chair.)/%%" -} -if (room == room_castle_throneroom) - global.msg[0] = "* (It's a throne.)/%%" -if (room == room_torhouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_asghouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_kitchen) - global.msg[0] = "* For some reason^1, there& is a brand-name chocolate& bar in the fridge./%%" -if (room == room_kitchen_final) -{ - global.msg[0] = "* (The fridge is full of& unopened containers of& snails.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* No chocolate./%%" -} -if (room == room_tundra1) - global.msg[0] = "* ...!^1?&* There's a camera hidden& in the bushes./%%" -if (room == room_tundra8A) - global.msg[0] = "* (His.)/%%" -if (room == room_tundra_snowpuzz) -{ - if (global.plot <= 48) - global.msg[0] = "* There's a switch hidden& in the snow^1.&* Click!/%%" - if (global.plot > 48) - global.msg[0] = "* The switch is stuck now./%%" - if (global.flag[64] == 0) - global.flag[64] = 1 - if (global.plot <= 48) - global.plot = 49 - if (scr_murderlv() >= 3) - global.msg[0] = "* There's a switch here^1.&* It's been depressed with& vines./%%" -} -if (room == room_tundra_lesserdog) - global.msg[0] = "* On the floor inside is& a box of pomeraisins./%%" -if (room == 9999999) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are super crap./" - global.msg[2] = "* When monsters die^1, their& bodies turn into dust./" - global.msg[3] = "* One time this kid at my school& went missing for a week and& everyone thought he was dead.../" - global.msg[4] = "* But then he came back!!!/" - global.msg[5] = "* Turns out he was visiting his& girlfriend in Hotland and& and didn't tell anyone!/" - global.msg[6] = "* To be scientific^1, it sucks& that no one ever knows& if anyone's dead or alive./" - global.msg[7] = "* So yeah^1, what do we do at& funerals^1, anyway?/" - global.msg[8] = "* Professionally speaking:/" - global.msg[9] = "* DUH!!!/" - global.msg[10] = "* We pour the dust on whatever& that person liked./" - global.msg[11] = "* Then they will live on..^1.& ... in that object...& ... symbolically.../" - global.msg[12] = "* Uhhh^1, did I reach the page& minimum yet^1?&* I'm kinda sick of writing./%%" -} -if (room == room_tundra_library) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are cool as heck./" - global.msg[2] = "* When monsters get old and& kick the bucket^1, they turn& into dust./" - global.msg[3] = "* At funerals^1, we take that& dust and spread it on that& person's favorite thing./" - global.msg[4] = "* Then their essence will live& on in that thing.../" - global.msg[5] = "* Uhhh^1, am I at the page& minimum yet^1?&* I'm kinda sick of writing this./%%" -} -if (room == room_tundra_inn) -{ - global.msg[0] = "\W* Mom says that sleeping& can recover your health& \Yabove your maximum HP\W./" - global.msg[1] = "* ... what's maximum HP?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* Mom says that we can& go to the surface world& now!/" - global.msg[1] = "* ... what's so great about& that^1, anyway^1?&* I don't wanna move./%%" - } - if (scr_murderlv() >= 7) - global.msg[0] = "* (It's merely a decoy.)/%%" -} -if (room == room_water12) -{ - global.msg[0] = "* " + chr(34) + "The power to take their& SOULs." + chr(34) + "/" - global.msg[1] = "* " + chr(34) + "This is the power that& the humans feared." + chr(34) + "/%%" -} -if (room == room_water7) -{ - global.msg[0] = "* (Ancient writing covers the& walls..^1. you can just make& out the words.)/" - global.msg[1] = "* " + chr(34) + "The War of Humans and& Monsters." + chr(34) + "/%%" -} -if (room == room_water14) - global.msg[0] = "* The northern room hides a& great treasure./%%" -if (room == room_water15) -{ - global.msg[0] = "* Hurt, beaten, and fearful for& our lives, we surrendered& to the humans./" - global.msg[1] = "* Seven of their greatest& magicians sealed us underground& with a magic spell./" - global.msg[2] = "* Anything can enter through the& seal, but only beings with a& powerful SOUL can leave./%%" -} -if (room == room_water19) -{ - global.msg[0] = "* However...&* There is a prophecy./" - global.msg[1] = "* The Angel...&* The One Who Has Seen The& Surface.../" - global.msg[2] = "* They will return.&* And the underground will go& empty./%%" -} -if (room == room_water_nicecream) - global.msg[0] = "* The ancient glyphs have been& painted over with a list of& 21 different flavors./%%" -if (room == room_water_prebird) - global.msg[0] = "* Achoo^1!&* Tried to catch a bug^1, but& I just caught a cold.../%%" -if (room == room_water_preundyne) -{ - global.msg[0] = "* The humans, afraid of our& power^1, declared war on us./" - global.msg[1] = "* They attacked suddenly, and& without mercy./%%" -} -if (room == room_water17) - global.msg[0] = "* Without candles or magic to& guide them Home^1, the monsters& used crystals to navigate./%%" -if (room == room_water20) -{ - if instance_exists(obj_monsterkidtrigger7) - obj_monsterkidtrigger7.con = 80 - cantalk = 0 -} -if (room == room_fire_lab1) -{ - global.msg[0] = "* (It's a beat-up figurine& of a female human with& cat ears.)/%%" - if (global.plot < 126 && scr_murderlv() < 12) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" -} -if (room == room_fire_lab2) - global.msg[0] = "* (Scientific books.^1)&* (They seem very dusty.)/%%" -if (room == room_fire_cookingshow) -{ - global.msg[0] = "* (It's a fridge.^1)&* (It's strangely warm.)/%%" - if (global.plot < 134) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" - if instance_exists(obj_mettaton_npc) - { - global.typer = 27 - global.msg[0] = "* MILK^1? EGGS^1? IN THE FRIDGE?/" - global.msg[1] = "* NO WAY^1, DARLING^1!&* THEY'D GET COLD!!!/%%" - } - if (global.plot == 134) - { - snd_play(snd_phone) - global.typer = 5 - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* Um^1, is it really& a good idea to be& getting a snack?/" - global.msg[3] = "\E8* Well^1, I guess I& really shouldn't& judge you.../" - global.msg[4] = "\E0* After all^1, I'm the& one eating potato& chips in my PJs!/" - global.msg[5] = "\E5* Uhhh^1, I mean..^1.&* H-hey^1, go over to& the right!/%%" - if (specialread > 0) - { - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* H-hey^1!&* Head over to the& right!/%%" - } - specialread += 1 - } -} -if (room == room_water_undynehouse) -{ - global.typer = 37 - global.facechoice = 5 - global.faceemotion = 4 - global.msc = 0 - if (x > 180) - { - global.msg[0] = "* I hate cold food./" - global.msg[1] = "\E0* So Alphys fixed up& my fridge so it& heats up food instead!/" - global.msg[2] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - if (read > 0) - global.msg[0] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - } - else - { - global.faceemotion = 0 - global.msg[0] = "* This oven is some& top-of-the-line& MTT thing./" - global.msg[1] = "\E4* But^1, y'know^1, as much& as technology& advances.../" - global.msg[2] = "\E0* Nothing beats food& home-cooked with& fire magic./%%" - } -} -if (room == room_fire_spidershop) -{ - global.msg[0] = "* (It looks like some sort of& powerful bracelet...)/" - global.msg[1] = "* (Wait.^1)&* (It's just a croissant...)/%%" -} -if (room == room_fire_hotelfront_2) - global.msg[0] = "* (It's just a regular wall.)/%%" -if (room == room_fire_core_branch) - global.msg[0] = "* (East...)&* (The End.)/%%" -if (room == room_fire_core_left) - global.msg[0] = "* (Solve this puzzle,& and The End will open.)/%%" -if (room == room_fire_core_top) - global.msg[0] = "* (Traverse the northern& room^1, and The End will& open.)/%%" -if (room == room_fire_core_right) -{ - global.msg[0] = "* (I cannot fight.)&* (I cannot think.)/" - global.msg[1] = "* (But^1, with patience^1,& I will make my way& through.)/%%" -} -if (room == room_fire_core_center) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_treasureleft) - global.msg[0] = "* (Why not relax and have& a nice snack?)/%%" -if (room == room_fire_core_treasureright) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_metttest) -{ - global.msg[0] = "* (It's completely trashed.^1)&* (There's no way it could& ever be repaired.)/%%" - if (global.flag[425] == 0) - global.msg[0] = "* (It's out of batteries.)/%%" -} -if (room == room_truelab_hall1) -{ - global.msg[0] = "* ENTRY NUMBER 1/" - global.msg[1] = "* This is it..^1.&* Time to do what the King& has asked me to do./" - global.msg[2] = "* I will create the power to& free us all./" - global.msg[3] = "* I will unleash the power of& the SOUL./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hub) -{ - global.msg[0] = "* POWER ROOM/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall2) -{ - global.msg[0] = "* ENTRY NUMBER 6/" - global.msg[1] = "* ASGORE asked everyone& outside the city for monsters& that had " + chr(34) + "fallen down." + chr(34) + "/" - global.msg[2] = "* Their bodies came in today./" - global.msg[3] = "* They're still comatose..^1.&* And soon^1, they'll all& turn into dust./" - global.msg[4] = "* But what happens if I& inject " + chr(34) + "determination" + chr(34) + " into& them?/" - global.msg[5] = "* If their SOULS persist& after they perish^1, then.../" - global.msg[6] = "* Freedom might be closer& than we all thought./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_operatingroom) -{ - global.msg[0] = "* ENTRY NUMBER 9/" - global.msg[1] = "* things aren't going well./" - global.msg[2] = "* none of the bodies have& turned into dust^1, so I& can't get the SOULs./" - global.msg[3] = "* i told the families that& i would give them the& dust back for the funerals./" - global.msg[4] = "* people are starting to& ask me what's happening./" - global.msg[5] = "* what do i do?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_prebed) -{ - global.msg[0] = "* ENTRY NUMBER 12/" - global.msg[1] = "* nothing is happening^1.&* i don't know what to do./" - global.msg[2] = "* i'll just keep injecting& everything with& " + chr(34) + "determination." + chr(34) + "/" - global.msg[3] = "* i want this to work./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_bedroom) -{ - global.msg[0] = "* ENTRY NUMBER 14/" - global.msg[1] = "* Everyone that had fallen& down.../" - global.msg[2] = "* ... has woken up./" - global.msg[3] = "* They're all walking around& and talking like nothing& is wrong./" - global.msg[4] = "* I thought they were& goners...?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_mirror) -{ - global.msg[0] = "* ENTRY NUMBER 7/" - global.msg[1] = "* We'll need a vessel to& wield the monster SOULs& when the time comes./" - global.msg[2] = "* After all^1, a monster& cannot absorb the SOULs& of other monsters./" - global.msg[3] = "* Just as a human cannot& absorb a human SOUL.../" - global.msg[4] = "* So then.../" - global.msg[5] = "* What about something that's& neither human nor monster?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall3) -{ - global.msg[0] = "* ENTRY NUMBER 15/" - global.msg[1] = "* Seems like this research& was a dead end.../" - global.msg[2] = "* But at least we got a& happy ending out of it...?/" - global.msg[3] = "* I sent the SOULS back to& ASGORE^1, returned the& vessel to his garden..../" - global.msg[4] = "* And I called all of the& families and told them& everyone's alive./" - global.msg[5] = "* I'll send everyone back& tomorrow. :) /%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* ENTRY NUMBER 17/" - global.msg[1] = "* monsters' physical forms& can't handle " + chr(34) + "determination" + chr(34) + "& like humans' can./" - global.msg[2] = "* with too much determination^1,& our bodies begin to break& down./" - global.msg[3] = "* everyone's melted together.../%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* DT EXTRACTION MACHINE&* STATUS: INACTIVE/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_tv) -{ - global.msg[0] = "* ENTRY NUMBER 4/" - global.msg[1] = "* I've been researching humans& to see if I can find any& info about their SOULS./" - global.msg[2] = "* I ended up snooping around& the castle...&* And found these weird tapes./" - global.msg[3] = "* I don't feel like ASGORE's& watched them.../" - global.msg[4] = "* I don't think he should./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_fan) - global.msc = 780 -if (room == room_truelab_cooler) -{ - global.msg[0] = "* ENTRY NUMBER 19/" - global.msg[1] = "* the families keep calling& me to ask when everyone& is coming home./" - global.msg[2] = "* what am i supposed to say?/" - global.msg[3] = "* i don't even answer the& phone anymore./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" - if (global.flag[490] == 0) - global.msg[0] = "* (It's too dark to see near& the walls.)/%%" -} -if (room == room_truelab_prepower) -{ - global.msg[0] = "* (Seems to be turned off.)/%%" - if (global.flag[485] == 1) - { - global.msg[0] = "* ENTRY NUMBER 8/" - global.msg[1] = "* I've chosen a candidate./" - global.msg[2] = "* I haven't told ASGORE yet^1,& because I want to surprise& him with it.../" - global.msg[3] = "* In the center of his& garden^1, there's something& special./" - global.msg[4] = "* The first golden flower^1,& that grew before all the& others./" - global.msg[5] = "* The flower from the outside& world./" - global.msg[6] = "* It appeared just before& the queen left./" - global.msg[7] = "* I wonder.../" - global.msg[8] = "* What happens when something& without a SOUL gains& the will to live?/%%" - } -} -if (room == room_truelab_elevatorinside) - global.msg[0] = "* (None of the buttons work.^1)&* (It seems to have lost power.)/%%" -if (room == room_castle_elevatorout) - global.msg[0] = "* (The door is jammed shut& with vines.)/%%" -if (room == room_truelab_castle_elevator) - global.msg[0] = "* (Seems like another elevator& has lost its power.)/%%" -if (room == room_tundra_grillby) - global.msg[0] = "* (The jukebox is broken.)/%%" -if (room == room_water_blookyard) - global.msg[0] = "* (It's locked.)/%%" -if (room == room_tundra_sansroom) - global.msg[0] = "* (It's a worn mattress.^1)&* (The sheets are bunched up in a& weird^1, creasy ball.)/%%" -if (room == room_tundra_sansbasement) -{ - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (He looks happy.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (... and^1, one photo of you& standing with Sans and all& your friends.)/" - global.msg[3] = "* (He looks happy.)/%%" - } - if (global.flag[279] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of..^1. Huh?)/" - global.msg[2] = "* (A card is sticking out from& the back flap of the binder.)/" - global.msg[3] = "* (It's a poorly drawn picture& of three smiling people.^1)&* (Written on it...)/" - global.msg[4] = "* " + chr(34) + "don't forget." + chr(34) + "/%%" - } -} -if (room == room_fire_pacing) -{ - global.msg[0] = "* (It's a poster for Mettaton's& latest stage performance.)/" - global.msg[1] = "* (A tragic tale of two star-& crossed lovers^1, kept apart& by the tides of fate...)/" - global.msg[2] = "* (Looks like it's almost time& for the performance.)/%%" -} -if (room == room_fire_hoteldoors) - global.msg[0] = "* (It's locked from the inside.)/%%" -if (room == room_fire_hotellobby) -{ - global.msg[0] = "* (There's an inscription on& this fountain.)/" - global.msg[1] = "* Royal Memorial Fountain&* Built 201X&* (Mettaton Added Last Week)/%%" -} -if (room == room_fire_restaurant) -{ - global.msg[0] = "* (It's a Wall of Fame full of& quotes and photos from visiting& celebrities.)/" - global.msg[1] = "* " + chr(34) + "The food is to die for!^1" + chr(34) + "&* " + chr(34) + "Gorgeous style and fragrance!^1" + chr(34) + "&* " + chr(34) + "My face tastes beautiful!" + chr(34) + "/" - global.msg[2] = "* (... these are all Mettaton.)/%%" -} -if (room == room_fire_hotelbed) -{ - global.msg[0] = "* (It's a lamp.^1)&* (There's no lightswitch.)/" - global.msg[1] = "* (It says that stars make& their own light...)/%%" -} -if (room == room_water_temvillage) - global.msg[0] = "* (Rich history of Tem.)/%%" -read += 1 -if (cantalk == 1) - mydialoguer = instance_create(0, 0, obj_dialoguer) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index d03c73c02..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - draw_set_font(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, "Exit") - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if keyboard_check_pressed(vk_return) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - draw_set_font(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (keyboard_check_pressed(vk_return) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_truechara_Step_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_truechara_Step_0.gml deleted file mode 100644 index 0b3663c04..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_truechara_Step_0.gml +++ /dev/null @@ -1,192 +0,0 @@ -if (con == 1) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Greetings./" - global.msg[1] = (("I^2 am " + global.charname) + "./%%") - instance_create(220, 320, OBJ_WRITER) - con = 2 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - caster_loop(ch_sfx1, 1, 1) - con = 3 - alarm[4] = 60 -} -if (con == 4) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Thank you./" - global.msg[1] = "Your power awakened&me from death./" - global.msg[2] = 'My "human soul."/' - global.msg[3] = 'My "determination."/' - global.msg[4] = "They were not mine^1,&but YOURS./" - global.msg[5] = "At first^1, I&was so confused./" - global.msg[6] = "Our plan had failed^1,&hadn't it?/" - global.msg[7] = "Why was I brought&back to life?/" - global.msg[8] = ".../" - global.msg[9] = "You./" - global.msg[10] = "With your guidance./" - global.msg[11] = "I realized the purpose&of my reincarnation./" - global.msg[12] = "Power./" - global.msg[13] = "Together^1, we eradicated&the enemy and became&strong./" - global.msg[14] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[15] = "Every time a number&increases^1, that&feeling.../" - global.msg[16] = "That's me./" - global.msg[17] = (('"' + global.charname) + '."/') - global.msg[18] = "Now./" - global.msg[19] = "Now, we have reached&the absolute./" - global.msg[20] = "There is nothing&left for us here./" - global.msg[21] = "Let us erase this&pointless world^1, and&move on to the next./%%" - if file_exists("system_information_963") - { - global.msg[0] = (('"' + global.charname) + '."/') - global.msg[1] = "The demon that comes&when people call&its name./" - global.msg[2] = "It doesn't matter when./" - global.msg[3] = "It doesn't matter where./" - global.msg[4] = "Time after time,&I will appear./" - global.msg[5] = "And, with your help./" - global.msg[6] = "We will eradicate the&enemy and become&strong./" - global.msg[7] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[8] = "Every time a number&increases^1, that&feeling.../" - global.msg[9] = "That's me./" - global.msg[10] = (('"' + global.charname) + '."/') - global.msg[11] = ".../" - global.msg[12] = "But./" - global.msg[13] = "You and I are not&the same^1, are we?/" - global.msg[14] = "This SOUL resonates&with a strange&feeling./" - global.msg[15] = "There is a reason&you continue to&recreate this world./" - global.msg[16] = "There is a reason&you continue to&destroy it./" - global.msg[17] = "You./" - global.msg[18] = "You are wracked with&a perverted&sentimentality./" - global.msg[19] = "Hmm./" - global.msg[20] = "I cannot understand&these feelings&any more./" - global.msg[21] = "Despite this./" - global.msg[22] = "I feel obligated to&suggest./" - global.msg[23] = "Should you choose to&create this world&once more./" - global.msg[24] = "Another path would&be better suited./" - global.msg[25] = "Now, partner./" - global.msg[26] = "Let us send this&world back into the&abyss./%%" - } - instance_create(150, 320, OBJ_WRITER) - con = 5 -} -if (con == 5 && instance_exists(OBJ_WRITER) == 0) -{ - con = 6 - alarm[4] = 30 -} -if (con == 7) -{ - con = 8 - choicer = 1 -} -if (con == 20) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Right^1. You are a&great partner./" - global.msg[1] = "We'll be together&forever^1, won't we?/%%" - con = 22 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 22 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - sprite_index = spr_truechara_weird -} -if (con == 22 && instance_exists(OBJ_WRITER) == 0) - con = 60 -if (con == 30) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "No...?/" - global.msg[1] = "Hmm.../" - global.msg[2] = "How curious./" - global.msg[3] = "You must have&misunderstood./" - global.msg[4] = "SINCE WHEN WERE YOU&THE ONE IN CONTROL?/%%" - if file_exists("system_information_963") - { - global.msg[0] = "No...?/" - global.msg[1] = "Hmm...&This feeling you have./" - global.msg[2] = "This is what I&spoke of./" - global.msg[3] = "Unfortunately,®arding this.../" - global.msg[4] = "YOU MADE YOUR CHOICE&LONG AGO./%%" - } - con = 31 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 31 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 4) - sprite_index = spr_truechara_weird -} -if (con == 31 && instance_exists(OBJ_WRITER) == 0) - con = 40 -if (con == 40) -{ - caster_stop(-3) - caster_play(ch_sfx2, 1, 0.95) - sprite_index = spr_truechara_laugh - image_speed = 0.5 - con = 41 - flashred = 1 - alarm[4] = 120 - wx = 0 - wy = 0 - if (global.osflavor == 1) - { - window_set_fullscreen(false) - window_set_caption(" ") - window_center() - wx = window_get_x() - wy = window_get_y() - } -} -if (con == 41) -{ - x = (((room_width / 2) + random(4)) - random(4)) - y = (((room_height / 2) + random(4)) - random(4)) - image_xscale += 0.08 - image_yscale += 0.08 - if (global.osflavor == 1) - window_set_position(((wx + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4))), ((wy + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4)))) -} -if (con == 42) -{ - con = 60 - if (global.osflavor == 1) - window_center() - flashred = 0 -} -if (con == 60) -{ - caster_free(-3) - snd_play(snd_laz) - image_speed = 0 - image_index = 0 - sprite_index = spr_strike - image_xscale = 5 - image_yscale = 5 - y = ((room_height / 2) - (sprite_height / 2)) - x = ((room_width / 2) - (sprite_width / 2)) - image_speed = 0.1 - con = 61 -} -if (con == 61) -{ - if (image_index >= 5.5) - { - visible = false - con = 62 - alarm[4] = 40 - } -} -if (con == 63) -{ - snd_play(snd_damage) - instance_create(0, 0, obj_gameshake) - con = 64 -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index f424d711c..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = string("0") - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ccf249543..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6411 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = " " - adder = "\W " - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y " - if (global.flag[22] == 2) - adder = "\p " - } - global.msg[0] = adder - global.msg[0] += (" * " + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += " A" - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += " B" - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += " C" - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = " " - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y " - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p " - } - } - global.msg[0] += " * Spare" - if (global.mercy == 0) - global.msg[0] += "& \W * Flee" - break - case 9: - global.msg[0] = ((" * " + global.itemnameb[0]) + " ") - if (global.item[1] != 0) - global.msg[0] += ("* " + global.itemnameb[1]) - global.msg[0] += " &" - if (global.item[2] != 0) - global.msg[0] += ((" * " + global.itemnameb[2]) + " ") - if (global.item[3] != 0) - global.msg[0] += ("* " + global.itemnameb[3]) - global.msg[0] += " & PAGE 1" - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = ((" * " + global.itemnameb[4]) + " ") - if (global.item[5] != 0) - global.msg[0] += ("* " + global.itemnameb[5]) - global.msg[0] += " &" - if (global.item[6] != 0) - global.msg[0] += ((" * " + global.itemnameb[6]) + " ") - if (global.item[7] != 0) - global.msg[0] += ("* " + global.itemnameb[7]) - global.msg[0] += " & PAGE 2" - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += (("* You recovered " + string(global.item[8])) + " HP!/%") - else - global.msg[0] += "* Your HP was maxed out./%" - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = (("* You bid a quiet farewell& to the " + global.itemname[global.menucoord[1]]) + ".") - if (i == 1) - global.msg[0] = (("* You put the " + global.itemname[global.menucoord[1]]) + "& on the ground and gave it a& little pat.") - if (i == 2) - global.msg[0] = (("* You threw the " + global.itemname[global.menucoord[1]]) + "& on the ground like the piece& of trash it is.") - if (i == 3) - global.msg[0] = (("* You abandoned the & " + global.itemname[global.menucoord[1]]) + ".") - if (i > 3) - global.msg[0] = (("* The " + global.itemname[global.menucoord[1]]) + " was& thrown away.") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = " * I'm outta here." - if (i == 2) - global.msg[0] = " * I've got better to do." - if (i > 3) - global.msg[0] = " * Escaped..." - if (i == 3) - global.msg[0] = " * Don't slow me down." - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = ((((" * Ran away with " + string(global.xpreward[3])) + " EXP& and ") + string(global.goldreward[3])) + " GOLD.") - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = "* (The shadow of the ruins& looms above^1, filling you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins7) - { - global.msg[0] = "* (Playfully crinkling through& the leaves fills you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins12A) - { - global.msg[0] = "* (Knowing the mouse might one& day leave its hole and& get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_ruins19) - global.msg[0] = "* (Seeing such a cute^1, tidy& house in the RUINS gives& you determination.)/%%" - if (global.flag[202] >= 20) - global.msg[0] = "* Determination./%%" - if (room == room_tundra1) - global.msg[0] = "* (The cold atmosphere of a& new land... it fills you& with determination.)/%%" - if (room == room_tundra3) - global.msg[0] = "* (The convenience of that& lamp still fills you& with determination.)/%%" - if (room == room_tundra_spaghetti) - { - global.msg[0] = "* (Knowing the mouse might one& day find a way to heat& up the spaghetti...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = "* (Knowing that dog will& never give up trying to& make the perfect snowdog...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - if (global.flag[55] == 1) - { - global.msg[0] = "* (Snow can always be broken& down and rebuilt into& something more useful.)/" - global.msg[1] = "* (This simple fact fills& you with determination.)/%%" - } - } - if (room == room_tundra_town) - global.msg[0] = "* (The sight of such a friendly& town fills you with& determination.)/%%" - if (room == room_water2) - global.msg[0] = "* (The sound of rushing water& fills you with& determination.)/%%" - if (room == room_water4) - global.msg[0] = "* (A feeling of dread hangs& over you...^1)&* (But you stay determined.)/%%" - if (room == room_water_savepoint1) - { - global.msg[0] = "* (Knowing the mouse might one& day extract the cheese from& the mystical crystal...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_preundyne) - { - global.msg[0] = "* (The sound of muffled rain& on the cavetop...)/" - if (global.flag[86] == 1) - global.msg[0] = "* (The serene sound of a& distant music box...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_trashzone2) - global.msg[0] = "* (The feeling of your socks& squishing as you step& gives you determination.)/%%" - if (room == room_water_trashsavepoint) - { - global.msg[0] = "* (The waterfall here seems& to flow from the& ceiling of the cavern...)/" - global.msg[1] = "* (Occasionally^1, a piece of& trash will flow& through...)/" - global.msg[2] = "* (... and fall into the& bottomless abyss below.)/" - global.msg[3] = "* (Viewing this endless& cycle of worthless& garbage...)/" - global.msg[4] = "* (It fills you with& determination.)/%%" - if (global.flag[91] == 1) - global.msg[0] = "* (Partaking in worthless& garbage fills you& with determination.)/%%" - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = "* (You feel a calming& tranquility^1. You're filled& with determination...)/%%" - if (room == room_water_temvillage) - global.msg[0] = "* (You feel..^1. something.)&* (You're filled with& detemmienation.)/%%" - if (room == room_water_undynefinal) - { - global.msg[0] = "* (The wind is howling^1.&* You're filled with& determination...)/%%" - if (global.flag[99] > 0) - global.msg[0] = "* (The howling wind is& now a breeze^1. This gives& you determination...)/%%" - if (global.flag[350] == 1) - global.msg[0] = "* (The wind has stopped^1.&* You're filled with& determination...)/%%" - } - if (room == room_fire_prelab) - { - global.msg[0] = "* (Seeing such a strange& laboratory in a place like& this...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire6) - global.msg[0] = "* (The wooshing sound of steam& and cogs..^1. it fills you& with determination.)/%%" - if (room == room_fire_savepoint1) - { - global.msg[0] = "* (An ominous structure looms& in the distance...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_mewmew2) - { - global.msg[0] = "* (Knowing the mouse might one& day hack the computerized& safe and get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_fire_hotelfront_1) - global.msg[0] = "* (A huge structure lies north.^1)&* (You're filled with& determination.)/%%" - if (room == room_fire_hotellobby) - global.msg[0] = "* (The relaxing atmosphere& of this hotel..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_branch) - global.msg[0] = "* (The air is filled with& the smell of ozone..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_premett) - { - global.msg[0] = "* (Behind this door must be& the elevator to the King's& castle.)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_savepoint2) - { - global.msg[0] = "* (The smell of cobwebs fills& the air...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& put away.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& tossed inside recklessly.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& placed thoughtfully inside.") - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& grabbed impatiently.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out and held like a& small puppy.") - global.msg[0] += "/%" - break - case 18: - global.msg[0] = "* You can't carry any more./%%" - break - case 19: - global.msg[0] = "* The box is full./%%" - break - case 23: - global.msg[0] = "* You leave the Quiche on the& ground and tell it you'll& be right back./%%" - break - case 30: - global.msg[0] = "* Use the box?& & Yes No \C " - global.msg[1] = " " - global.msg[2] = " " - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = " %%" - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = "* You have no items^1.&* You put a little time into& the box./%%" - if (gx == 1) - global.msg[0] = "* You have no items^1.&* You put a little effort& into the box./%%" - if (gx == 2) - global.msg[0] = "* You have no items^1.&* You put a little feeling& into the box./%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 200: - global.msg[0] = "\W* Howdy^2!&* I'm\Y FLOWEY\W.^2 &* \YFLOWEY\W the \YFLOWER\W!/" - global.msg[1] = "* Hmmm.../" - global.msg[2] = "* You're new to the& UNDERGROUND^2, aren'tcha?/" - global.msg[3] = "* Golly^1, you must be& so confused./" - global.msg[4] = "* Someone ought to teach& you how things work& around here!/" - global.msg[5] = "* I guess little old me& will have to do./" - global.msg[6] = "* Ready^2?&* Here we go!/%%" - break - case 201: - global.msg[0] = "\E2* This way./%%" - global.msg[1] = "%%%" - break - case 202: - global.msg[0] = "\E2* Welcome to your new& home^1, innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of the& RUINS./%%" - break - case 203: - global.msg[0] = "\E2* The RUINS are full of& puzzles./" - global.msg[1] = "* Ancient fusions between & diversions and doorkeys./" - global.msg[2] = "* One must solve them& to move from room to& room./" - global.msg[3] = "* Please adjust yourself to the sight of them./%" - break - case 204: - global.msg[0] = "\E2* To make progress here,^1 & you will need to trigger& several switches./" - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./%" - if (global.flag[6] == 1) - { - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./" - global.msg[2] = "* ... eh^1?&* It seems that the& labelling has worn away./" - global.msg[3] = "* Oh dear./" - global.msg[4] = "* This might be far more& challenging than I& anticipated.../%%" - } - break - case 205: - global.msg[0] = "\E2* The first switch is over& on the wall./%" - break - case 206: - global.msg[0] = "\E1* Do you need some help..^1?&* Press the switch on the wall./" - global.msg[1] = "\E0* Come on^1, you can do it!/%" - break - case 207: - global.msg[0] = "\E2* Go on^1, press the switch& on the left./%" - if (global.flag[6] == 1) - global.msg[0] = "\E2* I believe it was& the switch on the& left./%" - break - case 208: - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/" - global.msg[1] = "\E0* Press the switch that I& labelled for you./%" - if (global.flag[6] == 1) - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/%%" - break - case 209: - global.msg[0] = "\E1* You are very curious,^1 & are you not?/" - global.msg[1] = "\E1* Please understand.^2 & \E0I only want the best& for you./%" - break - case 210: - global.msg[0] = "\E0* Splendid!^2 &* I am proud of you,^1 & little one./" - global.msg[1] = "* Let us move to the& next room./%" - break - case 211: - global.msg[0] = "\E1* As a human living in& the UNDERGROUND,^1 & monsters may attack you./" - global.msg[1] = "\E2* You will need to be& prepared for this& situation./" - global.msg[2] = "\E0* However, worry not!^2 &* The process is simple./" - global.msg[3] = "\E2* When you encounter a & monster,^1 you will enter& a FIGHT./" - global.msg[4] = "* While you are in a& FIGHT^1, strike up a& friendly conversation./" - global.msg[5] = "\E2* Stall for time.& I will come to resolve& the conflict./" - global.msg[6] = "\E2* Practice talking to& the dummy./%" - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = "\E1* Ahh,^1 the dummies are& not for fighting!^2 &* They are for talking!/" - global.msg[1] = "* We do not want to hurt& anybody, do we...?^2 \E0 &* Come now./%" - } - if (global.flag[10] == 1) - global.msg[0] = "\E0* Ah,^1 very good!^2 &* You are very good./%" - if (global.flag[11] == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E1* ... you ran away.../" - global.msg[2] = "\E0* Truthfully^1, that was& not a poor choice./" - global.msg[3] = "\E0* It is better to& avoid conflict& whenever possible./" - global.msg[4] = "\E1* That..^1. however^1, is& only a dummy^2.&* It cannot harm you./" - global.msg[5] = "\E1* It is made of cotton^1.&* It has no desire& for revenge.../" - global.msg[6] = "\E0* Nevermind^2.&* Stay close to me and& I will keep you safe./%" - } - if (global.flag[13] == 1) - { - global.msg[0] = "\E3* ^1.^1.^1./" - global.msg[1] = "\E4* ^1.^1.^1./" - global.msg[2] = "\E0* The next room awaits./%" - } - break - case 213: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E2 &* I do not think the dummy& will be bothered./%" - break - case 214: - global.msg[0] = "\E0* Do you need some& ideas for conversation& topics?/" - global.msg[1] = "* Well^1, I often start with& a simple 'how do you& do...'/" - global.msg[2] = "* You could ask them about& their favorite books.../" - global.msg[3] = "* Jokes can be useful for& 'breaking the ice.'/" - global.msg[4] = "* Listen to this one.../" - global.msg[5] = "* What did the skeleton& tile his roof with?/" - global.msg[6] = "* ... SHIN-gles!/" - global.msg[7] = "\E1* .../" - global.msg[8] = "\E0* Well^1, I thought it& was amusing./%" - break - case 215: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E0 &* The dummy will not& be bothered./%" - break - case 216: - global.msg[0] = "\E1* There is another puzzle& in this room.../" - global.msg[1] = "\E0* I wonder if you can& solve it?/%" - break - case 217: - global.msg[0] = "\E1* This is the puzzle^1,& but.../" - global.msg[1] = "\E0* Here^1, take my hand& for a moment./%" - break - case 218: - global.msg[0] = "\E1* Puzzles seem a little& too dangerous for& now./%" - break - case 219: - global.msg[0] = ".../%" - break - case 220: - global.msg[0] = "\E2* Greetings,^1 my child^2.&* Do not worry^1, I did& not leave you./" - global.msg[1] = "\E0* I was merely behind this& pillar the whole time./" - global.msg[2] = "* Thank you for trusting& me./" - global.msg[3] = "\E2* However^1, there was an& important reason for& this exercise./" - global.msg[4] = "* ... to test your& independence./" - global.msg[5] = "\E1* I must attend to some& business^1, and you must& stay alone for a while./" - global.msg[6] = "\E0* Please remain here^2.&*\E1 It's dangerous to& explore by yourself./" - global.msg[7] = "\E0* I have an idea^2.&* I will give you a& CELL PHONE./" - global.msg[8] = "* If you have a need for& anything^1, just call./" - global.msg[9] = "\E1* Be good^1, alright?/%" - break - case 221: - global.msg[0] = "\E0* You have done& excellently thus& far^1, my child./" - global.msg[1] = "\E2* However... I have a& difficult request to ask& of you./" - global.msg[2] = "* .../" - global.msg[3] = "* I would like you to walk& to the end of the room& by yourself./" - global.msg[4] = "\E1* Forgive me for this./%" - break - case 222: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?& Cinnamon Bscotch \C" - global.msg[5] = " " - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ini_close() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - global.msg[0] = "* Oh^1, I see.&* Thank you very much!/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* Click.../%%" - global.msg[5] = "* /" - break - case 224: - global.msg[0] = "* It's a fishing rod affixed& to the ground.../" - global.msg[1] = "* Reel it in?& & Yes No \C " - global.msg[2] = " " - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = "* All that's attached to& the end is a photo of a& weird-looking monster.../" - global.msg[1] = "* (Call Me!& Here's my number!)/" - global.msg[2] = "* You decide not to call./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* All that's attached to& the end is a note./" - global.msg[1] = "* (Nevermind^1, guys!)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* You leave it alone./%%" - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = "* I shouldn't have given myself& away so easily.../%%" - if (global.flag[56] == 4) - { - global.msg[0] = "* Did you just...&* Consume the part of me& I had given you?/" - global.msg[1] = "* In front of my very eyes!?/" - global.msg[2] = "* I have no words for you..^1.&* Begone!/%%" - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = "* Thank you for taking care& of me.../%%" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = "* Huh^1? Again...?/" - global.msg[1] = "* I'm sorry..^1. if I give you& any more^1, there will be& nothing left of me./" - global.msg[2] = "* I suppose it is true^1.&* Travelling beyond our limits& is but a fantasy./" - global.msg[3] = "* It's no different for& anyone else./" - global.msg[4] = "* All of monsterkind& are doomed to stay& underground^1, forever.../%%" - } - } - if (global.flag[56] == 1) - { - global.msg[0] = "* How am I doing^1?&* By " + chr(34) + "I" + chr(34) + " I mean the piece& of me I gave you.../" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = "* Huh^1? You lost it...^1?&* ... I suppose I can give& you another piece.../" - scr_itemget(16) - if (noroom == 1) - global.msg[2] = "* You don't have any room^1?&* OK..^1. I understand I am not& a priority for you^1, then./%%" - else - { - global.msg[2] = "* Please be careful this& time./" - global.msg[3] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = "* Hello^1.&* I am a snowman./" - global.msg[1] = "* I want to see the world..^1.&* But I cannot move./" - global.msg[2] = "* If you would be so kind^1,& traveller^1, please.../" - global.msg[3] = "* Take a piece of me and& bring it very far away.& Yes No \C " - global.msg[4] = " " - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = "* It seems you do not& have enough room for me./%%" - else - { - global.msg[0] = "* Thank you... good luck!/" - global.msg[1] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* I see^1.&* Good journey^1, then./%%" - break - case 228: - global.msg[0] = "SANS!!^1!&THAT DIDN'T DO&ANYTHING!/" - if (global.flag[254] == 0) - global.msg[0] = "SANS!!^1!&THEY DIDN'T EVEN&LOOK AT IT!/" - scr_sansface(1, 0) - global.msg[2] = "* whoops./" - global.msg[3] = "* i knew i should have& used today's crossword& instead./" - scr_papface(4, 1) - global.msg[5] = "WHAT!^1?&CROSSWORD!?/" - global.msg[6] = "I CAN'T BELIEVE&YOU SAID THAT!!/" - global.msg[7] = "IN MY OPINION.../" - global.msg[8] = "\E3JUNIOR JUMBLE&IS EASILY THE&HARDEST./" - scr_sansface(9, 0) - global.msg[10] = "* what^1? really^1, dude^1?&* that easy-peasy word& scramble?/" - global.msg[11] = "\E1* that's for baby bones./" - scr_papface(12, 3) - global.msg[13] = "UN^1. BELIEVABLE./" - global.msg[14] = "\E0HUMAN!!^1!&SOLVE THIS DISPUTE!/" - global.msg[15] = "\TS \F0 \E0 \T0 %" - global.msg[16] = "* (Which is harder?)& & Jumble Crossword \C " - global.msg[17] = " " - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = "HA^1! HA^1! YES!/" - global.msg[2] = "HUMANS MUST BE&VERY INTELLIGENT!/" - global.msg[3] = "IF THEY ALSO FIND&JUNIOR JUMBLE&SO DIFFICULT!/" - global.msg[4] = "NYEH^1! HEH^1! HEH HEH!/%%" - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = "YOU TWO ARE WEIRD!/" - global.msg[2] = "\E3CROSSWORDS ARE SO&EASY./" - global.msg[3] = "IT'S THE SAME&SOLUTION EVERY&TIME./" - global.msg[4] = "\E0I JUST FILL ALL&THE BOXES IN WITH&THE LETTER " + chr(34) + "Z" + chr(34) + ".../" - global.msg[5] = "BECAUSE EVERY TIME&I LOOK AT A&CROSSWORD.../" - global.msg[6] = "ALL I CAN DO IS&SNORE!!!/" - global.msg[7] = "NYEH HEH HEH!!!/%%" - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here you go^1!&* Have a super-duper day^1!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1?&* You don't have enough& money.../" - global.msg[1] = "* I wish I could make& Nice Cream for free.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Out in the middle of& the woods.../%%" - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hey^1, you have an umbrella^1,& just like my cart.../" - global.msg[1] = "* Such solidarity^1!&* I have no choice but to& give you a deal!/" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Umbrella solidarity!^1?&* I guess I have to give& you a deal.../" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - } - if (itemcount > 2) - { - global.msg[0] = "* Hey^1!&* You have 3 Punch Cards!/" - global.msg[1] = "* How about redeeming them& for some Nice Cream!?/" - global.msg[2] = "* It's free!& & Yes No \C" - global.msg[3] = " " - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Super^1! Here you go^1!&* Your Card's in the box!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1? No money^1?&* Sorry^1, I can't give it to& you for free./%%" - if (global.flag[85] == 1) - global.msg[0] = "* Huh^1? You can't afford it& even with the discount^1?&* I.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = "* Here^1! A free Nice Cream^1!&* (You lost 3 cards and got& a Nice Cream.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Hidden in the depths of a& watery cavern.../%%" - } - break - case 235: - global.msg[0] = "* i've been thinking& about selling treats& too./" - global.msg[1] = "* want some fried snow^1?&* it's just 5G.& Buy No\C" - global.msg[2] = " " - break - case 236: - if (global.choice == 0) - { - global.msg[0] = "* did i say 5G^1?&* i meant 50G^1.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* i should charge way& more than than that./%%" - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = "* really^1?&* how about 5000G?& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* that's still too low./%%" - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = "* 50000G^1.&* that's my final offer.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* i have to pay for& the raw materials& somehow./%%" - break - case 239: - if (global.choice == 0) - { - global.msg[0] = "* what^1?&* you don't have the& money?/" - global.msg[1] = "* hey^1, that's okay./" - global.msg[2] = "\E1* i don't have any snow./%%" - if (global.gold >= 50000) - { - global.msg[0] = "* wow^1, that's a lot& of cash./" - global.msg[1] = "\E3* that's why i'm sorry& to say.../" - global.msg[2] = "\E3* i can't sell you& this fried snow./" - global.msg[3] = "\E2* it's got too much& sentimental value./%%" - } - } - if (global.choice == 1) - global.msg[0] = "* don't you know a& good deal when you& hear one?/%%" - break - case 240: - global.msg[0] = "WHAT!^1?&HOW DID YOU&AVOID MY TRAP?/" - global.msg[1] = "\E3AND^1, MORE&IMPORTANTLY.../" - global.msg[2] = "\E0IS THERE ANY&LEFT FOR ME???/" - global.msg[3] = "\TS \F0 \E0 \T0 %" - global.msg[4] = "* (What do you tell Papyrus& about his spaghetti?)& Ate it Left it \C " - global.msg[5] = " " - break - case 241: - scr_papface(0, 0) - global.msg[1] = "REALLY!?/" - if (global.choice == 0) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "NO ONE'S EVER&ENJOYED MY&COOKING BEFORE.../" - global.msg[4] = "\E0WELL THEN!!/" - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "YOU RESISTED THE&FLAVOR OF MY&HOMECOOKED PASTA.../" - global.msg[4] = "JUST SO YOU&COULD SHARE&IT WITH ME???/" - global.flag[62] = 2 - } - global.msg[5] = "\E0FRET NOT HUMAN^1!&I^1, MASTER CHEF&PAPYRUS.../" - global.msg[6] = "WILL MAKE YOU ALL&THE PASTA YOU&COULD EVER WANT!/" - global.msg[7] = "HEH HEH HEH HEH&HEH HEH NYEH!/%%" - break - case 243: - global.msg[0] = "HEY!/" - global.msg[1] = "IT'S THE HUMAN!/" - global.msg[2] = "\E0YOU'RE GONNA&LOVE THIS&PUZZLE!/" - global.msg[3] = "IT WAS MADE&BY THE GREAT&DR. ALPHYS!/" - global.msg[4] = "YOU SEE&THESE TILES&!?/" - global.msg[5] = "ONCE I THROW&THIS SWITCH.../" - global.msg[6] = "THEY WILL&BEGIN TO&CHANGE COLOR!/" - global.msg[7] = "EACH COLOR HAS&A DIFFERENT&FUNCTION!/" - global.msg[8] = "RED TILES ARE&IMPASSABLE!/" - global.msg[9] = "YOU CANNOT&WALK ON THEM!/" - global.msg[10] = "YELLOW TILES&ARE ELECTRIC!/" - global.msg[11] = "THEY WILL&ELECTROCUTE&YOU!/" - global.msg[12] = "GREEN TILES&ARE ALARM&TILES!/" - global.msg[13] = "IF YOU STEP&ON THEM.../" - global.msg[14] = "YOU WILL HAVE&TO FIGHT A&MONSTER!!/" - global.msg[15] = "ORANGE TILES&ARE ORANGE-&SCENTED./" - global.msg[16] = "THEY WILL MAKE&YOU SMELL&DELICIOUS!/" - global.msg[17] = "BLUE TILES ARE&WATER TILES./" - global.msg[18] = "SWIM THROUGH&IF YOU LIKE^1,&BUT.../" - global.msg[19] = "IF YOU SMELL&LIKE ORANGES!/" - global.msg[20] = "THE PIRANHAS&WILL BITE&YOU./" - global.msg[21] = "ALSO^1, IF A&BLUE TILE IS&NEXT TO A,/" - global.msg[22] = "YELLOW TILE^1,&THE WATER WILL&ALSO ZAP YOU!/" - global.msg[23] = "PURPLE TILES&ARE SLIPPERY!/" - global.msg[24] = "YOU WILL SLIDE&TO THE NEXT&TILE!/" - global.msg[25] = "HOWEVER^1, THE&SLIPPERY&SOAP.../" - global.msg[26] = "SMELLS LIKE&LEMONS!!/" - global.msg[27] = "WHICH PIRANHAS&DO NOT LIKE!/" - global.msg[28] = "PURPLE AND&BLUE ARE OK!/" - global.msg[29] = "FINALLY^1,&PINK TILES./" - global.msg[30] = "THEY DON'T DO&ANYTHING./" - global.msg[31] = "STEP ON THEM&ALL YOU LIKE./" - global.msg[32] = "HOW WAS THAT!^1?&UNDERSTAND???/" - global.msg[33] = "\TS \F0 \E0 \T0 %" - global.msg[34] = "* (Understand the explanation?)& & Of course No \C " - global.msg[35] = " " - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "OKAY..^1.&I GUESS I'LL&REPEAT MYSELF.../" - global.msg[2] = "\E0RED TILES ARE&IMPASSABLE./" - global.msg[3] = "YELLOW TILES ARE&ELECTRIC AND&DANGEROUS./" - global.msg[4] = "BLUE TILES MAKE&YOU FIGHT A&MONSTER./" - global.msg[5] = "GREEN TILES ARE&WATER TILES./" - global.msg[6] = "ORANGE TILES ARE&ORANGE SCENTED./" - global.msg[7] = "IF YOU STEP ON&ORANGE^1, DON'T STEP&ON GREEN./" - global.msg[8] = "\E3BROWN TILES ARE.../" - global.msg[9] = "\E1WAIT!!^1!&THERE ARE NO&BROWN TILES.../" - global.msg[10] = "\E0PURPLE TILES&SMELL LIKE&LEMONS.../" - global.msg[11] = "\E3WHY DON'T THE&YELLOW ONES&SMELL LEMONY?/" - global.msg[12] = "\E3UMM.../" - global.msg[13] = "\E1WAIT!^1!&DID I MIX UP&GREEN AND BLUE!?/" - global.msg[14] = "THE BLUE ONES&ARE WATER ONES!/" - global.msg[15] = "\E3PINK TILES.../" - global.msg[16] = "I DON'T..^1.&REMEMBER???/" - global.msg[17] = "\E1WAIT!!!/" - global.msg[18] = "\E3THOSE ONES DON'T&DO ANYTHING./" - global.msg[19] = "\E0OKAY^1!&DO YOU UNDERSTAND&BETTER NOW!?/" - global.msg[20] = "\TS \F0 \E0 \T0 %" - global.msg[21] = "* (Understand the explanation?)& & Yes Even less \C " - global.msg[22] = " " - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "........../" - global.msg[2] = "OK^1, YOU KNOW&WHAT???/" - global.msg[3] = "HOW ABOUT..^1.&YOU JUST.../" - global.msg[4] = "DO THIS PUZZLE..^1.&ON YOUR OWN.../" - global.msg[5] = "I'LL LEAVE THE&INSTRUCTIONS.../" - global.msg[6] = "JUST READ THEM./" - global.msg[7] = "THEN WHEN YOU&UNDERSTAND IT.../" - global.msg[8] = "YOU CAN THROW&THE SWITCH./" - global.msg[9] = "AND DO IT AT&YOUR OWN PACE./" - global.msg[10] = "GOOD LUCK./" - global.msg[11] = "NYEH..^1.&HEH..^1.&HEH!/%%" - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = "* (There's a lone quiche& sitting underneath& this bench.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* It's just a bench./%%" - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Abandoned& Quiche.)/%%" - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = "* (You're carrying too much.)/" - global.msg[1] = "* (You aren't ready for the& responsibility.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* (The quiche was left all& alone...)/%%" - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = "* (There's a tutu lying on& the ground here.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Old Tutu.)/%%" - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = (("* (The box contains " + card) + " cards.)/") - if (global.flag[80] > 2) - global.msg[0] = (("* (Two bugs in the box are& playing a " + card) + "-card game.)/") - if (global.flag[80] > 4) - global.msg[0] = (("* (There's a smiley face made& of " + card) + " cards in the box.)/") - if (global.flag[80] > 6) - global.msg[0] = (("* (A house made of " + card) + " cards& sits in the box.)/") - if (global.flag[80] > 12) - global.msg[0] = "* (The box is overstuffed with& cards.)/" - global.msg[1] = "* (Take a card?)& & Take Leave \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's a box for storing Punch& Cards^1.)&* (It's empty right now.)/%%" - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = "* (You got a Punch Card.)/%%" - if (global.flag[80] > 2) - global.msg[0] = "* (All games must end one day.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 4) - global.msg[0] = "* (Happiness is fleeting.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 6) - global.msg[0] = "* (The house collapses.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 12) - global.msg[0] = "* (You got a Punch Card.)/%%" - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = "* (It's a pair of ballet shoes.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Ballet Shoes.)/%%" - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 254: - global.msg[0] = "* (This little bird wants to& carry you across.)/" - global.msg[1] = "* (Accept the bird's offer?)& & Get ride No \C " - global.msg[2] = " " - if (global.flag[85] == 1) - global.msg[0] = "* (Umbrellas and birds...^1)&* (A bad combination.)/%%" - break - case 255: - global.msg[0] = " %%" - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = "* (It's a legendary artifact.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The artifact is gone.)/%%" - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = "* (This will never happen.)/%%" - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - if (noroom == 2) - global.msg[0] = "* (You're carrying too many& dogs.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/" - global.msg[1] = "* (Take a package of noodles?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/%%" - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Instant Noodles.)/%%" - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* (You decide to stay healthy.)/%%" - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = "* (There's a frypan lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Burnt Pan.)/%%" - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = "* (There's an apron lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Stained Apron.)/%%" - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = "* (There's a Glamburger inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Glamburger.)/%%" - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = "* (There's 100G inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = "* (You got 100G.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = "* (There's a worn dagger& inside the box.)/" - else - global.msg[0] = "* (Knife inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Worn Dagger.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got the Real Knife.)/%%" - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = "* (There's a heart-shaped& locket inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Heart-shaped& Locket.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got The Locket.)/%%" - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 272: - global.msg[0] = "* (The box is empty.)/%%" - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = "* Hello...&* Would you like some& Nice Cream...?/" - global.msg[1] = "* It's the frozen treat...&* That warms your heart./" - global.msg[2] = "* Now only 12G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[250] >= 1) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1.&* It's the frozen treat^1.&* That warms your heart./" - global.msg[2] = "* Now just 12G.& & Yes No \C" - global.msg[3] = " " - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here^1.&* (You got the Nice Cream.)/%%" - if (afford == 0) - global.msg[0] = "* You don't have enough& money.../%%" - } - if (noroom == 1) - global.msg[0] = "* Drop something./%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* Life..^1. is suffering./%%" - } - break - case 500: - global.msg[0] = "* (Golden flowers.^1)&* (They must have& broken your fall.)/%%" - global.msg[1] = "%%%" - break - case 501: - global.msg[0] = "* " + chr(34) + "Press [Z] to read signs!" + chr(34) + "/%%" - break - case 502: - global.msg[0] = "* Just a regular old pillar./%%" - break - case 503: - global.msg[0] = "* Please don't step on the& leaves./%%" - break - case 504: - global.msg[0] = "* Didn't you read the sign& downstairs?/%%" - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* WHOA there^1, pardner^2!&* Who said you could push& me around?/" - global.msg[1] = "* HMM^2?&* So you're ASKIN' me to& move over?/" - global.msg[2] = "* Okay^1, just for you^1,& pumpkin./%%" - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You want me to move some& more?/" - global.msg[1] = "* Alrighty^1, how's this?/%%" - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* That was the wrong direction?/" - global.msg[1] = "* Okay^1, think I got it./%%" - } - if (conversation == 9) - global.msg[0] = "* Was that helpful?/%%" - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You wanted me to STAY there?/" - global.msg[1] = "* You're giving me a real& workout./%%" - } - } - else - { - global.msg[0] = "* Aren't things easier when& you just ask?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* The exit's open^1?&* Guess I better roll out.../" - global.msg[1] = "* Hey^1, y'mind giving me a& push^1, pumpkin?/%%" - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = "*'Take one.'&* Take a candy?& Yes No \C" - if (global.flag[34] == 0) - global.msg[0] = "* It says 'take one.'&* Take a piece of candy?& Yes No \C" - } - else - global.msg[0] = "* Look at what you've done./%%" - global.msg[1] = " " - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = "* You took a piece of candy.&* (Press [C] to open the menu.)/%%" - if (global.flag[34] == 2) - global.msg[0] = "* You took more candy^1.&* How disgusting../%%" - if (global.flag[34] == 3) - global.msg[0] = "* You take another piece.&* You feel like the& scum of the earth.../%%" - if (global.flag[34] == 4) - global.msg[0] = "* You took too much too fast.&* The candy spills onto& the floor./%%" - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = "* In this hellish world^1, you& can only take 3 pieces& of candy.../%%" - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - } - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 510: - global.msg[0] = "* zzzzzzzzzzzzzzz..^1.&* zzzzzzzzzzzzzz.../" - global.msg[1] = "* zzzzzzzzzz..^1.&* (are they gone yet^1)&* zzzzzzzzzzzzzzz.../" - global.msg[2] = "* (This ghost keeps saying 'z'& out loud repeatedly^1,& pretending to sleep.)/" - global.msg[3] = "* Move it with force?& & Yes No \C" - global.msg[4] = " " - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = "* It says 'Take them all.'&* Take a candy?& Yes No \C" - global.msg[1] = " " - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = "* You took a piece.&* Boy^1, that's heavy./%%" - if (haveit == 1) - global.msg[0] = "* You can't carry more.&* It's just too heavy./%%" - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 7G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 18G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = "* You found a Faded Ribbon./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = "* Nothing happened./%%" - if (global.choice == 1) - global.msg[0] = "%%" - if (global.flag[43] > 25) - global.msg[0] = "* You're making the switches& uncomfortable with all& this attention./%%" - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = "* You hear a clicking sound./%%" - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = "* You found the Toy Knife./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = "* It's TORIEL's diary.&* Read the circled passage?& Yes No \C" - global.msg[1] = " " - break - case 525: - if (global.choice == 0) - { - global.msg[0] = "* You read the passage.../" - global.msg[1] = "* " + chr(34) + "Why did the skeleton want& a friend?" + chr(34) + "/" - global.msg[2] = "* " + chr(34) + "Because she was feeling& BONELY..." + chr(34) + "/" - global.msg[3] = "* The rest of the page is& filled with jokes of& a similar caliber./%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& butterscotch-cinnamon& pie./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& snail pie.../%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - break - case 527: - global.msg[0] = "* Hello there^1,& little one!/" - global.msg[1] = "* The pie has not& cooled down yet./" - global.msg[2] = "* Perhaps you should& take a nap.& Yes No \C " - global.msg[3] = " " - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = "* Sweet dreams./%%" - else - { - global.msg[0] = "\E1* You'd rather stay& up and chat with& me^1, then?/" - if (global.flag[103] > 0) - global.msg[0] = "* Up already^1, I see?/" - global.msg[1] = "\E0* Um^1, I want you to know& how glad I am to& have someone here./" - global.msg[2] = "* There are so many& old books I want& to share./" - global.msg[3] = "* I want to show you& my favorite bug-& hunting spot./" - global.msg[4] = "* I've also prepared& a curriculum for& your education./" - global.msg[5] = "* This may come as& a surprise to you.../" - global.msg[6] = "* But I have always& wanted to be a& teacher./" - global.msg[7] = "\E1* ... actually^1, perhaps& that isn't very& surprising./" - global.msg[8] = "\E5* STILL./" - global.msg[9] = "\E0* I am glad to have& you living here./" - global.msg[10] = "\E1* Oh^1, did you& want something?/" - global.msg[11] = "* What is it?& When can& Nothing I go home?\C " - global.msg[12] = " " - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = "* Well^1, talk to me& again if you& need anything./%%" - else - { - global.msg[0] = "\E1* What^1?&* This..^1. this IS your& home now./" - global.msg[1] = "* Um..^1. would you like& to hear about this& book I am reading?/" - if (global.choice == -1) - { - global.msg[0] = "\E0* Oh^1, hello!/" - global.msg[1] = "* Did you want to& hear about the& book I am reading?/" - } - global.msg[2] = "\E0* It is called& " + chr(34) + "72 Uses for Snails." + chr(34) + "/" - global.msg[3] = "* How about it?& How to exit& Sure the RUINS\C " - global.msg[4] = " " - } - break - case 530: - global.plot = 19.3 - global.msg[0] = "* Here is an exciting& snail fact./" - if (global.choice == 1) - global.msg[0] = "\E1* Um^1.^1.^1.&*\E0 How about an exciting& snail fact?/" - global.msg[1] = "\E2* Did you know& that snails.../" - r = round(random(3)) - if (r == 0) - global.msg[2] = "\E0* Have a chainsaw-like& tongue called a& radula?/" - if (r == 1) - global.msg[2] = "\E0* Sometimes flip their& digestive systems& as they mature?/" - if (r == 2) - global.msg[2] = "\E0* Make terrible& shoelaces?/" - if (r == 3) - global.msg[2] = "\E0* Talk^2. Really^2. Slowly^2?&* Just kidding^1, snails& don't talk./" - global.msg[3] = "\E0* Interesting.& How to exit& Yeah the RUINS\C " - global.msg[4] = " " - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = "* Well^1, bother me& if you need anything& else./%%" - else - { - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something^1.&* Stay here./%%" - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = "\E0* What is it?& How to exit& Nothing the RUINS\C " - } - global.msg[1] = " " - break - case 532: - if (global.choice == 0) - global.msg[0] = "* If you need anything^1,& just ask./%%" - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something.&* Stay here./%%." - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = " " - break - case 540: - global.msg[0] = "\E2NYOO HOO HOO.../" - global.msg[1] = "I CAN'T EVEN&STOP SOMEONE AS&WEAK AS YOU.../" - global.msg[2] = "UNDYNE'S GOING TO&BE DISAPPOINTED&IN ME./" - global.msg[3] = "I'LL NEVER JOIN THE&ROYAL GUARD..^1.&AND.../" - global.msg[4] = "MY FRIEND QUANTITY&WILL REMAIN&STAGNANT!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (What should you say?)& Let's be What a& friends loser\C" - global.msg[7] = " " - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = "\E0WOWIE!^1!&YOU DID IT!!!/" - global.msg[1] = "YOU DIDN'T DO A&VIOLENCE!!!/" - global.msg[2] = "\E5TO BE HONEST^1,&I WAS A LITTLE&AFRAID.../" - global.msg[3] = "\E0BUT YOU'RE ALREADY&BECOMING A GREAT&PERSON!/" - global.msg[4] = "\E7I'M SO PROUD I&COULD CRY!!!/" - global.msg[5] = "\E3... WAIT^1, WASN'T I&SUPPOSED TO&CAPTURE YOU...?/" - global.msg[6] = "\E0WELL^1, FORGET IT!/" - global.msg[7] = "I JUST WANT YOU&TO BE THE BEST&PERSON YOU CAN BE./" - global.msg[8] = "SO LET'S LET&BYBONES BE&BYBONES./" - global.msg[9] = "I'LL EVEN TELL YOU&HOW TO LEAVE THE&UNDERGROUND!/" - global.msg[10] = "JUST KEEP GOING&EAST!/" - global.msg[11] = "EVENTUALLY YOU'LL&REACH THE KING'S&CASTLE./" - global.msg[12] = "THEN YOU CAN&LEAVE!/%%" - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "REALLY!^1?&YOU WANT TO BE&FRIENDS^1, WITH ME???/" - global.msg[2] = "WELL THEN.../" - global.msg[3] = "\E0I GUESS..^1./" - global.msg[4] = "I GUESS&I CAN MAKE AN&ALLOWANCE FOR YOU!/" - global.msg[5] = " %" - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "HUH^1?&WHY WOULD YOU.../" - global.msg[2] = "BERATE YOURSELF&SO LOUDLY???/" - global.msg[3] = "IS IT BECAUSE.../" - global.msg[4] = "\E3YOU DON'T THINK&YOU'RE GOOD ENOUGH&TO BE MY FRIEND?/" - global.msg[5] = "\E0NO!!^1!&YOU'RE GREAT!!^1!&I'LL BE YOUR FRIEND!/" - } - if (global.flag[66] == 1) - { - global.msg[6] = "WOWIE!^1!&WE HAVEN'T EVEN HAD&OUR FIRST DATE.../" - global.msg[7] = "AND I'VE ALREADY&MANAGED TO HIT&THE FRIEND ZONE!!!/" - global.msg[8] = "WHO KNEW THAT&ALL I NEEDED TO&MAKE PALS.../" - } - else - { - global.msg[6] = "WOW!!!/" - global.msg[7] = "I HAVE FRIENDS!!!/" - global.msg[8] = "AND WHO KNEW THAT&ALL I NEEDED TO&MAKE THEM.../" - } - global.msg[9] = "WAS TO GIVE PEOPLE&AWFUL PUZZLES AND&THEN FIGHT THEM??/" - global.msg[10] = "YOU TAUGHT ME A&LOT^1, HUMAN./" - global.msg[11] = "I HEREBY GRANT&YOU PERMISSION&TO PASS THROUGH!/" - global.msg[12] = "AND I'LL GIVE&YOU DIRECTIONS&TO THE SURFACE./" - global.msg[13] = "CONTINUE FORWARD&UNTIL YOU REACH THE&END OF THE CAVERN./" - global.msg[14] = "\WTHEN..^1. WHEN YOU&REACH THE CAPITAL^1,&CROSS \YTHE BARRIER\W./" - global.msg[15] = "THAT'S THE MAGICAL&SEAL TRAPPING US&ALL UNDERGROUND./" - global.msg[16] = "ANYTHING CAN ENTER&THROUGH IT^1, BUT&NOTHING CAN EXIT.../" - global.msg[17] = "... EXCEPT SOMEONE&WITH A POWERFUL&SOUL./" - global.msg[18] = "... LIKE YOU!!!/" - global.msg[19] = "THAT'S WHY THE&KING WANTS TO&ACQUIRE A HUMAN./" - global.msg[20] = "HE WANTS TO OPEN&THE BARRIER WITH&SOUL POWER./" - global.msg[21] = "THEN US MONSTERS&CAN RETURN TO&THE SURFACE!/%%" - break - case 544: - global.msg[0] = "YOU'RE BACK AGAIN?!?!/" - global.msg[1] = "I FINALLY REALIZE&THE TRUE REASON WHY./" - global.msg[2] = "YOU.../" - global.msg[3] = "JUST MISS SEEING MY&FACE SO MUCH.../" - global.msg[4] = "I'M NOT SURE I&CAN FIGHT SOMEONE&WHO FEELS THIS WAY./" - global.msg[5] = "BUT MOSTLY..^1. I'M GETTING&REALLY TIRED OF&CAPTURING YOU!/" - global.msg[6] = "SO..^1.&WHAT DO YOU SAY?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* (Fight Papyrus?)& & Yes No\C" - global.msg[8] = " " - break - case 545: - global.msg[0] = "\TP %" - if (global.choice == 0) - { - global.msg[1] = "OKAY.../" - global.msg[2] = "I GUESS./" - global.msg[3] = "IF YOU WANT ME TO&CAPTURE YOU./" - global.msg[4] = "I'LL TRY AGAIN!!!/%%" - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = "... OKAY.../" - global.msg[2] = "I GUESS I'LL ACCEPT&MY FAILURE.../%%" - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = "* Welcome to Snowed Inn^1!&* Snowdin's premier hotel!/" - global.msg[1] = "* One night is 80G.& & Stay Leave\C" - if (global.flag[72] == 2) - { - global.msg[0] = "* Back again^1?&* Well^1, stay as long as you& like./" - global.msg[1] = "* How about it?& & Stay Leave\C" - } - global.msg[2] = " " - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = "* What^1?&* No^1, you can't get a& second key!" - if (global.flag[7] == 1) - { - global.msg[0] = "* Hello^1!&* Sorry^1, no time for a& nap.../" - global.msg[1] = "* Snowed Inn is shutting& down so we can all go& to the surface./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Oh^1, there you are^1.&* I was worrying about& you!/" - global.msg[1] = "* Things are going to be OK^1,& you hear?/" - global.msg[2] = "* We're all going to the& surface world soon.../" - global.msg[3] = "* There's bound to be a& place you can stay there!/%%" - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = "Error./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = "* ... You don't even have 80G?/" - global.msg[1] = "* Oh^1! You poor thing^1.&* I can only imagine what& you've been through./" - global.msg[2] = "* One of the rooms upstairs& is empty^1./" - global.msg[3] = "* You can sleep there for& free^1, okay?/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = "* You aren't carrying enough& money./%%" - } - else - global.msg[0] = "* Well^1, feel free to come& back any time./%%" - break - case 549: - global.msg[0] = "* (Look through the telescope?)& & Yes No\C" - global.msg[1] = " " - break - case 550: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = "* i'm thinking about& getting into the& telescope business./" - global.msg[1] = "* it's normally 50000G& to use this premium& telescope.../" - global.msg[2] = "* but..^1.&*\E1 since i know you^1,& you can use it for free./" - global.msg[3] = "\E2* howzabout it?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Use the telescope?)& & Yes No\C" - } - else - { - global.msg[0] = "* huh^1?&* you aren't satisfied?/" - global.msg[1] = "\E1* don't worry./" - global.msg[2] = "\E2* i'll give you a& full refund./%%" - } - global.msg[6] = " " - break - case 552: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = "* well^1, come back& whenever you want./%%" - } - break - case 553: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - global.flag[75] = global.armor - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "\E3HOW DID I GET THIS&NUMBER...?/" - global.msg[4] = "\E0IT WAS EASY!!!/" - global.msg[5] = "\E0I JUST DIALED EVERYNUMBER SEQUENTIALLYUNTIL I GOT YOURS!!!/" - global.msg[6] = "NYEH HEH HEH HEH!!/" - global.msg[7] = "\E2SO..^1.&WHAT ARE YOU&WEARING...?/" - global.msg[8] = "\E3I'M..^1.&ASKING FOR A&FRIEND./" - global.msg[9] = (("\E0SHE THOUGHT SHE&SAW YOU WEARING A&" + armor) + "./") - global.msg[10] = (("\E3IS THAT TRUE^1?&ARE YOU WEARING A&" + armor) + "?/") - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* (What will you say?)& & Yes No\C" - global.msg[13] = " " - break - case 554: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = (("SO YOU ARE WEARING&A " + armor) + ".../") - global.msg[2] = "GOT IT!!^1!&WINK WINK!!!/" - global.msg[3] = "HAVE A NICE DAY!/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - } - else - { - global.flag[76] = 1 - global.msg[1] = (("SO YOU AREN'T&WEARING A&" + armor) + ".../") - global.msg[2] = "GOT IT!/" - global.msg[3] = "YOU'RE MY FRIEND^1,&SO I TRUST YOU&100-PERCENT./" - global.msg[4] = "HAVE A NICE DAY!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - break - case 556: - global.msg[0] = "* (There's an empty pie tin& inside the stove.)/%%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "\E0MY BROTHER ALWAYS&GOES OUT TO EAT^1.&BUT.../" - global.msg[2] = "\E3RECENTLY^1, HE TRIED&'BAKING' SOMETHING./" - global.msg[3] = "IT WAS LIKE..^1.&A QUICHE./" - global.msg[4] = "BUT FILLED WITH A&SUGARY^1, NON-EGG&SUBSTANCE./" - global.msg[5] = "\E0HOW ABSURD!/%%" - } - break - case 557: - global.msg[0] = "* (It's a joke book.)/" - global.msg[1] = "* (Take a look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 558: - if (global.choice == 0) - { - global.msg[0] = "* (Inside the joke book was& a quantum physics book.)/" - global.msg[1] = "* (You look inside...)/" - global.msg[2] = "* (Inside the quantum physics& book was another joke& book.)/" - global.msg[3] = "* (You look inside...)/" - global.msg[4] = "* (There's another quantum& physics book...)/" - global.msg[5] = "* (You decide to stop.)/%%" - } - else - global.msg[0] = " %%" - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THAT'S MY ROOM^1!/" - global.msg[2] = "IF YOU'VE&FINISHED LOOKING&AROUND.../" - global.msg[3] = "WE COULD GO IN&AND.../" - global.msg[4] = "" + chr(34) + "HANG-OUT" + chr(34) + " LIKE&A PAIR OF VERY&COOL FRIENDS?/" - if (global.flag[66] == 1) - global.msg[4] = "\E3DO WHATEVER&PEOPLE DO WHEN&THEY DATE???/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Go inside?)& & Yes No\C" - global.msg[7] = " %" - } - else - { - global.msg[0] = "* (It's the door to& Papyrus's room.)/" - global.msg[1] = "* (It's covered in many& labels...)/" - global.msg[2] = "\TP %" - global.msg[3] = "* (NO GIRLS ALLOWED!)/" - global.msg[4] = "* (NO BOYS ALLOWED!)/" - global.msg[5] = "* (PAPYRUS ALLOWED.)/%%" - } - break - case 560: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THERE ARE NO&SKELETONS INSIDE&MY CLOSET!!!/" - global.msg[2] = "\E3EXCEPT ME&SOMETIMES./" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Look in the closet?)& & Yes No\C" - global.msg[5] = " " - } - else - { - global.msg[0] = "* (Look in the closet?)& & Yes No\C" - global.msg[1] = " " - } - break - case 562: - if (global.choice == 0) - global.msg[0] = "* (Clothes are hung up& neatly inside.)/%%" - else - { - global.msg[0] = " %%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "IT'S OK TO BE&INTIMIDATED BY&MY FASHION SENSE./%%" - } - } - break - case 563: - global.msg[0] = "\E3SO^1, UM.../" - global.msg[1] = "\E3IF YOU'VE SEEN&EVERYTHING.../" - global.msg[2] = "\E2DO YOU WANT TO&START HANGING OUT?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the hangouts?)& & Yes No\C" - global.msg[5] = " " - if (global.flag[66] == 1) - { - global.msg[2] = "\E2DO YOU WANT TO&START THE DATE?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the date?)& & Yes No\C" - global.msg[5] = " " - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = "\E0OKAY!!^1!&DATING START!!!/%%" - if (global.flag[66] == 0) - global.msg[1] = "\E0OKAY!!^1!&LET'S HANG TEN!!/%%" - } - else - { - scr_papface(0, 2) - global.msg[1] = "\E2TAKE YOUR TIME..^1.&I'LL WAIT FOR&YOU./%%" - } - break - case 565: - global.msg[0] = "* (This mailbox is labelled& " + chr(34) + "PAPYRUS" + chr(34) + ".)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 566: - if (global.choice == 0) - global.msg[0] = "* (It's empty.)/%%" - else - global.msg[0] = "* (You realize that would& probably be illegal.)/%%" - break - case 567: - global.msg[0] = "* what^1?&* haven't you seen a guy& with two jobs before?/" - global.msg[1] = "\E1* fortunately^1, two jobs& means twice as many& legally-required breaks./" - global.msg[2] = "\E0* i'm going to grillby's.&* wanna come?& Yeah I'm busy \C" - global.msg[3] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - if (scr_murderlv() >= 7) - { - global.msg[0] = "\E2* hey^1, looks like you're& really turning yourself& around./" - global.msg[1] = "\E0* how about i treat you& to lunch at grillby's?/" - global.msg[2] = "\E1* ... when everyone you& scared away comes& back^1, i mean./%%" - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = "* well^1, if you insist..^1.&* i'll pry myself away& from my work.../%%" - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* OK^1. have fun./%%" - break - case 570: - global.msg[0] = "\E1* whoops^1, watch where& you sit down./" - global.msg[1] = "* sometimes weirdos put& whoopee cushions on& the seats./" - global.msg[2] = "\E0* anyway^1, let's order./" - global.msg[3] = "* whaddya want...?& & Fries Burger\C" - global.msg[4] = " " - break - case 571: - global.msg[0] = "* ok^1, coming right up./%%" - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& fries./%%" - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& burg./%%" - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = "* so^1, what do you& think.../" - global.msg[1] = "* of my brother?& & Cool Uncool\C" - global.msg[2] = " " - break - case 573: - if (global.choice == 0) - { - global.msg[0] = "* of course he's cool./" - global.msg[1] = "\E1* you'd be cool too& if you wore that& outfit every day./" - global.msg[2] = "\E0* he'd only take that& thing off if he& absolutely had to./" - global.msg[3] = "* oh well^1.&* at least he washes& it./" - global.msg[4] = "\E1* and by that i mean& he wears it in& the shower./%%" - } - else - { - global.msg[0] = "* hey^1, pal./" - global.msg[1] = "\E1* sarcasm isn't funny^1,& okay?/" - global.msg[2] = "\E0* my brother's a real& star./" - global.msg[3] = "* he's the person who& pushed me to get& this sentry job./" - global.msg[4] = "* maybe it's a little& strange^1, but& sometimes.../" - global.msg[5] = "* ... it's nice to have& someone call you out& on being lazy./" - global.msg[6] = "\E1* even though nothing& could be further& from the truth./%%" - } - break - case 574: - global.msg[0] = "* here comes the grub./" - global.msg[1] = "* want some ketchup^1?& & Yes No \C" - global.msg[2] = " " - break - case 575: - if (global.choice == 0) - global.msg[0] = "\E2* bone appetit./%%" - else - { - global.msg[0] = "\E2* more for me./%%" - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = "\W* have you ever heard& of a \Ytalking flower\W?& Yes No \C" - global.msg[1] = " " - break - case 577: - if (global.choice == 0) - global.msg[0] = "\E1* so you know all& about it./" - if (global.choice == 1) - global.msg[0] = "\E1* i'll tell you^1, then./" - global.msg[1] = "\W*\E0 the \Becho flower\W./" - global.msg[2] = "* they're all over the& marsh./" - global.msg[3] = "* say something to them^1,& and they'll repeat it& over and over.../" - global.msg[4] = "* what about it?/" - global.msg[5] = "* well^1, papyrus told& me something interesting& the other day./" - global.msg[6] = "* sometimes^1, when no& one else is around.../" - global.msg[7] = "* a flower appears and& whispers things to& him./" - global.msg[8] = "* flattery..^1.&* advice..^1.&* encouragement.../" - global.msg[9] = "* ... predictions./" - global.msg[10] = "* weird^1, huh?/" - global.msg[11] = "* someone must be using& an echo flower to& play a trick on him./" - global.msg[12] = "* keep an eye out^1, ok?/" - global.msg[13] = "* thanks./%%" - break - case 578: - global.msg[0] = "\E1* oh^1, by the way.../" - global.msg[1] = "\E0* i'm flat broke^1.&* can you foot the& bill?/" - global.msg[2] = "* it's just 10000G.& & Yes No \C" - global.msg[3] = " " - break - case 579: - global.msg[0] = " %%" - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = "* My mind is running wild^1!&* I haven't felt like this& in a long time.../%%" - if (global.flag[84] == 5) - global.msg[0] = "* Please leave./%%" - if (global.flag[84] < 2) - { - global.msg[0] = "* You..^1.&* You came from outside^1,& didn't you?/" - global.msg[1] = "* People like you are so& rare.../" - global.msg[2] = "* Please^1!* Stranger!/" - global.msg[3] = "* Tell me about outside...?& & Yes No\C" - global.msg[4] = " " - } - if (global.flag[84] == 2) - global.msg[0] = "* Well^1, what are you& waiting for?/%%" - if (global.flag[84] == 3) - { - global.msg[0] = "* Oh^1!&* You're back!/" - global.msg[1] = "* How's the room?& & Different Same\C" - global.msg[2] = " " - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = "* Huh^1?&* " + chr(34) + "SURFACE" + chr(34) + "^1?&* What do you mean?/" - global.msg[1] = "* I just meant outside this& room./" - global.msg[2] = "* If you haven't noticed^1, my& mycelium have bound me& to the ground./" - global.msg[3] = "* Please^1!&* Stranger!/" - global.msg[4] = "* I'll make this simple./" - global.msg[5] = "* I've spent my whole life& in the same spot^1,& in the same room./" - global.msg[6] = "* But I've long wondered& what lies inside the& room to the right./" - global.msg[7] = "* Long I've fantasized& about entering^1, and& changing my scenery.../" - global.msg[8] = "* No..^1.&* Changing my LIFE!/" - global.msg[9] = "* Please^1.&* Go and tell me what's& inside./%%" - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* Is everyone out there& like you^1?&* How terrible./%%" - } - else - { - if (global.choice == 0) - { - global.msg[0] = "* Oh^1, that's a relief^1!/" - global.msg[1] = "* That's all I need to& continue my fantasies^1.&* Thank you^1, stranger./%%" - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = "* So it's the same./" - global.msg[1] = "* The same.../" - global.msg[2] = "* Same.../" - global.msg[3] = "* .../" - global.msg[4] = "* OK./%%" - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = "* (Take an umbrella?)& & Take one Do not\C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (Return the umbrella?)& & Put back Do not\C" - global.msg[1] = " " - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You took an umbrella.)/%%" - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = " %%" - } - else if (global.choice == 0) - { - global.msg[0] = "* (You returned the umbrella.)/%%" - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 585: - global.msg[0] = "* (It's a statue^1.)&* (The structures at its& feet seem dry.)/%%" - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = "* (Put the umbrella on the& statue?)& Yes Do not\C" - global.msg[1] = " " - } - if (global.flag[86] == 1) - global.msg[0] = "* (The music continues^1, and& doesn't stop.)/%%" - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You place the umbrella& atop the statue.)/" - global.msg[1] = "* (Inside the statue^1, a music& box begins to play...)/%%" - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 587: - global.msg[0] = "* (It's a rusty old& fridge.)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 588: - if (global.choice == 0) - { - global.msg[0] = "* (You open the fridge.^1)&* (The air fills with a& rotten stench.)/" - global.msg[1] = "* (All the food inside here& spoiled long ago.)/%%" - } - else - global.msg[0] = " %%" - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = "* error/%%" - if (global.flag[108] > 2) - global.msg[0] = "* (The cooler is empty.)/%%" - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = "* (Take a space food bar& from the cooler?)& Yes No \C" - global.msg[1] = " " - } - if (global.flag[108] == 0) - { - global.msg[0] = "* (It's a cooler^1.&* It has no brand^1, and& shows no signs of wear...)/" - global.msg[1] = "* (Inside are a couple& of freeze-dried space& food bars.)/" - global.msg[2] = "* (Take one?)& & Yes No \C" - global.msg[3] = " " - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = "* (You got the Astronaut Food.)/%%" - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* %%" - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = "* (Seems like a regular& training dummy.)/" - global.msg[1] = "* (Do you want to beat it& up?)& Yes No \C" - global.msg[2] = " " - } - else - global.msg[0] = "* (You've had enough of& the dummy.)/%%" - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = "* (You tap the dummy with& your fist.)/" - global.msg[1] = "* (You feel bad.)/%%" - } - if (global.lv > 1) - { - global.msg[0] = "* (You hit the dummy& lightly.)/" - global.msg[1] = "* (You don't feel like& you learned anything.)/%%" - } - if (global.lv > 4) - { - global.msg[0] = "* (You sock the dummy.)/" - global.msg[1] = "* (Who cares?)/%%" - } - if (global.lv > 7) - { - global.msg[0] = "* (You punch the dummy at& full force.)/" - global.msg[1] = "* (Feels good.)/%%" - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = "* (You stare into each& other's eyes for a& moment...)/%%" - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = "* (It's a horse stable.)/" - global.msg[1] = "* (Do you want to go& inside?)& Yes No \C" - global.msg[2] = " " - break - case 594: - if (global.choice == 0) - { - global.msg[0] = "* (You jostle the door.)&* (It's locked.)/" - global.msg[1] = "* (Suddenly^1, from inside& the [redacted], you hear a&/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 1) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* (Spooktunes are dead.)/%%" - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 608: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 2) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 610: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 3) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 612: - global.msg[0] = "* (Look inside the fridge?)& & Open it No\C" - global.msg[1] = " " - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = "* (There's a lonely sandwich& inside.)/%%" - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = "* (It's empty.)/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 615: - global.msg[0] = "* this is a ghost sandwich.../" - global.msg[1] = "* do you want to try it...& & Yes No\C" - global.msg[2] = " " - break - case 616: - if (global.choice == 0) - { - global.msg[0] = "* (You attempt to bite& into the ghost sandwich.)/" - global.msg[1] = "* (You phase right through& it...)/" - global.msg[2] = "* oh.../" - global.msg[3] = "* nevermind.../%%" - } - if (global.choice == 1) - global.msg[0] = "* oh.....................& ....................& ................./%%" - break - case 617: - global.msg[0] = "* after a great meal i like& to lie on the ground and& feel like garbage.../" - global.msg[1] = "* it's a family tradition.../" - global.msg[2] = "* do you want..^1.&* ... to join me...& Yes No\C" - global.msg[3] = " " - break - case 618: - if (global.choice == 0) - global.msg[0] = "* okay..^1.&* follow my lead.../%%" - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = "* oh.....................& ....................& ................./%%" - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = "* do you want to play a game^1?&* it's called thundersnail./" - global.msg[1] = "* the snails will race^1, and if& the yellow snail wins^1, you& win./" - global.msg[2] = "* it's 10G to play.& & Play No\C" - global.msg[3] = " " - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = "* um..^1.&* you don't have any money?/" - global.msg[1] = "* n-no^1, you can still play^1,& don't worry about it.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = "* um..^1. that's less than 10G./" - global.msg[1] = "* but since you're my only& real customer^1, i guess i'll& just take what you have.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[1] = "* ready?/%%" - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* oh.........../%%" - break - case 621: - global.msg[0] = "* .../" - global.msg[1] = "* Seven./" - global.msg[2] = "* Seven human souls./" - global.msg[3] = "* With the power of seven& human souls^1, our king.../" - global.msg[4] = "\W* \YKing \RASGORE \YDreemurr\W.../" - global.msg[5] = "* ... will become a god./" - global.msg[6] = "\W* With that power^1, \RASGORE\W & can finally shatter the& barrier./" - global.msg[7] = "* He will finally take the& surface back from humanity.../" - global.msg[8] = "* And give them back the& suffering and pain that& we have endured./" - global.msg[9] = "* .../" - global.msg[10] = "* Understand^1, human?/" - global.msg[11] = "* This is your only chance& at redemption./" - global.msg[12] = "* Give up your soul.../" - global.msg[13] = "* Or I'll tear it from& your body./%%" - break - case 622: - if (global.choice == 0) - { - global.msg[0] = "* That spark in your eyes.../" - global.msg[1] = "* You're really eager to& die^1, aren't you?/%%" - } - if (global.choice == 1) - global.msg[0] = "* .../%%" - break - case 623: - global.msg[0] = "* Yo^1, I know I'm not supposed& to be here^1, but.../" - global.msg[1] = "* I wanna ask you something./" - global.msg[2] = "* .../" - global.msg[3] = "* Man^1, I've never had to ask& anyone this before.../" - global.msg[4] = "* Umm.../" - global.msg[5] = "* Yo..^1. You're human^1, right?&* Haha./" - global.msg[6] = "* Man^1! I knew it!/" - global.msg[7] = "* ... well^1, I know it now^1,& I mean.../" - global.msg[8] = "* Undyne told me^1, um^1, " + chr(34) + "stay& away from that human." + chr(34) + "/" - global.msg[9] = "* So^1, like^1, ummm.../" - global.msg[10] = "* I guess that makes us enemies& or something./" - global.msg[11] = "* But I kinda stink at that^1,& haha./" - global.msg[12] = "* Yo^1, say something mean so& I can hate you?/" - global.msg[13] = "* Please? & & Yes No \C" - global.msg[14] = " " - break - case 624: - if (global.choice == 0) - { - global.msg[0] = "* Huh...?/" - global.msg[1] = "* Yo^1, that's your idea of& something mean?/" - global.msg[2] = "* My sister says that to me& ALL THE TIME!/" - global.msg[3] = "* Guess I have to do it^1, haha./" - global.msg[4] = "* Yo^1, I..^1. I hate your guts./" - global.msg[5] = "* .../" - global.msg[6] = "* Man^1, I..^1. I'm such a turd./" - global.msg[7] = "* I'm..^1. I'm gonna go home& now./%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Yo^1, what^1?&* So I have to do it?/" - global.msg[1] = "* Here goes nothing.../" - global.msg[2] = "* Yo^1, I..^1. I hate your guts./" - global.msg[3] = "* .../" - global.msg[4] = "* Man^1, I..^1. I'm such a turd./" - global.msg[5] = "* I'm..^1. I'm gonna go home& now./%%" - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = "* (It's a water cooler.)&* (Take a cup of water?)& Yes No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There's no more water left& in the cooler.)/%%" - if instance_exists(obj_undynefall) - global.msg[0] = "* (Sadistically^1, you've poured& out all the water right in& front of Undyne's eyes.)/%%" - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = "* (You take a cup of water.)/%%" - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 627: - global.msg[0] = "* (Get rid of the water?)& & Yes No \C" - global.msg[1] = " " - break - case 628: - if (global.choice == 0) - { - global.msg[0] = "* (You pour the water on& the ground next to the& water cooler.)/%%" - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 629: - global.msg[0] = "* A rousing error./%%" - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = "* (Give Undyne the water?)& & Yes No \C" - global.msg[1] = " " - } - else - global.msg[0] = "* (She looks dry...)/%%" - } - break - case 630: - global.msg[0] = " %%" - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = "BEPIS." - armor2 = "BEPIS." - if (global.flag[75] == 4) - armor1 = "GROSS BANDAGE" - if (global.flag[75] == 12) - armor1 = "FADED RIBBON" - if (global.flag[75] == 15) - armor1 = "BANDANNA" - if (global.flag[75] == 24) - armor1 = "DUSTY TUTU" - if (global.flag[77] == 4) - armor2 = "GROSS BANDAGE" - if (global.flag[77] == 12) - armor2 = "FADED RIBBON" - if (global.flag[77] == 15) - armor2 = "BANDANNA" - if (global.flag[77] == 24) - armor2 = "DUSTY TUTU" - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "REMEMBER WHEN&I ASKED YOU&ABOUT CLOTHES?/" - global.msg[4] = "\E3WELL^1, THE FRIEND&WHO WANTED TO&KNOW.../" - global.msg[5] = "\E0HER OPINION OF&YOU IS VERY.../" - global.msg[6] = "\E3MURDERY./" - global.msg[7] = "\E0ERROR!!^1!&SEE YOU LATER!/%%" - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I TOLD HER WHAT&YOU TOLD ME&YOU WERE WEARING!/" - global.msg[10] = (("A " + armor1) + "!/") - global.msg[11] = "BECAUSE I KNEW^1,&OF COURSE.../" - global.msg[12] = "\E3AFTER SUCH A&SUSPICIOUS&QUESTION.../" - global.msg[13] = "\E0YOU WOULD&OBVIOUSLY CHANGE&YOUR CLOTHES!/" - global.msg[14] = "YOU'RE SUCH A&SMART COOKIE!/" - global.msg[15] = "THIS WAY YOU'RE&SAFE AND I&DIDN'T LIE!!!/" - global.msg[16] = "NO BETRAYAL&ANYWHERE!!!/" - global.msg[17] = "BEING FRIENDS&WITH EVERYONE&IS EASY!!!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = "\E3I AM NOT A&CRUEL PERSON./" - global.msg[10] = "\E0I STRIVE TO BE&COMFORTING AND&PLEASANT./" - global.msg[11] = "PAPYRUS!&HE SMELLS LIKE&THE MOON./" - global.msg[12] = "SO, BECAUSE OF&MY INHERENT&GOODNESS.../" - global.msg[13] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[14] = "\E3EVEN THOUGH YOU&TOLD ME YOU&WERE!/" - global.msg[15] = "INSTEAD^1, I MADE&SOMETHING UP!/" - global.msg[16] = "I TOLD HER YOU&WERE WEARING.../" - global.msg[17] = (("\E0A " + armor2) + "./") - global.msg[18] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[19] = (("I KNOW YOU WOULD&NEVER EVER WEAR&A " + armor2) + "./") - global.msg[20] = "\E0BUT YOUR SAFETY&IS MORE IMPORTANT&THAN FASHION./" - global.msg[21] = "\E3DANG!/" - global.msg[22] = "I JUST WANT TO&BE FRIENDS WITH&EVERYONE.../" - global.msg[23] = "\TS \F0 \T0 %" - global.msg[24] = "* Click.../%%" - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "\E3PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = (("\WY\E0OU SAID YOU WERE\Y &NOT WEARING A&" + armor1) + "\W./") - global.msg[10] = "\E3SO OF COURSE&I ACTUALLY&TOLD HER.../" - global.msg[11] = (("\E0YOU WERE&INDEED WEARING&A " + armor1) + "!/") - global.msg[12] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[13] = (("BUT SINCE YOU&AREN'T WEARING&A " + armor1) + "./") - global.msg[14] = "\E0SHE SURELY&WON'T ATTACK&YOU!/" - global.msg[15] = "NOW YOU ARE&SAFE AND SOUND./" - global.msg[16] = "\E2WOWIE..^1.&THIS IS HARD./" - global.msg[17] = "I JUST WANT TO&BE EVERYBODY'S&FRIEND!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I KNEW WHEN&YOU SAID:/" - global.msg[10] = (('\E3"I AM NOT&WEARING A&' + armor1) + '."/') - global.msg[11] = "\E0IT WAS REALLY&A SECRET CODE!/" - global.msg[12] = "\E3YOU REALLY&MEANT.../" - global.msg[13] = (('\E0"I ACTUALLY AM&WEARING&A ' + armor1) + '!"/') - global.msg[14] = "YOU WERE TRYING&TO PROTECT&YOURSELF.../" - global.msg[15] = "WHILE MAKING IT&SO I DIDN'T&HAVE TO LIE!/" - global.msg[16] = "I PICKED UP ON&THIS, AND FOLLOWED&YOUR PLAN./" - global.msg[17] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[18] = "IN FACT I TOOK&IT ONE STEP&FURTHER!/" - global.msg[19] = "\E3I TOLD HER YOU&WERE PROBABLY.../" - global.msg[20] = (("\E0WEARING A&" + armor2) + "!/") - global.msg[21] = "\E3OF COURSE, YOU&WOULD NEVER&WEAR THAT./" - global.msg[22] = "\E0BUT THAT'S THE&POINT!/" - global.msg[23] = "SHE WON'T&RECOGNIZE YOU&NOW!/" - global.msg[24] = "AND I DIDN'T&HAVE TO BETRAY&EITHER OF YOU!/" - global.msg[25] = "SINCE I JUST&TOLD HER WHAT&YOU SAID!/" - global.msg[26] = "WOWIE^1!&YOU'RE SUCH A&SMART COOKIE!/" - global.msg[27] = "I REALLY CAN&BE FRIENDS WITH&EVERYONE!!!/" - global.msg[28] = "\TS \F0 \T0 %" - global.msg[29] = "* Click.../%%" - } - } - break - case 633: - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HEY^1!&WHAT'S UP!?/" - global.msg[3] = "I WAS JUST&THINKING.../" - global.msg[4] = "YOU^1, ME^1, AND&UNDYNE SHOULD ALL&HANG OUT SOMETIME!/" - global.msg[5] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE&LATER!/" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - if (global.flag[88] < 3) - { - global.msg[5] = "AFTER YOU HANG&OUT WITH ME.../" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE!/" - global.msg[7] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - } - break - case 635: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 636: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 637: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 638: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 639: - global.msg[0] = "* (It's a book labelled& Monster History Part 7.)& Read it Do not\C" - global.msg[1] = " " - break - case 640: - global.msg[0] = "* When a human dies^1, its& soul remains stable& outside the body./" - global.msg[1] = "* Meanwhile^1, a monster's soul& disappears near-instantly& upon death./" - global.msg[2] = "* This allows monsters to& absorb the souls of& humans.../" - global.msg[3] = "* While it is extremely& difficult for humans to& absorb a monster's soul./" - global.msg[4] = "* This is why they feared us./" - global.msg[5] = "* Though monsters are weak^1,& with enough human souls.../" - global.msg[6] = "* They could easily destroy& all of mankind./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 641: - global.msg[0] = "* (It's a book labelled& Monster History Part 8.)& Read it Do not\C" - global.msg[1] = " " - break - case 642: - global.msg[0] = "* There is one exception& to the aforementioned& rules:/" - global.msg[1] = "* A certain type of monster^1,& the " + chr(34) + "boss" + chr(34) + " monster./" - global.msg[2] = "* Due to its life cycle^1, it& possesses an incredibly& strong soul for a monster./" - global.msg[3] = "* This soul can remain& stable after death^1, if& only for a few moments./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 643: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 644: - global.msg[0] = "* (You look inside a book.)/" - global.msg[1] = "* (It's a comic of a giant& robot fighting a beautiful& alien princess.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 645: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 646: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (Two scantily-clad chefs are& flinging energy pancakes& at each other.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 647: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 648: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (A hideous android is running& to school with toast in& its mouth.)/" - global.msg[2] = "* (Seems like it's late.)/" - global.msg[3] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 660: - global.msg[0] = "* (There's a piano here.^1)&* (Play it?)& Yes No\C" - global.msg[1] = " " - break - case 661: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = "See that heart^1? &That is your SOUL^1,&the very culmination&of your being!/" - global.msg[1] = "Your SOUL starts off&weak^1, but can grow&strong if you gain&a lot of LV./" - global.msg[2] = "What's LV stand for^1?&Why^1, LOVE^1, of course!/" - global.msg[3] = "You want some&LOVE, don't you?/" - global.msg[4] = "Don't worry,&I'll share some&with you!/%" - break - case 667: - global.msg[0] = "Down here^1, LOVE is&shared through..^1./" - global.msg[1] = "Little white..^2.\E1 &" + chr(34) + "friendliness&pellets." + chr(34) + "/" - global.msg[2] = "\E2Are you ready\E0?/%" - break - case 668: - global.msg[0] = "Move around^1!&Get as many as&you can^2!%%%" - global.msg[1] = "%%%" - break - case 669: - global.msg[0] = "You idiot./" - global.msg[1] = "In this world^1, it's&kill or BE killed./" - global.msg[2] = "Why would ANYONE pass&up an opportunity&like this!?/%" - break - case 670: - global.msg[0] = "Die./%" - break - case 671: - global.msg[0] = "Hey buddy^1,&you missed them./" - global.msg[1] = "Let's try again^1,&okay?/%" - break - case 672: - global.msg[0] = "Is this a joke^2?&Are you braindead^2?&RUN^2. INTO^2. THE^2.&BULLETS!!!" - break - case 673: - global.msg[0] = "You know what's&going on here^1,&don't you?/" - global.msg[1] = "You just wanted to&see me suffer./%" - break - case 674: - global.msg[0] = "\E1What a terrible&creature^1, torturing&such a poor^1,&innocent youth.../" - global.msg[1] = "\E2Ah, do not be&afraid^1, my child./" - global.msg[2] = "\XI am \BTORIEL\X,&caretaker of&the \RRUINS\X./" - global.msg[3] = "I pass through this&place every day to&see if anyone has&fallen down./" - global.msg[4] = "You are the first&human to come here&in a long time./" - global.msg[5] = "I will do my best&to ensure your&protection during&your time here./%%" - global.msg[5] = "\E2Come^2!&I will guide you&through the&catacombs./%%" - global.msg[6] = "%%%" - break - case 680: - global.msg[0] = "* Three gold for the ferry.& & Yes No\C" - global.msg[1] = " " - break - case 681: - global.msg[0] = "* Later^1, then./%%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = "* Hop on!/%%" - } - break - case 682: - global.msg[0] = "* (It's a switch.)& & Press it Don't\C" - global.msg[1] = " " - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were deactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were reactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "\E1* Um.../" - global.msg[3] = "\E0* I noticed you've been& kind of quiet.../" - global.msg[4] = "\W*\E8 Are you w-worried& about meeting \RASGORE\W...?/" - global.msg[5] = "\E2* .../" - global.msg[6] = "\E0* W-well^1, don't worry^1,& okay?/" - global.msg[7] = "\E7* Th-the king is a& really nice guy.../" - global.msg[8] = "\E0* I'm sure you can& talk to him^1, and.../" - global.msg[9] = "* W-with your human& soul^1, you can pass& through the barrier!/" - global.msg[10] = "* S-so no worrying^1, OK^1?&* J-just forget about it& and smile./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* Click.../%%" - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = "* hey buddy^1, what's up^1?&* wanna buy a hot dog?/" - global.msg[1] = "* it's only 30G.& & Yes No \C" - global.msg[2] = " " - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = "* here^1.&* have fun./%%" - if (global.flag[380] == 1) - { - global.msg[0] = "* here's another hot& dog./" - global.msg[1] = "* it's on the house^1.&* well^1, no^1.&* it's on you./%%" - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = "* sorry^1, thirty is& the limit on& head-dogs./%%" - if (global.flag[381] == 0) - { - global.msg[0] = "\TS*^1 \Tsi'll be 'frank' with& you./" - global.msg[1] = "* as much as i like& putting hot dogs& on your head.../" - global.msg[2] = "* thirty is just& an excessive number./" - global.msg[3] = "* twenty-nine^1, now& that's fine^1, but& thirty.../" - global.msg[4] = "* does it look like& my arms can reach& that high?/%%" - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = "* thanks, kid^1.&* here's your hot dog./%%" - if (global.flag[379] == 0) - { - global.msg[0] = "* thanks, kid^1.&* here's your 'dog./" - global.msg[1] = "* yeah^1. 'dog^1.&* apostrophe-dog^1.&* it's short for hot-dog./%%" - } - if (global.flag[379] == 1) - { - global.msg[0] = "* another h'dog^1?&* here you go.../" - global.msg[1] = "* whoops^1, i'm actually& out of hot dogs./" - global.msg[2] = "* here^1, you can have& a hot cat instead./%%" - } - if (global.flag[379] == 2) - { - global.msg[0] = "* another dog^1, coming& right up.../" - global.msg[1] = "* ... you really like& hot animals^1, don't& you?/" - global.msg[2] = "* hey^1, i'm not judging./" - global.msg[3] = "* i'd be out of a job& without folks like you./%%" - } - if (global.flag[379] == 3) - { - global.msg[0] = "* cool^1.&* here's that ''dog./" - global.msg[1] = "* apostrophe-apostrophe& dog./" - global.msg[2] = "* it's short for& apostrophe-dog./" - global.msg[3] = "* which is^1, in turn^1,& short for.../%%" - } - if (global.flag[379] == 4) - { - global.msg[0] = "* another one^1?&* okay./" - global.msg[1] = "* careful^1.&* if you eat& too many hot dogs.../" - global.msg[2] = "* you'll probably get& huge like me./" - global.msg[3] = "* huge as in super-& popular^1, i mean./" - global.msg[4] = "* i'm practically& a hot-dog tycoon now./%%" - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = "* whoops^1, you don't have& enough cash./" - global.msg[1] = "* you should get a job^1.&* i've heard being a& sentry pays well./%%" - } - } - if (noroom == 1) - { - global.msg[0] = "* you're holding too much^1.&* ... guess i'll just put& it on your head./%%" - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* yeah^1, you've gotta& save your money for& college and spiders./%%" - break - case 690: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* L-looks like you& beat him!/" - global.msg[3] = "\E0* Y-you did a really& great job out there./" - global.msg[4] = " & All thanks& to you ... \C" - global.msg[5] = " " - break - case 691: - if (global.choice == 0) - { - global.msg[0] = "\E3* What^1?&* Oh no^1, I mean.../" - global.msg[1] = "\E4* You were the one& doing everything cool!/" - global.msg[2] = "\E0* I just wrote some& silly programs for& your phone./" - } - if (global.choice == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E2* .../" - global.msg[2] = "\E1* .../" - } - global.msg[3] = "\E2* .../" - global.msg[4] = "\E4* ... umm^1, h-hey^1, this& might sound strange^1,& but.../" - global.msg[5] = "\E6* ... c-can I tell& you something?/" - global.msg[6] = "\E9* .../" - global.msg[7] = "\E4* B-before I met you^1,& I d-didn't really.../" - global.msg[8] = "\E9* I didn't really& like myself very& much./" - global.msg[9] = "* For a long time^1,& I f-felt like a& total screw-up./" - global.msg[10] = "\E9* L-like I couldn't& do a-anything& w-without.../" - global.msg[11] = "\E9* W-without ending up& letting everyone& down./" - global.msg[12] = "\E3* B-but...!/" - global.msg[13] = "\E4* Guiding you has& made me feel.../" - global.msg[14] = "\E9* A lot better about& myself./" - global.msg[15] = "\E0* So... thanks for& letting me help& you./" - global.msg[16] = "\E9* .../" - global.msg[17] = "\E4* Uhhh^1, anyway^1, we're& almost to the CORE./" - global.msg[18] = "\E0* It's just past& MTT Resort./" - global.msg[19] = "\E6* Come on^1!&* Let's finish this!/%%" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* Click.../%%" - break - case 692: - global.msg[0] = "\E0EUREKA!!!/" - global.msg[1] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[2] = "\E3YOU SEEM LIKE&YOU'RE HAVING&FUN^1, THOUGH.../" - global.msg[3] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[6] = " " - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 694: - global.msg[0] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[1] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[4] = " " - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 696: - global.msg[0] = "* (There's a switch on the& trunk of this tree.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - break - case 697: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = "OHO^1!&THE HUMAN ARRIVES!/" - global.msg[1] = "ARE YOU READY TO&HANG OUT WITH&UNDYNE?/" - global.msg[2] = "I HAVE A PLAN&TO MAKE YOU TWO&GREAT FRIENDS!/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Will you hang out?)& & Yes No\C" - global.msg[5] = " " - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = "HMMM..^1.&STILL GETTING&READY?/" - global.msg[2] = "\E0TAKE YOUR TIME!/%%" - } - break - case 700: - global.msg[0] = "OKAY^1!&ALL READIED-UP&TO HANG OUT!?/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* (Will you hang out?)& & Yes No\C" - global.msg[3] = " " - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 703: - global.msg[0] = "\E4* .../" - global.msg[1] = "\E5* So why are YOU& here?/" - global.msg[2] = "\E4* To rub your victory& in my face?/" - global.msg[3] = "\E4* To humiliate me& even further?/" - global.msg[4] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[5] = " " - break - case 704: - if (global.choice == 0) - { - global.msg[0] = "\E2* Oh-ho-ho-ho./" - global.msg[1] = "\E1* Well^1, I've got news& for you^1, BRAT./" - global.msg[2] = "\E2* You're on MY& battlefield now./" - global.msg[3] = "\E3* And you AREN'T& going to& humiliate me./" - global.msg[4] = "\E3* I'll TELL you& what's going to& happen./" - global.msg[5] = "\E0* We're going to& hang out./" - global.msg[6] = "\E2* We're going to& have a good& time./" - global.msg[7] = "\M1* We're going to& become " + chr(34) + "friends." + chr(34) + "/" - global.msg[8] = "\E3* You'll become so& enamored with me.../" - global.msg[9] = "\E1* YOU'LL be the one& feeling humiliated& for your actions!/" - global.msg[10] = "\E6* Fuhuhuhuhu!!/" - global.msg[11] = "\M2* It's the perfect& revenge!!!/" - global.msg[12] = "\E1* Err.../" - global.msg[13] = "\E9* Why don't you& have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\E4* Then why are you& here?/" - global.msg[1] = "\E1* ...!/" - global.msg[2] = "\E2* Wait^1, I get it./" - global.msg[3] = "\E3* You think that I'm& gonna be friends& with you^1, huh?/" - global.msg[4] = "* Right???& NEVER & Yes with you\C" - global.msg[5] = " " - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = "\E6* Really^1?&* How delightful!^1!&* I accept!/" - global.msg[1] = "* Let's all frolick& in the fields& of friendship!/" - global.msg[2] = "\E2* ...NOT!/" - global.msg[3] = "\E2* Why would I EVER& be friends with& YOU!?/" - global.msg[4] = "\E3* If you weren't my& houseguest^1, I'd beat& you up right now!/" - global.msg[5] = "\E0* You're the enemy& of everyone's hopes& and dreams!/" - global.msg[6] = "\E1* I WILL NEVER& BE YOUR FRIEND./" - global.msg[7] = "\E3* Now get out of& my house!/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = "\E1* WHAT?/" - global.msg[1] = "\E4* First you parade& into my house^1,& then you INSULT me?/" - global.msg[2] = "\E2* You little BRAT^1!&* I have half a& mind to.../" - global.msg[3] = "\E1* .../" - global.msg[4] = "\E3* Wait./" - global.msg[5] = "\E2* I'll prove you& WRONG./" - global.msg[6] = "\E3* We ARE going to& be friends./" - global.msg[7] = "\E1* In fact.../" - global.msg[8] = "\E3* We./" - global.msg[9] = "\M1* Are going to be& BESTIES./" - global.msg[10] = "* I'll make you like& me so much.../" - global.msg[11] = "\E1* Your WHOLE LIFE& will revolve around& me!!/" - global.msg[12] = "\M2* It's the perfect& revenge!!!/" - global.msg[13] = "\E6* FUHUHUHUHU!!!/" - global.msg[14] = "\E1* Err.../" - global.msg[15] = "\E9* Now^1, why don't& you have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = "* (Sit down and progress?)& & Yes No\C" - global.msg[1] = " " - break - case 707: - global.msg[0] = " %%" - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = " %%" - global.msg[1] = " %%" - } - break - case 708: - global.msg[0] = "* That sugar's for& the tea./" - global.msg[1] = "\E2* I'm not gonna give& you a cup of& sugar!/" - global.msg[2] = "\E6* What do I look& like^1, the ice-cream& woman?/" - global.msg[3] = "\E2* Do human ice-cream& women TERRORIZE HUMANITY& with ENERGY SPEARS?/" - global.msg[4] = "\E3* Are their ice-cream& songs a PRELUDE TO& DESTRUCTION?/" - global.msg[5] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[6] = " " - break - case 709: - if (global.choice == 0) - { - global.msg[0] = "\E1* ... what^1?&* REALLY?/" - global.msg[1] = "\E6* That rules!!!/%%" - } - if (global.choice == 1) - global.msg[0] = "\E3* That's what I& thought./%%" - break - case 710: - global.msg[0] = "* Envision these& vegetables as your& greatest enemy!/" - global.msg[1] = "\E2* Now!^1!&* Pound them to dust& with your fists!!/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (How will you pound?)& & Strong Wimpy\C" - global.msg[4] = " " - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = "* (You punch the vegetables& at full force^1.&* You knock over a tomato.)/" - scr_undface(1, 6) - global.msg[2] = "* YEAH^1!&* YEAH!/" - global.msg[3] = "\E1* Our hearts are& uniting against these& healthy ingredients!/" - global.msg[4] = "\M2* NOW IT'S MY TURN!/" - global.msg[5] = "* NGAHHH!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = "* (You pet the vegetables& in an affectionate& manner.)/" - scr_undface(1, 1) - global.msg[2] = "* OH MY GOD!!^1!&* STOP PETTING THE& ENEMY!!!/" - global.msg[3] = "\M2* I'll show you& how it's done!/" - global.msg[4] = "* NGAHHH!/%%" - } - break - case 712: - global.msg[0] = "* ... we add the& noodles!/" - global.msg[1] = "\E0* Homemade noodles& are the best!/" - global.msg[2] = "\E6* BUT I JUST BUY& STORE-BRAND!/" - global.msg[3] = "\M2* THEY'RE THE& CHEAPEST!!!/" - global.msg[4] = "\E1* NGAHHHHHHHHH& HHHHHHHHHH!!!/" - global.msg[5] = "\E9* Uhh^1, just put them& in the pot./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "\M0* (How will you put them in?)& & Fiercely Careful\C" - global.msg[8] = " " - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = "* (You throw everything into& the pot as hard as you can^1,& including the box.)/" - global.msg[1] = "* (It clanks against the& empty bottom.)/" - scr_undface(2, 6) - global.msg[3] = "\M2* YEAH!!^1!&* I'M INTO IT!!!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = "* (You place the noodles& in one at a time.)/" - global.msg[1] = "* (They clank against the& empty bottom.)/" - scr_undface(2, 9) - global.msg[3] = "* Nice???/%%" - } - break - case 714: - global.msg[0] = "\E0* Humans suck^1, but& their history..^1.&* Kinda rules./" - global.msg[1] = "\E2* Case in point^1:&* This giant sword!/" - global.msg[2] = "\E0* Historically^1, humans& wielded swords up& to 10x their size./" - global.msg[3] = "\E1* RIGHT?& & True False\C" - global.msg[4] = " " - break - case 715: - if (global.choice == 0) - { - global.msg[0] = "\E6* Heh^1, I knew it!/" - global.msg[1] = "\E2* When I first heard& that^1, I immediately& wanted one!/" - global.msg[2] = "\E0* So me and Alphys& built a giant& sword together./" - global.msg[3] = "\E0* She figured out all& the specs herself.../" - global.msg[4] = "\E6* She's smart^1, huh!?/%%" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* Pfft^1!&* You liar!/" - global.msg[1] = "\E3* I've READ Alphys's& human history book& collection!/" - global.msg[2] = "\E3* I know all about& your giant swords.../" - global.msg[3] = "\E3* Your colossal^1,& alien-fighting& robots.../" - global.msg[4] = "* Your supernatural& princesses.../" - global.msg[5] = "\E6* Heh^1! There's no& way you're gonna& fool me!!!/%%" - } - break - case 716: - global.msg[0] = "* (Look inside the bone drawer?)& & Yes No\C" - global.msg[1] = " " - break - case 717: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = "\M5* WHAT A SENSATIONAL OPPORTUNITY& FOR A STORY!/" - global.msg[1] = "\M3* I CAN SEE THE HEADLINE NOW:/" - global.msg[2] = "\M4* " + chr(34) + "A DOG EXISTS SOMEWHERE." + chr(34) + "/" - global.msg[3] = "\M2* FRANKLY^1, I'M BLOWN AWAY./" - global.msg[4] = "* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 721: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 722: - global.msg[0] = "\M5* THIS DOG..^1.&* STILL EXISTS!/" - global.msg[1] = "* THIS STORY..^1.&* JUST KEEPS GETTING& BETTER AND BETTER!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 723: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 724: - global.msg[0] = "\M5* OH MY!!!!/" - global.msg[1] = "\M2* ... IT'S A COMPLETELY& NONDESCRIPT GLASS OF WATER./" - global.msg[2] = "\M4* BUT ANYTHING CAN MAKE& A GREAT STORY WITH ENOUGH& SPIN!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 725: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 726: - global.msg[0] = "\M3* I'M HONORED TO BE IN THE& PRESENCE OF SUCH A HUGE& LUKEWARM WATER FAN^1, FOLKS!/" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 727: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 728: - global.msg[0] = "\M5* OH NO!!^1!&* THAT MOVIE SCRIPT!!^1!&* HOW'D??^1? THAT GET THERE???/" - global.msg[1] = "\M4* IT'S A SUPER-JUICY SNEAK& PREVIEW OF MY LATEST& GUARANTEED-NOT-TO-BOMB FILM:/" - global.msg[2] = "\M6* METTATON THE MOVIE XXVIII..^1.& STARRING METTATON!/" - global.msg[3] = "\M1* I'VE HEARD THAT LIKE THE& OTHER FILMS.../" - global.msg[4] = "\M1* IT CONSISTS MOSTLY OF A SINGLE& FOUR-HOUR SHOT OF ROSE PETALS& SHOWERING ON MY RECLINING BODY./" - global.msg[5] = "\M5* OOH!!^1!&* BUT THAT'S!!^1!&* NOT CONFIRMED!!/" - global.msg[6] = "\M5* YOU WOULDN'T (COUGH) SPOIL MY& MOVIE FOR EVERYONE WITH A& PROMOTIONAL STORY^1, WOULD YOU?/" - global.msg[7] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[8] = " " - break - case 729: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\M5* PHEW!!^1! THAT WAS CLOSE!^1!&* YOU ALMOST GAVE ME A BUNCH& OF FREE ADVERTISEMENT!!/%%" - global.msg[1] = "\M2 %%" - } - break - case 730: - global.msg[0] = "\M3* OH^1!&* YOU'RE BACK!/" - global.msg[1] = "\M6* THAT'S RIGHT^1, FOLKS^1!&* IT SEEMS NO ONE CAN RESIST& THE ALLURE OF MY NEW FILM!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 731: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 732: - global.msg[0] = "\M4* BASKETBALL'S A BLAST^1, ISN'T IT^1,& DARLING?/" - global.msg[1] = "\M1* TOO BAD YOU CAN'T PLAY WITH& THESE BALLS./" - global.msg[2] = "\M4* THEY'RE MTT-BRAND FASHION& BASKETBALLS^1.&* FOR WEARING^1, NOT PLAYING./" - global.msg[3] = "\M6* YOU CAN'T GET RICH AND FAMOUS& LIKE MOI WITHOUT BEAUTIFYING& A FEW ORBS./" - global.msg[4] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 733: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 734: - global.msg[0] = "* IT SEEMS OUR REPORTER IS DRAWN& TO SPORTS LIKE MOTHS TO A& FLAMING BASKETBALL HOOP./" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 735: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 736: - global.msg[0] = "\M5* OH MY^1! IT'S A PRESENT^1!&* AND IT'S ADDRESSED TO YOU^1,& DARLING!/" - global.msg[1] = "\M6* AREN'T YOU JUST BURSTING& WITH EXCITEMENT?/" - global.msg[2] = "\M5* WHAT COULD BE INSIDE^1?&* WELL^1, NO TIME LIKE THE& " + chr(34) + "PRESENT" + chr(34) + " TO FIND OUT!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 737: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 738: - global.msg[0] = "\M4* READY FOR YOUR..^1.&* PRESENTATION?/" - global.msg[1] = "\M4* (... LET'S CUT THAT ONE IN& POST.)/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 739: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 740: - global.msg[0] = "\M5* OOH LA LA^1!&* THIS VIDEO GAME YOU FOUND..^1.&* IS DYNAMITE!!!/" - global.msg[1] = "\M4* THOUGH I DON'T MAKE AN& APPEARANCE IN IT UNTIL& THREE-FOURTHS IN./" - global.msg[2] = "\M3* BUT I LIKE THAT./" - global.msg[3] = "\M6* APPEARING FROM THE HEAVENS LIKE& MANNA^1, SLAKING THE AUDIENCE'S& HUNGER FOR GORGEOUS ROBOTS.../" - global.msg[4] = "\M5* OOH^1!&* THAT'S METTATON!/" - global.msg[5] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[6] = " " - break - case 741: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 742: - global.msg[0] = "* AH^1, YOU UNDERSTAND./" - global.msg[1] = "* THIS IS A GAME WHERE YOU& SHOULD CHECK EVERYTHING& TWICE./" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 743: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Cider for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Donut for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 748: - global.msg[0] = "* Ribbit^1, ribbit.&* (I have heard you are quite& merciful^1, for a human...)/" - global.msg[1] = "\W* (Surely you know by now a& monster wears a \YYELLOW\W name& when you can \YSPARE\W it.)/" - global.msg[2] = "* (What do you think of that?)& Very It's& Helpful Bad\C" - global.msg[3] = " " - break - case 749: - if (global.choice == 0) - { - global.msg[0] = "* (It is rather helpful.^1)&* (Remember^1, sparing is just& saying you won't fight.)/" - global.msg[1] = "* (Maybe one day^1, you'll& have to do it even if& their name isn't yellow.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Really^1? Then^1, I'll tell all& of my friends to tell& their friends' friends...)/" - global.msg[1] = "* (Never use yellow names.)&* (How about that?)/" - global.msg[2] = " Keep No more& Yellow Yellow& Names Names\C" - global.msg[3] = " " - } - break - case 750: - if (global.choice == 0) - global.msg[0] = "* (OK^1, they will still& use yellow names.)/%%" - if (global.choice == 1) - { - global.msg[0] = "* (OK^1, I will let them& know not to use yellow& names.)/%%" - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = "* Ribbit^1, ribbit^1.&* (How are you doing without& yellow names?)/" - global.msg[1] = " Bring & It's Them& great Back\C" - global.msg[2] = " " - break - case 752: - if (global.choice == 0) - { - global.msg[0] = "* (Glad to hear it.^1)&* (Though^1, I do not know why& you dislike yellow.)/" - global.msg[1] = "* (You had better hope you do& not encounter a banana-themed& monster.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Huh^1? It's rather inconvenient& that you changed your mind& like this.)/" - global.msg[1] = "* (Since I told everyone& not to use yellow names^1,& everyone threw theirs out.)/" - global.msg[2] = "* (This is really troubling...^1)&* (Hmmm...)/" - global.msg[2] = "\W* (Well^1, last year it was& fashionable to have \ppink\W & names.)/" - global.msg[3] = "* (I think everyone still& has those in their closets& somewhere...)/" - global.msg[4] = "* (I'll ask everyone to look.^1)&* (But this is the last time!)/%%" - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = "* Ribbit^1, ribbit...&* (I hope you're satisfied.)/%%" - break - case 754: - global.msg[0] = "* \YNAPSTABLOOK22 has sent you& a friend request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 755: - global.flag[409] = 1 - global.msg[0] = "* (It seems to have already& rejected itself...)/%%" - break - case 756: - global.msg[0] = "* \YMETTATON has sent you a& Mortal Enemy request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 757: - if (global.choice == 0) - { - global.msg[0] = "* Congratulations^1!&* You are now Mortal Enemies& with Mettaton./" - global.msg[1] = "* \YCOOLSKELETON95\W has posted& a comment on this change./" - global.msg[2] = "* CONGRATULATIONS^1, YOU TWO^1!&* WISH YOU A LONG AND& HORRIBLE RIVALRY./%%" - } - if (global.choice == 1) - global.msg[0] = "* You rejected the request./%%" - break - case 758: - global.msg[0] = "* \YMETTATON has sent you an& invitation to " + chr(34) + "Die." + chr(34) + "\W /" - global.msg[1] = "* RSVP?& & Respond Ignore\C" - global.msg[2] = " " - break - case 759: - if (global.choice == 0) - global.msg[0] = "* Bepis valley Granola Bars/%%" - if (global.choice == 1) - global.msg[0] = "* Bepis valley Granola Bars/%%" - break - case 760: - global.msg[0] = "* hey^1.&* i heard you're going& to the core./" - global.msg[1] = "\E0* how about grabbing some& dinner with me first?& Yeah I'm busy \C" - global.msg[2] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - break - case 761: - if (global.choice == 0) - { - global.msg[0] = "* great^1, thanks for& treating me./%%" - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* well^1, have fun in& there./%%" - break - case 762: - global.msg[0] = "* This is the barrier./" - global.msg[1] = "* This is what keeps& us all trapped& underground./" - global.msg[2] = "* .../" - global.msg[3] = "* If.../" - global.msg[4] = "* If by chance you& have any unfinished& business.../" - global.msg[5] = "* Please do what you& must./" - global.msg[6] = " & & Continue Go Back\C" - global.msg[7] = " " - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Anything you want to& do is important& enough./" - global.msg[2] = "* Even something as small& as reading a book^1,& or taking a walk.../" - global.msg[3] = "* Please take your time./%%" - } - break - case 764: - global.msg[0] = "* Oh..^1.&* Back so soon?/" - global.msg[1] = "* How are you feeling?/" - global.msg[2] = " & & Ready Go Back\C" - global.msg[3] = " " - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Do what you have to./%%" - } - break - case 770: - global.msg[0] = "* Tra la la^1.&* I am the riverman./" - global.msg[1] = "* Or am I the riverwoman...^1?&* It doesn't really matter./" - global.msg[2] = "* I love to ride in my boat^1.&* Would you care to join me?/" - global.msg[3] = "* (Ride in the boat?)& & Yes No\C" - global.msg[4] = " " - if (global.flag[460] > 0) - { - global.msg[0] = "* Tra la la^1.&* Care for a ride?/" - global.msg[1] = "* (Ride in the boat?)& & Yes No\C" - global.msg[2] = " " - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = "* Where will we go today?& & Error Error\C" - if (room == room_fire_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Waterfall\C" - if (room == room_water_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Hotland\C" - if (room == room_tundra_dock) - global.msg[0] = "* Where will we go today?& & Waterfall Hotland\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* Then perhaps another time^1.&* Or perhaps not^1.&* It doesn't really matter./%%" - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = "* Then we're off.../%%" - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = "* (There's a switch on the& wall.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = "* (The switch doesn't do& anything.)/%%" - break - case 781: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = "* (Seems like a comfortable& bed.)/" - global.msg[1] = "* (Lie on it?)& & Yes No\C" - global.msg[2] = " " - break - case 783: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = "* (It's just a regular suspicious& bed now.)/%%" - if (global.flag[484] == 1) - { - global.msg[0] = "* (It's a yellow key.^1)&* (You put it on your& keychain.)/%%" - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = "* (There's something under& the sheets.)/" - global.msg[1] = "* (Check it out?)& & Yes No\C" - global.msg[2] = " " - } - break - case 785: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = "* (The power has been turned& on.)/%%" - if (global.flag[491] == 0) - { - global.msg[0] = "* (It seems like this controls& the elevator's power.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - break - case 787: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = (("\E7* I always was a crybaby^1,& wasn't I^1, " + global.charname) + "?/") - global.msg[1] = "\E1* .../" - global.msg[2] = "\E2* ... I know./" - global.msg[3] = (("\E0* You're not actually& " + global.charname) + ", are you?/") - global.msg[4] = (("\E7* " + global.charname) + "'s been gone for& a long time./") - global.msg[5] = "* .../" - global.msg[6] = "\E9* Um..^1. what.../" - global.msg[7] = "\E0* What IS your name?/" - global.msg[8] = "\E2* .../" - global.msg[9] = "\E5* " + chr(34) + "Frisk?" + chr(34) + "/" - global.msg[10] = "\E7* That's.../" - global.msg[11] = "\E5* A nice name./" - global.msg[12] = "* .../" - global.msg[13] = "\E7* Frisk.../" - global.msg[14] = "\E0* I haven't felt like& this for a long time./" - global.msg[15] = "\E2* As a flower^1, I was& soulless./" - global.msg[16] = "\E1* I lacked the power to& love other people./" - global.msg[17] = "\E2* However^1, with everyone's& souls inside me.../" - global.msg[18] = "\E7* I not only have my own& compassion back.../" - global.msg[19] = "\E5* But I can feel every& other monster's as& well./" - global.msg[20] = "\E7* They all care about& each other so much./" - global.msg[21] = "\E0* And..^1. they care about& you too^1, Frisk./" - global.msg[22] = "* .../" - global.msg[23] = "\E7* I wish I could tell& you how everyone& feels about you./" - global.msg[24] = "* Papyrus..^1. Sans..^1.&* Undyne..^1. Alphys.../" - global.msg[25] = "\E0* ... Toriel./" - global.msg[26] = "\E7* Monsters are weird./" - global.msg[27] = "\E5* Even though they barely& know you.../" - global.msg[28] = "\E6* It feels like they& all really love& you./" - global.msg[29] = "\E8* Haha./" - global.msg[30] = "* .../" - global.msg[31] = "\E1* Frisk..^1. I..^1.&* I understand if you& can't forgive me./" - global.msg[32] = "* I understand if you& hate me./" - global.msg[33] = "* I acted so strange and& horrible./" - global.msg[34] = "\E3* I hurt you./" - global.msg[35] = "* I hurt so many people./" - global.msg[36] = "\E1* Friends^1, family^1,& bystanders.../" - global.msg[37] = "\E3* There's no excuse for& what I've done./" - global.msg[38] = " & & Forgive Do not\C" - global.msg[39] = " " - break - case 801: - if (global.choice == 0) - { - global.msg[0] = "\E3* Wh..^1. what?/" - global.msg[1] = "\E7* ... Frisk^1, come on./" - global.msg[2] = "\E0* You're..^1.&* You're gonna make me& cry again./" - global.msg[3] = "\E7* ... besides^1, even if& you do forgive me.../" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* ... right^1./" - global.msg[1] = "* I understand./" - global.msg[2] = "\E1* I just hope that.../" - global.msg[3] = "* I can make up for& it a little right& now./" - } - global.msg[4] = "\E1* I can't keep these& souls inside of me./" - global.msg[5] = "\E0* The least I can do& is return them./" - global.msg[6] = "\E2* But first.../" - global.msg[7] = "\E4* There's something I& have to do./" - global.msg[8] = "* Right now^1, I can feel& everyone's hearts& beating as one./" - global.msg[9] = "* They're all burning& with the same& desire./" - global.msg[10] = "* With everyone's power..^1.&* With everyone's& determination.../" - global.msg[11] = "* It's time for& monsters.../" - global.msg[12] = "* To finally go free./%%" - break - case 803: - global.msg[0] = "\E7* Frisk.../" - global.msg[1] = "\E0* I have to go now./" - global.msg[2] = "\E7* Without the power of& everyone's souls.../" - global.msg[3] = "\E1* I can't keep& maintaining this& form./" - global.msg[4] = "* In a little while.../" - global.msg[5] = "* I'll turn back into& a flower./" - global.msg[6] = "\E3* I'll stop being& " + chr(34) + "myself." + chr(34) + "/" - global.msg[7] = "* I'll stop being able& to feel love again./" - global.msg[8] = "\E1* So..^1. Frisk./" - global.msg[9] = "\E7* It's best if you& just forget about& me^1, OK?/" - global.msg[10] = "\E0* Just go be with& the people who& love you./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & Comfort& him Do not\C" - global.msg[13] = " " - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = "\E0* So^1, Alphys.../" - global.msg[1] = "\E9* What do you want& to do now that& we're all free?/" - global.msg[2] = "\E0* We have the whole& world to explore& now./" - scr_alface(3, 3) - global.msg[4] = "\E3* W-well^1, of course& I'm going to go& out and.../" - global.msg[5] = "\E4* Um.../" - global.msg[6] = "\E3* No^1, I should be& honest!!/" - global.msg[7] = "\E1* I'm gonna stay inside& and watch anime like& a total loser!/" - scr_papface(8, 0) - global.msg[9] = "\E0THAT'S THE SPIRIT!/" - global.msg[10] = "EVERYONE!!^1!&A CELEBRATION!!!&TO BEING LOSERS!!/" - scr_undface(11, 9) - global.msg[12] = "\E9* Heh^1.&* Papyrus has the& right idea./" - global.msg[13] = "\E0* Losing to Frisk is& the best thing to& ever happen to me./" - global.msg[14] = "\E0* So I'm glad that& we.../" - global.msg[15] = "\E9* Huh^1?&* What is it^1, Asgore?/" - scr_asgface(16, 2) - global.msg[17] = "\E2* Um..^1. what's an.../" - global.msg[18] = "\E0* ... anime?/" - scr_alface(19, 1) - global.msg[20] = "\E1* (Oh My God?)/" - global.msg[21] = "\E3* (Frisk^1. Please.)/" - global.msg[22] = "\E2* (Help me explain what& anime is to Asgore.)/" - global.msg[23] = "\E0* Y-you see^1, it's& like a cartoon^1,& but.../" - global.msg[24] = "\TS \F0 \T0 %" - global.msg[25] = " & With With& Sword's Gun's\C" - global.msg[26] = " " - break - case 807: - scr_asgface(0, 2) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with swords?/" - if (global.choice == 1) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with guns?/" - global.msg[2] = "\E0* Golly^1!&* That sounds neato!/" - global.msg[3] = "\E3* Where is this^1?&* Where can I see the& Anime./" - scr_alface(4, 3) - global.msg[5] = "\E3* H-hold on^1, uh..^1.&* I think I have& some on my phone./" - global.msg[6] = "\E0* Here^1, l-look at& this!/" - global.msg[7] = "\E0* .../" - global.msg[8] = "\E3*...Oh^1, uh.../" - global.msg[9] = "\E4* Um..^1. that's the..^1.&* That's the wrong.../" - global.msg[10] = "\E5* Uh^1, nevermind./" - scr_asgface(11, 1) - global.msg[12] = "* Golly^1.&* Were those two robots.../" - scr_undface(13, 9) - global.msg[14] = "\E9* ... kissing?/" - scr_asgface(15, 0) - global.msg[16] = "\E0* Boy^1!&* Technology sure is& something^1, isn't it?/" - scr_alface(17, 5) - global.msg[18] = "\E5* Eheheh..^1. yeah^1!&* It sure is!/%%" - break - case 808: - global.msg[0] = "\E0* Psst..^1.&* F-Frisk./" - global.msg[1] = "\E3* Um^1, you've gotta& tell me./" - global.msg[2] = "\E6* D..^1. do you think& Asgore and Toriel& are...?/" - global.msg[3] = "\E3* Uh^1, ever gonna get& back together?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "& & Yeah Nope\C" - global.msg[6] = " " - break - case 809: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = "\E7* Y-yeah!!^1!&* Yeah^1, that's what& I hope^1, too./" - global.msg[2] = "\E7* Just think about how& cute they must have& been together./" - global.msg[3] = "\E0* It's quickly becoming& my number one ship& of all time./" - global.msg[4] = "\E7* Tori and Gorey.../" - global.msg[5] = "\E5* My..^1.&* My old boss and& his ex-wife./" - global.msg[6] = "\E8* ... uh^1, that sounds& a lot less cool& all of a sudden./%%" - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = "\E8* ... yeah^1, that's what& I thought./" - global.msg[2] = "\E7* A woman can dream& though^1, right?/" - global.msg[3] = "\E2* And write fanfiction./" - global.msg[4] = "\E1* A LOT of fanfiction./%%" - } - break - case 810: - global.msg[0] = "\E0* Frisk^1!&* I just realized!/" - global.msg[1] = "\E3* Now that we aren't& fighting each& other.../" - global.msg[2] = "\E2* I can finally ask& you.../" - global.msg[3] = "\E0* " + chr(34) + "Would you like a& cup of tea?" + chr(34) + "/" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E0* Would you like a& cup of tea?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "& & Yes No\C" - global.msg[8] = " " - break - case 811: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = "* Oh^1!&* Well!/" - global.msg[2] = "\E3* Actually^1, the cup I& had is cold now./" - global.msg[3] = "* So you shouldn't& have it./" - global.msg[4] = "\E0* But^1, I am so& happy you said& yes./" - global.msg[5] = "\E0* As soon as I can^1,& I will make some& more for you./" - global.msg[6] = "\E0* Then we can be& great pals./%%" - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = "\E3* Oh.../" - global.msg[2] = "\E3* Okay./" - scr_undface(3, 2) - global.msg[4] = "\E2* Frisk^1! Stop^1!&* You're breaking his& big burly heart!/" - scr_asgface(5, 2) - global.msg[6] = "\E2* Um^1, it's OK^1, Undyne./" - global.msg[7] = "\E0* My heart's already& broken./" - scr_undface(8, 6) - global.msg[9] = "\E6* ASGORE^1! STOP^1!&* YOU'RE BREAKING MY& BIG BURLY HEART!/" - scr_alface(10, 9) - global.msg[11] = "\E9* Y-yeah^1, Asgore^1.&* Don't break Undyne's& heart./" - global.msg[12] = "\E2* That's my job./" - scr_undface(13, 2) - global.msg[14] = "\E2* OH MY GOD!&* YOU'RE GOING BACK& IN THE TRASH!!!/" - scr_papface(15, 0) - global.msg[16] = "\E0CAN I GO IN THE&TRASH TOO?/" - scr_undface(17, 9) - global.msg[18] = "\E9* Sure^1, Papyrus./" - scr_sansface(19, 1) - global.msg[20] = "\E1* guess i have to& go in the trash& too./" - scr_torface(21, 0) - global.msg[22] = "\E0* Oh^1, may I enter& the trash as well?/" - scr_undface(23, 1) - global.msg[24] = "\E1* Uh^1, okay?/" - scr_asgface(25, 0) - global.msg[26] = "\E0* Am I invited to& the trash?/" - scr_undface(27, 6) - global.msg[28] = "\E6* SURE!!!&* WHY NOT!!!/" - scr_torface(29, 1) - global.msg[30] = "\E1* On second thought^1,& do not put me& in the trash./" - scr_asgface(31, 5) - global.msg[32] = "\E5* Oh.../" - scr_undface(33, 1) - global.msg[34] = "\E1* OH MY GOD!!!/%%" - } - break - case 812: - global.msg[0] = "* (If you leave here^1, your& adventure will really& be over.)/" - global.msg[1] = "* (Your friends will follow& you out of the underground.)/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = " & Don't I'm& leave ready\C" - global.msg[4] = " " - break - case 813: - global.msg[0] = " %%" - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = "\E0* Oh my.../" - scr_asgface(1, 0) - global.msg[2] = "\E0* Isn't it beautiful^1,& everyone?/" - scr_alface(3, 3) - global.msg[4] = "\E3* Wow..^1. it's e-even& better than on TV./" - global.msg[5] = "\E7* WAY better^1!&* Better than I ever& imagined!/" - scr_undface(6, 1) - global.msg[7] = "\E1* Frisk^1, you LIVE with& this!?/" - global.msg[8] = "\E9* The sunlight is so& nice..^1. and the air& is so fresh!/" - global.msg[9] = "* I really feel alive!/" - scr_papface(10, 0) - global.msg[11] = "\E0HEY SANS.../" - global.msg[12] = "\E3WHAT'S THAT GIANT&BALL?/" - scr_sansface(13, 1) - global.msg[14] = "\E1* we call that& " + chr(34) + "the sun^1," + chr(34) + " my friend./" - scr_papface(15, 0) - global.msg[16] = "\E0THAT'S THE SUN!^1?&WOWIE!!!/" - global.msg[17] = "I CAN'T BELIEVE&I'M FINALLY MEETING&THE SUN!!!/" - scr_asgface(18, 0) - global.msg[19] = "\E0* I could stand here& and watch this for& hours.../" - scr_torface(20, 0) - global.msg[21] = "\E0* Yes^1, it is beautiful^1,& is it not?/" - global.msg[22] = "\E1* But we should really& think about what comes& next./" - scr_asgface(23, 3) - global.msg[24] = "\E3* Oh^1, right./" - global.msg[25] = "\E0* Everyone.../" - global.msg[26] = "* This is the beginning& of a bright new& future./" - global.msg[27] = "* An era of peace between& humans and monsters./" - global.msg[28] = "\E2* Frisk.../" - global.msg[29] = "* I have something to& ask of you./" - global.msg[30] = "\E0* Will you act as our& ambassador to the& humans?/" - global.msg[31] = "\TS \F0 \T0 %" - global.msg[32] = "* (Be the ambassador?)& & Yes No\C" - global.msg[33] = " " - break - case 815: - scr_papface(0, 0) - global.msg[1] = "WOWi, Nice error./%%" - if (global.choice == 0) - { - global.msg[1] = "\E0YEAH^1!&FRISK WILL BE THE&BEST AMBASSADOR!/" - global.msg[2] = "AND I^1, THE GREAT&PAPYRUS.../" - global.msg[3] = "WILL BE THE BEST&MASCOT!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E0IT'S OK FRISK^1!&I'VE GOT YOU&COVERED!/" - global.msg[2] = "IF YOU DON'T WANT&TO BE THE&AMBASSADOR.../" - global.msg[3] = "I CAN DO IT FOR&YOU!!!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - break - case 820: - global.msg[0] = "* Frisk.../" - global.msg[1] = "\E2* You came from this& world^1, right...?/" - global.msg[2] = "\E1* So you must have& a place to return to^1,& do you not?/" - global.msg[3] = "\E2* What will you do& now?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = " I want I have& to stay places& with you to go\C" - global.msg[6] = " " - break - case 821: - global.msg[0] = " %%" - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = "* (The door has no mail slot.)/" - global.msg[1] = "* (Slide the letter under?)& & Slide NO!!!! \C" - global.msg[2] = " " - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = "* (You slide the letter under& the door and give it a& knock.)/%%" - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* (You'll keep the letter& warm for a little longer.)/%%" - break - case 827: - global.msg[0] = "* (It's a note from Alphys.)/" - global.msg[1] = "* (Read it...?)& & Read Do not \C" - global.msg[2] = " " - break - case 828: - if (global.choice == 0) - { - global.msg[0] = "* (It's hard to read because& of the handwriting^1, but& you try your best...)/" - global.msg[1] = "* Hey./" - global.msg[2] = "* Thanks for your help back& there./" - global.msg[3] = "* You guys..^1.&* Your support really means a& lot to me./" - global.msg[4] = "* But..^1.&* As difficult as it is& to say this.../" - global.msg[5] = "* You guys alone can't& magically make my own& problems go away./" - global.msg[6] = "* I want to be a better& person./" - global.msg[7] = "* I don't want to be& afraid anymore./" - global.msg[8] = "* And for that to happen^1,& I have to be able to& face my own mistakes./" - global.msg[9] = "* I'm going to start& doing that now./" - global.msg[10] = "* I want to be clear./" - global.msg[11] = "* This isn't anyone else's& problem but mine./" - global.msg[12] = "* But if you don't ever& hear from me again.../" - global.msg[13] = "* If you want to know& " + chr(34) + "the truth." + chr(34) + "/" - global.msg[14] = "* Enter the door to the& north of this note./" - global.msg[15] = "* You all at least deserve& to know what I did./" - global.msg[16] = "* (That's all she wrote.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = "* (Buy chips for 25G?)& & Buy No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There were no chips left& in the machine.)/%%" - global.msg[1] = " " - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* (The vending machine& dispensed some chisps.)/%%" - if (afford == 0) - global.msg[0] = "* (You didn't have enough& gold.)/%%" - } - if (noroom == 1) - global.msg[0] = "* (You are carrying too& many items.)/%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 831: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?/" - global.msg[5] = "\E1* ... wait^1.&* Do not tell me./" - if (bs == 0) - global.msg[6] = "\E0* It is ERROR MESSAGE!& & Yes No \C" - if (bs == 1) - global.msg[6] = "\E0* Is it Butterscotch?& & Yes No \C" - if (bs == 2) - global.msg[6] = "\E0* Is it Cinnamon?& & Yes No \C" - global.msg[7] = " " - break - case 832: - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - if (bs == 2) - global.flag[46] = 0 - global.msg[0] = "\E0* Hee hee hee^1.&* I had a feeling./" - global.msg[1] = "\E1* When humans fall down& here^1, strangely..^1.&* I.../" - global.msg[2] = "\E1* I often feel like& I already know them./" - global.msg[3] = "\E0* Truthfully^1, when I first& saw you^1, I felt.../" - global.msg[4] = "\E1* ... like I was seeing& an old friend for& the first time./" - global.msg[5] = "\E0* Strange^1, is it not?/" - global.msg[6] = "* Well^1, thank you for& your selection./" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - if (bs == 2) - global.flag[46] = 1 - global.msg[0] = "\E1* Oh..^1. I see./" - global.msg[1] = "\E0* Well^1, thank you^1.&* Goodbye for now./" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* Click.../%%" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - break - case 833: - global.msg[0] = "* (Seems like you could skip& Mettaton's monologue by& turning him around now.)/" - global.msg[1] = "* (What will you do?)& & Skip Hear again\C" - global.msg[2] = " " - break - case 834: - if (global.choice == 0) - { - global.msg[0] = "* (You told Mettaton there& was something cool& behind him.)/%%" - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = " %%" - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = "* though.../" - global.msg[1] = "* one thing about you& always struck me& as kinda odd./" - global.msg[2] = "* now^1, i understand& acting in self-defense./" - global.msg[3] = "* you were thrown into& those situations& against your will./" - global.msg[4] = "* but.../" - global.msg[5] = "* sometimes.../" - global.msg[6] = "* you act like you& know what's gonna& happen./" - global.msg[7] = "* like you've already& experienced it all& before./" - global.msg[8] = "* this is an odd thing& to say^1, but.../" - global.msg[9] = "\W* if you have some sort& of \Yspecial power\W.../" - global.msg[10] = "* isn't it your& responsibility to do& the right thing?/" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & & Yes No\C" - global.msg[13] = " " - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* ah./" - global.msg[2] = "\E0* i see./" - global.msg[3] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* heh./" - global.msg[2] = "\E0* well^1, that's your& viewpoint./" - global.msg[3] = "\E2* i won't judge you& for it./" - global.msg[4] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = "* (Ring...)/" - scr_alface(1, 0) - global.msg[2] = "\E0* Hey!/" - global.msg[3] = "\E3* This um^1, doesn't have& anything to do with& guiding you..^1. but.../" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E6* Uhh^1, hey^1, would you want& to watch a human TV& show together???/" - global.msg[6] = "* Sometime???/" - global.msg[7] = "\E4* It's called^1, um^1,& M..^1.Mew Mew Kissy& Cutie.../" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = " & & Sure! ...no...\C" - global.msg[10] = " " - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = "* R-really!?/" - global.msg[2] = "\E3* It's so good^1!&* It's um^1, my favorite& show!/" - global.msg[3] = "* It's all about this& human girl named Mew Mew& who has cat ears!%" - global.msg[4] = "\E3* Which humans don't have!&* S-so she's all& sensitive about them!%" - global.msg[5] = "\E6* But like...&* Eventually!%" - global.msg[6] = "* She realizes that her& ears don't matter!%" - global.msg[7] = "* That her friends like& her despite the ears!%" - global.msg[8] = "\E7* It's really moving!%" - global.msg[9] = "\E5* Whoops, spoilers%" - global.msg[10] = "\E6* Also, this sounds& weird, but she has& the power!%" - global.msg[11] = "\E5* To control the minds& of anyone she kisses!%" - global.msg[12] = "\E3* She kisses people and& controls them to fix& her problems!!%" - global.msg[13] = "\E5* They don't remember& anything after the& kiss I mean!!%" - global.msg[14] = "\E3* BUT IF SHE MISSES& THE KISS!!!&* THEN!!%" - global.msg[15] = "\E4* Then^1, uh^1, and^1, uh^1,& also I mean^1, of course%" - global.msg[16] = "\E5* Eventually^1, she& realizes that& controlling people%" - global.msg[17] = "\E3* OKAY WELL I almost& spoiled the whole& show^1, but%" - global.msg[18] = "\E5* Uhhh^1, I think you'd& really like it!!!/" - global.msg[19] = "\E0* We should watch it^1!&* After you get through& all this!/" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* (Click...)/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E5* Um^1! Well^1!&* That's okay!/" - global.msg[2] = "* Just thought I'd!^1!&* Ask!!!/" - global.msg[3] = "\E6* B-but I think you'd& really like it!!/" - global.msg[4] = "* If you gave it a& chance!!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Click...)/%%" - } - break - case 839: - global.msg[0] = "\M1* Did y'hear!^1?&* You're back!/" - global.msg[1] = "\M0* I'll tell you a big secret./" - global.msg[2] = "\M1* I'm starting a band^1, y'hear?/" - global.msg[3] = "\M1* It's called the Red Hot& Chibi Peppers./" - global.msg[4] = "\M0* All I've thought of is& the name./" - global.msg[5] = "\M3* And I don't^1, play...&* Instruments^1, or sing./" - global.msg[6] = "\M1* Well^1!&* Do you think we'll be& popular!!!/" - global.msg[7] = " & & Yeah No\C" - global.msg[8] = " " - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = "\M0* Yeah^1, me too.../%%" - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = " %%" - } - break - case 845: - global.msg[0] = "* (It's a lamp.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - break - case 846: - if (global.choice == 0) - { - global.msg[0] = "* (There's no lightbulb.^1)&* (A flashlight is stuck in& the bulb socket.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = " %%" - break - case 847: - if (global.choice == 0) - global.msg[0] = "* (The flashlight is out of& batteries.)/%%" - else - global.msg[0] = " %%" - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = "* Hey^1, hey^1!&* Did you remember my name?/" - global.msg[1] = "* (Did you?)& & Yes No\C" - global.msg[2] = " " - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = "* Wh-WHAT!^1?&* You REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = "* Wh-WHAT!^1?&* You DON'T REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - break - case 853: - global.msg[0] = "* (It's a small white dog.^1)&* (It's fast asleep...)/" - global.msg[1] = "* (Fight the dog?)& & Yes No\C" - global.msg[2] = " " - break - case 854: - if (global.choice == 0) - { - global.msg[0] = "* (Can't fight the dog.)/" - global.msg[1] = "* (Seems like the fabric it's& sleeping on has too many& holes in it.)/" - global.msg[2] = "* (Seems like the dog needs& to " + chr(34) + "patch" + chr(34) + " the fabric.)/" - global.msg[3] = "* (Then you can fight the dog.^1)&* (... maybe.)/" - global.msg[4] = "* (Upon closer examination^1,& the holes in the fabric& seem to be growing.)/" - global.msg[5] = "* (Might take a while for the& dog to fix all of them.)/" - global.msg[6] = "* (Dogs aren't usually very& good at knitting.)/" - global.msg[7] = "* (A crocheting dog is out of& the question.)/%%" - } - else - global.msg[0] = "* (Let sleeping dogs lie^1, instead& of fighting them.^1)&* (That's how the saying goes.)/%%" - break - case 860: - global.msg[0] = "* (Knock knock)./" - if (global.flag[262] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Sea Tea" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a million ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = "* (You pour the Sea Tea under& the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 862: - global.msg[0] = "* (Knock knock)./" - if (global.flag[263] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Cinnamon Bun" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a trillion ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = "* (You flatten the Cinnamon Bun& until it's paper thin.)&* (You slide it under the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 864: - global.msg[0] = "* (You hear shuffling.)/" - global.msg[1] = "* (Seems like you could put& something under the door.)/" - global.msg[2] = " & & Put No Put\C" - global.msg[3] = " " - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - break - case 865: - if (global.choice == 0) - { - global.msg[0] = "* (...)/" - global.msg[1] = "* (But you didn't have anything& appealing.)/%%" - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = "* (You put a Hot Dog in front& of the door.)/" - global.msg[1] = "* (A white paw shoots out from& under the door.)/" - global.msg[2] = "* (It tries to pull the Hot Dog& into its room...)/" - global.msg[3] = "* (But it keeps pressing down too& hard^1, and the hot dog keeps& spinning away.)/" - global.msg[4] = "* (...)/" - global.msg[5] = "* (It finally succeeds.)/" - global.msg[6] = "* (...)/" - global.msg[7] = "* (You hear the grinding of& stone.)/" - global.msg[8] = "* (A single hushpuppy slides& out from under the door.)/" - global.msg[9] = "* (You got Hush Puppy.)/%%" - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = "* (You put a Hot Cat in front& of the door.)/" - global.msg[1] = "* (You hear growling...)/%%" - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = "* (You put a Dog Salad in front& of the door.^1)&* (It slides underneath.)/" - global.msg[1] = "* (...)/" - global.msg[2] = "* (The Dog Salad was absorbed& by the darkness.)/%%" - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = "* (You put a Dog Residue in& front of the door.)/" - global.msg[1] = "* (It slides underneath the door^1,& as if pulled by a magnet.)/" - global.msg[2] = "* (...)/" - if (noroom == 1) - global.msg[3] = "* (ZOMMM!!^1!)&* (It shoots back out at a& high speed!)/%%" - else - global.msg[3] = "* (Two Dog Residues slowly slide& back out from underneath& the door.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 866: - global.msg[0] = "* Yes^1, we know^1.&* The elevator to the city& is NOT working./" - global.msg[1] = "* Because of this incident^1, rooms& are running at a special rate!/" - global.msg[2] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[3] = " " - if (global.flag[267] == 2) - { - global.msg[0] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[1] = " " - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = "* Did you enjoy your stay?/" - global.msg[1] = "* What^1?&* Room..^1.&* Key?/" - global.msg[2] = "* No^1, we don't do that./" - global.msg[3] = "* If you leave your room^1,& you'll have to pay again./" - global.msg[4] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[5] = " " - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* Fabulous^1!&* We'll escort you to your& room!/%%" - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = "* ... that's not enough money./%%" - } - else - global.msg[0] = "* Do let us know if you& change your mind^1.&* Have a sparkular day!/%%" - break - case 870: - global.msg[0] = "* ... MY ONE TRUE LOVE?/" - global.msg[1] = "* .../" - global.msg[2] = "* (YOU LOOK BORED^1, DARLING.)/" - global.msg[3] = "* (I WANT THIS TO BE A STELLAR& PERFORMANCE^1, SO IF YOU& WON'T GIVE IT YOUR ALL...)/" - global.msg[4] = "* (THEN I'LL SKIP AHEAD FOR& THE AUDIENCE'S SAKE.)/" - global.msg[5] = "* (Perform?)& & Yeah Skip this\C" - global.msg[6] = " " - break - case 871: - if (global.choice == 0) - global.msg[0] = "* (UNDERSTOOD.^1)&* (LET'S KNOCK 'EM DEAD!)/%%" - else - { - global.msg[0] = "* (KA-SIGH...^1)&* (THE SHOW MUST GO ON!)/%%" - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = "Interesting./" - global.msg[1] = "You want to go back./" - global.msg[2] = "You want to go bac^1k&to the worl^2d&you destroyed./" - global.msg[3] = "It was you who pushed&everythin^1g to its edge./" - global.msg[4] = "It was you who led the worl^1d&to its destruction./" - global.msg[5] = "But you cannot accept it./" - global.msg[6] = "You think you are above&consequences.& Yes No\C" - global.msg[7] = "" - break - case 889: - if (global.choice == 0) - global.msg[0] = "Exactly./%%" - else - global.msg[0] = "Then what are you looking for?/%%" - break - case 890: - global.msg[0] = "Perhaps./" - global.msg[1] = "We can reach a compromise./" - global.msg[2] = "You still have somethin^1g&I want./" - global.msg[3] = "Give it to me./" - global.msg[4] = "And I will bring this&world back./" - global.msg[5] = " & & Yes No\C" - global.msg[6] = "" - break - case 891: - if (global.choice == 0) - { - global.msg[0] = "Then it is agreed./" - global.msg[1] = "You will give me your SOUL.& & Yes No\C" - global.msg[2] = " " - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = ".../" - global.msg[1] = "Then^1, it is done./%%" - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 900: - global.msg[0] = "* hey./" - global.msg[1] = "* is your refrigerator& running?/" - global.msg[2] = " & & yes no\C" - global.msg[3] = " " - break - case 901: - if (global.choice == 0) - global.msg[0] = "* nice^1.&* i'll be over to deposit& the brewskis./%%" - else - { - global.msg[0] = "* ok^1, i'll send someone& over to fix it./" - global.msg[1] = "* thanks for letting me& know./" - global.msg[2] = "* good communication is& important./%%" - } - break - case 1001: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = " * Check * Console& * Terrorize" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = " * Check * Talk& * Devour * Dinner" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = " * Check * Pick On& * Don't Pick On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = " * Check * Flirt& * Threat * Cheer" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = " * Check * Pet" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = " * Check * Pet& * Pet * Pet & * Pet * Pet " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = " * Check * Agree& * Clash * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = " * Check * Compliment& * Ignore * Steal" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = " * Check * Compliment" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = " * Check * Ditch" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = " * Check * Decorate& * Undecorate * Gift" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = " * Check * Flex& * Shoo" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = " * Check * Flex& * Feed Temmie * Talk& Flakes " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = " * Check * Flirt& * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = " * Check * Clean& * Touch * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = " * Check * Smile& * Hum * Conduct" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = " * Check * Plead& * Challenge" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = " * Check * Cry" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = " * Check * Flirt& * Approach" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = " * Check * Criticize& * Encourage * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = " * Check * Cool Down& * Heat Up * Invite" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = (((("\W * Check * Struggle& * Pay " + string(global.flag[382])) + "G& \YYour Money: ") + string(global.gold)) + "G \W ") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = " * Check * Yell" - if (global.flag[385] > 0) - global.msg[0] = "\W * Check \Y* Yellow \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = " * Check * Fake Attack" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = " * Check * Talk & * Stare * Clear Mind" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = " * Check * Talk & * Sing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = " * Check * Defuse Bomb" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = " * Check * Burn" - if (global.flag[424] > 0) - global.msg[0] = "\W * Check \Y* Turn \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = " * Check * Boast& * Pose * Heel Turn" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = " * Call * Hum& * Scream * Flex& * Unhug * Cry" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = " * Check * Pick On& * Mystify * Clean& * Hum * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = " * Check * ITEM & * STAT * CELL" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = " * Check * Join& * Refuse" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = " * Fake Hit * Recipe& * Smile * Clash" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = " * Encourage * Call & * Nerd Out * Quiz" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = " * Joke * Puzzle & * Recipe * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = " * Take break * Joke & * Judgment * Crossword" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = " * Talk * Mercy & * Hug * Preference" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = " * Talk * Mercy & * Stare * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = " * Check * Switch& * Fix * Lie Down" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = " * Check * Hiss& * Devour * Snack" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = " * Check * Applaud& * Boo * Nothing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = " * Check * Something" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = " * Check * Draw" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = " * Check * Hope & * Dream" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = " * Error" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = " * Struggle" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = "\W * Undyne " - else - global.msg[0] = "\W \Y* (Saved) \W " - if (global.flag[506] == 0) - global.msg[0] += "* Alphys \W &" - else - global.msg[0] += "\Y* (Saved)\W &" - if (global.flag[507] == 0) - global.msg[0] += "\W * Papyrus * Sans \W &" - else - global.msg[0] += "\Y * (Saved) * (Saved)\W &" - if (global.flag[508] == 0) - global.msg[0] += "\W * Toriel * Asgore \W " - else - global.msg[0] += "\Y * (Saved) * (Saved)\W " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = " * Someone else" - if (global.flag[501] == 3) - global.msg[0] = " * Asriel Dreemurr" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = "* Dialing..\E0.\TT /" - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You only wanted to& say hello...^2?&* Well then./" - global.msg[4] = "\E0* 'Hello!'/" - global.msg[5] = "* I hope that suffices^1.&* Hee hee./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 2) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You want to say& hello again?/" - global.msg[4] = "* 'Salutations!'/" - global.msg[5] = "* Is that enough?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Are you bored^1?&* I should have given& a book to you./" - global.msg[4] = "* My apologies./" - global.msg[5] = "* Why not use your& imagination to& divert yourself?/" - global.msg[6] = "* Pretend you are..^1.&* A monarch!/" - global.msg[7] = "* Rule over the leaf pile& with a fist of iron./" - global.msg[8] = "* Can you do that for me?/" - global.msg[9] = "\TS \F0 \T0 %" - global.msg[10] = "* Click.../%%" - } - if (global.flag[40] > 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Hello^1, my child./" - global.msg[4] = "\E1* Sorry^1, I do not have& much to say./" - global.msg[5] = "\E0* It was nice to hear& your voice^1, though^1./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - break - case 1502: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* Help with a puzzle^1.^1.^1.?/" - global.msg[4] = "* Um^1, you have not& left the room^1, have you?/" - global.msg[5] = "\E0* Wait patiently for& me and we can solve& it together!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1503: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* You want to know& more about me?/" - global.msg[4] = "* Well^1, I am afraid there& is not much to say./" - global.msg[5] = "\E0* I am just a silly little& lady who worries too& much!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1504: - global.flag[42] = 1 - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E8* Huh^2?&* Did you just call& me... " + chr(34) + "Mom" + chr(34) + "?/" - global.msg[4] = "\E1* Well...&* I suppose.../" - global.msg[5] = "* Would that make you& happy?/" - global.msg[6] = "* To call me..^2.&* " + chr(34) + "Mother?" + chr(34) + "/" - global.msg[7] = "\E0* Well then^1, call me& whatever you like!/!" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E8* ...^2 huh???/" - global.msg[3] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[4] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[5] = "* You can certainly find& better than an old woman& like me./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[41] == 2) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E1* Oh dear,^1 are you& serious...?/" - global.msg[3] = "\E1* I do not know if this is& pathetic,^1 or endearing./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - if (global.flag[42] == 1) - { - global.msg[3] = "\E8* And after you said you& want to call& me " + chr(34) + "mother..." + chr(34) + "/" - global.msg[4] = "\E0* You are an...^2 & \E1... " + chr(34) + "interesting" + chr(34) + "& child./" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* But nobody came./%%" - } - else - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* Nobody picked up./%%" - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* The ringing is coming from& inside your inventory./%%" - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = "* Dialing...\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hey^1, you silly& child./" - global.msg[3] = "* If you want to& talk to me^1, I am& right here./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - break - case 1508: - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* (Somewhere^1, signals deflected& by a dog.)/%%" - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = "* (No response.^1)&* (Their phone might be out& of batteries.)/%%" - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = "* (The box is aclog with the& the hair of a dog.)/%%" - break - case 2001: - global.msg[0] = "\E2* Welcome to your new& home,^1 innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of& the RUINS./%" - break - case 2002: - global.faceplate = 1 - global.msg[0] = "\E8* ...^2 huh???/" - global.msg[1] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[2] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[3] = "* You can certainly find& better than an old woman& like me./%" - break - case 3002: - global.msg[0] = "* You encountered the Dummy." - global.msg[1] = "%%%" - break - case 3003: - global.msg[0] = "* Froggit attacks you!" - global.msg[1] = "%%%" - break - case 3004: - global.msg[0] = "* Froggit hopped close!" - global.msg[1] = "%%%" - break - case 3005: - global.msg[0] = "* Whimsun approached meekly!" - global.msg[1] = "%%%" - break - case 3006: - global.msg[0] = "* Froggit and Whimsun drew near!" - global.msg[1] = "%%%" - break - case 3007: - global.msg[0] = "* Moldsmal blocked the way!" - global.msg[1] = "%%%" - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 18d1db209..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml deleted file mode 100644 index 7865cee5e..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml +++ /dev/null @@ -1,103 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - n += 2 - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "P") - script_execute(SCR_TEXTSETUP, 4, 255, x, y, (x + 150), 43, 4, 94, 10) - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - } - if (global.inbattle == 1) - halt = 5 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_OBJ_WRITER_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_OBJ_WRITER_Draw_0.gml deleted file mode 100644 index 241521ad2..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_OBJ_WRITER_Draw_0.gml +++ /dev/null @@ -1,255 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "L") - mycolor = $FFA914 - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "z") - { - sym = real(string_char_at(originalstring, (n + 2))) - sym_s = spr_infinitysign - if (sym == 4) - sym_s = spr_infinitysign - if (sym == 4) - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - if (myfont == fnt_comicsans) - { - if (myletter == "w") - myx += 2 - if (myletter == "m") - myx += 2 - if (myletter == "i") - myx -= 2 - if (myletter == "l") - myx -= 2 - if (myletter == "s") - myx -= 1 - if (myletter == "j") - myx -= 1 - } - if (myfont == fnt_papyrus) - { - if (myletter == "D") - myx += 1 - if (myletter == "Q") - myx += 3 - if (myletter == "M") - myx += 1 - if (myletter == "L") - myx -= 1 - if (myletter == "K") - myx -= 1 - if (myletter == "C") - myx += 1 - if (myletter == ".") - myx -= 3 - if (myletter == "!") - myx -= 3 - if (myletter == "O" || myletter == "W") - myx += 2 - if (myletter == "I") - myx -= 6 - if (myletter == "T") - myx -= 1 - if (myletter == "P") - myx -= 2 - if (myletter == "R") - myx -= 2 - if (myletter == "A") - myx += 1 - if (myletter == "H") - myx += 1 - if (myletter == "B") - myx += 1 - if (myletter == "G") - myx += 1 - if (myletter == "F") - myx -= 1 - if (myletter == "?") - myx -= 3 - if (myletter == "'") - myx -= 6 - if (myletter == "J") - myx -= 1 - } - n += nskip -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_flowey_writer_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_flowey_writer_Draw_0.gml deleted file mode 100644 index aa57ccad5..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_flowey_writer_Draw_0.gml +++ /dev/null @@ -1,181 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "f") - global.typer = 9 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else if (global.typer == 70 || global.typer == 71 || global.typer == 74 || global.typer == 75 || global.typer == 76 || global.typer == 77) - draw_text_transformed((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter, 2, 2, 0) - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - n += nskip -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 9a5ea7df7..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,398 +0,0 @@ -buffer -= 1 -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if keyboard_multicheck_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ini_close() - room_goto(room_intromenu) -} -draw_set_color(c_white) -draw_set_font(fnt_maintext) -if (weather != 3) - draw_text_transformed(100, 10, "JOYSTICK CONFIG", 2, 2, 0) -else - draw_text_transformed(10, 10, "JOYSTICK CONFIG", 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, "EXIT") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = "CONFIRM - [Z + ENTER] ::" - if (i == 2) - itext = "CANCEL - [X + SHIFT] ::" - if (i == 3) - itext = "MENU - [C + CTRL] ::" - draw_text(20, (60 + (i * 15)), itext) - draw_set_color(c_white) -} -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 75, 245, 90, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 75, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 90, 245, 105, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 90, "(PUSH BUTTON)") - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 90, global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 105, 245, 120, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 105, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 105, global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, "ANALOG SENSITIVITY:") -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense -= global.analog_sense_sense - if keyboard_check(vk_left) - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text_transformed(20, 150, "ANALOG SENSITIVITY SENSITIVITY:", 0.6, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense_sense -= 0.01 - if keyboard_check(vk_left) - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, "DIR CHOICE:") -if (global.joy_dir == 0) - draw_text(100, 170, "NORMAL") -if (global.joy_dir == 1) - draw_text(100, 170, "ANALOG ONLY") -if (global.joy_dir == 2) - draw_text(100, 170, "POV ONLY") -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, 185, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, 185, "RESET TO DEFAULT") -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = "SPAGHETTI..." - else - r_line = "RESETTED..." - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 200, "CONTROL TEST") -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "cold outside#but stay warm#inside of you", 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "spring time#back to school", 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "try to withstand#the sun's life-#giving rays", 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "sweep a leaf#sweep away a#troubles", 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - draw_rectangle((168 - rectile), -10, -1, 250, false) - draw_set_color(c_black) - draw_rectangle((152 + rectile), -10, 330, 250, false) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 7b8438b88..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = "PET?" - if (gg == 1) - global.msg[0] = "PAT?" - if (gg == 2) - global.msg[0] = "POT?" - global.msg[1] = "%%%" - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_readable_room1_Alarm_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_readable_room1_Alarm_0.gml deleted file mode 100644 index ca62366f8..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_readable_room1_Alarm_0.gml +++ /dev/null @@ -1,480 +0,0 @@ -myinteract = 3 -global.msc = 0 -global.typer = 5 -global.facechoice = 0 -global.faceemotion = 0 -global.msg[0] = "%%" -if (room == room_ruins2) - global.msg[0] = "* Only the fearless may proceed.&* Brave ones, foolish ones.&* Both walk not the middle road./%%" -if (room == room_ruins3) - global.msg[0] = "* Stay on the path./%%" -if (room == room_ruins5) - global.msg[0] = "* The western room is the& eastern room's blueprint./%%" -if (room == room_ruins9) - global.msg[0] = "* Three out of four grey rocks& recommend you push them./%%" -if (room == room_ruins13) - global.msg[0] = "* (There's an ant-sized frog in& a crack in the wall...^1)&* (It waves at you.)/%%" -if (room == room_ruins14) - global.msg[0] = "* There is just one switch./%%" -if (room == room_ruins15A) - global.msg[0] = "* The far door is not an exit^1.&* It simply marks a rotation& in perspective./%%" -if (room == room_ruins15B) - global.msg[0] = "* If you can read this^1,& press the blue switch./%%" -if (room == room_ruins15C) - global.msg[0] = "* If you can read this^1,& press the red switch./%%" -if (room == room_ruins15D) - global.msg[0] = "* If you can read this^1,& press the green switch./%%" -if (room == room_torhouse1) - global.msg[0] = "* These books are worn...&* They must have been read& many times./%%" -if (room == room_asghouse1) -{ - global.msg[0] = "* (There's an old calendar from& the end of 201X.^1)&* (A date is circled on it.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (The date I came here.)/%%" -} -if (room == room_torhouse2) - global.msg[0] = "* The ends of the tools have& been filed down to& make them safer./%%" -if (room == room_asghouse2) - global.msg[0] = "* Seems like gardening tools./%%" -if (room == room_asrielroom) - global.msg[0] = "* Look at these cool toys^2!&* They don't interest you& at all./%%" -if (room == room_asrielroom_final) - global.msg[0] = "* (Dusty toys.)/%%" -if (room == room_castle_finalshoehorn) - global.msg[0] = "* Throne Room/%%" -if (room == room_castle_coffins2) -{ - global.msg[0] = "* (It's a coffin.^1)&* (There's a name engraved on& it.)/" - global.msg[1] = (('* ("' + global.charname) + '.")/') - global.msg[2] = "* (It's empty.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (The coffin is empty...?)/" - global.msg[1] = "* (You didn't notice before^1,& but there's something like...)/" - global.msg[2] = "* (... mummy wrappings at the& bottom of it.)/%%" - } - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (It's as comfortable as it& looks.)/%%" -} -if (room == room_torielroom) -{ - global.msc = 524 - if (x > 192) - { - global.msc = 0 - global.msg[0] = "* You peek inside..^2.&* Scandalous!/" - global.msg[1] = "* It's TORIEL's sock& collection./%%" - if (read > 0) - global.msg[0] = "* You can't stop looking& at the socks./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (You came all the way& back here to look at& Toriel's socks.)/" - global.msg[1] = "* (You have great priorities& in life.)/%%" - } - } -} -if (room == room_asgoreroom) -{ - global.msg[0] = "* It's a clothes drawer^1.&* There are robes^1, button-up& shirts.../" - global.msg[1] = "* ... and a pink^1, hand-knit& sweater that says& " + chr(34) + "Mr. Dad Guy." + chr(34) + "/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* Still has that sweater./%%" - if (y > 120) - global.msg[0] = "* (It's just a chair.)/%%" -} -if (room == room_castle_throneroom) - global.msg[0] = "* (It's a throne.)/%%" -if (room == room_torhouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_asghouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_kitchen) - global.msg[0] = "* For some reason^1, there& is a brand-name chocolate& bar in the fridge./%%" -if (room == room_kitchen_final) -{ - global.msg[0] = "* (The fridge is full of& unopened containers of& snails.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* No chocolate./%%" -} -if (room == room_tundra1) - global.msg[0] = "* ...!^1?&* There's a camera hidden& in the bushes./%%" -if (room == room_tundra8A) - global.msg[0] = "* (His.)/%%" -if (room == room_tundra_snowpuzz) -{ - if (global.plot <= 48) - global.msg[0] = "* There's a switch hidden& in the snow^1.&* Click!/%%" - if (global.plot > 48) - global.msg[0] = "* The switch is stuck now./%%" - if (global.flag[64] == 0) - global.flag[64] = 1 - if (global.plot <= 48) - global.plot = 49 - if (scr_murderlv() >= 3) - global.msg[0] = "* There's a switch here^1.&* It's been depressed with& vines./%%" -} -if (room == room_tundra_lesserdog) - global.msg[0] = "* On the floor inside is& a box of pomeraisins./%%" -if (room == 9999999) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are super crap./" - global.msg[2] = "* When monsters die^1, their& bodies turn into dust./" - global.msg[3] = "* One time this kid at my school& went missing for a week and& everyone thought he was dead.../" - global.msg[4] = "* But then he came back!!!/" - global.msg[5] = "* Turns out he was visiting his& girlfriend in Hotland and& and didn't tell anyone!/" - global.msg[6] = "* To be scientific^1, it sucks& that no one ever knows& if anyone's dead or alive./" - global.msg[7] = "* So yeah^1, what do we do at& funerals^1, anyway?/" - global.msg[8] = "* Professionally speaking:/" - global.msg[9] = "* DUH!!!/" - global.msg[10] = "* We pour the dust on whatever& that person liked./" - global.msg[11] = "* Then they will live on..^1.& ... in that object...& ... symbolically.../" - global.msg[12] = "* Uhhh^1, did I reach the page& minimum yet^1?&* I'm kinda sick of writing./%%" -} -if (room == room_tundra_library) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are cool as heck./" - global.msg[2] = "* When monsters get old and& kick the bucket^1, they turn& into dust./" - global.msg[3] = "* At funerals^1, we take that& dust and spread it on that& person's favorite thing./" - global.msg[4] = "* Then their essence will live& on in that thing.../" - global.msg[5] = "* Uhhh^1, am I at the page& minimum yet^1?&* I'm kinda sick of writing this./%%" -} -if (room == room_tundra_inn) -{ - global.msg[0] = "\W* Mom says that sleeping& can recover your health& \Yabove your maximum HP\W./" - global.msg[1] = "* ... what's maximum HP?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* Mom says that we can& go to the surface world& now!/" - global.msg[1] = "* ... what's so great about& that^1, anyway^1?&* I don't wanna move./%%" - } - if (scr_murderlv() >= 7) - global.msg[0] = "* (It's merely a decoy.)/%%" -} -if (room == room_water12) -{ - global.msg[0] = "* " + chr(34) + "The power to take their& SOULs." + chr(34) + "/" - global.msg[1] = "* " + chr(34) + "This is the power that& the humans feared." + chr(34) + "/%%" -} -if (room == room_water7) -{ - global.msg[0] = "* (Ancient writing covers the& walls..^1. you can just make& out the words.)/" - global.msg[1] = "* " + chr(34) + "The War of Humans and& Monsters." + chr(34) + "/%%" -} -if (room == room_water14) - global.msg[0] = "* The northern room hides a& great treasure./%%" -if (room == room_water15) -{ - global.msg[0] = "* Hurt, beaten, and fearful for& our lives, we surrendered& to the humans./" - global.msg[1] = "* Seven of their greatest& magicians sealed us underground& with a magic spell./" - global.msg[2] = "* Anything can enter through the& seal, but only beings with a& powerful SOUL can leave./%%" -} -if (room == room_water19) -{ - global.msg[0] = "* However...&* There is a prophecy./" - global.msg[1] = "* The Angel...&* The One Who Has Seen The& Surface.../" - global.msg[2] = "* They will return.&* And the underground will go& empty./%%" -} -if (room == room_water_nicecream) - global.msg[0] = "* The ancient glyphs have been& painted over with a list of& 21 different flavors./%%" -if (room == room_water_prebird) - global.msg[0] = "* Achoo^1!&* Tried to catch a bug^1, but& I just caught a cold.../%%" -if (room == room_water_preundyne) -{ - global.msg[0] = "* The humans, afraid of our& power^1, declared war on us./" - global.msg[1] = "* They attacked suddenly, and& without mercy./%%" -} -if (room == room_water17) - global.msg[0] = "* Without candles or magic to& guide them Home^1, the monsters& used crystals to navigate./%%" -if (room == room_water20) -{ - if instance_exists(obj_monsterkidtrigger7) - obj_monsterkidtrigger7.con = 80 - cantalk = 0 -} -if (room == room_fire_lab1) -{ - global.msg[0] = "* (It's a beat-up figurine& of a female human with& cat ears.)/%%" - if (global.plot < 126 && scr_murderlv() < 12) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" -} -if (room == room_fire_lab2) - global.msg[0] = "* (Scientific books.^1)&* (They seem very dusty.)/%%" -if (room == room_fire_cookingshow) -{ - global.msg[0] = "* (It's a fridge.^1)&* (It's strangely warm.)/%%" - if (global.plot < 134) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" - if instance_exists(obj_mettaton_npc) - { - global.typer = 27 - global.msg[0] = "* MILK^1? EGGS^1? IN THE FRIDGE?/" - global.msg[1] = "* NO WAY^1, DARLING^1!&* THEY'D GET COLD!!!/%%" - } - if (global.plot == 134) - { - snd_play(snd_phone) - global.typer = 5 - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* Um^1, is it really& a good idea to be& getting a snack?/" - global.msg[3] = "\E8* Well^1, I guess I& really shouldn't& judge you.../" - global.msg[4] = "\E0* After all^1, I'm the& one eating potato& chips in my PJs!/" - global.msg[5] = "\E5* Uhhh^1, I mean..^1.&* H-hey^1, go over to& the right!/%%" - if (specialread > 0) - { - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* H-hey^1!&* Head over to the& right!/%%" - } - specialread += 1 - } -} -if (room == room_water_undynehouse) -{ - global.typer = 37 - global.facechoice = 5 - global.faceemotion = 4 - global.msc = 0 - if (x > 180) - { - global.msg[0] = "* I hate cold food./" - global.msg[1] = "\E0* So Alphys fixed up& my fridge so it& heats up food instead!/" - global.msg[2] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - if (read > 0) - global.msg[0] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - } - else - { - global.faceemotion = 0 - global.msg[0] = "* This oven is some& top-of-the-line& MTT thing./" - global.msg[1] = "\E4* But^1, y'know^1, as much& as technology& advances.../" - global.msg[2] = "\E0* Nothing beats food& home-cooked with& fire magic./%%" - } -} -if (room == room_fire_spidershop) -{ - global.msg[0] = "* (It looks like some sort of& powerful bracelet...)/" - global.msg[1] = "* (Wait.^1)&* (It's just a croissant...)/%%" -} -if (room == room_fire_hotelfront_2) - global.msg[0] = "* (It's just a regular wall.)/%%" -if (room == room_fire_core_branch) - global.msg[0] = "* (East...)&* (The End.)/%%" -if (room == room_fire_core_left) - global.msg[0] = "* (Solve this puzzle,& and The End will open.)/%%" -if (room == room_fire_core_top) - global.msg[0] = "* (Traverse the northern& room^1, and The End will& open.)/%%" -if (room == room_fire_core_right) -{ - global.msg[0] = "* (I cannot fight.)&* (I cannot think.)/" - global.msg[1] = "* (But^1, with patience^1,& I will make my way& through.)/%%" -} -if (room == room_fire_core_center) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_treasureleft) - global.msg[0] = "* (Why not relax and have& a nice snack?)/%%" -if (room == room_fire_core_treasureright) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_metttest) -{ - global.msg[0] = "* (It's completely trashed.^1)&* (There's no way it could& ever be repaired.)/%%" - if (global.flag[425] == 0) - global.msg[0] = "* (It's out of batteries.)/%%" -} -if (room == room_truelab_hall1) -{ - global.msg[0] = "* ENTRY NUMBER 1/" - global.msg[1] = "* This is it..^1.&* Time to do what the King& has asked me to do./" - global.msg[2] = "* I will create the power to& free us all./" - global.msg[3] = "* I will unleash the power of& the SOUL./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hub) -{ - global.msg[0] = "* POWER ROOM/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall2) -{ - global.msg[0] = "* ENTRY NUMBER 6/" - global.msg[1] = "* ASGORE asked everyone& outside the city for monsters& that had " + chr(34) + "fallen down." + chr(34) + "/" - global.msg[2] = "* Their bodies came in today./" - global.msg[3] = "* They're still comatose..^1.&* And soon^1, they'll all& turn into dust./" - global.msg[4] = "* But what happens if I& inject " + chr(34) + "determination" + chr(34) + " into& them?/" - global.msg[5] = "* If their SOULS persist& after they perish^1, then.../" - global.msg[6] = "* Freedom might be closer& than we all thought./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_operatingroom) -{ - global.msg[0] = "* ENTRY NUMBER 9/" - global.msg[1] = "* things aren't going well./" - global.msg[2] = "* none of the bodies have& turned into dust^1, so I& can't get the SOULs./" - global.msg[3] = "* i told the families that& i would give them the& dust back for the funerals./" - global.msg[4] = "* people are starting to& ask me what's happening./" - global.msg[5] = "* what do i do?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_prebed) -{ - global.msg[0] = "* ENTRY NUMBER 12/" - global.msg[1] = "* nothing is happening^1.&* i don't know what to do./" - global.msg[2] = "* i'll just keep injecting& everything with& " + chr(34) + "determination." + chr(34) + "/" - global.msg[3] = "* i want this to work./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_bedroom) -{ - global.msg[0] = "* ENTRY NUMBER 14/" - global.msg[1] = "* Everyone that had fallen& down.../" - global.msg[2] = "* ... has woken up./" - global.msg[3] = "* They're all walking around& and talking like nothing& is wrong./" - global.msg[4] = "* I thought they were& goners...?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_mirror) -{ - global.msg[0] = "* ENTRY NUMBER 7/" - global.msg[1] = "* We'll need a vessel to& wield the monster SOULs& when the time comes./" - global.msg[2] = "* After all^1, a monster& cannot absorb the SOULs& of other monsters./" - global.msg[3] = "* Just as a human cannot& absorb a human SOUL.../" - global.msg[4] = "* So then.../" - global.msg[5] = "* What about something that's& neither human nor monster?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall3) -{ - global.msg[0] = "* ENTRY NUMBER 15/" - global.msg[1] = "* Seems like this research& was a dead end.../" - global.msg[2] = "* But at least we got a& happy ending out of it...?/" - global.msg[3] = "* I sent the SOULS back to& ASGORE^1, returned the& vessel to his garden..../" - global.msg[4] = "* And I called all of the& families and told them& everyone's alive./" - global.msg[5] = "* I'll send everyone back& tomorrow. :) /%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* ENTRY NUMBER 17/" - global.msg[1] = "* monsters' physical forms& can't handle " + chr(34) + "determination" + chr(34) + "& like humans' can./" - global.msg[2] = "* with too much determination^1,& our bodies begin to break& down./" - global.msg[3] = "* everyone's melted together.../%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* DT EXTRACTION MACHINE&* STATUS: INACTIVE/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_tv) -{ - global.msg[0] = "* ENTRY NUMBER 4/" - global.msg[1] = "* I've been researching humans& to see if I can find any& info about their SOULS./" - global.msg[2] = "* I ended up snooping around& the castle...&* And found these weird tapes./" - global.msg[3] = "* I don't feel like ASGORE's& watched them.../" - global.msg[4] = "* I don't think he should./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_fan) - global.msc = 780 -if (room == room_truelab_cooler) -{ - global.msg[0] = "* ENTRY NUMBER 19/" - global.msg[1] = "* the families keep calling& me to ask when everyone& is coming home./" - global.msg[2] = "* what am i supposed to say?/" - global.msg[3] = "* i don't even answer the& phone anymore./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" - if (global.flag[490] == 0) - global.msg[0] = "* (It's too dark to see near& the walls.)/%%" -} -if (room == room_truelab_prepower) -{ - global.msg[0] = "* (Seems to be turned off.)/%%" - if (global.flag[485] == 1) - { - global.msg[0] = "* ENTRY NUMBER 8/" - global.msg[1] = "* I've chosen a candidate./" - global.msg[2] = "* I haven't told ASGORE yet^1,& because I want to surprise& him with it.../" - global.msg[3] = "* In the center of his& garden^1, there's something& special./" - global.msg[4] = "* The first golden flower^1,& that grew before all the& others./" - global.msg[5] = "* The flower from the outside& world./" - global.msg[6] = "* It appeared just before& the queen left./" - global.msg[7] = "* I wonder.../" - global.msg[8] = "* What happens when something& without a SOUL gains& the will to live?/%%" - } -} -if (room == room_truelab_elevatorinside) - global.msg[0] = "* (None of the buttons work.^1)&* (It seems to have lost power.)/%%" -if (room == room_castle_elevatorout) - global.msg[0] = "* (The door is jammed shut& with vines.)/%%" -if (room == room_truelab_castle_elevator) - global.msg[0] = "* (Seems like another elevator& has lost its power.)/%%" -if (room == room_tundra_grillby) - global.msg[0] = "* (The jukebox is broken.)/%%" -if (room == room_water_blookyard) - global.msg[0] = "* (It's locked.)/%%" -if (room == room_tundra_sansroom) - global.msg[0] = "* (It's a worn mattress.^1)&* (The sheets are bunched up in a& weird^1, creasy ball.)/%%" -if (room == room_tundra_sansbasement) -{ - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (He looks happy.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (... and^1, one photo of you& standing with Sans and all& your friends.)/" - global.msg[3] = "* (He looks happy.)/%%" - } - if (global.flag[279] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of..^1. Huh?)/" - global.msg[2] = "* (A card is sticking out from& the back flap of the binder.)/" - global.msg[3] = "* (It's a poorly drawn picture& of three smiling people.^1)&* (Written on it...)/" - global.msg[4] = "* " + chr(34) + "don't forget." + chr(34) + "/%%" - } -} -if (room == room_fire_pacing) -{ - global.msg[0] = "* (It's a poster for Mettaton's& latest stage performance.)/" - global.msg[1] = "* (A tragic tale of two star-& crossed lovers^1, kept apart& by the tides of fate...)/" - global.msg[2] = "* (Looks like it's almost time& for the performance.)/%%" -} -if (room == room_fire_hoteldoors) - global.msg[0] = "* (It's locked from the inside.)/%%" -if (room == room_fire_hotellobby) -{ - global.msg[0] = "* (There's an inscription on& this fountain.)/" - global.msg[1] = "* Royal Memorial Fountain&* Built 201X&* (Mettaton Added Last Week)/%%" -} -if (room == room_fire_restaurant) -{ - global.msg[0] = "* (It's a Wall of Fame full of& quotes and photos from visiting& celebrities.)/" - global.msg[1] = "* " + chr(34) + "The food is to die for!^1" + chr(34) + "&* " + chr(34) + "Gorgeous style and fragrance!^1" + chr(34) + "&* " + chr(34) + "My face tastes beautiful!" + chr(34) + "/" - global.msg[2] = "* (... these are all Mettaton.)/%%" -} -if (room == room_fire_hotelbed) -{ - global.msg[0] = "* (It's a lamp.^1)&* (There's no lightswitch.)/" - global.msg[1] = "* (It says that stars make& their own light...)/%%" -} -if (room == room_water_temvillage) - global.msg[0] = "* (Rich history of Tem.)/%%" -read += 1 -if (cantalk == 1) - mydialoguer = instance_create(0, 0, obj_dialoguer) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index d03c73c02..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - draw_set_font(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, "Exit") - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if keyboard_check_pressed(vk_return) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - draw_set_font(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (keyboard_check_pressed(vk_return) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_truechara_Step_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_truechara_Step_0.gml deleted file mode 100644 index 0b3663c04..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_truechara_Step_0.gml +++ /dev/null @@ -1,192 +0,0 @@ -if (con == 1) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Greetings./" - global.msg[1] = (("I^2 am " + global.charname) + "./%%") - instance_create(220, 320, OBJ_WRITER) - con = 2 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - caster_loop(ch_sfx1, 1, 1) - con = 3 - alarm[4] = 60 -} -if (con == 4) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Thank you./" - global.msg[1] = "Your power awakened&me from death./" - global.msg[2] = 'My "human soul."/' - global.msg[3] = 'My "determination."/' - global.msg[4] = "They were not mine^1,&but YOURS./" - global.msg[5] = "At first^1, I&was so confused./" - global.msg[6] = "Our plan had failed^1,&hadn't it?/" - global.msg[7] = "Why was I brought&back to life?/" - global.msg[8] = ".../" - global.msg[9] = "You./" - global.msg[10] = "With your guidance./" - global.msg[11] = "I realized the purpose&of my reincarnation./" - global.msg[12] = "Power./" - global.msg[13] = "Together^1, we eradicated&the enemy and became&strong./" - global.msg[14] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[15] = "Every time a number&increases^1, that&feeling.../" - global.msg[16] = "That's me./" - global.msg[17] = (('"' + global.charname) + '."/') - global.msg[18] = "Now./" - global.msg[19] = "Now, we have reached&the absolute./" - global.msg[20] = "There is nothing&left for us here./" - global.msg[21] = "Let us erase this&pointless world^1, and&move on to the next./%%" - if file_exists("system_information_963") - { - global.msg[0] = (('"' + global.charname) + '."/') - global.msg[1] = "The demon that comes&when people call&its name./" - global.msg[2] = "It doesn't matter when./" - global.msg[3] = "It doesn't matter where./" - global.msg[4] = "Time after time,&I will appear./" - global.msg[5] = "And, with your help./" - global.msg[6] = "We will eradicate the&enemy and become&strong./" - global.msg[7] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[8] = "Every time a number&increases^1, that&feeling.../" - global.msg[9] = "That's me./" - global.msg[10] = (('"' + global.charname) + '."/') - global.msg[11] = ".../" - global.msg[12] = "But./" - global.msg[13] = "You and I are not&the same^1, are we?/" - global.msg[14] = "This SOUL resonates&with a strange&feeling./" - global.msg[15] = "There is a reason&you continue to&recreate this world./" - global.msg[16] = "There is a reason&you continue to&destroy it./" - global.msg[17] = "You./" - global.msg[18] = "You are wracked with&a perverted&sentimentality./" - global.msg[19] = "Hmm./" - global.msg[20] = "I cannot understand&these feelings&any more./" - global.msg[21] = "Despite this./" - global.msg[22] = "I feel obligated to&suggest./" - global.msg[23] = "Should you choose to&create this world&once more./" - global.msg[24] = "Another path would&be better suited./" - global.msg[25] = "Now, partner./" - global.msg[26] = "Let us send this&world back into the&abyss./%%" - } - instance_create(150, 320, OBJ_WRITER) - con = 5 -} -if (con == 5 && instance_exists(OBJ_WRITER) == 0) -{ - con = 6 - alarm[4] = 30 -} -if (con == 7) -{ - con = 8 - choicer = 1 -} -if (con == 20) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Right^1. You are a&great partner./" - global.msg[1] = "We'll be together&forever^1, won't we?/%%" - con = 22 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 22 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - sprite_index = spr_truechara_weird -} -if (con == 22 && instance_exists(OBJ_WRITER) == 0) - con = 60 -if (con == 30) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "No...?/" - global.msg[1] = "Hmm.../" - global.msg[2] = "How curious./" - global.msg[3] = "You must have&misunderstood./" - global.msg[4] = "SINCE WHEN WERE YOU&THE ONE IN CONTROL?/%%" - if file_exists("system_information_963") - { - global.msg[0] = "No...?/" - global.msg[1] = "Hmm...&This feeling you have./" - global.msg[2] = "This is what I&spoke of./" - global.msg[3] = "Unfortunately,®arding this.../" - global.msg[4] = "YOU MADE YOUR CHOICE&LONG AGO./%%" - } - con = 31 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 31 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 4) - sprite_index = spr_truechara_weird -} -if (con == 31 && instance_exists(OBJ_WRITER) == 0) - con = 40 -if (con == 40) -{ - caster_stop(-3) - caster_play(ch_sfx2, 1, 0.95) - sprite_index = spr_truechara_laugh - image_speed = 0.5 - con = 41 - flashred = 1 - alarm[4] = 120 - wx = 0 - wy = 0 - if (global.osflavor == 1) - { - window_set_fullscreen(false) - window_set_caption(" ") - window_center() - wx = window_get_x() - wy = window_get_y() - } -} -if (con == 41) -{ - x = (((room_width / 2) + random(4)) - random(4)) - y = (((room_height / 2) + random(4)) - random(4)) - image_xscale += 0.08 - image_yscale += 0.08 - if (global.osflavor == 1) - window_set_position(((wx + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4))), ((wy + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4)))) -} -if (con == 42) -{ - con = 60 - if (global.osflavor == 1) - window_center() - flashred = 0 -} -if (con == 60) -{ - caster_free(-3) - snd_play(snd_laz) - image_speed = 0 - image_index = 0 - sprite_index = spr_strike - image_xscale = 5 - image_yscale = 5 - y = ((room_height / 2) - (sprite_height / 2)) - x = ((room_width / 2) - (sprite_width / 2)) - image_speed = 0.1 - con = 61 -} -if (con == 61) -{ - if (image_index >= 5.5) - { - visible = false - con = 62 - alarm[4] = 40 - } -} -if (con == 63) -{ - snd_play(snd_damage) - instance_create(0, 0, obj_gameshake) - con = 64 -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index f424d711c..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = string("0") - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ccf249543..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6411 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = " " - adder = "\W " - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y " - if (global.flag[22] == 2) - adder = "\p " - } - global.msg[0] = adder - global.msg[0] += (" * " + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += " A" - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += " B" - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += " C" - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = " " - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y " - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p " - } - } - global.msg[0] += " * Spare" - if (global.mercy == 0) - global.msg[0] += "& \W * Flee" - break - case 9: - global.msg[0] = ((" * " + global.itemnameb[0]) + " ") - if (global.item[1] != 0) - global.msg[0] += ("* " + global.itemnameb[1]) - global.msg[0] += " &" - if (global.item[2] != 0) - global.msg[0] += ((" * " + global.itemnameb[2]) + " ") - if (global.item[3] != 0) - global.msg[0] += ("* " + global.itemnameb[3]) - global.msg[0] += " & PAGE 1" - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = ((" * " + global.itemnameb[4]) + " ") - if (global.item[5] != 0) - global.msg[0] += ("* " + global.itemnameb[5]) - global.msg[0] += " &" - if (global.item[6] != 0) - global.msg[0] += ((" * " + global.itemnameb[6]) + " ") - if (global.item[7] != 0) - global.msg[0] += ("* " + global.itemnameb[7]) - global.msg[0] += " & PAGE 2" - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += (("* You recovered " + string(global.item[8])) + " HP!/%") - else - global.msg[0] += "* Your HP was maxed out./%" - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = (("* You bid a quiet farewell& to the " + global.itemname[global.menucoord[1]]) + ".") - if (i == 1) - global.msg[0] = (("* You put the " + global.itemname[global.menucoord[1]]) + "& on the ground and gave it a& little pat.") - if (i == 2) - global.msg[0] = (("* You threw the " + global.itemname[global.menucoord[1]]) + "& on the ground like the piece& of trash it is.") - if (i == 3) - global.msg[0] = (("* You abandoned the & " + global.itemname[global.menucoord[1]]) + ".") - if (i > 3) - global.msg[0] = (("* The " + global.itemname[global.menucoord[1]]) + " was& thrown away.") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = " * I'm outta here." - if (i == 2) - global.msg[0] = " * I've got better to do." - if (i > 3) - global.msg[0] = " * Escaped..." - if (i == 3) - global.msg[0] = " * Don't slow me down." - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = ((((" * Ran away with " + string(global.xpreward[3])) + " EXP& and ") + string(global.goldreward[3])) + " GOLD.") - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = "* (The shadow of the ruins& looms above^1, filling you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins7) - { - global.msg[0] = "* (Playfully crinkling through& the leaves fills you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins12A) - { - global.msg[0] = "* (Knowing the mouse might one& day leave its hole and& get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_ruins19) - global.msg[0] = "* (Seeing such a cute^1, tidy& house in the RUINS gives& you determination.)/%%" - if (global.flag[202] >= 20) - global.msg[0] = "* Determination./%%" - if (room == room_tundra1) - global.msg[0] = "* (The cold atmosphere of a& new land... it fills you& with determination.)/%%" - if (room == room_tundra3) - global.msg[0] = "* (The convenience of that& lamp still fills you& with determination.)/%%" - if (room == room_tundra_spaghetti) - { - global.msg[0] = "* (Knowing the mouse might one& day find a way to heat& up the spaghetti...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = "* (Knowing that dog will& never give up trying to& make the perfect snowdog...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - if (global.flag[55] == 1) - { - global.msg[0] = "* (Snow can always be broken& down and rebuilt into& something more useful.)/" - global.msg[1] = "* (This simple fact fills& you with determination.)/%%" - } - } - if (room == room_tundra_town) - global.msg[0] = "* (The sight of such a friendly& town fills you with& determination.)/%%" - if (room == room_water2) - global.msg[0] = "* (The sound of rushing water& fills you with& determination.)/%%" - if (room == room_water4) - global.msg[0] = "* (A feeling of dread hangs& over you...^1)&* (But you stay determined.)/%%" - if (room == room_water_savepoint1) - { - global.msg[0] = "* (Knowing the mouse might one& day extract the cheese from& the mystical crystal...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_preundyne) - { - global.msg[0] = "* (The sound of muffled rain& on the cavetop...)/" - if (global.flag[86] == 1) - global.msg[0] = "* (The serene sound of a& distant music box...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_trashzone2) - global.msg[0] = "* (The feeling of your socks& squishing as you step& gives you determination.)/%%" - if (room == room_water_trashsavepoint) - { - global.msg[0] = "* (The waterfall here seems& to flow from the& ceiling of the cavern...)/" - global.msg[1] = "* (Occasionally^1, a piece of& trash will flow& through...)/" - global.msg[2] = "* (... and fall into the& bottomless abyss below.)/" - global.msg[3] = "* (Viewing this endless& cycle of worthless& garbage...)/" - global.msg[4] = "* (It fills you with& determination.)/%%" - if (global.flag[91] == 1) - global.msg[0] = "* (Partaking in worthless& garbage fills you& with determination.)/%%" - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = "* (You feel a calming& tranquility^1. You're filled& with determination...)/%%" - if (room == room_water_temvillage) - global.msg[0] = "* (You feel..^1. something.)&* (You're filled with& detemmienation.)/%%" - if (room == room_water_undynefinal) - { - global.msg[0] = "* (The wind is howling^1.&* You're filled with& determination...)/%%" - if (global.flag[99] > 0) - global.msg[0] = "* (The howling wind is& now a breeze^1. This gives& you determination...)/%%" - if (global.flag[350] == 1) - global.msg[0] = "* (The wind has stopped^1.&* You're filled with& determination...)/%%" - } - if (room == room_fire_prelab) - { - global.msg[0] = "* (Seeing such a strange& laboratory in a place like& this...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire6) - global.msg[0] = "* (The wooshing sound of steam& and cogs..^1. it fills you& with determination.)/%%" - if (room == room_fire_savepoint1) - { - global.msg[0] = "* (An ominous structure looms& in the distance...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_mewmew2) - { - global.msg[0] = "* (Knowing the mouse might one& day hack the computerized& safe and get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_fire_hotelfront_1) - global.msg[0] = "* (A huge structure lies north.^1)&* (You're filled with& determination.)/%%" - if (room == room_fire_hotellobby) - global.msg[0] = "* (The relaxing atmosphere& of this hotel..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_branch) - global.msg[0] = "* (The air is filled with& the smell of ozone..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_premett) - { - global.msg[0] = "* (Behind this door must be& the elevator to the King's& castle.)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_savepoint2) - { - global.msg[0] = "* (The smell of cobwebs fills& the air...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& put away.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& tossed inside recklessly.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& placed thoughtfully inside.") - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& grabbed impatiently.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out and held like a& small puppy.") - global.msg[0] += "/%" - break - case 18: - global.msg[0] = "* You can't carry any more./%%" - break - case 19: - global.msg[0] = "* The box is full./%%" - break - case 23: - global.msg[0] = "* You leave the Quiche on the& ground and tell it you'll& be right back./%%" - break - case 30: - global.msg[0] = "* Use the box?& & Yes No \C " - global.msg[1] = " " - global.msg[2] = " " - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = " %%" - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = "* You have no items^1.&* You put a little time into& the box./%%" - if (gx == 1) - global.msg[0] = "* You have no items^1.&* You put a little effort& into the box./%%" - if (gx == 2) - global.msg[0] = "* You have no items^1.&* You put a little feeling& into the box./%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 200: - global.msg[0] = "\W* Howdy^2!&* I'm\Y FLOWEY\W.^2 &* \YFLOWEY\W the \YFLOWER\W!/" - global.msg[1] = "* Hmmm.../" - global.msg[2] = "* You're new to the& UNDERGROUND^2, aren'tcha?/" - global.msg[3] = "* Golly^1, you must be& so confused./" - global.msg[4] = "* Someone ought to teach& you how things work& around here!/" - global.msg[5] = "* I guess little old me& will have to do./" - global.msg[6] = "* Ready^2?&* Here we go!/%%" - break - case 201: - global.msg[0] = "\E2* This way./%%" - global.msg[1] = "%%%" - break - case 202: - global.msg[0] = "\E2* Welcome to your new& home^1, innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of the& RUINS./%%" - break - case 203: - global.msg[0] = "\E2* The RUINS are full of& puzzles./" - global.msg[1] = "* Ancient fusions between & diversions and doorkeys./" - global.msg[2] = "* One must solve them& to move from room to& room./" - global.msg[3] = "* Please adjust yourself to the sight of them./%" - break - case 204: - global.msg[0] = "\E2* To make progress here,^1 & you will need to trigger& several switches./" - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./%" - if (global.flag[6] == 1) - { - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./" - global.msg[2] = "* ... eh^1?&* It seems that the& labelling has worn away./" - global.msg[3] = "* Oh dear./" - global.msg[4] = "* This might be far more& challenging than I& anticipated.../%%" - } - break - case 205: - global.msg[0] = "\E2* The first switch is over& on the wall./%" - break - case 206: - global.msg[0] = "\E1* Do you need some help..^1?&* Press the switch on the wall./" - global.msg[1] = "\E0* Come on^1, you can do it!/%" - break - case 207: - global.msg[0] = "\E2* Go on^1, press the switch& on the left./%" - if (global.flag[6] == 1) - global.msg[0] = "\E2* I believe it was& the switch on the& left./%" - break - case 208: - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/" - global.msg[1] = "\E0* Press the switch that I& labelled for you./%" - if (global.flag[6] == 1) - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/%%" - break - case 209: - global.msg[0] = "\E1* You are very curious,^1 & are you not?/" - global.msg[1] = "\E1* Please understand.^2 & \E0I only want the best& for you./%" - break - case 210: - global.msg[0] = "\E0* Splendid!^2 &* I am proud of you,^1 & little one./" - global.msg[1] = "* Let us move to the& next room./%" - break - case 211: - global.msg[0] = "\E1* As a human living in& the UNDERGROUND,^1 & monsters may attack you./" - global.msg[1] = "\E2* You will need to be& prepared for this& situation./" - global.msg[2] = "\E0* However, worry not!^2 &* The process is simple./" - global.msg[3] = "\E2* When you encounter a & monster,^1 you will enter& a FIGHT./" - global.msg[4] = "* While you are in a& FIGHT^1, strike up a& friendly conversation./" - global.msg[5] = "\E2* Stall for time.& I will come to resolve& the conflict./" - global.msg[6] = "\E2* Practice talking to& the dummy./%" - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = "\E1* Ahh,^1 the dummies are& not for fighting!^2 &* They are for talking!/" - global.msg[1] = "* We do not want to hurt& anybody, do we...?^2 \E0 &* Come now./%" - } - if (global.flag[10] == 1) - global.msg[0] = "\E0* Ah,^1 very good!^2 &* You are very good./%" - if (global.flag[11] == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E1* ... you ran away.../" - global.msg[2] = "\E0* Truthfully^1, that was& not a poor choice./" - global.msg[3] = "\E0* It is better to& avoid conflict& whenever possible./" - global.msg[4] = "\E1* That..^1. however^1, is& only a dummy^2.&* It cannot harm you./" - global.msg[5] = "\E1* It is made of cotton^1.&* It has no desire& for revenge.../" - global.msg[6] = "\E0* Nevermind^2.&* Stay close to me and& I will keep you safe./%" - } - if (global.flag[13] == 1) - { - global.msg[0] = "\E3* ^1.^1.^1./" - global.msg[1] = "\E4* ^1.^1.^1./" - global.msg[2] = "\E0* The next room awaits./%" - } - break - case 213: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E2 &* I do not think the dummy& will be bothered./%" - break - case 214: - global.msg[0] = "\E0* Do you need some& ideas for conversation& topics?/" - global.msg[1] = "* Well^1, I often start with& a simple 'how do you& do...'/" - global.msg[2] = "* You could ask them about& their favorite books.../" - global.msg[3] = "* Jokes can be useful for& 'breaking the ice.'/" - global.msg[4] = "* Listen to this one.../" - global.msg[5] = "* What did the skeleton& tile his roof with?/" - global.msg[6] = "* ... SHIN-gles!/" - global.msg[7] = "\E1* .../" - global.msg[8] = "\E0* Well^1, I thought it& was amusing./%" - break - case 215: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E0 &* The dummy will not& be bothered./%" - break - case 216: - global.msg[0] = "\E1* There is another puzzle& in this room.../" - global.msg[1] = "\E0* I wonder if you can& solve it?/%" - break - case 217: - global.msg[0] = "\E1* This is the puzzle^1,& but.../" - global.msg[1] = "\E0* Here^1, take my hand& for a moment./%" - break - case 218: - global.msg[0] = "\E1* Puzzles seem a little& too dangerous for& now./%" - break - case 219: - global.msg[0] = ".../%" - break - case 220: - global.msg[0] = "\E2* Greetings,^1 my child^2.&* Do not worry^1, I did& not leave you./" - global.msg[1] = "\E0* I was merely behind this& pillar the whole time./" - global.msg[2] = "* Thank you for trusting& me./" - global.msg[3] = "\E2* However^1, there was an& important reason for& this exercise./" - global.msg[4] = "* ... to test your& independence./" - global.msg[5] = "\E1* I must attend to some& business^1, and you must& stay alone for a while./" - global.msg[6] = "\E0* Please remain here^2.&*\E1 It's dangerous to& explore by yourself./" - global.msg[7] = "\E0* I have an idea^2.&* I will give you a& CELL PHONE./" - global.msg[8] = "* If you have a need for& anything^1, just call./" - global.msg[9] = "\E1* Be good^1, alright?/%" - break - case 221: - global.msg[0] = "\E0* You have done& excellently thus& far^1, my child./" - global.msg[1] = "\E2* However... I have a& difficult request to ask& of you./" - global.msg[2] = "* .../" - global.msg[3] = "* I would like you to walk& to the end of the room& by yourself./" - global.msg[4] = "\E1* Forgive me for this./%" - break - case 222: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?& Cinnamon Bscotch \C" - global.msg[5] = " " - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ini_close() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - global.msg[0] = "* Oh^1, I see.&* Thank you very much!/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* Click.../%%" - global.msg[5] = "* /" - break - case 224: - global.msg[0] = "* It's a fishing rod affixed& to the ground.../" - global.msg[1] = "* Reel it in?& & Yes No \C " - global.msg[2] = " " - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = "* All that's attached to& the end is a photo of a& weird-looking monster.../" - global.msg[1] = "* (Call Me!& Here's my number!)/" - global.msg[2] = "* You decide not to call./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* All that's attached to& the end is a note./" - global.msg[1] = "* (Nevermind^1, guys!)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* You leave it alone./%%" - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = "* I shouldn't have given myself& away so easily.../%%" - if (global.flag[56] == 4) - { - global.msg[0] = "* Did you just...&* Consume the part of me& I had given you?/" - global.msg[1] = "* In front of my very eyes!?/" - global.msg[2] = "* I have no words for you..^1.&* Begone!/%%" - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = "* Thank you for taking care& of me.../%%" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = "* Huh^1? Again...?/" - global.msg[1] = "* I'm sorry..^1. if I give you& any more^1, there will be& nothing left of me./" - global.msg[2] = "* I suppose it is true^1.&* Travelling beyond our limits& is but a fantasy./" - global.msg[3] = "* It's no different for& anyone else./" - global.msg[4] = "* All of monsterkind& are doomed to stay& underground^1, forever.../%%" - } - } - if (global.flag[56] == 1) - { - global.msg[0] = "* How am I doing^1?&* By " + chr(34) + "I" + chr(34) + " I mean the piece& of me I gave you.../" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = "* Huh^1? You lost it...^1?&* ... I suppose I can give& you another piece.../" - scr_itemget(16) - if (noroom == 1) - global.msg[2] = "* You don't have any room^1?&* OK..^1. I understand I am not& a priority for you^1, then./%%" - else - { - global.msg[2] = "* Please be careful this& time./" - global.msg[3] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = "* Hello^1.&* I am a snowman./" - global.msg[1] = "* I want to see the world..^1.&* But I cannot move./" - global.msg[2] = "* If you would be so kind^1,& traveller^1, please.../" - global.msg[3] = "* Take a piece of me and& bring it very far away.& Yes No \C " - global.msg[4] = " " - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = "* It seems you do not& have enough room for me./%%" - else - { - global.msg[0] = "* Thank you... good luck!/" - global.msg[1] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* I see^1.&* Good journey^1, then./%%" - break - case 228: - global.msg[0] = "SANS!!^1!&THAT DIDN'T DO&ANYTHING!/" - if (global.flag[254] == 0) - global.msg[0] = "SANS!!^1!&THEY DIDN'T EVEN&LOOK AT IT!/" - scr_sansface(1, 0) - global.msg[2] = "* whoops./" - global.msg[3] = "* i knew i should have& used today's crossword& instead./" - scr_papface(4, 1) - global.msg[5] = "WHAT!^1?&CROSSWORD!?/" - global.msg[6] = "I CAN'T BELIEVE&YOU SAID THAT!!/" - global.msg[7] = "IN MY OPINION.../" - global.msg[8] = "\E3JUNIOR JUMBLE&IS EASILY THE&HARDEST./" - scr_sansface(9, 0) - global.msg[10] = "* what^1? really^1, dude^1?&* that easy-peasy word& scramble?/" - global.msg[11] = "\E1* that's for baby bones./" - scr_papface(12, 3) - global.msg[13] = "UN^1. BELIEVABLE./" - global.msg[14] = "\E0HUMAN!!^1!&SOLVE THIS DISPUTE!/" - global.msg[15] = "\TS \F0 \E0 \T0 %" - global.msg[16] = "* (Which is harder?)& & Jumble Crossword \C " - global.msg[17] = " " - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = "HA^1! HA^1! YES!/" - global.msg[2] = "HUMANS MUST BE&VERY INTELLIGENT!/" - global.msg[3] = "IF THEY ALSO FIND&JUNIOR JUMBLE&SO DIFFICULT!/" - global.msg[4] = "NYEH^1! HEH^1! HEH HEH!/%%" - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = "YOU TWO ARE WEIRD!/" - global.msg[2] = "\E3CROSSWORDS ARE SO&EASY./" - global.msg[3] = "IT'S THE SAME&SOLUTION EVERY&TIME./" - global.msg[4] = "\E0I JUST FILL ALL&THE BOXES IN WITH&THE LETTER " + chr(34) + "Z" + chr(34) + ".../" - global.msg[5] = "BECAUSE EVERY TIME&I LOOK AT A&CROSSWORD.../" - global.msg[6] = "ALL I CAN DO IS&SNORE!!!/" - global.msg[7] = "NYEH HEH HEH!!!/%%" - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here you go^1!&* Have a super-duper day^1!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1?&* You don't have enough& money.../" - global.msg[1] = "* I wish I could make& Nice Cream for free.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Out in the middle of& the woods.../%%" - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hey^1, you have an umbrella^1,& just like my cart.../" - global.msg[1] = "* Such solidarity^1!&* I have no choice but to& give you a deal!/" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Umbrella solidarity!^1?&* I guess I have to give& you a deal.../" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - } - if (itemcount > 2) - { - global.msg[0] = "* Hey^1!&* You have 3 Punch Cards!/" - global.msg[1] = "* How about redeeming them& for some Nice Cream!?/" - global.msg[2] = "* It's free!& & Yes No \C" - global.msg[3] = " " - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Super^1! Here you go^1!&* Your Card's in the box!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1? No money^1?&* Sorry^1, I can't give it to& you for free./%%" - if (global.flag[85] == 1) - global.msg[0] = "* Huh^1? You can't afford it& even with the discount^1?&* I.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = "* Here^1! A free Nice Cream^1!&* (You lost 3 cards and got& a Nice Cream.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Hidden in the depths of a& watery cavern.../%%" - } - break - case 235: - global.msg[0] = "* i've been thinking& about selling treats& too./" - global.msg[1] = "* want some fried snow^1?&* it's just 5G.& Buy No\C" - global.msg[2] = " " - break - case 236: - if (global.choice == 0) - { - global.msg[0] = "* did i say 5G^1?&* i meant 50G^1.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* i should charge way& more than than that./%%" - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = "* really^1?&* how about 5000G?& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* that's still too low./%%" - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = "* 50000G^1.&* that's my final offer.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* i have to pay for& the raw materials& somehow./%%" - break - case 239: - if (global.choice == 0) - { - global.msg[0] = "* what^1?&* you don't have the& money?/" - global.msg[1] = "* hey^1, that's okay./" - global.msg[2] = "\E1* i don't have any snow./%%" - if (global.gold >= 50000) - { - global.msg[0] = "* wow^1, that's a lot& of cash./" - global.msg[1] = "\E3* that's why i'm sorry& to say.../" - global.msg[2] = "\E3* i can't sell you& this fried snow./" - global.msg[3] = "\E2* it's got too much& sentimental value./%%" - } - } - if (global.choice == 1) - global.msg[0] = "* don't you know a& good deal when you& hear one?/%%" - break - case 240: - global.msg[0] = "WHAT!^1?&HOW DID YOU&AVOID MY TRAP?/" - global.msg[1] = "\E3AND^1, MORE&IMPORTANTLY.../" - global.msg[2] = "\E0IS THERE ANY&LEFT FOR ME???/" - global.msg[3] = "\TS \F0 \E0 \T0 %" - global.msg[4] = "* (What do you tell Papyrus& about his spaghetti?)& Ate it Left it \C " - global.msg[5] = " " - break - case 241: - scr_papface(0, 0) - global.msg[1] = "REALLY!?/" - if (global.choice == 0) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "NO ONE'S EVER&ENJOYED MY&COOKING BEFORE.../" - global.msg[4] = "\E0WELL THEN!!/" - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "YOU RESISTED THE&FLAVOR OF MY&HOMECOOKED PASTA.../" - global.msg[4] = "JUST SO YOU&COULD SHARE&IT WITH ME???/" - global.flag[62] = 2 - } - global.msg[5] = "\E0FRET NOT HUMAN^1!&I^1, MASTER CHEF&PAPYRUS.../" - global.msg[6] = "WILL MAKE YOU ALL&THE PASTA YOU&COULD EVER WANT!/" - global.msg[7] = "HEH HEH HEH HEH&HEH HEH NYEH!/%%" - break - case 243: - global.msg[0] = "HEY!/" - global.msg[1] = "IT'S THE HUMAN!/" - global.msg[2] = "\E0YOU'RE GONNA&LOVE THIS&PUZZLE!/" - global.msg[3] = "IT WAS MADE&BY THE GREAT&DR. ALPHYS!/" - global.msg[4] = "YOU SEE&THESE TILES&!?/" - global.msg[5] = "ONCE I THROW&THIS SWITCH.../" - global.msg[6] = "THEY WILL&BEGIN TO&CHANGE COLOR!/" - global.msg[7] = "EACH COLOR HAS&A DIFFERENT&FUNCTION!/" - global.msg[8] = "RED TILES ARE&IMPASSABLE!/" - global.msg[9] = "YOU CANNOT&WALK ON THEM!/" - global.msg[10] = "YELLOW TILES&ARE ELECTRIC!/" - global.msg[11] = "THEY WILL&ELECTROCUTE&YOU!/" - global.msg[12] = "GREEN TILES&ARE ALARM&TILES!/" - global.msg[13] = "IF YOU STEP&ON THEM.../" - global.msg[14] = "YOU WILL HAVE&TO FIGHT A&MONSTER!!/" - global.msg[15] = "ORANGE TILES&ARE ORANGE-&SCENTED./" - global.msg[16] = "THEY WILL MAKE&YOU SMELL&DELICIOUS!/" - global.msg[17] = "BLUE TILES ARE&WATER TILES./" - global.msg[18] = "SWIM THROUGH&IF YOU LIKE^1,&BUT.../" - global.msg[19] = "IF YOU SMELL&LIKE ORANGES!/" - global.msg[20] = "THE PIRANHAS&WILL BITE&YOU./" - global.msg[21] = "ALSO^1, IF A&BLUE TILE IS&NEXT TO A,/" - global.msg[22] = "YELLOW TILE^1,&THE WATER WILL&ALSO ZAP YOU!/" - global.msg[23] = "PURPLE TILES&ARE SLIPPERY!/" - global.msg[24] = "YOU WILL SLIDE&TO THE NEXT&TILE!/" - global.msg[25] = "HOWEVER^1, THE&SLIPPERY&SOAP.../" - global.msg[26] = "SMELLS LIKE&LEMONS!!/" - global.msg[27] = "WHICH PIRANHAS&DO NOT LIKE!/" - global.msg[28] = "PURPLE AND&BLUE ARE OK!/" - global.msg[29] = "FINALLY^1,&PINK TILES./" - global.msg[30] = "THEY DON'T DO&ANYTHING./" - global.msg[31] = "STEP ON THEM&ALL YOU LIKE./" - global.msg[32] = "HOW WAS THAT!^1?&UNDERSTAND???/" - global.msg[33] = "\TS \F0 \E0 \T0 %" - global.msg[34] = "* (Understand the explanation?)& & Of course No \C " - global.msg[35] = " " - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "OKAY..^1.&I GUESS I'LL&REPEAT MYSELF.../" - global.msg[2] = "\E0RED TILES ARE&IMPASSABLE./" - global.msg[3] = "YELLOW TILES ARE&ELECTRIC AND&DANGEROUS./" - global.msg[4] = "BLUE TILES MAKE&YOU FIGHT A&MONSTER./" - global.msg[5] = "GREEN TILES ARE&WATER TILES./" - global.msg[6] = "ORANGE TILES ARE&ORANGE SCENTED./" - global.msg[7] = "IF YOU STEP ON&ORANGE^1, DON'T STEP&ON GREEN./" - global.msg[8] = "\E3BROWN TILES ARE.../" - global.msg[9] = "\E1WAIT!!^1!&THERE ARE NO&BROWN TILES.../" - global.msg[10] = "\E0PURPLE TILES&SMELL LIKE&LEMONS.../" - global.msg[11] = "\E3WHY DON'T THE&YELLOW ONES&SMELL LEMONY?/" - global.msg[12] = "\E3UMM.../" - global.msg[13] = "\E1WAIT!^1!&DID I MIX UP&GREEN AND BLUE!?/" - global.msg[14] = "THE BLUE ONES&ARE WATER ONES!/" - global.msg[15] = "\E3PINK TILES.../" - global.msg[16] = "I DON'T..^1.&REMEMBER???/" - global.msg[17] = "\E1WAIT!!!/" - global.msg[18] = "\E3THOSE ONES DON'T&DO ANYTHING./" - global.msg[19] = "\E0OKAY^1!&DO YOU UNDERSTAND&BETTER NOW!?/" - global.msg[20] = "\TS \F0 \E0 \T0 %" - global.msg[21] = "* (Understand the explanation?)& & Yes Even less \C " - global.msg[22] = " " - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "........../" - global.msg[2] = "OK^1, YOU KNOW&WHAT???/" - global.msg[3] = "HOW ABOUT..^1.&YOU JUST.../" - global.msg[4] = "DO THIS PUZZLE..^1.&ON YOUR OWN.../" - global.msg[5] = "I'LL LEAVE THE&INSTRUCTIONS.../" - global.msg[6] = "JUST READ THEM./" - global.msg[7] = "THEN WHEN YOU&UNDERSTAND IT.../" - global.msg[8] = "YOU CAN THROW&THE SWITCH./" - global.msg[9] = "AND DO IT AT&YOUR OWN PACE./" - global.msg[10] = "GOOD LUCK./" - global.msg[11] = "NYEH..^1.&HEH..^1.&HEH!/%%" - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = "* (There's a lone quiche& sitting underneath& this bench.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* It's just a bench./%%" - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Abandoned& Quiche.)/%%" - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = "* (You're carrying too much.)/" - global.msg[1] = "* (You aren't ready for the& responsibility.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* (The quiche was left all& alone...)/%%" - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = "* (There's a tutu lying on& the ground here.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Old Tutu.)/%%" - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = (("* (The box contains " + card) + " cards.)/") - if (global.flag[80] > 2) - global.msg[0] = (("* (Two bugs in the box are& playing a " + card) + "-card game.)/") - if (global.flag[80] > 4) - global.msg[0] = (("* (There's a smiley face made& of " + card) + " cards in the box.)/") - if (global.flag[80] > 6) - global.msg[0] = (("* (A house made of " + card) + " cards& sits in the box.)/") - if (global.flag[80] > 12) - global.msg[0] = "* (The box is overstuffed with& cards.)/" - global.msg[1] = "* (Take a card?)& & Take Leave \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's a box for storing Punch& Cards^1.)&* (It's empty right now.)/%%" - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = "* (You got a Punch Card.)/%%" - if (global.flag[80] > 2) - global.msg[0] = "* (All games must end one day.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 4) - global.msg[0] = "* (Happiness is fleeting.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 6) - global.msg[0] = "* (The house collapses.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 12) - global.msg[0] = "* (You got a Punch Card.)/%%" - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = "* (It's a pair of ballet shoes.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Ballet Shoes.)/%%" - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 254: - global.msg[0] = "* (This little bird wants to& carry you across.)/" - global.msg[1] = "* (Accept the bird's offer?)& & Get ride No \C " - global.msg[2] = " " - if (global.flag[85] == 1) - global.msg[0] = "* (Umbrellas and birds...^1)&* (A bad combination.)/%%" - break - case 255: - global.msg[0] = " %%" - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = "* (It's a legendary artifact.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The artifact is gone.)/%%" - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = "* (This will never happen.)/%%" - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - if (noroom == 2) - global.msg[0] = "* (You're carrying too many& dogs.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/" - global.msg[1] = "* (Take a package of noodles?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/%%" - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Instant Noodles.)/%%" - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* (You decide to stay healthy.)/%%" - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = "* (There's a frypan lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Burnt Pan.)/%%" - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = "* (There's an apron lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Stained Apron.)/%%" - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = "* (There's a Glamburger inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Glamburger.)/%%" - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = "* (There's 100G inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = "* (You got 100G.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = "* (There's a worn dagger& inside the box.)/" - else - global.msg[0] = "* (Knife inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Worn Dagger.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got the Real Knife.)/%%" - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = "* (There's a heart-shaped& locket inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Heart-shaped& Locket.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got The Locket.)/%%" - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 272: - global.msg[0] = "* (The box is empty.)/%%" - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = "* Hello...&* Would you like some& Nice Cream...?/" - global.msg[1] = "* It's the frozen treat...&* That warms your heart./" - global.msg[2] = "* Now only 12G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[250] >= 1) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1.&* It's the frozen treat^1.&* That warms your heart./" - global.msg[2] = "* Now just 12G.& & Yes No \C" - global.msg[3] = " " - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here^1.&* (You got the Nice Cream.)/%%" - if (afford == 0) - global.msg[0] = "* You don't have enough& money.../%%" - } - if (noroom == 1) - global.msg[0] = "* Drop something./%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* Life..^1. is suffering./%%" - } - break - case 500: - global.msg[0] = "* (Golden flowers.^1)&* (They must have& broken your fall.)/%%" - global.msg[1] = "%%%" - break - case 501: - global.msg[0] = "* " + chr(34) + "Press [Z] to read signs!" + chr(34) + "/%%" - break - case 502: - global.msg[0] = "* Just a regular old pillar./%%" - break - case 503: - global.msg[0] = "* Please don't step on the& leaves./%%" - break - case 504: - global.msg[0] = "* Didn't you read the sign& downstairs?/%%" - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* WHOA there^1, pardner^2!&* Who said you could push& me around?/" - global.msg[1] = "* HMM^2?&* So you're ASKIN' me to& move over?/" - global.msg[2] = "* Okay^1, just for you^1,& pumpkin./%%" - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You want me to move some& more?/" - global.msg[1] = "* Alrighty^1, how's this?/%%" - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* That was the wrong direction?/" - global.msg[1] = "* Okay^1, think I got it./%%" - } - if (conversation == 9) - global.msg[0] = "* Was that helpful?/%%" - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You wanted me to STAY there?/" - global.msg[1] = "* You're giving me a real& workout./%%" - } - } - else - { - global.msg[0] = "* Aren't things easier when& you just ask?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* The exit's open^1?&* Guess I better roll out.../" - global.msg[1] = "* Hey^1, y'mind giving me a& push^1, pumpkin?/%%" - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = "*'Take one.'&* Take a candy?& Yes No \C" - if (global.flag[34] == 0) - global.msg[0] = "* It says 'take one.'&* Take a piece of candy?& Yes No \C" - } - else - global.msg[0] = "* Look at what you've done./%%" - global.msg[1] = " " - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = "* You took a piece of candy.&* (Press [C] to open the menu.)/%%" - if (global.flag[34] == 2) - global.msg[0] = "* You took more candy^1.&* How disgusting../%%" - if (global.flag[34] == 3) - global.msg[0] = "* You take another piece.&* You feel like the& scum of the earth.../%%" - if (global.flag[34] == 4) - global.msg[0] = "* You took too much too fast.&* The candy spills onto& the floor./%%" - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = "* In this hellish world^1, you& can only take 3 pieces& of candy.../%%" - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - } - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 510: - global.msg[0] = "* zzzzzzzzzzzzzzz..^1.&* zzzzzzzzzzzzzz.../" - global.msg[1] = "* zzzzzzzzzz..^1.&* (are they gone yet^1)&* zzzzzzzzzzzzzzz.../" - global.msg[2] = "* (This ghost keeps saying 'z'& out loud repeatedly^1,& pretending to sleep.)/" - global.msg[3] = "* Move it with force?& & Yes No \C" - global.msg[4] = " " - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = "* It says 'Take them all.'&* Take a candy?& Yes No \C" - global.msg[1] = " " - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = "* You took a piece.&* Boy^1, that's heavy./%%" - if (haveit == 1) - global.msg[0] = "* You can't carry more.&* It's just too heavy./%%" - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 7G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 18G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = "* You found a Faded Ribbon./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = "* Nothing happened./%%" - if (global.choice == 1) - global.msg[0] = "%%" - if (global.flag[43] > 25) - global.msg[0] = "* You're making the switches& uncomfortable with all& this attention./%%" - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = "* You hear a clicking sound./%%" - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = "* You found the Toy Knife./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = "* It's TORIEL's diary.&* Read the circled passage?& Yes No \C" - global.msg[1] = " " - break - case 525: - if (global.choice == 0) - { - global.msg[0] = "* You read the passage.../" - global.msg[1] = "* " + chr(34) + "Why did the skeleton want& a friend?" + chr(34) + "/" - global.msg[2] = "* " + chr(34) + "Because she was feeling& BONELY..." + chr(34) + "/" - global.msg[3] = "* The rest of the page is& filled with jokes of& a similar caliber./%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& butterscotch-cinnamon& pie./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& snail pie.../%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - break - case 527: - global.msg[0] = "* Hello there^1,& little one!/" - global.msg[1] = "* The pie has not& cooled down yet./" - global.msg[2] = "* Perhaps you should& take a nap.& Yes No \C " - global.msg[3] = " " - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = "* Sweet dreams./%%" - else - { - global.msg[0] = "\E1* You'd rather stay& up and chat with& me^1, then?/" - if (global.flag[103] > 0) - global.msg[0] = "* Up already^1, I see?/" - global.msg[1] = "\E0* Um^1, I want you to know& how glad I am to& have someone here./" - global.msg[2] = "* There are so many& old books I want& to share./" - global.msg[3] = "* I want to show you& my favorite bug-& hunting spot./" - global.msg[4] = "* I've also prepared& a curriculum for& your education./" - global.msg[5] = "* This may come as& a surprise to you.../" - global.msg[6] = "* But I have always& wanted to be a& teacher./" - global.msg[7] = "\E1* ... actually^1, perhaps& that isn't very& surprising./" - global.msg[8] = "\E5* STILL./" - global.msg[9] = "\E0* I am glad to have& you living here./" - global.msg[10] = "\E1* Oh^1, did you& want something?/" - global.msg[11] = "* What is it?& When can& Nothing I go home?\C " - global.msg[12] = " " - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = "* Well^1, talk to me& again if you& need anything./%%" - else - { - global.msg[0] = "\E1* What^1?&* This..^1. this IS your& home now./" - global.msg[1] = "* Um..^1. would you like& to hear about this& book I am reading?/" - if (global.choice == -1) - { - global.msg[0] = "\E0* Oh^1, hello!/" - global.msg[1] = "* Did you want to& hear about the& book I am reading?/" - } - global.msg[2] = "\E0* It is called& " + chr(34) + "72 Uses for Snails." + chr(34) + "/" - global.msg[3] = "* How about it?& How to exit& Sure the RUINS\C " - global.msg[4] = " " - } - break - case 530: - global.plot = 19.3 - global.msg[0] = "* Here is an exciting& snail fact./" - if (global.choice == 1) - global.msg[0] = "\E1* Um^1.^1.^1.&*\E0 How about an exciting& snail fact?/" - global.msg[1] = "\E2* Did you know& that snails.../" - r = round(random(3)) - if (r == 0) - global.msg[2] = "\E0* Have a chainsaw-like& tongue called a& radula?/" - if (r == 1) - global.msg[2] = "\E0* Sometimes flip their& digestive systems& as they mature?/" - if (r == 2) - global.msg[2] = "\E0* Make terrible& shoelaces?/" - if (r == 3) - global.msg[2] = "\E0* Talk^2. Really^2. Slowly^2?&* Just kidding^1, snails& don't talk./" - global.msg[3] = "\E0* Interesting.& How to exit& Yeah the RUINS\C " - global.msg[4] = " " - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = "* Well^1, bother me& if you need anything& else./%%" - else - { - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something^1.&* Stay here./%%" - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = "\E0* What is it?& How to exit& Nothing the RUINS\C " - } - global.msg[1] = " " - break - case 532: - if (global.choice == 0) - global.msg[0] = "* If you need anything^1,& just ask./%%" - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something.&* Stay here./%%." - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = " " - break - case 540: - global.msg[0] = "\E2NYOO HOO HOO.../" - global.msg[1] = "I CAN'T EVEN&STOP SOMEONE AS&WEAK AS YOU.../" - global.msg[2] = "UNDYNE'S GOING TO&BE DISAPPOINTED&IN ME./" - global.msg[3] = "I'LL NEVER JOIN THE&ROYAL GUARD..^1.&AND.../" - global.msg[4] = "MY FRIEND QUANTITY&WILL REMAIN&STAGNANT!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (What should you say?)& Let's be What a& friends loser\C" - global.msg[7] = " " - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = "\E0WOWIE!^1!&YOU DID IT!!!/" - global.msg[1] = "YOU DIDN'T DO A&VIOLENCE!!!/" - global.msg[2] = "\E5TO BE HONEST^1,&I WAS A LITTLE&AFRAID.../" - global.msg[3] = "\E0BUT YOU'RE ALREADY&BECOMING A GREAT&PERSON!/" - global.msg[4] = "\E7I'M SO PROUD I&COULD CRY!!!/" - global.msg[5] = "\E3... WAIT^1, WASN'T I&SUPPOSED TO&CAPTURE YOU...?/" - global.msg[6] = "\E0WELL^1, FORGET IT!/" - global.msg[7] = "I JUST WANT YOU&TO BE THE BEST&PERSON YOU CAN BE./" - global.msg[8] = "SO LET'S LET&BYBONES BE&BYBONES./" - global.msg[9] = "I'LL EVEN TELL YOU&HOW TO LEAVE THE&UNDERGROUND!/" - global.msg[10] = "JUST KEEP GOING&EAST!/" - global.msg[11] = "EVENTUALLY YOU'LL&REACH THE KING'S&CASTLE./" - global.msg[12] = "THEN YOU CAN&LEAVE!/%%" - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "REALLY!^1?&YOU WANT TO BE&FRIENDS^1, WITH ME???/" - global.msg[2] = "WELL THEN.../" - global.msg[3] = "\E0I GUESS..^1./" - global.msg[4] = "I GUESS&I CAN MAKE AN&ALLOWANCE FOR YOU!/" - global.msg[5] = " %" - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "HUH^1?&WHY WOULD YOU.../" - global.msg[2] = "BERATE YOURSELF&SO LOUDLY???/" - global.msg[3] = "IS IT BECAUSE.../" - global.msg[4] = "\E3YOU DON'T THINK&YOU'RE GOOD ENOUGH&TO BE MY FRIEND?/" - global.msg[5] = "\E0NO!!^1!&YOU'RE GREAT!!^1!&I'LL BE YOUR FRIEND!/" - } - if (global.flag[66] == 1) - { - global.msg[6] = "WOWIE!^1!&WE HAVEN'T EVEN HAD&OUR FIRST DATE.../" - global.msg[7] = "AND I'VE ALREADY&MANAGED TO HIT&THE FRIEND ZONE!!!/" - global.msg[8] = "WHO KNEW THAT&ALL I NEEDED TO&MAKE PALS.../" - } - else - { - global.msg[6] = "WOW!!!/" - global.msg[7] = "I HAVE FRIENDS!!!/" - global.msg[8] = "AND WHO KNEW THAT&ALL I NEEDED TO&MAKE THEM.../" - } - global.msg[9] = "WAS TO GIVE PEOPLE&AWFUL PUZZLES AND&THEN FIGHT THEM??/" - global.msg[10] = "YOU TAUGHT ME A&LOT^1, HUMAN./" - global.msg[11] = "I HEREBY GRANT&YOU PERMISSION&TO PASS THROUGH!/" - global.msg[12] = "AND I'LL GIVE&YOU DIRECTIONS&TO THE SURFACE./" - global.msg[13] = "CONTINUE FORWARD&UNTIL YOU REACH THE&END OF THE CAVERN./" - global.msg[14] = "\WTHEN..^1. WHEN YOU&REACH THE CAPITAL^1,&CROSS \YTHE BARRIER\W./" - global.msg[15] = "THAT'S THE MAGICAL&SEAL TRAPPING US&ALL UNDERGROUND./" - global.msg[16] = "ANYTHING CAN ENTER&THROUGH IT^1, BUT&NOTHING CAN EXIT.../" - global.msg[17] = "... EXCEPT SOMEONE&WITH A POWERFUL&SOUL./" - global.msg[18] = "... LIKE YOU!!!/" - global.msg[19] = "THAT'S WHY THE&KING WANTS TO&ACQUIRE A HUMAN./" - global.msg[20] = "HE WANTS TO OPEN&THE BARRIER WITH&SOUL POWER./" - global.msg[21] = "THEN US MONSTERS&CAN RETURN TO&THE SURFACE!/%%" - break - case 544: - global.msg[0] = "YOU'RE BACK AGAIN?!?!/" - global.msg[1] = "I FINALLY REALIZE&THE TRUE REASON WHY./" - global.msg[2] = "YOU.../" - global.msg[3] = "JUST MISS SEEING MY&FACE SO MUCH.../" - global.msg[4] = "I'M NOT SURE I&CAN FIGHT SOMEONE&WHO FEELS THIS WAY./" - global.msg[5] = "BUT MOSTLY..^1. I'M GETTING&REALLY TIRED OF&CAPTURING YOU!/" - global.msg[6] = "SO..^1.&WHAT DO YOU SAY?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* (Fight Papyrus?)& & Yes No\C" - global.msg[8] = " " - break - case 545: - global.msg[0] = "\TP %" - if (global.choice == 0) - { - global.msg[1] = "OKAY.../" - global.msg[2] = "I GUESS./" - global.msg[3] = "IF YOU WANT ME TO&CAPTURE YOU./" - global.msg[4] = "I'LL TRY AGAIN!!!/%%" - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = "... OKAY.../" - global.msg[2] = "I GUESS I'LL ACCEPT&MY FAILURE.../%%" - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = "* Welcome to Snowed Inn^1!&* Snowdin's premier hotel!/" - global.msg[1] = "* One night is 80G.& & Stay Leave\C" - if (global.flag[72] == 2) - { - global.msg[0] = "* Back again^1?&* Well^1, stay as long as you& like./" - global.msg[1] = "* How about it?& & Stay Leave\C" - } - global.msg[2] = " " - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = "* What^1?&* No^1, you can't get a& second key!" - if (global.flag[7] == 1) - { - global.msg[0] = "* Hello^1!&* Sorry^1, no time for a& nap.../" - global.msg[1] = "* Snowed Inn is shutting& down so we can all go& to the surface./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Oh^1, there you are^1.&* I was worrying about& you!/" - global.msg[1] = "* Things are going to be OK^1,& you hear?/" - global.msg[2] = "* We're all going to the& surface world soon.../" - global.msg[3] = "* There's bound to be a& place you can stay there!/%%" - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = "Error./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = "* ... You don't even have 80G?/" - global.msg[1] = "* Oh^1! You poor thing^1.&* I can only imagine what& you've been through./" - global.msg[2] = "* One of the rooms upstairs& is empty^1./" - global.msg[3] = "* You can sleep there for& free^1, okay?/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = "* You aren't carrying enough& money./%%" - } - else - global.msg[0] = "* Well^1, feel free to come& back any time./%%" - break - case 549: - global.msg[0] = "* (Look through the telescope?)& & Yes No\C" - global.msg[1] = " " - break - case 550: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = "* i'm thinking about& getting into the& telescope business./" - global.msg[1] = "* it's normally 50000G& to use this premium& telescope.../" - global.msg[2] = "* but..^1.&*\E1 since i know you^1,& you can use it for free./" - global.msg[3] = "\E2* howzabout it?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Use the telescope?)& & Yes No\C" - } - else - { - global.msg[0] = "* huh^1?&* you aren't satisfied?/" - global.msg[1] = "\E1* don't worry./" - global.msg[2] = "\E2* i'll give you a& full refund./%%" - } - global.msg[6] = " " - break - case 552: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = "* well^1, come back& whenever you want./%%" - } - break - case 553: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - global.flag[75] = global.armor - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "\E3HOW DID I GET THIS&NUMBER...?/" - global.msg[4] = "\E0IT WAS EASY!!!/" - global.msg[5] = "\E0I JUST DIALED EVERYNUMBER SEQUENTIALLYUNTIL I GOT YOURS!!!/" - global.msg[6] = "NYEH HEH HEH HEH!!/" - global.msg[7] = "\E2SO..^1.&WHAT ARE YOU&WEARING...?/" - global.msg[8] = "\E3I'M..^1.&ASKING FOR A&FRIEND./" - global.msg[9] = (("\E0SHE THOUGHT SHE&SAW YOU WEARING A&" + armor) + "./") - global.msg[10] = (("\E3IS THAT TRUE^1?&ARE YOU WEARING A&" + armor) + "?/") - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* (What will you say?)& & Yes No\C" - global.msg[13] = " " - break - case 554: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = (("SO YOU ARE WEARING&A " + armor) + ".../") - global.msg[2] = "GOT IT!!^1!&WINK WINK!!!/" - global.msg[3] = "HAVE A NICE DAY!/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - } - else - { - global.flag[76] = 1 - global.msg[1] = (("SO YOU AREN'T&WEARING A&" + armor) + ".../") - global.msg[2] = "GOT IT!/" - global.msg[3] = "YOU'RE MY FRIEND^1,&SO I TRUST YOU&100-PERCENT./" - global.msg[4] = "HAVE A NICE DAY!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - break - case 556: - global.msg[0] = "* (There's an empty pie tin& inside the stove.)/%%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "\E0MY BROTHER ALWAYS&GOES OUT TO EAT^1.&BUT.../" - global.msg[2] = "\E3RECENTLY^1, HE TRIED&'BAKING' SOMETHING./" - global.msg[3] = "IT WAS LIKE..^1.&A QUICHE./" - global.msg[4] = "BUT FILLED WITH A&SUGARY^1, NON-EGG&SUBSTANCE./" - global.msg[5] = "\E0HOW ABSURD!/%%" - } - break - case 557: - global.msg[0] = "* (It's a joke book.)/" - global.msg[1] = "* (Take a look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 558: - if (global.choice == 0) - { - global.msg[0] = "* (Inside the joke book was& a quantum physics book.)/" - global.msg[1] = "* (You look inside...)/" - global.msg[2] = "* (Inside the quantum physics& book was another joke& book.)/" - global.msg[3] = "* (You look inside...)/" - global.msg[4] = "* (There's another quantum& physics book...)/" - global.msg[5] = "* (You decide to stop.)/%%" - } - else - global.msg[0] = " %%" - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THAT'S MY ROOM^1!/" - global.msg[2] = "IF YOU'VE&FINISHED LOOKING&AROUND.../" - global.msg[3] = "WE COULD GO IN&AND.../" - global.msg[4] = "" + chr(34) + "HANG-OUT" + chr(34) + " LIKE&A PAIR OF VERY&COOL FRIENDS?/" - if (global.flag[66] == 1) - global.msg[4] = "\E3DO WHATEVER&PEOPLE DO WHEN&THEY DATE???/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Go inside?)& & Yes No\C" - global.msg[7] = " %" - } - else - { - global.msg[0] = "* (It's the door to& Papyrus's room.)/" - global.msg[1] = "* (It's covered in many& labels...)/" - global.msg[2] = "\TP %" - global.msg[3] = "* (NO GIRLS ALLOWED!)/" - global.msg[4] = "* (NO BOYS ALLOWED!)/" - global.msg[5] = "* (PAPYRUS ALLOWED.)/%%" - } - break - case 560: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THERE ARE NO&SKELETONS INSIDE&MY CLOSET!!!/" - global.msg[2] = "\E3EXCEPT ME&SOMETIMES./" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Look in the closet?)& & Yes No\C" - global.msg[5] = " " - } - else - { - global.msg[0] = "* (Look in the closet?)& & Yes No\C" - global.msg[1] = " " - } - break - case 562: - if (global.choice == 0) - global.msg[0] = "* (Clothes are hung up& neatly inside.)/%%" - else - { - global.msg[0] = " %%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "IT'S OK TO BE&INTIMIDATED BY&MY FASHION SENSE./%%" - } - } - break - case 563: - global.msg[0] = "\E3SO^1, UM.../" - global.msg[1] = "\E3IF YOU'VE SEEN&EVERYTHING.../" - global.msg[2] = "\E2DO YOU WANT TO&START HANGING OUT?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the hangouts?)& & Yes No\C" - global.msg[5] = " " - if (global.flag[66] == 1) - { - global.msg[2] = "\E2DO YOU WANT TO&START THE DATE?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the date?)& & Yes No\C" - global.msg[5] = " " - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = "\E0OKAY!!^1!&DATING START!!!/%%" - if (global.flag[66] == 0) - global.msg[1] = "\E0OKAY!!^1!&LET'S HANG TEN!!/%%" - } - else - { - scr_papface(0, 2) - global.msg[1] = "\E2TAKE YOUR TIME..^1.&I'LL WAIT FOR&YOU./%%" - } - break - case 565: - global.msg[0] = "* (This mailbox is labelled& " + chr(34) + "PAPYRUS" + chr(34) + ".)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 566: - if (global.choice == 0) - global.msg[0] = "* (It's empty.)/%%" - else - global.msg[0] = "* (You realize that would& probably be illegal.)/%%" - break - case 567: - global.msg[0] = "* what^1?&* haven't you seen a guy& with two jobs before?/" - global.msg[1] = "\E1* fortunately^1, two jobs& means twice as many& legally-required breaks./" - global.msg[2] = "\E0* i'm going to grillby's.&* wanna come?& Yeah I'm busy \C" - global.msg[3] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - if (scr_murderlv() >= 7) - { - global.msg[0] = "\E2* hey^1, looks like you're& really turning yourself& around./" - global.msg[1] = "\E0* how about i treat you& to lunch at grillby's?/" - global.msg[2] = "\E1* ... when everyone you& scared away comes& back^1, i mean./%%" - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = "* well^1, if you insist..^1.&* i'll pry myself away& from my work.../%%" - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* OK^1. have fun./%%" - break - case 570: - global.msg[0] = "\E1* whoops^1, watch where& you sit down./" - global.msg[1] = "* sometimes weirdos put& whoopee cushions on& the seats./" - global.msg[2] = "\E0* anyway^1, let's order./" - global.msg[3] = "* whaddya want...?& & Fries Burger\C" - global.msg[4] = " " - break - case 571: - global.msg[0] = "* ok^1, coming right up./%%" - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& fries./%%" - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& burg./%%" - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = "* so^1, what do you& think.../" - global.msg[1] = "* of my brother?& & Cool Uncool\C" - global.msg[2] = " " - break - case 573: - if (global.choice == 0) - { - global.msg[0] = "* of course he's cool./" - global.msg[1] = "\E1* you'd be cool too& if you wore that& outfit every day./" - global.msg[2] = "\E0* he'd only take that& thing off if he& absolutely had to./" - global.msg[3] = "* oh well^1.&* at least he washes& it./" - global.msg[4] = "\E1* and by that i mean& he wears it in& the shower./%%" - } - else - { - global.msg[0] = "* hey^1, pal./" - global.msg[1] = "\E1* sarcasm isn't funny^1,& okay?/" - global.msg[2] = "\E0* my brother's a real& star./" - global.msg[3] = "* he's the person who& pushed me to get& this sentry job./" - global.msg[4] = "* maybe it's a little& strange^1, but& sometimes.../" - global.msg[5] = "* ... it's nice to have& someone call you out& on being lazy./" - global.msg[6] = "\E1* even though nothing& could be further& from the truth./%%" - } - break - case 574: - global.msg[0] = "* here comes the grub./" - global.msg[1] = "* want some ketchup^1?& & Yes No \C" - global.msg[2] = " " - break - case 575: - if (global.choice == 0) - global.msg[0] = "\E2* bone appetit./%%" - else - { - global.msg[0] = "\E2* more for me./%%" - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = "\W* have you ever heard& of a \Ytalking flower\W?& Yes No \C" - global.msg[1] = " " - break - case 577: - if (global.choice == 0) - global.msg[0] = "\E1* so you know all& about it./" - if (global.choice == 1) - global.msg[0] = "\E1* i'll tell you^1, then./" - global.msg[1] = "\W*\E0 the \Becho flower\W./" - global.msg[2] = "* they're all over the& marsh./" - global.msg[3] = "* say something to them^1,& and they'll repeat it& over and over.../" - global.msg[4] = "* what about it?/" - global.msg[5] = "* well^1, papyrus told& me something interesting& the other day./" - global.msg[6] = "* sometimes^1, when no& one else is around.../" - global.msg[7] = "* a flower appears and& whispers things to& him./" - global.msg[8] = "* flattery..^1.&* advice..^1.&* encouragement.../" - global.msg[9] = "* ... predictions./" - global.msg[10] = "* weird^1, huh?/" - global.msg[11] = "* someone must be using& an echo flower to& play a trick on him./" - global.msg[12] = "* keep an eye out^1, ok?/" - global.msg[13] = "* thanks./%%" - break - case 578: - global.msg[0] = "\E1* oh^1, by the way.../" - global.msg[1] = "\E0* i'm flat broke^1.&* can you foot the& bill?/" - global.msg[2] = "* it's just 10000G.& & Yes No \C" - global.msg[3] = " " - break - case 579: - global.msg[0] = " %%" - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = "* My mind is running wild^1!&* I haven't felt like this& in a long time.../%%" - if (global.flag[84] == 5) - global.msg[0] = "* Please leave./%%" - if (global.flag[84] < 2) - { - global.msg[0] = "* You..^1.&* You came from outside^1,& didn't you?/" - global.msg[1] = "* People like you are so& rare.../" - global.msg[2] = "* Please^1!* Stranger!/" - global.msg[3] = "* Tell me about outside...?& & Yes No\C" - global.msg[4] = " " - } - if (global.flag[84] == 2) - global.msg[0] = "* Well^1, what are you& waiting for?/%%" - if (global.flag[84] == 3) - { - global.msg[0] = "* Oh^1!&* You're back!/" - global.msg[1] = "* How's the room?& & Different Same\C" - global.msg[2] = " " - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = "* Huh^1?&* " + chr(34) + "SURFACE" + chr(34) + "^1?&* What do you mean?/" - global.msg[1] = "* I just meant outside this& room./" - global.msg[2] = "* If you haven't noticed^1, my& mycelium have bound me& to the ground./" - global.msg[3] = "* Please^1!&* Stranger!/" - global.msg[4] = "* I'll make this simple./" - global.msg[5] = "* I've spent my whole life& in the same spot^1,& in the same room./" - global.msg[6] = "* But I've long wondered& what lies inside the& room to the right./" - global.msg[7] = "* Long I've fantasized& about entering^1, and& changing my scenery.../" - global.msg[8] = "* No..^1.&* Changing my LIFE!/" - global.msg[9] = "* Please^1.&* Go and tell me what's& inside./%%" - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* Is everyone out there& like you^1?&* How terrible./%%" - } - else - { - if (global.choice == 0) - { - global.msg[0] = "* Oh^1, that's a relief^1!/" - global.msg[1] = "* That's all I need to& continue my fantasies^1.&* Thank you^1, stranger./%%" - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = "* So it's the same./" - global.msg[1] = "* The same.../" - global.msg[2] = "* Same.../" - global.msg[3] = "* .../" - global.msg[4] = "* OK./%%" - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = "* (Take an umbrella?)& & Take one Do not\C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (Return the umbrella?)& & Put back Do not\C" - global.msg[1] = " " - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You took an umbrella.)/%%" - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = " %%" - } - else if (global.choice == 0) - { - global.msg[0] = "* (You returned the umbrella.)/%%" - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 585: - global.msg[0] = "* (It's a statue^1.)&* (The structures at its& feet seem dry.)/%%" - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = "* (Put the umbrella on the& statue?)& Yes Do not\C" - global.msg[1] = " " - } - if (global.flag[86] == 1) - global.msg[0] = "* (The music continues^1, and& doesn't stop.)/%%" - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You place the umbrella& atop the statue.)/" - global.msg[1] = "* (Inside the statue^1, a music& box begins to play...)/%%" - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 587: - global.msg[0] = "* (It's a rusty old& fridge.)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 588: - if (global.choice == 0) - { - global.msg[0] = "* (You open the fridge.^1)&* (The air fills with a& rotten stench.)/" - global.msg[1] = "* (All the food inside here& spoiled long ago.)/%%" - } - else - global.msg[0] = " %%" - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = "* error/%%" - if (global.flag[108] > 2) - global.msg[0] = "* (The cooler is empty.)/%%" - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = "* (Take a space food bar& from the cooler?)& Yes No \C" - global.msg[1] = " " - } - if (global.flag[108] == 0) - { - global.msg[0] = "* (It's a cooler^1.&* It has no brand^1, and& shows no signs of wear...)/" - global.msg[1] = "* (Inside are a couple& of freeze-dried space& food bars.)/" - global.msg[2] = "* (Take one?)& & Yes No \C" - global.msg[3] = " " - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = "* (You got the Astronaut Food.)/%%" - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* %%" - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = "* (Seems like a regular& training dummy.)/" - global.msg[1] = "* (Do you want to beat it& up?)& Yes No \C" - global.msg[2] = " " - } - else - global.msg[0] = "* (You've had enough of& the dummy.)/%%" - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = "* (You tap the dummy with& your fist.)/" - global.msg[1] = "* (You feel bad.)/%%" - } - if (global.lv > 1) - { - global.msg[0] = "* (You hit the dummy& lightly.)/" - global.msg[1] = "* (You don't feel like& you learned anything.)/%%" - } - if (global.lv > 4) - { - global.msg[0] = "* (You sock the dummy.)/" - global.msg[1] = "* (Who cares?)/%%" - } - if (global.lv > 7) - { - global.msg[0] = "* (You punch the dummy at& full force.)/" - global.msg[1] = "* (Feels good.)/%%" - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = "* (You stare into each& other's eyes for a& moment...)/%%" - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = "* (It's a horse stable.)/" - global.msg[1] = "* (Do you want to go& inside?)& Yes No \C" - global.msg[2] = " " - break - case 594: - if (global.choice == 0) - { - global.msg[0] = "* (You jostle the door.)&* (It's locked.)/" - global.msg[1] = "* (Suddenly^1, from inside& the [redacted], you hear a&/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 1) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* (Spooktunes are dead.)/%%" - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 608: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 2) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 610: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 3) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 612: - global.msg[0] = "* (Look inside the fridge?)& & Open it No\C" - global.msg[1] = " " - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = "* (There's a lonely sandwich& inside.)/%%" - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = "* (It's empty.)/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 615: - global.msg[0] = "* this is a ghost sandwich.../" - global.msg[1] = "* do you want to try it...& & Yes No\C" - global.msg[2] = " " - break - case 616: - if (global.choice == 0) - { - global.msg[0] = "* (You attempt to bite& into the ghost sandwich.)/" - global.msg[1] = "* (You phase right through& it...)/" - global.msg[2] = "* oh.../" - global.msg[3] = "* nevermind.../%%" - } - if (global.choice == 1) - global.msg[0] = "* oh.....................& ....................& ................./%%" - break - case 617: - global.msg[0] = "* after a great meal i like& to lie on the ground and& feel like garbage.../" - global.msg[1] = "* it's a family tradition.../" - global.msg[2] = "* do you want..^1.&* ... to join me...& Yes No\C" - global.msg[3] = " " - break - case 618: - if (global.choice == 0) - global.msg[0] = "* okay..^1.&* follow my lead.../%%" - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = "* oh.....................& ....................& ................./%%" - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = "* do you want to play a game^1?&* it's called thundersnail./" - global.msg[1] = "* the snails will race^1, and if& the yellow snail wins^1, you& win./" - global.msg[2] = "* it's 10G to play.& & Play No\C" - global.msg[3] = " " - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = "* um..^1.&* you don't have any money?/" - global.msg[1] = "* n-no^1, you can still play^1,& don't worry about it.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = "* um..^1. that's less than 10G./" - global.msg[1] = "* but since you're my only& real customer^1, i guess i'll& just take what you have.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[1] = "* ready?/%%" - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* oh.........../%%" - break - case 621: - global.msg[0] = "* .../" - global.msg[1] = "* Seven./" - global.msg[2] = "* Seven human souls./" - global.msg[3] = "* With the power of seven& human souls^1, our king.../" - global.msg[4] = "\W* \YKing \RASGORE \YDreemurr\W.../" - global.msg[5] = "* ... will become a god./" - global.msg[6] = "\W* With that power^1, \RASGORE\W & can finally shatter the& barrier./" - global.msg[7] = "* He will finally take the& surface back from humanity.../" - global.msg[8] = "* And give them back the& suffering and pain that& we have endured./" - global.msg[9] = "* .../" - global.msg[10] = "* Understand^1, human?/" - global.msg[11] = "* This is your only chance& at redemption./" - global.msg[12] = "* Give up your soul.../" - global.msg[13] = "* Or I'll tear it from& your body./%%" - break - case 622: - if (global.choice == 0) - { - global.msg[0] = "* That spark in your eyes.../" - global.msg[1] = "* You're really eager to& die^1, aren't you?/%%" - } - if (global.choice == 1) - global.msg[0] = "* .../%%" - break - case 623: - global.msg[0] = "* Yo^1, I know I'm not supposed& to be here^1, but.../" - global.msg[1] = "* I wanna ask you something./" - global.msg[2] = "* .../" - global.msg[3] = "* Man^1, I've never had to ask& anyone this before.../" - global.msg[4] = "* Umm.../" - global.msg[5] = "* Yo..^1. You're human^1, right?&* Haha./" - global.msg[6] = "* Man^1! I knew it!/" - global.msg[7] = "* ... well^1, I know it now^1,& I mean.../" - global.msg[8] = "* Undyne told me^1, um^1, " + chr(34) + "stay& away from that human." + chr(34) + "/" - global.msg[9] = "* So^1, like^1, ummm.../" - global.msg[10] = "* I guess that makes us enemies& or something./" - global.msg[11] = "* But I kinda stink at that^1,& haha./" - global.msg[12] = "* Yo^1, say something mean so& I can hate you?/" - global.msg[13] = "* Please? & & Yes No \C" - global.msg[14] = " " - break - case 624: - if (global.choice == 0) - { - global.msg[0] = "* Huh...?/" - global.msg[1] = "* Yo^1, that's your idea of& something mean?/" - global.msg[2] = "* My sister says that to me& ALL THE TIME!/" - global.msg[3] = "* Guess I have to do it^1, haha./" - global.msg[4] = "* Yo^1, I..^1. I hate your guts./" - global.msg[5] = "* .../" - global.msg[6] = "* Man^1, I..^1. I'm such a turd./" - global.msg[7] = "* I'm..^1. I'm gonna go home& now./%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Yo^1, what^1?&* So I have to do it?/" - global.msg[1] = "* Here goes nothing.../" - global.msg[2] = "* Yo^1, I..^1. I hate your guts./" - global.msg[3] = "* .../" - global.msg[4] = "* Man^1, I..^1. I'm such a turd./" - global.msg[5] = "* I'm..^1. I'm gonna go home& now./%%" - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = "* (It's a water cooler.)&* (Take a cup of water?)& Yes No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There's no more water left& in the cooler.)/%%" - if instance_exists(obj_undynefall) - global.msg[0] = "* (Sadistically^1, you've poured& out all the water right in& front of Undyne's eyes.)/%%" - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = "* (You take a cup of water.)/%%" - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 627: - global.msg[0] = "* (Get rid of the water?)& & Yes No \C" - global.msg[1] = " " - break - case 628: - if (global.choice == 0) - { - global.msg[0] = "* (You pour the water on& the ground next to the& water cooler.)/%%" - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 629: - global.msg[0] = "* A rousing error./%%" - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = "* (Give Undyne the water?)& & Yes No \C" - global.msg[1] = " " - } - else - global.msg[0] = "* (She looks dry...)/%%" - } - break - case 630: - global.msg[0] = " %%" - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = "BEPIS." - armor2 = "BEPIS." - if (global.flag[75] == 4) - armor1 = "GROSS BANDAGE" - if (global.flag[75] == 12) - armor1 = "FADED RIBBON" - if (global.flag[75] == 15) - armor1 = "BANDANNA" - if (global.flag[75] == 24) - armor1 = "DUSTY TUTU" - if (global.flag[77] == 4) - armor2 = "GROSS BANDAGE" - if (global.flag[77] == 12) - armor2 = "FADED RIBBON" - if (global.flag[77] == 15) - armor2 = "BANDANNA" - if (global.flag[77] == 24) - armor2 = "DUSTY TUTU" - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "REMEMBER WHEN&I ASKED YOU&ABOUT CLOTHES?/" - global.msg[4] = "\E3WELL^1, THE FRIEND&WHO WANTED TO&KNOW.../" - global.msg[5] = "\E0HER OPINION OF&YOU IS VERY.../" - global.msg[6] = "\E3MURDERY./" - global.msg[7] = "\E0ERROR!!^1!&SEE YOU LATER!/%%" - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I TOLD HER WHAT&YOU TOLD ME&YOU WERE WEARING!/" - global.msg[10] = (("A " + armor1) + "!/") - global.msg[11] = "BECAUSE I KNEW^1,&OF COURSE.../" - global.msg[12] = "\E3AFTER SUCH A&SUSPICIOUS&QUESTION.../" - global.msg[13] = "\E0YOU WOULD&OBVIOUSLY CHANGE&YOUR CLOTHES!/" - global.msg[14] = "YOU'RE SUCH A&SMART COOKIE!/" - global.msg[15] = "THIS WAY YOU'RE&SAFE AND I&DIDN'T LIE!!!/" - global.msg[16] = "NO BETRAYAL&ANYWHERE!!!/" - global.msg[17] = "BEING FRIENDS&WITH EVERYONE&IS EASY!!!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = "\E3I AM NOT A&CRUEL PERSON./" - global.msg[10] = "\E0I STRIVE TO BE&COMFORTING AND&PLEASANT./" - global.msg[11] = "PAPYRUS!&HE SMELLS LIKE&THE MOON./" - global.msg[12] = "SO, BECAUSE OF&MY INHERENT&GOODNESS.../" - global.msg[13] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[14] = "\E3EVEN THOUGH YOU&TOLD ME YOU&WERE!/" - global.msg[15] = "INSTEAD^1, I MADE&SOMETHING UP!/" - global.msg[16] = "I TOLD HER YOU&WERE WEARING.../" - global.msg[17] = (("\E0A " + armor2) + "./") - global.msg[18] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[19] = (("I KNOW YOU WOULD&NEVER EVER WEAR&A " + armor2) + "./") - global.msg[20] = "\E0BUT YOUR SAFETY&IS MORE IMPORTANT&THAN FASHION./" - global.msg[21] = "\E3DANG!/" - global.msg[22] = "I JUST WANT TO&BE FRIENDS WITH&EVERYONE.../" - global.msg[23] = "\TS \F0 \T0 %" - global.msg[24] = "* Click.../%%" - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "\E3PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = (("\WY\E0OU SAID YOU WERE\Y &NOT WEARING A&" + armor1) + "\W./") - global.msg[10] = "\E3SO OF COURSE&I ACTUALLY&TOLD HER.../" - global.msg[11] = (("\E0YOU WERE&INDEED WEARING&A " + armor1) + "!/") - global.msg[12] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[13] = (("BUT SINCE YOU&AREN'T WEARING&A " + armor1) + "./") - global.msg[14] = "\E0SHE SURELY&WON'T ATTACK&YOU!/" - global.msg[15] = "NOW YOU ARE&SAFE AND SOUND./" - global.msg[16] = "\E2WOWIE..^1.&THIS IS HARD./" - global.msg[17] = "I JUST WANT TO&BE EVERYBODY'S&FRIEND!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I KNEW WHEN&YOU SAID:/" - global.msg[10] = (('\E3"I AM NOT&WEARING A&' + armor1) + '."/') - global.msg[11] = "\E0IT WAS REALLY&A SECRET CODE!/" - global.msg[12] = "\E3YOU REALLY&MEANT.../" - global.msg[13] = (('\E0"I ACTUALLY AM&WEARING&A ' + armor1) + '!"/') - global.msg[14] = "YOU WERE TRYING&TO PROTECT&YOURSELF.../" - global.msg[15] = "WHILE MAKING IT&SO I DIDN'T&HAVE TO LIE!/" - global.msg[16] = "I PICKED UP ON&THIS, AND FOLLOWED&YOUR PLAN./" - global.msg[17] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[18] = "IN FACT I TOOK&IT ONE STEP&FURTHER!/" - global.msg[19] = "\E3I TOLD HER YOU&WERE PROBABLY.../" - global.msg[20] = (("\E0WEARING A&" + armor2) + "!/") - global.msg[21] = "\E3OF COURSE, YOU&WOULD NEVER&WEAR THAT./" - global.msg[22] = "\E0BUT THAT'S THE&POINT!/" - global.msg[23] = "SHE WON'T&RECOGNIZE YOU&NOW!/" - global.msg[24] = "AND I DIDN'T&HAVE TO BETRAY&EITHER OF YOU!/" - global.msg[25] = "SINCE I JUST&TOLD HER WHAT&YOU SAID!/" - global.msg[26] = "WOWIE^1!&YOU'RE SUCH A&SMART COOKIE!/" - global.msg[27] = "I REALLY CAN&BE FRIENDS WITH&EVERYONE!!!/" - global.msg[28] = "\TS \F0 \T0 %" - global.msg[29] = "* Click.../%%" - } - } - break - case 633: - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HEY^1!&WHAT'S UP!?/" - global.msg[3] = "I WAS JUST&THINKING.../" - global.msg[4] = "YOU^1, ME^1, AND&UNDYNE SHOULD ALL&HANG OUT SOMETIME!/" - global.msg[5] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE&LATER!/" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - if (global.flag[88] < 3) - { - global.msg[5] = "AFTER YOU HANG&OUT WITH ME.../" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE!/" - global.msg[7] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - } - break - case 635: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 636: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 637: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 638: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 639: - global.msg[0] = "* (It's a book labelled& Monster History Part 7.)& Read it Do not\C" - global.msg[1] = " " - break - case 640: - global.msg[0] = "* When a human dies^1, its& soul remains stable& outside the body./" - global.msg[1] = "* Meanwhile^1, a monster's soul& disappears near-instantly& upon death./" - global.msg[2] = "* This allows monsters to& absorb the souls of& humans.../" - global.msg[3] = "* While it is extremely& difficult for humans to& absorb a monster's soul./" - global.msg[4] = "* This is why they feared us./" - global.msg[5] = "* Though monsters are weak^1,& with enough human souls.../" - global.msg[6] = "* They could easily destroy& all of mankind./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 641: - global.msg[0] = "* (It's a book labelled& Monster History Part 8.)& Read it Do not\C" - global.msg[1] = " " - break - case 642: - global.msg[0] = "* There is one exception& to the aforementioned& rules:/" - global.msg[1] = "* A certain type of monster^1,& the " + chr(34) + "boss" + chr(34) + " monster./" - global.msg[2] = "* Due to its life cycle^1, it& possesses an incredibly& strong soul for a monster./" - global.msg[3] = "* This soul can remain& stable after death^1, if& only for a few moments./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 643: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 644: - global.msg[0] = "* (You look inside a book.)/" - global.msg[1] = "* (It's a comic of a giant& robot fighting a beautiful& alien princess.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 645: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 646: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (Two scantily-clad chefs are& flinging energy pancakes& at each other.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 647: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 648: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (A hideous android is running& to school with toast in& its mouth.)/" - global.msg[2] = "* (Seems like it's late.)/" - global.msg[3] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 660: - global.msg[0] = "* (There's a piano here.^1)&* (Play it?)& Yes No\C" - global.msg[1] = " " - break - case 661: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = "See that heart^1? &That is your SOUL^1,&the very culmination&of your being!/" - global.msg[1] = "Your SOUL starts off&weak^1, but can grow&strong if you gain&a lot of LV./" - global.msg[2] = "What's LV stand for^1?&Why^1, LOVE^1, of course!/" - global.msg[3] = "You want some&LOVE, don't you?/" - global.msg[4] = "Don't worry,&I'll share some&with you!/%" - break - case 667: - global.msg[0] = "Down here^1, LOVE is&shared through..^1./" - global.msg[1] = "Little white..^2.\E1 &" + chr(34) + "friendliness&pellets." + chr(34) + "/" - global.msg[2] = "\E2Are you ready\E0?/%" - break - case 668: - global.msg[0] = "Move around^1!&Get as many as&you can^2!%%%" - global.msg[1] = "%%%" - break - case 669: - global.msg[0] = "You idiot./" - global.msg[1] = "In this world^1, it's&kill or BE killed./" - global.msg[2] = "Why would ANYONE pass&up an opportunity&like this!?/%" - break - case 670: - global.msg[0] = "Die./%" - break - case 671: - global.msg[0] = "Hey buddy^1,&you missed them./" - global.msg[1] = "Let's try again^1,&okay?/%" - break - case 672: - global.msg[0] = "Is this a joke^2?&Are you braindead^2?&RUN^2. INTO^2. THE^2.&BULLETS!!!" - break - case 673: - global.msg[0] = "You know what's&going on here^1,&don't you?/" - global.msg[1] = "You just wanted to&see me suffer./%" - break - case 674: - global.msg[0] = "\E1What a terrible&creature^1, torturing&such a poor^1,&innocent youth.../" - global.msg[1] = "\E2Ah, do not be&afraid^1, my child./" - global.msg[2] = "\XI am \BTORIEL\X,&caretaker of&the \RRUINS\X./" - global.msg[3] = "I pass through this&place every day to&see if anyone has&fallen down./" - global.msg[4] = "You are the first&human to come here&in a long time./" - global.msg[5] = "I will do my best&to ensure your&protection during&your time here./%%" - global.msg[5] = "\E2Come^2!&I will guide you&through the&catacombs./%%" - global.msg[6] = "%%%" - break - case 680: - global.msg[0] = "* Three gold for the ferry.& & Yes No\C" - global.msg[1] = " " - break - case 681: - global.msg[0] = "* Later^1, then./%%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = "* Hop on!/%%" - } - break - case 682: - global.msg[0] = "* (It's a switch.)& & Press it Don't\C" - global.msg[1] = " " - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were deactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were reactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "\E1* Um.../" - global.msg[3] = "\E0* I noticed you've been& kind of quiet.../" - global.msg[4] = "\W*\E8 Are you w-worried& about meeting \RASGORE\W...?/" - global.msg[5] = "\E2* .../" - global.msg[6] = "\E0* W-well^1, don't worry^1,& okay?/" - global.msg[7] = "\E7* Th-the king is a& really nice guy.../" - global.msg[8] = "\E0* I'm sure you can& talk to him^1, and.../" - global.msg[9] = "* W-with your human& soul^1, you can pass& through the barrier!/" - global.msg[10] = "* S-so no worrying^1, OK^1?&* J-just forget about it& and smile./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* Click.../%%" - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = "* hey buddy^1, what's up^1?&* wanna buy a hot dog?/" - global.msg[1] = "* it's only 30G.& & Yes No \C" - global.msg[2] = " " - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = "* here^1.&* have fun./%%" - if (global.flag[380] == 1) - { - global.msg[0] = "* here's another hot& dog./" - global.msg[1] = "* it's on the house^1.&* well^1, no^1.&* it's on you./%%" - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = "* sorry^1, thirty is& the limit on& head-dogs./%%" - if (global.flag[381] == 0) - { - global.msg[0] = "\TS*^1 \Tsi'll be 'frank' with& you./" - global.msg[1] = "* as much as i like& putting hot dogs& on your head.../" - global.msg[2] = "* thirty is just& an excessive number./" - global.msg[3] = "* twenty-nine^1, now& that's fine^1, but& thirty.../" - global.msg[4] = "* does it look like& my arms can reach& that high?/%%" - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = "* thanks, kid^1.&* here's your hot dog./%%" - if (global.flag[379] == 0) - { - global.msg[0] = "* thanks, kid^1.&* here's your 'dog./" - global.msg[1] = "* yeah^1. 'dog^1.&* apostrophe-dog^1.&* it's short for hot-dog./%%" - } - if (global.flag[379] == 1) - { - global.msg[0] = "* another h'dog^1?&* here you go.../" - global.msg[1] = "* whoops^1, i'm actually& out of hot dogs./" - global.msg[2] = "* here^1, you can have& a hot cat instead./%%" - } - if (global.flag[379] == 2) - { - global.msg[0] = "* another dog^1, coming& right up.../" - global.msg[1] = "* ... you really like& hot animals^1, don't& you?/" - global.msg[2] = "* hey^1, i'm not judging./" - global.msg[3] = "* i'd be out of a job& without folks like you./%%" - } - if (global.flag[379] == 3) - { - global.msg[0] = "* cool^1.&* here's that ''dog./" - global.msg[1] = "* apostrophe-apostrophe& dog./" - global.msg[2] = "* it's short for& apostrophe-dog./" - global.msg[3] = "* which is^1, in turn^1,& short for.../%%" - } - if (global.flag[379] == 4) - { - global.msg[0] = "* another one^1?&* okay./" - global.msg[1] = "* careful^1.&* if you eat& too many hot dogs.../" - global.msg[2] = "* you'll probably get& huge like me./" - global.msg[3] = "* huge as in super-& popular^1, i mean./" - global.msg[4] = "* i'm practically& a hot-dog tycoon now./%%" - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = "* whoops^1, you don't have& enough cash./" - global.msg[1] = "* you should get a job^1.&* i've heard being a& sentry pays well./%%" - } - } - if (noroom == 1) - { - global.msg[0] = "* you're holding too much^1.&* ... guess i'll just put& it on your head./%%" - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* yeah^1, you've gotta& save your money for& college and spiders./%%" - break - case 690: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* L-looks like you& beat him!/" - global.msg[3] = "\E0* Y-you did a really& great job out there./" - global.msg[4] = " & All thanks& to you ... \C" - global.msg[5] = " " - break - case 691: - if (global.choice == 0) - { - global.msg[0] = "\E3* What^1?&* Oh no^1, I mean.../" - global.msg[1] = "\E4* You were the one& doing everything cool!/" - global.msg[2] = "\E0* I just wrote some& silly programs for& your phone./" - } - if (global.choice == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E2* .../" - global.msg[2] = "\E1* .../" - } - global.msg[3] = "\E2* .../" - global.msg[4] = "\E4* ... umm^1, h-hey^1, this& might sound strange^1,& but.../" - global.msg[5] = "\E6* ... c-can I tell& you something?/" - global.msg[6] = "\E9* .../" - global.msg[7] = "\E4* B-before I met you^1,& I d-didn't really.../" - global.msg[8] = "\E9* I didn't really& like myself very& much./" - global.msg[9] = "* For a long time^1,& I f-felt like a& total screw-up./" - global.msg[10] = "\E9* L-like I couldn't& do a-anything& w-without.../" - global.msg[11] = "\E9* W-without ending up& letting everyone& down./" - global.msg[12] = "\E3* B-but...!/" - global.msg[13] = "\E4* Guiding you has& made me feel.../" - global.msg[14] = "\E9* A lot better about& myself./" - global.msg[15] = "\E0* So... thanks for& letting me help& you./" - global.msg[16] = "\E9* .../" - global.msg[17] = "\E4* Uhhh^1, anyway^1, we're& almost to the CORE./" - global.msg[18] = "\E0* It's just past& MTT Resort./" - global.msg[19] = "\E6* Come on^1!&* Let's finish this!/%%" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* Click.../%%" - break - case 692: - global.msg[0] = "\E0EUREKA!!!/" - global.msg[1] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[2] = "\E3YOU SEEM LIKE&YOU'RE HAVING&FUN^1, THOUGH.../" - global.msg[3] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[6] = " " - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 694: - global.msg[0] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[1] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[4] = " " - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 696: - global.msg[0] = "* (There's a switch on the& trunk of this tree.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - break - case 697: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = "OHO^1!&THE HUMAN ARRIVES!/" - global.msg[1] = "ARE YOU READY TO&HANG OUT WITH&UNDYNE?/" - global.msg[2] = "I HAVE A PLAN&TO MAKE YOU TWO&GREAT FRIENDS!/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Will you hang out?)& & Yes No\C" - global.msg[5] = " " - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = "HMMM..^1.&STILL GETTING&READY?/" - global.msg[2] = "\E0TAKE YOUR TIME!/%%" - } - break - case 700: - global.msg[0] = "OKAY^1!&ALL READIED-UP&TO HANG OUT!?/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* (Will you hang out?)& & Yes No\C" - global.msg[3] = " " - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 703: - global.msg[0] = "\E4* .../" - global.msg[1] = "\E5* So why are YOU& here?/" - global.msg[2] = "\E4* To rub your victory& in my face?/" - global.msg[3] = "\E4* To humiliate me& even further?/" - global.msg[4] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[5] = " " - break - case 704: - if (global.choice == 0) - { - global.msg[0] = "\E2* Oh-ho-ho-ho./" - global.msg[1] = "\E1* Well^1, I've got news& for you^1, BRAT./" - global.msg[2] = "\E2* You're on MY& battlefield now./" - global.msg[3] = "\E3* And you AREN'T& going to& humiliate me./" - global.msg[4] = "\E3* I'll TELL you& what's going to& happen./" - global.msg[5] = "\E0* We're going to& hang out./" - global.msg[6] = "\E2* We're going to& have a good& time./" - global.msg[7] = "\M1* We're going to& become " + chr(34) + "friends." + chr(34) + "/" - global.msg[8] = "\E3* You'll become so& enamored with me.../" - global.msg[9] = "\E1* YOU'LL be the one& feeling humiliated& for your actions!/" - global.msg[10] = "\E6* Fuhuhuhuhu!!/" - global.msg[11] = "\M2* It's the perfect& revenge!!!/" - global.msg[12] = "\E1* Err.../" - global.msg[13] = "\E9* Why don't you& have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\E4* Then why are you& here?/" - global.msg[1] = "\E1* ...!/" - global.msg[2] = "\E2* Wait^1, I get it./" - global.msg[3] = "\E3* You think that I'm& gonna be friends& with you^1, huh?/" - global.msg[4] = "* Right???& NEVER & Yes with you\C" - global.msg[5] = " " - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = "\E6* Really^1?&* How delightful!^1!&* I accept!/" - global.msg[1] = "* Let's all frolick& in the fields& of friendship!/" - global.msg[2] = "\E2* ...NOT!/" - global.msg[3] = "\E2* Why would I EVER& be friends with& YOU!?/" - global.msg[4] = "\E3* If you weren't my& houseguest^1, I'd beat& you up right now!/" - global.msg[5] = "\E0* You're the enemy& of everyone's hopes& and dreams!/" - global.msg[6] = "\E1* I WILL NEVER& BE YOUR FRIEND./" - global.msg[7] = "\E3* Now get out of& my house!/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = "\E1* WHAT?/" - global.msg[1] = "\E4* First you parade& into my house^1,& then you INSULT me?/" - global.msg[2] = "\E2* You little BRAT^1!&* I have half a& mind to.../" - global.msg[3] = "\E1* .../" - global.msg[4] = "\E3* Wait./" - global.msg[5] = "\E2* I'll prove you& WRONG./" - global.msg[6] = "\E3* We ARE going to& be friends./" - global.msg[7] = "\E1* In fact.../" - global.msg[8] = "\E3* We./" - global.msg[9] = "\M1* Are going to be& BESTIES./" - global.msg[10] = "* I'll make you like& me so much.../" - global.msg[11] = "\E1* Your WHOLE LIFE& will revolve around& me!!/" - global.msg[12] = "\M2* It's the perfect& revenge!!!/" - global.msg[13] = "\E6* FUHUHUHUHU!!!/" - global.msg[14] = "\E1* Err.../" - global.msg[15] = "\E9* Now^1, why don't& you have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = "* (Sit down and progress?)& & Yes No\C" - global.msg[1] = " " - break - case 707: - global.msg[0] = " %%" - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = " %%" - global.msg[1] = " %%" - } - break - case 708: - global.msg[0] = "* That sugar's for& the tea./" - global.msg[1] = "\E2* I'm not gonna give& you a cup of& sugar!/" - global.msg[2] = "\E6* What do I look& like^1, the ice-cream& woman?/" - global.msg[3] = "\E2* Do human ice-cream& women TERRORIZE HUMANITY& with ENERGY SPEARS?/" - global.msg[4] = "\E3* Are their ice-cream& songs a PRELUDE TO& DESTRUCTION?/" - global.msg[5] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[6] = " " - break - case 709: - if (global.choice == 0) - { - global.msg[0] = "\E1* ... what^1?&* REALLY?/" - global.msg[1] = "\E6* That rules!!!/%%" - } - if (global.choice == 1) - global.msg[0] = "\E3* That's what I& thought./%%" - break - case 710: - global.msg[0] = "* Envision these& vegetables as your& greatest enemy!/" - global.msg[1] = "\E2* Now!^1!&* Pound them to dust& with your fists!!/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (How will you pound?)& & Strong Wimpy\C" - global.msg[4] = " " - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = "* (You punch the vegetables& at full force^1.&* You knock over a tomato.)/" - scr_undface(1, 6) - global.msg[2] = "* YEAH^1!&* YEAH!/" - global.msg[3] = "\E1* Our hearts are& uniting against these& healthy ingredients!/" - global.msg[4] = "\M2* NOW IT'S MY TURN!/" - global.msg[5] = "* NGAHHH!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = "* (You pet the vegetables& in an affectionate& manner.)/" - scr_undface(1, 1) - global.msg[2] = "* OH MY GOD!!^1!&* STOP PETTING THE& ENEMY!!!/" - global.msg[3] = "\M2* I'll show you& how it's done!/" - global.msg[4] = "* NGAHHH!/%%" - } - break - case 712: - global.msg[0] = "* ... we add the& noodles!/" - global.msg[1] = "\E0* Homemade noodles& are the best!/" - global.msg[2] = "\E6* BUT I JUST BUY& STORE-BRAND!/" - global.msg[3] = "\M2* THEY'RE THE& CHEAPEST!!!/" - global.msg[4] = "\E1* NGAHHHHHHHHH& HHHHHHHHHH!!!/" - global.msg[5] = "\E9* Uhh^1, just put them& in the pot./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "\M0* (How will you put them in?)& & Fiercely Careful\C" - global.msg[8] = " " - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = "* (You throw everything into& the pot as hard as you can^1,& including the box.)/" - global.msg[1] = "* (It clanks against the& empty bottom.)/" - scr_undface(2, 6) - global.msg[3] = "\M2* YEAH!!^1!&* I'M INTO IT!!!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = "* (You place the noodles& in one at a time.)/" - global.msg[1] = "* (They clank against the& empty bottom.)/" - scr_undface(2, 9) - global.msg[3] = "* Nice???/%%" - } - break - case 714: - global.msg[0] = "\E0* Humans suck^1, but& their history..^1.&* Kinda rules./" - global.msg[1] = "\E2* Case in point^1:&* This giant sword!/" - global.msg[2] = "\E0* Historically^1, humans& wielded swords up& to 10x their size./" - global.msg[3] = "\E1* RIGHT?& & True False\C" - global.msg[4] = " " - break - case 715: - if (global.choice == 0) - { - global.msg[0] = "\E6* Heh^1, I knew it!/" - global.msg[1] = "\E2* When I first heard& that^1, I immediately& wanted one!/" - global.msg[2] = "\E0* So me and Alphys& built a giant& sword together./" - global.msg[3] = "\E0* She figured out all& the specs herself.../" - global.msg[4] = "\E6* She's smart^1, huh!?/%%" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* Pfft^1!&* You liar!/" - global.msg[1] = "\E3* I've READ Alphys's& human history book& collection!/" - global.msg[2] = "\E3* I know all about& your giant swords.../" - global.msg[3] = "\E3* Your colossal^1,& alien-fighting& robots.../" - global.msg[4] = "* Your supernatural& princesses.../" - global.msg[5] = "\E6* Heh^1! There's no& way you're gonna& fool me!!!/%%" - } - break - case 716: - global.msg[0] = "* (Look inside the bone drawer?)& & Yes No\C" - global.msg[1] = " " - break - case 717: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = "\M5* WHAT A SENSATIONAL OPPORTUNITY& FOR A STORY!/" - global.msg[1] = "\M3* I CAN SEE THE HEADLINE NOW:/" - global.msg[2] = "\M4* " + chr(34) + "A DOG EXISTS SOMEWHERE." + chr(34) + "/" - global.msg[3] = "\M2* FRANKLY^1, I'M BLOWN AWAY./" - global.msg[4] = "* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 721: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 722: - global.msg[0] = "\M5* THIS DOG..^1.&* STILL EXISTS!/" - global.msg[1] = "* THIS STORY..^1.&* JUST KEEPS GETTING& BETTER AND BETTER!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 723: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 724: - global.msg[0] = "\M5* OH MY!!!!/" - global.msg[1] = "\M2* ... IT'S A COMPLETELY& NONDESCRIPT GLASS OF WATER./" - global.msg[2] = "\M4* BUT ANYTHING CAN MAKE& A GREAT STORY WITH ENOUGH& SPIN!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 725: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 726: - global.msg[0] = "\M3* I'M HONORED TO BE IN THE& PRESENCE OF SUCH A HUGE& LUKEWARM WATER FAN^1, FOLKS!/" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 727: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 728: - global.msg[0] = "\M5* OH NO!!^1!&* THAT MOVIE SCRIPT!!^1!&* HOW'D??^1? THAT GET THERE???/" - global.msg[1] = "\M4* IT'S A SUPER-JUICY SNEAK& PREVIEW OF MY LATEST& GUARANTEED-NOT-TO-BOMB FILM:/" - global.msg[2] = "\M6* METTATON THE MOVIE XXVIII..^1.& STARRING METTATON!/" - global.msg[3] = "\M1* I'VE HEARD THAT LIKE THE& OTHER FILMS.../" - global.msg[4] = "\M1* IT CONSISTS MOSTLY OF A SINGLE& FOUR-HOUR SHOT OF ROSE PETALS& SHOWERING ON MY RECLINING BODY./" - global.msg[5] = "\M5* OOH!!^1!&* BUT THAT'S!!^1!&* NOT CONFIRMED!!/" - global.msg[6] = "\M5* YOU WOULDN'T (COUGH) SPOIL MY& MOVIE FOR EVERYONE WITH A& PROMOTIONAL STORY^1, WOULD YOU?/" - global.msg[7] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[8] = " " - break - case 729: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\M5* PHEW!!^1! THAT WAS CLOSE!^1!&* YOU ALMOST GAVE ME A BUNCH& OF FREE ADVERTISEMENT!!/%%" - global.msg[1] = "\M2 %%" - } - break - case 730: - global.msg[0] = "\M3* OH^1!&* YOU'RE BACK!/" - global.msg[1] = "\M6* THAT'S RIGHT^1, FOLKS^1!&* IT SEEMS NO ONE CAN RESIST& THE ALLURE OF MY NEW FILM!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 731: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 732: - global.msg[0] = "\M4* BASKETBALL'S A BLAST^1, ISN'T IT^1,& DARLING?/" - global.msg[1] = "\M1* TOO BAD YOU CAN'T PLAY WITH& THESE BALLS./" - global.msg[2] = "\M4* THEY'RE MTT-BRAND FASHION& BASKETBALLS^1.&* FOR WEARING^1, NOT PLAYING./" - global.msg[3] = "\M6* YOU CAN'T GET RICH AND FAMOUS& LIKE MOI WITHOUT BEAUTIFYING& A FEW ORBS./" - global.msg[4] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 733: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 734: - global.msg[0] = "* IT SEEMS OUR REPORTER IS DRAWN& TO SPORTS LIKE MOTHS TO A& FLAMING BASKETBALL HOOP./" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 735: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 736: - global.msg[0] = "\M5* OH MY^1! IT'S A PRESENT^1!&* AND IT'S ADDRESSED TO YOU^1,& DARLING!/" - global.msg[1] = "\M6* AREN'T YOU JUST BURSTING& WITH EXCITEMENT?/" - global.msg[2] = "\M5* WHAT COULD BE INSIDE^1?&* WELL^1, NO TIME LIKE THE& " + chr(34) + "PRESENT" + chr(34) + " TO FIND OUT!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 737: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 738: - global.msg[0] = "\M4* READY FOR YOUR..^1.&* PRESENTATION?/" - global.msg[1] = "\M4* (... LET'S CUT THAT ONE IN& POST.)/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 739: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 740: - global.msg[0] = "\M5* OOH LA LA^1!&* THIS VIDEO GAME YOU FOUND..^1.&* IS DYNAMITE!!!/" - global.msg[1] = "\M4* THOUGH I DON'T MAKE AN& APPEARANCE IN IT UNTIL& THREE-FOURTHS IN./" - global.msg[2] = "\M3* BUT I LIKE THAT./" - global.msg[3] = "\M6* APPEARING FROM THE HEAVENS LIKE& MANNA^1, SLAKING THE AUDIENCE'S& HUNGER FOR GORGEOUS ROBOTS.../" - global.msg[4] = "\M5* OOH^1!&* THAT'S METTATON!/" - global.msg[5] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[6] = " " - break - case 741: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 742: - global.msg[0] = "* AH^1, YOU UNDERSTAND./" - global.msg[1] = "* THIS IS A GAME WHERE YOU& SHOULD CHECK EVERYTHING& TWICE./" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 743: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Cider for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Donut for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 748: - global.msg[0] = "* Ribbit^1, ribbit.&* (I have heard you are quite& merciful^1, for a human...)/" - global.msg[1] = "\W* (Surely you know by now a& monster wears a \YYELLOW\W name& when you can \YSPARE\W it.)/" - global.msg[2] = "* (What do you think of that?)& Very It's& Helpful Bad\C" - global.msg[3] = " " - break - case 749: - if (global.choice == 0) - { - global.msg[0] = "* (It is rather helpful.^1)&* (Remember^1, sparing is just& saying you won't fight.)/" - global.msg[1] = "* (Maybe one day^1, you'll& have to do it even if& their name isn't yellow.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Really^1? Then^1, I'll tell all& of my friends to tell& their friends' friends...)/" - global.msg[1] = "* (Never use yellow names.)&* (How about that?)/" - global.msg[2] = " Keep No more& Yellow Yellow& Names Names\C" - global.msg[3] = " " - } - break - case 750: - if (global.choice == 0) - global.msg[0] = "* (OK^1, they will still& use yellow names.)/%%" - if (global.choice == 1) - { - global.msg[0] = "* (OK^1, I will let them& know not to use yellow& names.)/%%" - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = "* Ribbit^1, ribbit^1.&* (How are you doing without& yellow names?)/" - global.msg[1] = " Bring & It's Them& great Back\C" - global.msg[2] = " " - break - case 752: - if (global.choice == 0) - { - global.msg[0] = "* (Glad to hear it.^1)&* (Though^1, I do not know why& you dislike yellow.)/" - global.msg[1] = "* (You had better hope you do& not encounter a banana-themed& monster.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Huh^1? It's rather inconvenient& that you changed your mind& like this.)/" - global.msg[1] = "* (Since I told everyone& not to use yellow names^1,& everyone threw theirs out.)/" - global.msg[2] = "* (This is really troubling...^1)&* (Hmmm...)/" - global.msg[2] = "\W* (Well^1, last year it was& fashionable to have \ppink\W & names.)/" - global.msg[3] = "* (I think everyone still& has those in their closets& somewhere...)/" - global.msg[4] = "* (I'll ask everyone to look.^1)&* (But this is the last time!)/%%" - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = "* Ribbit^1, ribbit...&* (I hope you're satisfied.)/%%" - break - case 754: - global.msg[0] = "* \YNAPSTABLOOK22 has sent you& a friend request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 755: - global.flag[409] = 1 - global.msg[0] = "* (It seems to have already& rejected itself...)/%%" - break - case 756: - global.msg[0] = "* \YMETTATON has sent you a& Mortal Enemy request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 757: - if (global.choice == 0) - { - global.msg[0] = "* Congratulations^1!&* You are now Mortal Enemies& with Mettaton./" - global.msg[1] = "* \YCOOLSKELETON95\W has posted& a comment on this change./" - global.msg[2] = "* CONGRATULATIONS^1, YOU TWO^1!&* WISH YOU A LONG AND& HORRIBLE RIVALRY./%%" - } - if (global.choice == 1) - global.msg[0] = "* You rejected the request./%%" - break - case 758: - global.msg[0] = "* \YMETTATON has sent you an& invitation to " + chr(34) + "Die." + chr(34) + "\W /" - global.msg[1] = "* RSVP?& & Respond Ignore\C" - global.msg[2] = " " - break - case 759: - if (global.choice == 0) - global.msg[0] = "* Bepis valley Granola Bars/%%" - if (global.choice == 1) - global.msg[0] = "* Bepis valley Granola Bars/%%" - break - case 760: - global.msg[0] = "* hey^1.&* i heard you're going& to the core./" - global.msg[1] = "\E0* how about grabbing some& dinner with me first?& Yeah I'm busy \C" - global.msg[2] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - break - case 761: - if (global.choice == 0) - { - global.msg[0] = "* great^1, thanks for& treating me./%%" - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* well^1, have fun in& there./%%" - break - case 762: - global.msg[0] = "* This is the barrier./" - global.msg[1] = "* This is what keeps& us all trapped& underground./" - global.msg[2] = "* .../" - global.msg[3] = "* If.../" - global.msg[4] = "* If by chance you& have any unfinished& business.../" - global.msg[5] = "* Please do what you& must./" - global.msg[6] = " & & Continue Go Back\C" - global.msg[7] = " " - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Anything you want to& do is important& enough./" - global.msg[2] = "* Even something as small& as reading a book^1,& or taking a walk.../" - global.msg[3] = "* Please take your time./%%" - } - break - case 764: - global.msg[0] = "* Oh..^1.&* Back so soon?/" - global.msg[1] = "* How are you feeling?/" - global.msg[2] = " & & Ready Go Back\C" - global.msg[3] = " " - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Do what you have to./%%" - } - break - case 770: - global.msg[0] = "* Tra la la^1.&* I am the riverman./" - global.msg[1] = "* Or am I the riverwoman...^1?&* It doesn't really matter./" - global.msg[2] = "* I love to ride in my boat^1.&* Would you care to join me?/" - global.msg[3] = "* (Ride in the boat?)& & Yes No\C" - global.msg[4] = " " - if (global.flag[460] > 0) - { - global.msg[0] = "* Tra la la^1.&* Care for a ride?/" - global.msg[1] = "* (Ride in the boat?)& & Yes No\C" - global.msg[2] = " " - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = "* Where will we go today?& & Error Error\C" - if (room == room_fire_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Waterfall\C" - if (room == room_water_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Hotland\C" - if (room == room_tundra_dock) - global.msg[0] = "* Where will we go today?& & Waterfall Hotland\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* Then perhaps another time^1.&* Or perhaps not^1.&* It doesn't really matter./%%" - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = "* Then we're off.../%%" - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = "* (There's a switch on the& wall.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = "* (The switch doesn't do& anything.)/%%" - break - case 781: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = "* (Seems like a comfortable& bed.)/" - global.msg[1] = "* (Lie on it?)& & Yes No\C" - global.msg[2] = " " - break - case 783: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = "* (It's just a regular suspicious& bed now.)/%%" - if (global.flag[484] == 1) - { - global.msg[0] = "* (It's a yellow key.^1)&* (You put it on your& keychain.)/%%" - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = "* (There's something under& the sheets.)/" - global.msg[1] = "* (Check it out?)& & Yes No\C" - global.msg[2] = " " - } - break - case 785: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = "* (The power has been turned& on.)/%%" - if (global.flag[491] == 0) - { - global.msg[0] = "* (It seems like this controls& the elevator's power.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - break - case 787: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = (("\E7* I always was a crybaby^1,& wasn't I^1, " + global.charname) + "?/") - global.msg[1] = "\E1* .../" - global.msg[2] = "\E2* ... I know./" - global.msg[3] = (("\E0* You're not actually& " + global.charname) + ", are you?/") - global.msg[4] = (("\E7* " + global.charname) + "'s been gone for& a long time./") - global.msg[5] = "* .../" - global.msg[6] = "\E9* Um..^1. what.../" - global.msg[7] = "\E0* What IS your name?/" - global.msg[8] = "\E2* .../" - global.msg[9] = "\E5* " + chr(34) + "Frisk?" + chr(34) + "/" - global.msg[10] = "\E7* That's.../" - global.msg[11] = "\E5* A nice name./" - global.msg[12] = "* .../" - global.msg[13] = "\E7* Frisk.../" - global.msg[14] = "\E0* I haven't felt like& this for a long time./" - global.msg[15] = "\E2* As a flower^1, I was& soulless./" - global.msg[16] = "\E1* I lacked the power to& love other people./" - global.msg[17] = "\E2* However^1, with everyone's& souls inside me.../" - global.msg[18] = "\E7* I not only have my own& compassion back.../" - global.msg[19] = "\E5* But I can feel every& other monster's as& well./" - global.msg[20] = "\E7* They all care about& each other so much./" - global.msg[21] = "\E0* And..^1. they care about& you too^1, Frisk./" - global.msg[22] = "* .../" - global.msg[23] = "\E7* I wish I could tell& you how everyone& feels about you./" - global.msg[24] = "* Papyrus..^1. Sans..^1.&* Undyne..^1. Alphys.../" - global.msg[25] = "\E0* ... Toriel./" - global.msg[26] = "\E7* Monsters are weird./" - global.msg[27] = "\E5* Even though they barely& know you.../" - global.msg[28] = "\E6* It feels like they& all really love& you./" - global.msg[29] = "\E8* Haha./" - global.msg[30] = "* .../" - global.msg[31] = "\E1* Frisk..^1. I..^1.&* I understand if you& can't forgive me./" - global.msg[32] = "* I understand if you& hate me./" - global.msg[33] = "* I acted so strange and& horrible./" - global.msg[34] = "\E3* I hurt you./" - global.msg[35] = "* I hurt so many people./" - global.msg[36] = "\E1* Friends^1, family^1,& bystanders.../" - global.msg[37] = "\E3* There's no excuse for& what I've done./" - global.msg[38] = " & & Forgive Do not\C" - global.msg[39] = " " - break - case 801: - if (global.choice == 0) - { - global.msg[0] = "\E3* Wh..^1. what?/" - global.msg[1] = "\E7* ... Frisk^1, come on./" - global.msg[2] = "\E0* You're..^1.&* You're gonna make me& cry again./" - global.msg[3] = "\E7* ... besides^1, even if& you do forgive me.../" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* ... right^1./" - global.msg[1] = "* I understand./" - global.msg[2] = "\E1* I just hope that.../" - global.msg[3] = "* I can make up for& it a little right& now./" - } - global.msg[4] = "\E1* I can't keep these& souls inside of me./" - global.msg[5] = "\E0* The least I can do& is return them./" - global.msg[6] = "\E2* But first.../" - global.msg[7] = "\E4* There's something I& have to do./" - global.msg[8] = "* Right now^1, I can feel& everyone's hearts& beating as one./" - global.msg[9] = "* They're all burning& with the same& desire./" - global.msg[10] = "* With everyone's power..^1.&* With everyone's& determination.../" - global.msg[11] = "* It's time for& monsters.../" - global.msg[12] = "* To finally go free./%%" - break - case 803: - global.msg[0] = "\E7* Frisk.../" - global.msg[1] = "\E0* I have to go now./" - global.msg[2] = "\E7* Without the power of& everyone's souls.../" - global.msg[3] = "\E1* I can't keep& maintaining this& form./" - global.msg[4] = "* In a little while.../" - global.msg[5] = "* I'll turn back into& a flower./" - global.msg[6] = "\E3* I'll stop being& " + chr(34) + "myself." + chr(34) + "/" - global.msg[7] = "* I'll stop being able& to feel love again./" - global.msg[8] = "\E1* So..^1. Frisk./" - global.msg[9] = "\E7* It's best if you& just forget about& me^1, OK?/" - global.msg[10] = "\E0* Just go be with& the people who& love you./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & Comfort& him Do not\C" - global.msg[13] = " " - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = "\E0* So^1, Alphys.../" - global.msg[1] = "\E9* What do you want& to do now that& we're all free?/" - global.msg[2] = "\E0* We have the whole& world to explore& now./" - scr_alface(3, 3) - global.msg[4] = "\E3* W-well^1, of course& I'm going to go& out and.../" - global.msg[5] = "\E4* Um.../" - global.msg[6] = "\E3* No^1, I should be& honest!!/" - global.msg[7] = "\E1* I'm gonna stay inside& and watch anime like& a total loser!/" - scr_papface(8, 0) - global.msg[9] = "\E0THAT'S THE SPIRIT!/" - global.msg[10] = "EVERYONE!!^1!&A CELEBRATION!!!&TO BEING LOSERS!!/" - scr_undface(11, 9) - global.msg[12] = "\E9* Heh^1.&* Papyrus has the& right idea./" - global.msg[13] = "\E0* Losing to Frisk is& the best thing to& ever happen to me./" - global.msg[14] = "\E0* So I'm glad that& we.../" - global.msg[15] = "\E9* Huh^1?&* What is it^1, Asgore?/" - scr_asgface(16, 2) - global.msg[17] = "\E2* Um..^1. what's an.../" - global.msg[18] = "\E0* ... anime?/" - scr_alface(19, 1) - global.msg[20] = "\E1* (Oh My God?)/" - global.msg[21] = "\E3* (Frisk^1. Please.)/" - global.msg[22] = "\E2* (Help me explain what& anime is to Asgore.)/" - global.msg[23] = "\E0* Y-you see^1, it's& like a cartoon^1,& but.../" - global.msg[24] = "\TS \F0 \T0 %" - global.msg[25] = " & With With& Sword's Gun's\C" - global.msg[26] = " " - break - case 807: - scr_asgface(0, 2) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with swords?/" - if (global.choice == 1) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with guns?/" - global.msg[2] = "\E0* Golly^1!&* That sounds neato!/" - global.msg[3] = "\E3* Where is this^1?&* Where can I see the& Anime./" - scr_alface(4, 3) - global.msg[5] = "\E3* H-hold on^1, uh..^1.&* I think I have& some on my phone./" - global.msg[6] = "\E0* Here^1, l-look at& this!/" - global.msg[7] = "\E0* .../" - global.msg[8] = "\E3*...Oh^1, uh.../" - global.msg[9] = "\E4* Um..^1. that's the..^1.&* That's the wrong.../" - global.msg[10] = "\E5* Uh^1, nevermind./" - scr_asgface(11, 1) - global.msg[12] = "* Golly^1.&* Were those two robots.../" - scr_undface(13, 9) - global.msg[14] = "\E9* ... kissing?/" - scr_asgface(15, 0) - global.msg[16] = "\E0* Boy^1!&* Technology sure is& something^1, isn't it?/" - scr_alface(17, 5) - global.msg[18] = "\E5* Eheheh..^1. yeah^1!&* It sure is!/%%" - break - case 808: - global.msg[0] = "\E0* Psst..^1.&* F-Frisk./" - global.msg[1] = "\E3* Um^1, you've gotta& tell me./" - global.msg[2] = "\E6* D..^1. do you think& Asgore and Toriel& are...?/" - global.msg[3] = "\E3* Uh^1, ever gonna get& back together?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "& & Yeah Nope\C" - global.msg[6] = " " - break - case 809: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = "\E7* Y-yeah!!^1!&* Yeah^1, that's what& I hope^1, too./" - global.msg[2] = "\E7* Just think about how& cute they must have& been together./" - global.msg[3] = "\E0* It's quickly becoming& my number one ship& of all time./" - global.msg[4] = "\E7* Tori and Gorey.../" - global.msg[5] = "\E5* My..^1.&* My old boss and& his ex-wife./" - global.msg[6] = "\E8* ... uh^1, that sounds& a lot less cool& all of a sudden./%%" - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = "\E8* ... yeah^1, that's what& I thought./" - global.msg[2] = "\E7* A woman can dream& though^1, right?/" - global.msg[3] = "\E2* And write fanfiction./" - global.msg[4] = "\E1* A LOT of fanfiction./%%" - } - break - case 810: - global.msg[0] = "\E0* Frisk^1!&* I just realized!/" - global.msg[1] = "\E3* Now that we aren't& fighting each& other.../" - global.msg[2] = "\E2* I can finally ask& you.../" - global.msg[3] = "\E0* " + chr(34) + "Would you like a& cup of tea?" + chr(34) + "/" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E0* Would you like a& cup of tea?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "& & Yes No\C" - global.msg[8] = " " - break - case 811: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = "* Oh^1!&* Well!/" - global.msg[2] = "\E3* Actually^1, the cup I& had is cold now./" - global.msg[3] = "* So you shouldn't& have it./" - global.msg[4] = "\E0* But^1, I am so& happy you said& yes./" - global.msg[5] = "\E0* As soon as I can^1,& I will make some& more for you./" - global.msg[6] = "\E0* Then we can be& great pals./%%" - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = "\E3* Oh.../" - global.msg[2] = "\E3* Okay./" - scr_undface(3, 2) - global.msg[4] = "\E2* Frisk^1! Stop^1!&* You're breaking his& big burly heart!/" - scr_asgface(5, 2) - global.msg[6] = "\E2* Um^1, it's OK^1, Undyne./" - global.msg[7] = "\E0* My heart's already& broken./" - scr_undface(8, 6) - global.msg[9] = "\E6* ASGORE^1! STOP^1!&* YOU'RE BREAKING MY& BIG BURLY HEART!/" - scr_alface(10, 9) - global.msg[11] = "\E9* Y-yeah^1, Asgore^1.&* Don't break Undyne's& heart./" - global.msg[12] = "\E2* That's my job./" - scr_undface(13, 2) - global.msg[14] = "\E2* OH MY GOD!&* YOU'RE GOING BACK& IN THE TRASH!!!/" - scr_papface(15, 0) - global.msg[16] = "\E0CAN I GO IN THE&TRASH TOO?/" - scr_undface(17, 9) - global.msg[18] = "\E9* Sure^1, Papyrus./" - scr_sansface(19, 1) - global.msg[20] = "\E1* guess i have to& go in the trash& too./" - scr_torface(21, 0) - global.msg[22] = "\E0* Oh^1, may I enter& the trash as well?/" - scr_undface(23, 1) - global.msg[24] = "\E1* Uh^1, okay?/" - scr_asgface(25, 0) - global.msg[26] = "\E0* Am I invited to& the trash?/" - scr_undface(27, 6) - global.msg[28] = "\E6* SURE!!!&* WHY NOT!!!/" - scr_torface(29, 1) - global.msg[30] = "\E1* On second thought^1,& do not put me& in the trash./" - scr_asgface(31, 5) - global.msg[32] = "\E5* Oh.../" - scr_undface(33, 1) - global.msg[34] = "\E1* OH MY GOD!!!/%%" - } - break - case 812: - global.msg[0] = "* (If you leave here^1, your& adventure will really& be over.)/" - global.msg[1] = "* (Your friends will follow& you out of the underground.)/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = " & Don't I'm& leave ready\C" - global.msg[4] = " " - break - case 813: - global.msg[0] = " %%" - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = "\E0* Oh my.../" - scr_asgface(1, 0) - global.msg[2] = "\E0* Isn't it beautiful^1,& everyone?/" - scr_alface(3, 3) - global.msg[4] = "\E3* Wow..^1. it's e-even& better than on TV./" - global.msg[5] = "\E7* WAY better^1!&* Better than I ever& imagined!/" - scr_undface(6, 1) - global.msg[7] = "\E1* Frisk^1, you LIVE with& this!?/" - global.msg[8] = "\E9* The sunlight is so& nice..^1. and the air& is so fresh!/" - global.msg[9] = "* I really feel alive!/" - scr_papface(10, 0) - global.msg[11] = "\E0HEY SANS.../" - global.msg[12] = "\E3WHAT'S THAT GIANT&BALL?/" - scr_sansface(13, 1) - global.msg[14] = "\E1* we call that& " + chr(34) + "the sun^1," + chr(34) + " my friend./" - scr_papface(15, 0) - global.msg[16] = "\E0THAT'S THE SUN!^1?&WOWIE!!!/" - global.msg[17] = "I CAN'T BELIEVE&I'M FINALLY MEETING&THE SUN!!!/" - scr_asgface(18, 0) - global.msg[19] = "\E0* I could stand here& and watch this for& hours.../" - scr_torface(20, 0) - global.msg[21] = "\E0* Yes^1, it is beautiful^1,& is it not?/" - global.msg[22] = "\E1* But we should really& think about what comes& next./" - scr_asgface(23, 3) - global.msg[24] = "\E3* Oh^1, right./" - global.msg[25] = "\E0* Everyone.../" - global.msg[26] = "* This is the beginning& of a bright new& future./" - global.msg[27] = "* An era of peace between& humans and monsters./" - global.msg[28] = "\E2* Frisk.../" - global.msg[29] = "* I have something to& ask of you./" - global.msg[30] = "\E0* Will you act as our& ambassador to the& humans?/" - global.msg[31] = "\TS \F0 \T0 %" - global.msg[32] = "* (Be the ambassador?)& & Yes No\C" - global.msg[33] = " " - break - case 815: - scr_papface(0, 0) - global.msg[1] = "WOWi, Nice error./%%" - if (global.choice == 0) - { - global.msg[1] = "\E0YEAH^1!&FRISK WILL BE THE&BEST AMBASSADOR!/" - global.msg[2] = "AND I^1, THE GREAT&PAPYRUS.../" - global.msg[3] = "WILL BE THE BEST&MASCOT!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E0IT'S OK FRISK^1!&I'VE GOT YOU&COVERED!/" - global.msg[2] = "IF YOU DON'T WANT&TO BE THE&AMBASSADOR.../" - global.msg[3] = "I CAN DO IT FOR&YOU!!!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - break - case 820: - global.msg[0] = "* Frisk.../" - global.msg[1] = "\E2* You came from this& world^1, right...?/" - global.msg[2] = "\E1* So you must have& a place to return to^1,& do you not?/" - global.msg[3] = "\E2* What will you do& now?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = " I want I have& to stay places& with you to go\C" - global.msg[6] = " " - break - case 821: - global.msg[0] = " %%" - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = "* (The door has no mail slot.)/" - global.msg[1] = "* (Slide the letter under?)& & Slide NO!!!! \C" - global.msg[2] = " " - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = "* (You slide the letter under& the door and give it a& knock.)/%%" - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* (You'll keep the letter& warm for a little longer.)/%%" - break - case 827: - global.msg[0] = "* (It's a note from Alphys.)/" - global.msg[1] = "* (Read it...?)& & Read Do not \C" - global.msg[2] = " " - break - case 828: - if (global.choice == 0) - { - global.msg[0] = "* (It's hard to read because& of the handwriting^1, but& you try your best...)/" - global.msg[1] = "* Hey./" - global.msg[2] = "* Thanks for your help back& there./" - global.msg[3] = "* You guys..^1.&* Your support really means a& lot to me./" - global.msg[4] = "* But..^1.&* As difficult as it is& to say this.../" - global.msg[5] = "* You guys alone can't& magically make my own& problems go away./" - global.msg[6] = "* I want to be a better& person./" - global.msg[7] = "* I don't want to be& afraid anymore./" - global.msg[8] = "* And for that to happen^1,& I have to be able to& face my own mistakes./" - global.msg[9] = "* I'm going to start& doing that now./" - global.msg[10] = "* I want to be clear./" - global.msg[11] = "* This isn't anyone else's& problem but mine./" - global.msg[12] = "* But if you don't ever& hear from me again.../" - global.msg[13] = "* If you want to know& " + chr(34) + "the truth." + chr(34) + "/" - global.msg[14] = "* Enter the door to the& north of this note./" - global.msg[15] = "* You all at least deserve& to know what I did./" - global.msg[16] = "* (That's all she wrote.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = "* (Buy chips for 25G?)& & Buy No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There were no chips left& in the machine.)/%%" - global.msg[1] = " " - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* (The vending machine& dispensed some chisps.)/%%" - if (afford == 0) - global.msg[0] = "* (You didn't have enough& gold.)/%%" - } - if (noroom == 1) - global.msg[0] = "* (You are carrying too& many items.)/%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 831: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?/" - global.msg[5] = "\E1* ... wait^1.&* Do not tell me./" - if (bs == 0) - global.msg[6] = "\E0* It is ERROR MESSAGE!& & Yes No \C" - if (bs == 1) - global.msg[6] = "\E0* Is it Butterscotch?& & Yes No \C" - if (bs == 2) - global.msg[6] = "\E0* Is it Cinnamon?& & Yes No \C" - global.msg[7] = " " - break - case 832: - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - if (bs == 2) - global.flag[46] = 0 - global.msg[0] = "\E0* Hee hee hee^1.&* I had a feeling./" - global.msg[1] = "\E1* When humans fall down& here^1, strangely..^1.&* I.../" - global.msg[2] = "\E1* I often feel like& I already know them./" - global.msg[3] = "\E0* Truthfully^1, when I first& saw you^1, I felt.../" - global.msg[4] = "\E1* ... like I was seeing& an old friend for& the first time./" - global.msg[5] = "\E0* Strange^1, is it not?/" - global.msg[6] = "* Well^1, thank you for& your selection./" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - if (bs == 2) - global.flag[46] = 1 - global.msg[0] = "\E1* Oh..^1. I see./" - global.msg[1] = "\E0* Well^1, thank you^1.&* Goodbye for now./" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* Click.../%%" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - break - case 833: - global.msg[0] = "* (Seems like you could skip& Mettaton's monologue by& turning him around now.)/" - global.msg[1] = "* (What will you do?)& & Skip Hear again\C" - global.msg[2] = " " - break - case 834: - if (global.choice == 0) - { - global.msg[0] = "* (You told Mettaton there& was something cool& behind him.)/%%" - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = " %%" - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = "* though.../" - global.msg[1] = "* one thing about you& always struck me& as kinda odd./" - global.msg[2] = "* now^1, i understand& acting in self-defense./" - global.msg[3] = "* you were thrown into& those situations& against your will./" - global.msg[4] = "* but.../" - global.msg[5] = "* sometimes.../" - global.msg[6] = "* you act like you& know what's gonna& happen./" - global.msg[7] = "* like you've already& experienced it all& before./" - global.msg[8] = "* this is an odd thing& to say^1, but.../" - global.msg[9] = "\W* if you have some sort& of \Yspecial power\W.../" - global.msg[10] = "* isn't it your& responsibility to do& the right thing?/" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & & Yes No\C" - global.msg[13] = " " - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* ah./" - global.msg[2] = "\E0* i see./" - global.msg[3] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* heh./" - global.msg[2] = "\E0* well^1, that's your& viewpoint./" - global.msg[3] = "\E2* i won't judge you& for it./" - global.msg[4] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = "* (Ring...)/" - scr_alface(1, 0) - global.msg[2] = "\E0* Hey!/" - global.msg[3] = "\E3* This um^1, doesn't have& anything to do with& guiding you..^1. but.../" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E6* Uhh^1, hey^1, would you want& to watch a human TV& show together???/" - global.msg[6] = "* Sometime???/" - global.msg[7] = "\E4* It's called^1, um^1,& M..^1.Mew Mew Kissy& Cutie.../" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = " & & Sure! ...no...\C" - global.msg[10] = " " - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = "* R-really!?/" - global.msg[2] = "\E3* It's so good^1!&* It's um^1, my favorite& show!/" - global.msg[3] = "* It's all about this& human girl named Mew Mew& who has cat ears!%" - global.msg[4] = "\E3* Which humans don't have!&* S-so she's all& sensitive about them!%" - global.msg[5] = "\E6* But like...&* Eventually!%" - global.msg[6] = "* She realizes that her& ears don't matter!%" - global.msg[7] = "* That her friends like& her despite the ears!%" - global.msg[8] = "\E7* It's really moving!%" - global.msg[9] = "\E5* Whoops, spoilers%" - global.msg[10] = "\E6* Also, this sounds& weird, but she has& the power!%" - global.msg[11] = "\E5* To control the minds& of anyone she kisses!%" - global.msg[12] = "\E3* She kisses people and& controls them to fix& her problems!!%" - global.msg[13] = "\E5* They don't remember& anything after the& kiss I mean!!%" - global.msg[14] = "\E3* BUT IF SHE MISSES& THE KISS!!!&* THEN!!%" - global.msg[15] = "\E4* Then^1, uh^1, and^1, uh^1,& also I mean^1, of course%" - global.msg[16] = "\E5* Eventually^1, she& realizes that& controlling people%" - global.msg[17] = "\E3* OKAY WELL I almost& spoiled the whole& show^1, but%" - global.msg[18] = "\E5* Uhhh^1, I think you'd& really like it!!!/" - global.msg[19] = "\E0* We should watch it^1!&* After you get through& all this!/" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* (Click...)/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E5* Um^1! Well^1!&* That's okay!/" - global.msg[2] = "* Just thought I'd!^1!&* Ask!!!/" - global.msg[3] = "\E6* B-but I think you'd& really like it!!/" - global.msg[4] = "* If you gave it a& chance!!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Click...)/%%" - } - break - case 839: - global.msg[0] = "\M1* Did y'hear!^1?&* You're back!/" - global.msg[1] = "\M0* I'll tell you a big secret./" - global.msg[2] = "\M1* I'm starting a band^1, y'hear?/" - global.msg[3] = "\M1* It's called the Red Hot& Chibi Peppers./" - global.msg[4] = "\M0* All I've thought of is& the name./" - global.msg[5] = "\M3* And I don't^1, play...&* Instruments^1, or sing./" - global.msg[6] = "\M1* Well^1!&* Do you think we'll be& popular!!!/" - global.msg[7] = " & & Yeah No\C" - global.msg[8] = " " - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = "\M0* Yeah^1, me too.../%%" - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = " %%" - } - break - case 845: - global.msg[0] = "* (It's a lamp.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - break - case 846: - if (global.choice == 0) - { - global.msg[0] = "* (There's no lightbulb.^1)&* (A flashlight is stuck in& the bulb socket.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = " %%" - break - case 847: - if (global.choice == 0) - global.msg[0] = "* (The flashlight is out of& batteries.)/%%" - else - global.msg[0] = " %%" - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = "* Hey^1, hey^1!&* Did you remember my name?/" - global.msg[1] = "* (Did you?)& & Yes No\C" - global.msg[2] = " " - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = "* Wh-WHAT!^1?&* You REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = "* Wh-WHAT!^1?&* You DON'T REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - break - case 853: - global.msg[0] = "* (It's a small white dog.^1)&* (It's fast asleep...)/" - global.msg[1] = "* (Fight the dog?)& & Yes No\C" - global.msg[2] = " " - break - case 854: - if (global.choice == 0) - { - global.msg[0] = "* (Can't fight the dog.)/" - global.msg[1] = "* (Seems like the fabric it's& sleeping on has too many& holes in it.)/" - global.msg[2] = "* (Seems like the dog needs& to " + chr(34) + "patch" + chr(34) + " the fabric.)/" - global.msg[3] = "* (Then you can fight the dog.^1)&* (... maybe.)/" - global.msg[4] = "* (Upon closer examination^1,& the holes in the fabric& seem to be growing.)/" - global.msg[5] = "* (Might take a while for the& dog to fix all of them.)/" - global.msg[6] = "* (Dogs aren't usually very& good at knitting.)/" - global.msg[7] = "* (A crocheting dog is out of& the question.)/%%" - } - else - global.msg[0] = "* (Let sleeping dogs lie^1, instead& of fighting them.^1)&* (That's how the saying goes.)/%%" - break - case 860: - global.msg[0] = "* (Knock knock)./" - if (global.flag[262] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Sea Tea" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a million ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = "* (You pour the Sea Tea under& the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 862: - global.msg[0] = "* (Knock knock)./" - if (global.flag[263] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Cinnamon Bun" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a trillion ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = "* (You flatten the Cinnamon Bun& until it's paper thin.)&* (You slide it under the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 864: - global.msg[0] = "* (You hear shuffling.)/" - global.msg[1] = "* (Seems like you could put& something under the door.)/" - global.msg[2] = " & & Put No Put\C" - global.msg[3] = " " - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - break - case 865: - if (global.choice == 0) - { - global.msg[0] = "* (...)/" - global.msg[1] = "* (But you didn't have anything& appealing.)/%%" - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = "* (You put a Hot Dog in front& of the door.)/" - global.msg[1] = "* (A white paw shoots out from& under the door.)/" - global.msg[2] = "* (It tries to pull the Hot Dog& into its room...)/" - global.msg[3] = "* (But it keeps pressing down too& hard^1, and the hot dog keeps& spinning away.)/" - global.msg[4] = "* (...)/" - global.msg[5] = "* (It finally succeeds.)/" - global.msg[6] = "* (...)/" - global.msg[7] = "* (You hear the grinding of& stone.)/" - global.msg[8] = "* (A single hushpuppy slides& out from under the door.)/" - global.msg[9] = "* (You got Hush Puppy.)/%%" - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = "* (You put a Hot Cat in front& of the door.)/" - global.msg[1] = "* (You hear growling...)/%%" - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = "* (You put a Dog Salad in front& of the door.^1)&* (It slides underneath.)/" - global.msg[1] = "* (...)/" - global.msg[2] = "* (The Dog Salad was absorbed& by the darkness.)/%%" - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = "* (You put a Dog Residue in& front of the door.)/" - global.msg[1] = "* (It slides underneath the door^1,& as if pulled by a magnet.)/" - global.msg[2] = "* (...)/" - if (noroom == 1) - global.msg[3] = "* (ZOMMM!!^1!)&* (It shoots back out at a& high speed!)/%%" - else - global.msg[3] = "* (Two Dog Residues slowly slide& back out from underneath& the door.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 866: - global.msg[0] = "* Yes^1, we know^1.&* The elevator to the city& is NOT working./" - global.msg[1] = "* Because of this incident^1, rooms& are running at a special rate!/" - global.msg[2] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[3] = " " - if (global.flag[267] == 2) - { - global.msg[0] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[1] = " " - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = "* Did you enjoy your stay?/" - global.msg[1] = "* What^1?&* Room..^1.&* Key?/" - global.msg[2] = "* No^1, we don't do that./" - global.msg[3] = "* If you leave your room^1,& you'll have to pay again./" - global.msg[4] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[5] = " " - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* Fabulous^1!&* We'll escort you to your& room!/%%" - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = "* ... that's not enough money./%%" - } - else - global.msg[0] = "* Do let us know if you& change your mind^1.&* Have a sparkular day!/%%" - break - case 870: - global.msg[0] = "* ... MY ONE TRUE LOVE?/" - global.msg[1] = "* .../" - global.msg[2] = "* (YOU LOOK BORED^1, DARLING.)/" - global.msg[3] = "* (I WANT THIS TO BE A STELLAR& PERFORMANCE^1, SO IF YOU& WON'T GIVE IT YOUR ALL...)/" - global.msg[4] = "* (THEN I'LL SKIP AHEAD FOR& THE AUDIENCE'S SAKE.)/" - global.msg[5] = "* (Perform?)& & Yeah Skip this\C" - global.msg[6] = " " - break - case 871: - if (global.choice == 0) - global.msg[0] = "* (UNDERSTOOD.^1)&* (LET'S KNOCK 'EM DEAD!)/%%" - else - { - global.msg[0] = "* (KA-SIGH...^1)&* (THE SHOW MUST GO ON!)/%%" - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = "Interesting./" - global.msg[1] = "You want to go back./" - global.msg[2] = "You want to go bac^1k&to the worl^2d&you destroyed./" - global.msg[3] = "It was you who pushed&everythin^1g to its edge./" - global.msg[4] = "It was you who led the worl^1d&to its destruction./" - global.msg[5] = "But you cannot accept it./" - global.msg[6] = "You think you are above&consequences.& Yes No\C" - global.msg[7] = "" - break - case 889: - if (global.choice == 0) - global.msg[0] = "Exactly./%%" - else - global.msg[0] = "Then what are you looking for?/%%" - break - case 890: - global.msg[0] = "Perhaps./" - global.msg[1] = "We can reach a compromise./" - global.msg[2] = "You still have somethin^1g&I want./" - global.msg[3] = "Give it to me./" - global.msg[4] = "And I will bring this&world back./" - global.msg[5] = " & & Yes No\C" - global.msg[6] = "" - break - case 891: - if (global.choice == 0) - { - global.msg[0] = "Then it is agreed./" - global.msg[1] = "You will give me your SOUL.& & Yes No\C" - global.msg[2] = " " - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = ".../" - global.msg[1] = "Then^1, it is done./%%" - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 900: - global.msg[0] = "* hey./" - global.msg[1] = "* is your refrigerator& running?/" - global.msg[2] = " & & yes no\C" - global.msg[3] = " " - break - case 901: - if (global.choice == 0) - global.msg[0] = "* nice^1.&* i'll be over to deposit& the brewskis./%%" - else - { - global.msg[0] = "* ok^1, i'll send someone& over to fix it./" - global.msg[1] = "* thanks for letting me& know./" - global.msg[2] = "* good communication is& important./%%" - } - break - case 1001: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = " * Check * Console& * Terrorize" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = " * Check * Talk& * Devour * Dinner" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = " * Check * Pick On& * Don't Pick On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = " * Check * Flirt& * Threat * Cheer" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = " * Check * Pet" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = " * Check * Pet& * Pet * Pet & * Pet * Pet " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = " * Check * Agree& * Clash * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = " * Check * Compliment& * Ignore * Steal" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = " * Check * Compliment" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = " * Check * Ditch" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = " * Check * Decorate& * Undecorate * Gift" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = " * Check * Flex& * Shoo" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = " * Check * Flex& * Feed Temmie * Talk& Flakes " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = " * Check * Flirt& * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = " * Check * Clean& * Touch * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = " * Check * Smile& * Hum * Conduct" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = " * Check * Plead& * Challenge" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = " * Check * Cry" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = " * Check * Flirt& * Approach" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = " * Check * Criticize& * Encourage * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = " * Check * Cool Down& * Heat Up * Invite" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = (((("\W * Check * Struggle& * Pay " + string(global.flag[382])) + "G& \YYour Money: ") + string(global.gold)) + "G \W ") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = " * Check * Yell" - if (global.flag[385] > 0) - global.msg[0] = "\W * Check \Y* Yellow \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = " * Check * Fake Attack" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = " * Check * Talk & * Stare * Clear Mind" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = " * Check * Talk & * Sing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = " * Check * Defuse Bomb" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = " * Check * Burn" - if (global.flag[424] > 0) - global.msg[0] = "\W * Check \Y* Turn \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = " * Check * Boast& * Pose * Heel Turn" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = " * Call * Hum& * Scream * Flex& * Unhug * Cry" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = " * Check * Pick On& * Mystify * Clean& * Hum * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = " * Check * ITEM & * STAT * CELL" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = " * Check * Join& * Refuse" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = " * Fake Hit * Recipe& * Smile * Clash" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = " * Encourage * Call & * Nerd Out * Quiz" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = " * Joke * Puzzle & * Recipe * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = " * Take break * Joke & * Judgment * Crossword" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = " * Talk * Mercy & * Hug * Preference" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = " * Talk * Mercy & * Stare * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = " * Check * Switch& * Fix * Lie Down" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = " * Check * Hiss& * Devour * Snack" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = " * Check * Applaud& * Boo * Nothing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = " * Check * Something" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = " * Check * Draw" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = " * Check * Hope & * Dream" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = " * Error" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = " * Struggle" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = "\W * Undyne " - else - global.msg[0] = "\W \Y* (Saved) \W " - if (global.flag[506] == 0) - global.msg[0] += "* Alphys \W &" - else - global.msg[0] += "\Y* (Saved)\W &" - if (global.flag[507] == 0) - global.msg[0] += "\W * Papyrus * Sans \W &" - else - global.msg[0] += "\Y * (Saved) * (Saved)\W &" - if (global.flag[508] == 0) - global.msg[0] += "\W * Toriel * Asgore \W " - else - global.msg[0] += "\Y * (Saved) * (Saved)\W " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = " * Someone else" - if (global.flag[501] == 3) - global.msg[0] = " * Asriel Dreemurr" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = "* Dialing..\E0.\TT /" - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You only wanted to& say hello...^2?&* Well then./" - global.msg[4] = "\E0* 'Hello!'/" - global.msg[5] = "* I hope that suffices^1.&* Hee hee./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 2) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You want to say& hello again?/" - global.msg[4] = "* 'Salutations!'/" - global.msg[5] = "* Is that enough?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Are you bored^1?&* I should have given& a book to you./" - global.msg[4] = "* My apologies./" - global.msg[5] = "* Why not use your& imagination to& divert yourself?/" - global.msg[6] = "* Pretend you are..^1.&* A monarch!/" - global.msg[7] = "* Rule over the leaf pile& with a fist of iron./" - global.msg[8] = "* Can you do that for me?/" - global.msg[9] = "\TS \F0 \T0 %" - global.msg[10] = "* Click.../%%" - } - if (global.flag[40] > 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Hello^1, my child./" - global.msg[4] = "\E1* Sorry^1, I do not have& much to say./" - global.msg[5] = "\E0* It was nice to hear& your voice^1, though^1./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - break - case 1502: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* Help with a puzzle^1.^1.^1.?/" - global.msg[4] = "* Um^1, you have not& left the room^1, have you?/" - global.msg[5] = "\E0* Wait patiently for& me and we can solve& it together!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1503: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* You want to know& more about me?/" - global.msg[4] = "* Well^1, I am afraid there& is not much to say./" - global.msg[5] = "\E0* I am just a silly little& lady who worries too& much!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1504: - global.flag[42] = 1 - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E8* Huh^2?&* Did you just call& me... " + chr(34) + "Mom" + chr(34) + "?/" - global.msg[4] = "\E1* Well...&* I suppose.../" - global.msg[5] = "* Would that make you& happy?/" - global.msg[6] = "* To call me..^2.&* " + chr(34) + "Mother?" + chr(34) + "/" - global.msg[7] = "\E0* Well then^1, call me& whatever you like!/!" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E8* ...^2 huh???/" - global.msg[3] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[4] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[5] = "* You can certainly find& better than an old woman& like me./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[41] == 2) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E1* Oh dear,^1 are you& serious...?/" - global.msg[3] = "\E1* I do not know if this is& pathetic,^1 or endearing./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - if (global.flag[42] == 1) - { - global.msg[3] = "\E8* And after you said you& want to call& me " + chr(34) + "mother..." + chr(34) + "/" - global.msg[4] = "\E0* You are an...^2 & \E1... " + chr(34) + "interesting" + chr(34) + "& child./" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* But nobody came./%%" - } - else - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* Nobody picked up./%%" - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* The ringing is coming from& inside your inventory./%%" - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = "* Dialing...\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hey^1, you silly& child./" - global.msg[3] = "* If you want to& talk to me^1, I am& right here./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - break - case 1508: - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* (Somewhere^1, signals deflected& by a dog.)/%%" - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = "* (No response.^1)&* (Their phone might be out& of batteries.)/%%" - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = "* (The box is aclog with the& the hair of a dog.)/%%" - break - case 2001: - global.msg[0] = "\E2* Welcome to your new& home,^1 innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of& the RUINS./%" - break - case 2002: - global.faceplate = 1 - global.msg[0] = "\E8* ...^2 huh???/" - global.msg[1] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[2] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[3] = "* You can certainly find& better than an old woman& like me./%" - break - case 3002: - global.msg[0] = "* You encountered the Dummy." - global.msg[1] = "%%%" - break - case 3003: - global.msg[0] = "* Froggit attacks you!" - global.msg[1] = "%%%" - break - case 3004: - global.msg[0] = "* Froggit hopped close!" - global.msg[1] = "%%%" - break - case 3005: - global.msg[0] = "* Whimsun approached meekly!" - global.msg[1] = "%%%" - break - case 3006: - global.msg[0] = "* Froggit and Whimsun drew near!" - global.msg[1] = "%%%" - break - case 3007: - global.msg[0] = "* Moldsmal blocked the way!" - global.msg[1] = "%%%" - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 18d1db209..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/cd48b89b6ac6b2d3977f2f82726e5f12/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index c5aa48faf..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,949 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if (os_type == os_ps4 || os_type == os_switch) - { - var gamepad_text = (global.lang == "en" ? "Button" : "ボタン") - var buttonXPos = ((os_type == os_switch && global.lang == "en") ? (xx + 445) : (xx + 435)) - var buttonYPos = (os_type == os_switch ? ((yy + 100) + _yOffset) : ((yy + 95) + _yOffset)) - if obj_gamecontroller.gamepad_active - draw_text(buttonXPos, buttonYPos, gamepad_text) - } - else if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 95) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0) - _xPos -= 3 - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index c78ee795e..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1271 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - if (new_gamepad_key == 32775) - obj_gamecontroller.gamepad_shoulderlb_reassign = 1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_write_real("SHOULDERLB_REASSIGN", "SHOULDERLB_REASSIGN", obj_gamecontroller.gamepad_shoulderlb_reassign) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 1a8bb3323..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,494 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - if instance_exists(obj_overworldc) - { - if (!menuOpened) - { - menuOpened = 1 - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - else - menuOpened = 0 - } - else - { - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Main/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml deleted file mode 100644 index 8dc0deced..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_DEVICE_CHOICE_Step_0.gml +++ /dev/null @@ -1,190 +0,0 @@ -if (fadebuffer > 0) - ONEBUFFER = 1 -if (TYPE > 0) -{ - if (fadebuffer < 0 && FINISH == false) - { - var dx = 0 - var dy = 0 - if right_p() - dx = 1 - if left_p() - dx = -1 - if down_p() - dy = 1 - if up_p() - dy = -1 - if (dx != 0 && XMAX > 0) - { - var found = 0 - do { - CURX = (((CURX + (XMAX + 1)) + dx) % (XMAX + 1)) - var ccc = NAME[CURX, CURY] - if (ccc != " " && ccc != " " && ccc != ">" && ccc != "<") - found = 1 - } until found; - - } - else if (dy != 0 && YMAX > 0) - { - found = 0 - do { - CURY = (((CURY + (YMAX + 1)) + dy) % (YMAX + 1)) - var move = 1 - ccc = "" - while move - { - ccc = NAME[CURX, CURY] - if (ccc == ">") - CURX += 1 - else if (ccc == "<") - CURX -= 1 - else - move = 0 - } - if (ccc != " " && ccc != " ") - found = 1 - } until found; - - } - } -} -else if (fadebuffer < 0 && FINISH == false) -{ - if right_p() - CURX = 1 - if left_p() - CURX = 0 -} -if (TYPE >= 0 && TYPE <= 2) -{ - DRAWHEART = 1 - if (CURX >= 0) - { - IDEALX = NAMEX[CURX, CURY] - IDEALY = NAMEY[CURX, CURY] - if (TYPE == 0) - { - scr_84_set_draw_font("main") - IDEALX += ((string_width(NAME[CURX, CURY]) / 2) - 10) - } - } - else - { - IDEALX = 150 - IDEALY = 180 - } - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.3) - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.3) - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - if (FINISH == false) - { - if (button1_p() && CURX >= 0 && ONEBUFFER < 0) - { - global.choice = CURX - if (TYPE == 2) - global.choice = CURY - FINISH = true - ONEBUFFER = 99 - } - } -} -if (TYPE == 3) -{ - DRAWHEART = 1 - var str = NAME[CURX, CURY] - var cmd = "" - if (string_length(str) > 1) - { - cmd = string_char_at(str, 2) - str = string_copy(str, 4, (string_length(str) - 3)) - } - scr_84_set_draw_font("main") - IDEALX = ((NAMEX[CURX, CURY] + (string_width(str) / 2)) - 10) - IDEALY = (NAMEY[CURX, CURY] - 2) - if (abs((HEARTX - IDEALX)) <= 2) - HEARTX = IDEALX - if (abs((HEARTY - IDEALY)) <= 2) - HEARTY = IDEALY - HEARTDIFF = ((IDEALX - HEARTX) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTX += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTX = IDEALX - DRAWHEART = 1 - } - HEARTDIFF = ((IDEALY - HEARTY) * 0.5) - if (abs(HEARTDIFF) > 60) - DRAWHEART = 0 - HEARTY += HEARTDIFF - if (DRAWHEART == 0) - { - HEARTY = IDEALY - DRAWHEART = 1 - } - ERASE = false - if (FINISH == false) - { - if button2_p() - ERASE = true - if (button1_p() && ONEBUFFER < 0) - { - if (cmd == "") - { - if (string_length(NAMESTRING) < STRINGMAX) - NAMESTRING += NAME[CURX, CURY] - } - if (cmd == "B") - ERASE = true - if (cmd == "1" || cmd == "2" || cmd == "3") - { - var new_type = real(cmd) - if (LANGSUBTYPE != new_type) - { - LANGSUBTYPE = new_type - scr_84_name_input_setup() - } - } - if (cmd == "E" && ONEBUFFER < 0 && string_length(NAMESTRING) >= 1) - { - ONEBUFFER = 99 - FINISH = true - global.choice = 1 - } - } - } - if (ERASE == true && FINISH == false) - { - if (string_length(NAMESTRING) > 0) - NAMESTRING = string_delete(NAMESTRING, string_length(NAMESTRING), 1) - } -} -ONEBUFFER -= 1 -if (FINISH == false) - fadebuffer -= 1 -if (FINISH == true) -{ - global.flag[20] = 1 - if (fadebuffer < 0) - fadebuffer = 0 - fadebuffer += 1 - if (fadebuffer >= 10) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml deleted file mode 100644 index 020a546fd..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_DEVICE_FAILURE_Step_0.gml +++ /dev/null @@ -1,150 +0,0 @@ -if (EVENT == 1) -{ - snd_free_all() - global.currentsong[0] = snd_init("AUDIO_DRONE.ogg") - global.currentsong[1] = mus_loop(global.currentsong[0]) - global.typer = 667 - global.fc = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_10_0") - EVENT = 2 - W = instance_create(70, 80, obj_writer) - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - } -} -if (EVENT == 0) - EVENT = 1 -if (EVENT == 2 && (!instance_exists(obj_writer))) -{ - JA_XOFF = 0 - if (global.lang == "ja") - JA_XOFF = 44 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_28_0") - if (global.tempflag[3] >= 1) - { - JA_XOFF = 0 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_32_0") - } - EVENT = 3 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - alarm[4] = 15 - W = instance_create((40 + JA_XOFF), 80, obj_writer) -} -if (EVENT == 4) -{ - choice = instance_create(100, 120, DEVICE_CHOICE) - EVENT = 5 -} -if (EVENT == 5) -{ - if (global.choice == 0) - { - with (obj_writer) - instance_destroy() - EVENT = 6 - } - if (global.choice == 1) - { - with (obj_writer) - instance_destroy() - EVENT = 26 - } -} -if (EVENT == 6) -{ - snd_free_all() - global.flag[6] = 1 - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_68_0") - W = instance_create(50, 80, obj_writer) - EVENT = 7 - alarm[4] = 30 - if (global.tempflag[3] >= 1) - { - with (obj_writer) - instance_destroy() - alarm[4] = 1 - } -} -if (EVENT == 8) -{ - WHITEFADE = 1 - FADEUP = 0.01 - EVENT = 9 - alarm[4] = 120 - if (global.tempflag[3] >= 1) - { - FADEUP = 0.03 - alarm[4] = 45 - } - global.tempflag[3] += 1 -} -if (EVENT == 10) -{ - scr_windowcaption(scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_95_0")) - scr_tempload() - EVENT = 11 -} -if (EVENT == 26) -{ - snd_free_all() - global.msg[0] = scr_84_get_lang_string("DEVICE_FAILURE_slash_Step_0_gml_103_0") - EVENT = 27 - W = instance_create(60, 80, obj_writer) -} -if (EVENT == 27 && (!instance_exists(obj_writer))) -{ - global.currentsong[0] = snd_init("AUDIO_DARKNESS.ogg") - global.currentsong[1] = mus_play(global.currentsong[0]) - EVENT = 28 - DARK_WAIT = 0 -} -if (EVENT == 28) -{ - DARK_WAIT += 1 - if (DARK_WAIT >= 2040) - ossafe_game_end() - if (!snd_is_playing(global.currentsong[1])) - ossafe_game_end() - if (os_type == os_ps4 || os_type == os_switch) - { - if (DARK_WAIT >= 90 && (!restart)) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - if (gamepad_controls[i] == global.button0 || gamepad_controls[i] == global.button1 || gamepad_controls[i] == global.button2 || gamepad_controls[i] == 32775) - { - mus_volume(global.currentsong[1], 0, 80) - restart = 1 - break - } - } - } - } - if restart - { - restart_timer++ - if (restart_timer >= 100) - ossafe_game_end() - } - } -} -if (EVENT >= 0 && EVENT <= 4) -{ - if button2_h() - { - with (obj_writer) - { - if (pos < (length - 3)) - pos += 2 - if (specfade <= 0.9) - specfade -= 0.1 - if (rate <= 1) - rate = 1 - } - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_84_lang_helper_Create_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_84_lang_helper_Create_0.gml deleted file mode 100644 index 8fbd8e2f8..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_84_lang_helper_Create_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -var __layers = layer_get_all() -var __numlayers = array_length_1d(__layers) -for (var __i = 0; __i < __numlayers; __i++) -{ - var __layer_id = __layers[__i] - var __els = layer_get_all_elements(__layer_id) - var __numels = array_length_1d(__els) - var __name = layer_get_name(__layer_id) - var __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - var __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - { - layer_set_visible(__layer_id, 0) - continue - } - } - for (var __j = 0; __j < __numels; __j++) - { - var __id = __els[__j] - var __eltype = layer_get_element_type(__id) - if (__eltype == 2) - { - } - else if (__eltype == 4) - { - var __spr = layer_sprite_get_sprite(__id) - __name = sprite_get_name(__spr) - show_debug_message((((" sprite: " + string(__j)) + ": ") + __name)) - __pos = string_pos("_lang_", __name) - if (__pos > 0 && string_length(__name) > (__pos + 8)) - { - __lang = string_copy(__name, (__pos + 6), 2) - if (__lang != global.lang) - layer_sprite_destroy(__id) - } - } - else if (__eltype == 1) - show_debug_message((" background: " + string(__j))) - else if (__eltype == 5) - show_debug_message((" tilemap: " + string(__j))) - else if (__eltype == 6) - show_debug_message((" particlesystem: " + string(__j))) - else if (__eltype == 7) - { - } - else - show_debug_message((" unknown: " + string(__j))) - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml deleted file mode 100644 index f9298564a..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_cloverpuzzle_event_Create_0.gml +++ /dev/null @@ -1,48 +0,0 @@ -con = 99 -pcon = 0 -ptimer = 0 -puzzle = instance_create(500, 440, obj_suitspuzz) -with (puzzle) -{ - max_suit = 3 - drawclue = 0 - sol[0] = 9 - sol[1] = 9 - sol[2] = 9 - sol[3] = 9 -} -if (global.plot < 75) - con = 0 -else -{ -} -spiken[0] = scr_dark_marker(520, 280, spr_spiketile) -spiken[1] = scr_dark_marker(560, 280, spr_spiketile) -with (spiken[0]) - depth = 970000 -with (spiken[1]) - depth = 970000 -if (global.flag[234] == 0) -{ - blockn = instance_create(520, 280, obj_soliddark) - with (blockn) - image_xscale = 2 -} -else -{ - with (spiken[0]) - image_index = 1 - with (spiken[1]) - image_index = 1 -} -if (global.flag[235] == 0) -{ - blocke = instance_create(1040, 400, obj_soliddark) - with (blocke) - instance_destroy() - with (blocke) - image_yscale = 2 -} -else -{ -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Create_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Create_0.gml deleted file mode 100644 index 5ec2ad0f6..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Create_0.gml +++ /dev/null @@ -1,126 +0,0 @@ -cur_jewel = 0 -alarm[0] = 1 -charcon = 0 -chartimer = 0 -tp = 0 -xx = __view_get(0, 0) -yy = __view_get(1, 0) -global.fighting = false -movenoise = false -selectnoise = false -cancelnoise = 0 -onebuffer = 0 -twobuffer = 0 -threebuffer = 0 -upbuffer = 0 -downbuffer = 0 -hold_up = 0 -hold_down = 0 -dograndom = 0 -atalk = 0 -deschaver = 0 -bcolor = merge_color(c_purple, c_black, 0.7) -bcolor = merge_color(bcolor, c_dkgray, 0.5) -chartotal = 0 -havechar[0] = false -havechar[1] = false -havechar[2] = false -global.charturn = 3 -tp = 0 -tpy = 50 -bp = 0 -bpy = 152 -mmy[0] = 0 -mmy[1] = 0 -mmy[2] = 0 -global.submenu = 0 -global.charselect = -1 -for (var i = 0; i < 36; i += 1) - global.submenucoord[i] = 0 -global.cinstance[0] = 4343434343 -global.cinstance[1] = 343434343434 -for (i = 0; i < 3; i += 1) -{ - global.faceaction[i] = 0 - if (global.char[i] != 0) - chartotal += 1 - if (global.char[i] == 1) - { - havechar[0] = true - charpos[0] = i - } - if (global.char[i] == 2) - { - havechar[1] = true - charpos[1] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 6), (obj_mainchara.y - 16), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - } - } - if (global.char[i] == 3) - { - havechar[2] = true - charpos[2] = i - if (i > 0) - { - global.cinstance[(i - 1)] = instance_create((obj_mainchara.x - 4), (obj_mainchara.y - 12), obj_caterpillarchara) - global.cinstance[(i - 1)].target = (i * 12) - with (global.cinstance[(i - 1)]) - { - usprite = spr_ralseiu - dsprite = spr_ralseid - rsprite = spr_ralseir - lsprite = spr_ralseil - } - } - } -} -slmxx = 0 -slmyy = 0 -s_siner = 0 -menusiner = 0 -pagemax[0] = 0 -pagemax[1] = 0 -getmusvol = 1 -curvol = 1 -hpcolor[0] = c_aqua -hpcolor[1] = c_fuchsia -hpcolor[2] = c_lime -gamepad_controls = [32769, 32770, 32771, 32772, 32773, 32775, 32774, 32776, 32777, 32778, 32779, 32780, 32781, 32782, 32783, 32784] -border_text = (global.lang == "en" ? "Border" : "フレーム") -border_options = (global.lang == "en" ? ["Dynamic", "Simple", "None"] : ["ダイナミック", "シンプル", "なし"]) -var border_options_en = ["Dynamic", "Simple", "None"] -var border_options_ja = ["ダイナミック", "シンプル", "なし"] -if (global.lang == "ja") -{ - for (i = 0; (i < array_length_1d(border_options_en)); i++) - { - if (border_options_en[i] == global.screen_border_id) - { - global.screen_border_id = border_options_ja[i] - break - } - } -} -else -{ - for (i = 0; (i < array_length_1d(border_options_ja)); i++) - { - if (border_options_ja[i] == global.screen_border_id) - { - global.screen_border_id = border_options_en[i] - break - } - } -} -selected_border = 0 -for (i = 0; i < array_length_1d(border_options); i++) -{ - if (border_options[i] == global.screen_border_id) - { - selected_border = i - break - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Draw_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Draw_0.gml deleted file mode 100644 index c5aa48faf..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Draw_0.gml +++ /dev/null @@ -1,949 +0,0 @@ -var ch_y; -xx = __view_get(0, 0) -yy = __view_get(1, 0) -tpoff = ((tp - tpy) + yy) -bpoff = (((-bp) + bpy) + yy) -if (drawchar == 1) -{ - draw_set_color(c_black) - draw_rectangle((xx - 10), ((yy + 480) - bp), (xx + 650), (yy + 500), false) - draw_set_color(c_black) - draw_rectangle((xx - 10), (yy + tp), (xx + 650), (yy - 10), false) - scr_charbox() - if (global.menuno == 0) - deschaver = 0 - if (deschaver == 0) - { - draw_sprite_ext(scr_84_get_sprite("spr_darkmenudesc"), global.menucoord[0], (xx + 20), ((yy + tp) - 56), 2, 2, 0, c_white, 1) - msprite[0] = spr_darkitembt - msprite[1] = spr_darkequipbt - msprite[2] = spr_darktalkbt - msprite[3] = spr_darktechbt - msprite[4] = spr_darkconfigbt - for (var i = 0; i < 5; i += 1) - { - off = 1 - if (global.menucoord[0] == i) - off = 0 - if ((global.menuno - 1) == i) - off = 2 - spritemx = 0 - if (i >= 2) - spritemx = -100 - if (i != 2) - draw_sprite_ext(msprite[i], off, (((xx + 120) + (i * 100)) + spritemx), ((yy + tp) - 60), 2, 2, 0, c_white, 1) - } - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 520), ((yy + tp) - 60), string_hash_to_newline((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_47_0") + string(global.gold)))) - } -} -if (global.menuno == 5) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 85), (xx + 580), (yy + 412), false) - scr_darkbox((xx + 50), (yy + 75), (xx + 590), (yy + 422)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - if ((global.submenu >= 30 && global.submenu <= 33) || global.submenu == 36) - { - var _xPos = (global.lang == "en" ? (xx + 170) : (xx + 150)) - var _heartXPos = (global.lang == "en" ? (xx + 145) : (xx + 125)) - var _selectXPos = (global.lang == "en" ? (xx + 430) : (xx + 385)) - draw_set_color(c_white) - draw_text((xx + 270), (yy + 100), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_74_0"))) - audvol = (string(round((global.flag[17] * 100))) + "%") - musvol = (string(abs((global.flag[16] * 100))) + "%") - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_0") - if (global.flag[11] == 1) - runoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_79_1") - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_0") - if (global.flag[8] == 1) - flashoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_80_1") - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_0") - if (global.flag[12] == 1) - shakeoff = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_81_1") - draw_sprite(spr_heart, 0, _heartXPos, ((yy + 160) + (global.submenucoord[30] * 35))) - if (global.submenu == 33) - draw_set_color(c_yellow) - draw_text(_xPos, (yy + 150), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_86_0"))) - draw_text(_selectXPos, (yy + 150), string_hash_to_newline(audvol)) - draw_set_color(c_white) - draw_text(_xPos, (yy + 185), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_91_0"))) - draw_text(_xPos, (yy + 220), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_92_0"))) - draw_text(_selectXPos, (yy + 220), string_hash_to_newline(flashoff)) - draw_text(_xPos, (yy + 255), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_94_0"))) - draw_text(_selectXPos, (yy + 255), string_hash_to_newline(runoff)) - if (global.submenu == 36) - draw_set_color(c_yellow) - else if global.disable_border - draw_set_color(c_gray) - draw_text(_xPos, (yy + 290), border_text) - draw_text(_selectXPos, (yy + 290), border_options[selected_border]) - draw_set_color(c_white) - draw_text(_xPos, (yy + 325), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_96_0"))) - } - if (global.submenu == 34) - { - draw_set_color(c_white) - draw_text((xx + 200), (yy + 150), string_hash_to_newline(scr_84_get_subst_string(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_101_0"), global.asc_def[global.input_k[5]]))) - } - if (global.submenu == 35) - { - var _yOffset = (global.lang == "en" ? 0 : -4) - draw_set_color(c_white) - draw_text((xx + 105), ((yy + 100) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_113_0"))) - if (os_type == os_ps4 || os_type == os_switch) - { - var gamepad_text = (global.lang == "en" ? "Button" : "ボタン") - var buttonXPos = ((os_type == os_switch && global.lang == "en") ? (xx + 445) : (xx + 435)) - var buttonYPos = (os_type == os_switch ? ((yy + 100) + _yOffset) : ((yy + 95) + _yOffset)) - if obj_gamecontroller.gamepad_active - draw_text(buttonXPos, buttonYPos, gamepad_text) - } - else if obj_gamecontroller.gamepad_active - draw_text((xx + 435), ((yy + 95) + _yOffset), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_115_0"))) - function[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_117_0") - function[1] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_118_0") - function[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_119_0") - function[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_120_0") - function[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_121_0") - function[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_122_0") - function[6] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_123_0") - function[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_124_0") - function[8] = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_125_0") - draw_sprite(spr_heart, 0, (xx + 80), (((yy + 150) + (global.submenucoord[35] * 28)) + _yOffset)) - var line_padding = (global.lang == "ja" ? 1 : 0) - for (i = 0; i <= 8; i += 1) - { - draw_set_color(c_white) - if (global.submenucoord[35] == i) - draw_set_color(c_aqua) - if (global.submenucoord[35] == i && control_select_con == 1) - draw_set_color(c_red) - if (i == 7 && control_flash_timer > 0) - draw_set_color(merge_color(c_aqua, c_yellow, ((control_flash_timer / 10) - 0.1))) - draw_text((xx + 105), (((yy + 140) + (i * (28 + line_padding))) + _yOffset), string_hash_to_newline(function[i])) - if (i < 7) - { - if obj_gamecontroller.gamepad_active - { - var _sprite = scr_getbuttonsprite(global.input_g[i], 0) - _xPos = (global.lang == "en" ? (xx + 475) : (xx + 465)) - if (_sprite == button_switch_lStickClick_0 || _sprite == button_switch_rStickClick_0) - _xPos -= 3 - draw_sprite_ext(_sprite, 0, _xPos, (((yy + 140) + (i * (28 + line_padding))) + _yOffset), 2, 2, 0, c_white, 1) - } - } - } - } -} -if (global.menuno == 4) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 60), (yy + 90), (xx + 612), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 622), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 520), ((yy + 216) + 5), false) - draw_rectangle((xx + 294), (yy + 220), ((xx + 294) + 5), ((yy + 220) + 190), false) - if (global.lang == "ja") - draw_rectangle((xx + 60), (yy + 216), ((xx + 60) + 552), ((yy + 216) + 5), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 124), (yy + 84), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 124), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 5, (xx + 380), (yy + 210), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_captions, 6, (xx + 340), (yy + 225), 1, 1, 0, c_white, 1) - coord = global.submenucoord[20] - charcoord = global.char[coord] - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - draw_text((xx + 130), (yy + 105), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 20) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (141 + yy)) - var ch_yoff = (yy + 230) - var ch_vspace = 25 - if (global.lang == "ja") - ch_vspace = 28 - for (var ch_i = 0; ch_i < 6; ch_i++) - ch_y[ch_i] = (ch_yoff + (ch_i * ch_vspace)) - draw_set_color(c_white) - draw_text((xx + 100), ch_y[0], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_207_0"))) - draw_item_icon((xx + 74), (ch_y[0] + 6), 1) - draw_text((xx + 100), ch_y[1], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_208_0"))) - draw_item_icon((xx + 74), (ch_y[1] + 6), 4) - draw_text((xx + 100), ch_y[2], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_209_0"))) - draw_item_icon((xx + 74), (ch_y[2] + 6), 5) - draw_text((xx + 100), ch_y[5], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_212_0"))) - draw_item_icon((xx + 74), (ch_y[5] + 6), 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_214_0") - guts_amount = 0 - fluff_amount = 0 - if (charcoord == 1) - { - guts_amount = 1 - draw_set_color(c_dkgray) - draw_text((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_226_0"))) - if (dograndom >= 99) - { - draw_set_color(c_white) - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_231_0"))) - draw_sprite_ext(spr_dog_sleep, ((-threebuffer) / 30), (xx + 220), (ch_y[3] + 5), 2, 2, 0, c_white, 1) - } - else - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_236_0"))) - draw_set_color(c_white) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_239_0") - if (global.plot >= 30) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_240_0") - if (global.flag[252] == 1) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_241_0") - } - if (charcoord == 2) - { - guts_amount = 2 - rude_amount = 100 - if (global.plot >= 154) - rude_amount = 99 - crude_amount = 100 - if (global.flag[214] == 1) - crude_amount = 101 - draw_text((xx + 100), ch_y[3], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_251_0"))) - draw_item_icon((xx + 74), (ch_y[3] + 6), 13) - if (global.lang == "ja") - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 1, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - else - { - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_252_0")), 0.8, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 13) - } - draw_text((xx + 230), ch_y[3], string_hash_to_newline(rude_amount)) - draw_text((xx + 230), ch_y[4], string_hash_to_newline(crude_amount)) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_255_0") - if (global.plot >= 154) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_256_0") - } - if (charcoord == 3) - { - guts_amount = 0 - fluff_amount = 1 - kindness_amount = 100 - kind_icon = 10 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_265_0") - if (dograndom >= 99) - { - kind_icon = 11 - kind_text = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_269_0") - kindness_amount = 1 - } - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_272_0") - if (global.charweapon[3] == 9) - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_275_0") - if (global.charweapon[3] == 10) - { - char_desc = scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_279_0") - fluff_amount += 1 - } - draw_text((xx + 100), ch_y[3], string_hash_to_newline(kind_text)) - draw_item_icon((xx + 74), (ch_y[3] + 6), kind_icon) - draw_text((xx + 230), ch_y[3], string_hash_to_newline(kindness_amount)) - fluff_xscale = 0.8 - if (global.lang == "ja") - fluff_xscale = 1 - draw_text_transformed((xx + 100), ch_y[4], string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_286_0")), fluff_xscale, 1, 0) - draw_item_icon((xx + 74), (ch_y[4] + 6), 12) - for (i = 0; i < fluff_amount; i += 1) - draw_item_icon(((xx + 230) + (i * 20)), (ch_y[4] + 6), 12) - } - draw_text((xx + 320), (yy + 105), string_hash_to_newline(char_desc)) - guts_xoff = 0 - if (global.lang == "ja") - guts_xoff = 16 - for (i = 0; i < guts_amount; i += 1) - draw_item_icon((((xx + 190) + (i * 20)) + guts_xoff), (ch_y[5] + 6), 9) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - draw_text((xx + 230), ch_y[0], string_hash_to_newline(atsum)) - draw_text((xx + 230), ch_y[1], string_hash_to_newline(dfsum)) - draw_text((xx + 230), ch_y[2], string_hash_to_newline(magsum)) - spell_xoff = 0 - if (global.lang == "ja") - spell_xoff = -10 - for (i = 0; i < 6; i += 1) - { - if (global.spell[charcoord, i] > 0) - { - g = 0 - if (global.spellusable[charcoord, i] == false) - g = 1 - if (global.spellcost[charcoord, i] > global.tension) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_text((xx + 340), ch_y[i], string_hash_to_newline((string(round(((global.spellcost[charcoord, i] / global.maxtension) * 100))) + "%"))) - draw_text(((xx + 410) + spell_xoff), ch_y[i], string_hash_to_newline(global.spellname[charcoord, i])) - } - } - if (global.submenu == 21) - draw_sprite(spr_heart, 0, (xx + 320), ((yy + 240) + (global.submenucoord[21] * ch_vspace))) - if (deschaver == 1) - { - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(global.spelldesc[charcoord, global.submenucoord[21]])) - } -} -if (global.menuno == 2) -{ - draw_set_color(c_black) - ch_vspace = 27 - if (global.lang == "ja") - { - ch_vspace = 28 - draw_rectangle((xx + 60), (yy + 90), (xx + 626), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 636), (yy + 420)) - } - else - { - draw_rectangle((xx + 60), (yy + 90), (xx + 580), (yy + 410), false) - scr_darkbox((xx + 50), (yy + 80), (xx + 590), (yy + 420)) - } - draw_set_color(c_white) - draw_rectangle((xx + 270), (yy + 91), (xx + 275), ((yy + 91) + 135), false) - draw_rectangle((xx + 59), (yy + 221), ((xx + 59) + 523), ((yy + 221) + 5), false) - if (global.lang == "ja") - draw_rectangle((xx + 59), (yy + 221), ((xx + 63) + 565), ((yy + 221) + 5), false) - draw_rectangle((xx + 318), (yy + 221), ((xx + 318) + 5), ((yy + 221) + 190), false) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 0, (xx + 118), (yy + 86), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 1, (xx + 376), (yy + 86), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 2, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - else - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 3, (xx + 372), (yy + 216), 2, 2, 0, c_white, 1) - draw_sprite_ext(scr_84_get_sprite("spr_dmenu_captions"), 4, (xx + 116), (yy + 216), 2, 2, 0, c_white, 1) - coord = global.submenucoord[10] - charcoord = global.char[coord] - menusiner += 1 - draw_set_color(c_white) - scr_84_set_draw_font("mainbig") - charname_xoff = 0 - if (global.lang == "ja") - charname_xoff = -25 - draw_text(((xx + 135) + charname_xoff), (yy + 107), string_hash_to_newline(global.charname[charcoord])) - for (i = 0; i < 3; i += 1) - { - chosen = 0.4 - if (i == coord) - chosen = 1 - draw_sprite_ext(spr_equipchar, global.char[i], ((90 + xx) + (i * 50)), (160 + yy), 2, 2, 0, c_white, chosen) - } - if (global.submenu == 10) - draw_sprite(spr_heart_harrows, (menusiner / 20), ((100 + xx) + (coord * 50)), (142 + yy)) - if (global.submenu != 11) - { - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 122)) - else - draw_sprite_ext(spr_dmenu_equip, (charcoord - 1), (xx + 302), (yy + 108), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 1) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 152)) - else - draw_sprite_ext(spr_dmenu_equip, 3, (xx + 302), (yy + 142), 2, 2, 0, c_white, 1) - if (global.submenucoord[11] == 2) - draw_sprite(spr_heart, 0, (xx + 308), (yy + 182)) - else - draw_sprite_ext(spr_dmenu_equip, 4, (xx + 302), (yy + 172), 2, 2, 0, c_white, 1) - } - if ((!charweaponname[charcoord]) == " ") - { - draw_text((xx + 365), (yy + 112), string_hash_to_newline(charweaponname[charcoord])) - draw_item_icon((xx + 343), (yy + 118), charweaponicon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 112), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_423_0"))) - draw_set_color(c_white) - } - if (global.chararmor1[charcoord] != 0) - { - draw_text((xx + 365), (yy + 142), string_hash_to_newline(chararmor1name[charcoord])) - draw_item_icon((xx + 343), (yy + 148), chararmor1icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 142), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_435_0"))) - draw_set_color(c_white) - } - if (global.chararmor2[charcoord] != 0) - { - draw_text((xx + 365), (yy + 172), string_hash_to_newline(chararmor2name[charcoord])) - draw_item_icon((xx + 343), (yy + 178), chararmor2icon[charcoord]) - } - else - { - draw_set_color(c_dkgray) - draw_text((xx + 365), (yy + 172), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_447_0"))) - draw_set_color(c_white) - } - eq_xoff = 0 - if (global.lang == "ja") - eq_xoff = -6 - if (global.submenucoord[11] == 0) - { - j = 0 - for (i = pagemax[0]; i < (6 + pagemax[0]); i += 1) - { - g = 0 - if (charcoord == 1 && weaponchar1[i] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[i] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), weaponicon[i]) - if (global.weapon[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(weaponname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenucoord[11] == 1 || global.submenucoord[11] == 2) - { - j = 0 - for (i = pagemax[1]; i < (6 + pagemax[1]); i += 1) - { - g = 0 - if (charcoord == 1 && armorchar1[i] == 0) - g = 1 - if (charcoord == 2 && armorchar2[i] == 0) - g = 1 - if (charcoord == 3 && armorchar3[i] == 0) - g = 1 - if (g == 0) - draw_set_color(c_white) - if (g == 1) - draw_set_color(c_gray) - draw_item_icon(((xx + 364) + eq_xoff), ((yy + 236) + (j * ch_vspace)), armoricon[i]) - if (global.armor[i] != 0) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline(armorname[i])) - else - { - draw_set_color(c_dkgray) - draw_text(((xx + 384) + eq_xoff), ((yy + 230) + (j * ch_vspace)), string_hash_to_newline("---------")) - } - j += 1 - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - scroll_xoff = 0 - if (global.lang == "ja") - scroll_xoff = 54 - if (global.submenu == 12) - pm = 0 - else - pm = 1 - draw_sprite(spr_heart, 0, ((xx + 344) + eq_xoff), ((yy + 240) + ((global.submenucoord[global.submenu] - pagemax[pm]) * ch_vspace))) - draw_set_color(c_white) - for (i = 0; i < 12; i += 1) - { - buff = 0 - if (global.submenucoord[global.submenu] == i) - buff += 3 - if (pm == 0) - { - if (global.weapon[i] == 0) - buff -= 1 - } - if (pm == 1) - { - if (global.armor[i] == 0) - buff -= 1 - } - draw_rectangle((((xx + 555) - buff) + scroll_xoff), (((yy + 260) + (i * 10)) - buff), (((xx + 558) + buff) + scroll_xoff), (((yy + 263) + (i * 10)) + buff), false) - } - if (pagemax[pm] > 0) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 250) - (sin((cur_jewel / 12)) * 3)), 1, -1, 0, c_white, 1) - if ((5 + pagemax[pm]) < 11) - draw_sprite_ext(spr_morearrow, 0, ((xx + 551) + scroll_xoff), ((yy + 385) + (sin((cur_jewel / 12)) * 3)), 1, 1, 0, c_white, 1) - } - draw_set_color(c_white) - if (global.submenu == 11) - { - if (global.submenucoord[11] == 0) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(charweapondesc[charcoord])) - if (global.submenucoord[11] == 1) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor1desc[charcoord])) - if (global.submenucoord[11] == 2) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(chararmor2desc[charcoord])) - } - if (global.submenu == 12) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(weapondesc[global.submenucoord[12]])) - if (global.submenu == 13 || global.submenu == 14) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(armordesc[global.submenucoord[global.submenu]])) - draw_set_color(c_white) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_556_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 0)), 1) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_557_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 1)), 4) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_558_0"))) - draw_item_icon((xx + 74), ((yy + 236) + (ch_vspace * 2)), 5) - atsum = (((global.at[global.char[coord]] + global.itemat[global.char[coord], 0]) + global.itemat[global.char[coord], 1]) + global.itemat[global.char[coord], 2]) - dfsum = (((global.df[global.char[coord]] + global.itemdf[global.char[coord], 0]) + global.itemdf[global.char[coord], 1]) + global.itemdf[global.char[coord], 2]) - magsum = (((global.mag[global.char[coord]] + global.itemmag[global.char[coord], 0]) + global.itemmag[global.char[coord], 1]) + global.itemmag[global.char[coord], 2]) - grazesum = global.grazeamt - sizesum = global.grazesize - for (i = 0; i < 3; i += 1) - { - for (j = 0; j < 3; j += 1) - { - if (global.char[i] != 0) - { - grazesum += global.itemgrazeamt[global.char[i], j] - sizesum += global.itemgrazesize[global.char[i], j] - } - } - } - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - cur = global.submenucoord[global.submenu] - g = 0 - if (global.submenu == 12) - { - if (charcoord == 1 && weaponchar1[cur] == 0) - g = 1 - if (charcoord == 2 && weaponchar2[cur] == 0) - g = 1 - if (charcoord == 3 && weaponchar3[cur] == 0) - g = 1 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (charcoord == 1 && armorchar1[cur] == 0) - g = 1 - if (charcoord == 2 && armorchar2[cur] == 0) - g = 1 - if (charcoord == 3 && armorchar3[cur] == 0) - g = 1 - } - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_dkgray - _abilitycolor[1] = c_dkgray - _abilitycolor[2] = c_dkgray - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - if (g == 0 && global.submenu == 12) - { - atup = (weaponat[cur] - global.itemat[charcoord, 0]) - dfup = (weapondf[cur] - global.itemdf[charcoord, 0]) - magup = (weaponmag[cur] - global.itemmag[charcoord, 0]) - styleup = weaponstyle[cur] - grazeup = (weapongrazeamt[cur] - global.itemgrazeamt[charcoord, 0]) - sizeup = (weapongrazesize[cur] - global.itemgrazesize[charcoord, 0]) - _abilitycolor[0] = c_white - _abilityicon[0] = weaponabilityicon[cur] - if (weaponability[cur] != _abilitytext[0]) - { - _abilitycolor[0] = c_yellow - if (weaponability[cur] == " ") - _abilitycolor[0] = c_red - } - _abilitytext[0] = weaponability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - if (global.lang == "ja") - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(string((atsum + atup)))) - else - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((((string((atsum + atup)) + scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_643_0")) + string(atup)) + ")"))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - if (g == 0) - { - if (global.submenu == 13 || global.submenu == 14) - { - arno = (global.submenu - 12) - atup = (armorat[cur] - global.itemat[charcoord, arno]) - dfup = (armordf[cur] - global.itemdf[charcoord, arno]) - magup = (armormag[cur] - global.itemmag[charcoord, arno]) - grazeup = (armorgrazeamt[cur] - global.itemgrazeamt[charcoord, arno]) - sizeup = (armorgrazesize[cur] - global.itemgrazesize[charcoord, arno]) - _abilitycolor[arno] = c_white - _abilityicon[arno] = armorabilityicon[cur] - if (armorability[cur] != _abilitytext[arno]) - { - _abilitycolor[arno] = c_yellow - if (armorability[cur] == " ") - _abilitycolor[arno] = c_red - } - _abilitytext[arno] = armorability[cur] - draw_set_color(c_white) - if (atup > 0) - draw_set_color(c_yellow) - if (atup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline((atsum + atup))) - draw_set_color(c_white) - if (dfup > 0) - draw_set_color(c_yellow) - if (dfup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline((dfsum + dfup))) - draw_set_color(c_white) - if (magup > 0) - draw_set_color(c_yellow) - if (magup < 0) - draw_set_color(c_red) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline((magsum + magup))) - } - } - if (g == 1) - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - } - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_736_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } - else - { - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 0)), string_hash_to_newline(atsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 1)), string_hash_to_newline(dfsum)) - draw_text((xx + 230), ((yy + 230) + (ch_vspace * 2)), string_hash_to_newline(magsum)) - _abilitytext[0] = charweaponability[charcoord] - _abilitytext[1] = chararmor1ability[charcoord] - _abilitytext[2] = chararmor2ability[charcoord] - _abilitycolor[0] = c_white - _abilitycolor[1] = c_white - _abilitycolor[2] = c_white - _abilityicon[0] = charweaponabilityicon[charcoord] - _abilityicon[1] = chararmor1abilityicon[charcoord] - _abilityicon[2] = chararmor2abilityicon[charcoord] - for (i = 0; i < 3; i += 1) - { - if (_abilitytext[i] == " ") - { - draw_set_color(c_dkgray) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_773_0"))) - } - else - { - draw_set_color(_abilitycolor[i]) - draw_text((xx + 100), ((yy + 230) + (ch_vspace * (i + 3))), string_hash_to_newline(_abilitytext[i])) - draw_set_color(c_orange) - draw_item_icon((xx + 74), (((yy + 230) + (ch_vspace * (i + 3))) + 8), _abilityicon[i]) - } - } - } -} -if (global.menuno == 1) -{ - draw_set_color(c_black) - if (global.lang == "ja") - { - draw_rectangle((xx + 46), (yy + 90), (xx + 594), (yy + 360), false) - scr_darkbox((xx + 36), (yy + 80), (xx + 604), (yy + 370)) - } - else - { - draw_rectangle((xx + 70), (yy + 90), (xx + 570), (yy + 360), false) - scr_darkbox((xx + 60), (yy + 80), (xx + 580), (yy + 370)) - } - scr_84_set_draw_font("mainbig") - scr_itemname() - if (global.lang == "ja") - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 134) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 158), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 278), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 398), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - else - { - if (global.submenu == 1) - draw_sprite(spr_heart, 0, ((xx + 155) + (120 * global.submenucoord[1])), (yy + 120)) - draw_set_color(c_white) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 0) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 180), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_807_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 1) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 300), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_809_0"))) - if (global.submenu > 1) - { - if (global.submenucoord[1] == 2) - draw_set_color(c_orange) - else - draw_set_color(c_gray) - } - draw_text((xx + 420), (yy + 110), string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_811_0"))) - } - if (global.submenu >= 2 && global.submenu <= 6 && global.submenu != 4) - { - sm = global.submenucoord[2] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - if (global.submenu == 2 || global.submenu == 3) - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(itemdesc[global.submenucoord[2]])) - } - if (global.submenu == 7) - { - draw_set_color(c_white) - if (global.lang == "ja") - draw_text((xx + 20), (yy + 10), (global.itemname[global.submenucoord[2]] + string_hash_to_newline(scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0")))) - else - draw_text((xx + 20), (yy + 10), string_hash_to_newline(((scr_84_get_lang_string("obj_darkcontroller_slash_Draw_0_gml_829_0") + global.itemname[global.submenucoord[2]]) + "?"))) - } - if (global.submenucoord[1] != 2) - { - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[(i * 2)])) - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(global.itemname[((i * 2) + 1)])) - } - } - } - if (global.submenucoord[1] == 2) - { - scr_keyiteminfo_all() - if (global.lang == "ja") - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 94), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 92), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - else - { - draw_set_color(bcolor) - for (i = 0; i < 6; i += 1) - { - draw_text((xx + 148), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - draw_text((xx + 358), ((yy + 154) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - draw_set_color(c_white) - if (global.submenu == 1) - draw_set_color(c_gray) - for (i = 0; i < 6; i += 1) - { - if (global.submenu == 4) - { - if (keyitemusable[(i * 2)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 146), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[(i * 2)])) - if (global.submenu == 4) - { - if (keyitemusable[((i * 2) + 1)] == 1) - draw_set_color(c_white) - else - draw_set_color(c_silver) - } - draw_text((xx + 356), ((yy + 152) + (30 * i)), string_hash_to_newline(keyitemname[((i * 2) + 1)])) - } - } - if (global.submenu == 4) - { - sm = global.submenucoord[4] - yheart = (((floor((sm / 2)) * 30) + 162) + yy) - if (global.lang == "ja") - { - xheart = (72 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (334 + xx) - } - else - { - xheart = (120 + xx) - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - xheart = (330 + xx) - } - draw_sprite(spr_heart, 0, xheart, yheart) - draw_set_color(c_white) - draw_text((xx + 20), (yy + 10), string_hash_to_newline(keyitemdesc[global.submenucoord[4]])) - } - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Step_0.gml deleted file mode 100644 index c78ee795e..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_darkcontroller_Step_0.gml +++ /dev/null @@ -1,1271 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -if (global.interact == 5) -{ - charcon = 1 - if (global.submenu == 5 || global.submenu == 22) - { - global.charselect = global.submenucoord[global.submenu] - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.faceaction[global.charselect] = 7 - if left_p() - { - movenoise = true - if (global.submenucoord[global.submenu] > 0) - global.submenucoord[global.submenu] -= 1 - else - global.submenucoord[global.submenu] = (chartotal - 1) - } - if right_p() - { - movenoise = true - if (global.submenucoord[global.submenu] < (chartotal - 1)) - global.submenucoord[global.submenu] += 1 - else - global.submenucoord[global.submenu] = 0 - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - if (global.submenu == 5) - { - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.submenu = 2 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - } - if (global.submenu == 22) - { - scr_spell_overworld(global.spell[global.char[global.submenucoord[20]], global.submenucoord[21]]) - global.tension -= global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (global.submenu == 22) - { - if (global.spellcost[global.char[global.submenucoord[20]], global.submenucoord[21]] > global.tension) - close = 1 - } - if (close == 1) - { - cancelnoise = 1 - global.faceaction[global.charselect] = 0 - global.charselect = -1 - twobuffer = 2 - if (global.submenu == 5) - global.submenu = 2 - if (global.submenu == 22) - global.submenu = 21 - } - } - if (global.submenu == 6 || global.submenu == 7 || global.menuno == 3) - { - global.charselect = 3 - global.faceaction[0] = 7 - global.faceaction[1] = 7 - global.faceaction[2] = 7 - if (button1_p() && onebuffer < 0 && global.submenu == 6) - { - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - scr_itemuse(global.item[global.submenucoord[2]]) - if (usable == true) - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 2 - } - if (button1_p() && onebuffer < 0 && global.submenu == 7) - { - snd_play(snd_ultraswing) - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - throwitem = global.item[global.submenucoord[2]] - scr_itemshift(global.submenucoord[2], 0) - scr_itemdesc() - global.charselect = -1 - global.submenu = 3 - if (throwitem == 4) - { - if (global.char[2] == 3 || global.char[1] == 3) - { - global.interact = 1 - scr_closemenu() - global.fc = 2 - global.typer = 31 - global.fe = 9 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_129_0") - if (global.flag[207] == 1) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_135_0") - scr_ralface(1, 9) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_137_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_138_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_139_0") - global.flag[207] = 2 - } - if (global.flag[207] == 0) - { - global.fc = 0 - global.typer = 6 - global.msg[0] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_147_0") - scr_ralface(1, 0) - global.msg[2] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_149_0") - global.msg[3] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_150_0") - global.msg[4] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_151_0") - global.msg[5] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_152_0") - scr_noface(6) - global.msg[7] = scr_84_get_lang_string("obj_darkcontroller_slash_Step_0_gml_154_0") - scr_itemget(4) - global.flag[207] = 1 - } - dl = instance_create(0, 0, obj_dialoguer) - dl.free = 1 - } - } - } - if (button1_p() && onebuffer < 0 && global.menuno == 3) - { - twobuffer = 2 - onebuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - global.charselect = -1 - global.interact = 6 - scr_talkroom() - global.menuno = -1 - charcon = 0 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.faceaction[0] = 0 - global.faceaction[1] = 0 - global.faceaction[2] = 0 - if (global.submenu == 6) - global.submenu = 2 - if (global.submenu == 7) - global.submenu = 3 - if (global.menuno == 3) - global.menuno = 0 - global.charselect = -1 - } - } - if (global.menuno == 5) - { - if (global.submenu == 30) - { - sndbuffer = 0 - m_quit = 0 - if up_p() - { - movenoise = true - global.submenucoord[30] -= 1 - if (global.submenucoord[30] < 0) - global.submenucoord[30] = 0 - } - if down_p() - { - movenoise = true - global.submenucoord[30] += 1 - if (global.submenucoord[30] > 5) - global.submenucoord[30] = 5 - } - if (button1_p() && onebuffer < 0) - { - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - if (global.submenucoord[30] == 0) - global.submenu = 33 - if (global.submenucoord[30] == 1) - { - global.submenu = 35 - global.submenucoord[35] = 0 - control_select_con = 0 - control_flash_timer = 0 - } - if (global.submenucoord[30] == 2) - { - if (global.flag[8] == 0) - global.flag[8] = 1 - else - global.flag[8] = 0 - } - if (global.submenucoord[30] == 3) - { - if (global.flag[11] == 0) - global.flag[11] = 1 - else - global.flag[11] = 0 - } - if (global.submenucoord[30] == 4) - { - if global.disable_border - selectnoise = false - else - { - global.submenu = 36 - check_border = 1 - border_select = 0 - } - } - if (global.submenucoord[30] == 5) - m_quit = 1 - } - if (button2_p() && twobuffer < 0) - { - m_quit = 1 - cancelnoise = 1 - } - if (m_quit == 1) - { - onebuffer = 2 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - if (global.submenu == 31 || global.submenu == 32 || global.submenu == 33) - { - se_select = 0 - sndbuffer -= 1 - muschange = false - sndchange = false - audchange = false - if right_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] < 1) - global.flag[15] += 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] < 1) - global.flag[16] += 0.05 - } - if (global.submenu == 33) - { - if (global.flag[17] < 1) - global.flag[17] += 0.02 - audchange = true - } - } - if left_h() - { - if (global.submenu == 31) - { - sndchange = true - if (global.flag[15] > 0) - global.flag[15] -= 0.05 - } - if (global.submenu == 32) - { - muschange = true - if (global.flag[16] > 0) - global.flag[16] -= 0.05 - } - if (global.submenu == 33) - { - audchange = true - if (global.flag[17] >= 0.02) - global.flag[17] -= 0.02 - } - } - if (sndchange == true && sndbuffer < 0) - { - audio_group_set_gain(1, global.flag[15], 0) - snd_play(snd_noise) - sndbuffer = 2 - } - if (muschange == true) - { - if snd_is_playing(global.currentsong[1]) - mus_volume(global.currentsong[1], (getmusvol * global.flag[16]), 0) - } - if (audchange == true && sndbuffer < 0) - { - snd_play(snd_noise) - sndbuffer = 2 - audio_set_master_gain(0, global.flag[17]) - } - if (button1_p() && onebuffer < 0) - se_select = 1 - if (button2_p() && twobuffer < 0) - se_select = 1 - if (se_select == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 34) - { - if keyboard_check_pressed(vk_escape) - ossafe_game_end() - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - global.submenu = 30 - } - } - if (global.submenu == 35) - { - control_select_timer = 0 - control_flash_timer -= 1 - controls_quitmenu = 0 - if (control_select_con == 1) - { - gamepad_accept = -1 - new_gamepad_key = -1 - key_accept = -1 - new_key = -1 - if (obj_gamecontroller.gamepad_active && control_select_con == 1) - { - for (var i = 0; i < array_length_1d(gamepad_controls); i++) - { - if gamepad_button_check_pressed(obj_gamecontroller.gamepad_id, gamepad_controls[i]) - { - new_gamepad_key = gamepad_controls[i] - control_select_con = 2 - } - } - } - } - if (button1_p() && control_select_con == 0 && onebuffer < 0) - { - onebuffer = 2 - if (global.submenucoord[35] < 7) - { - control_select_con = 1 - keyboard_lastkey = -1 - selectnoise = true - } - if (global.submenucoord[35] == 7) - { - snd_play(snd_levelup) - scr_controls_default() - control_flash_timer = 10 - } - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - if (control_select_con == 0) - { - if (down_p() && controls_quitmenu == 0 && downbuffer < 0) - { - if (global.submenucoord[35] < 8) - { - global.submenucoord[35] += 1 - movenoise = true - } - } - if (up_p() && controls_quitmenu == 0 && upbuffer < 0) - { - if (global.submenucoord[35] > 0) - { - global.submenucoord[35] -= 1 - movenoise = true - } - } - if (button1_p() && controls_quitmenu == 0 && onebuffer < 2) - { - cancelnoise = 1 - onebuffer = 2 - twobuffer = 2 - if (global.submenucoord[35] == 8) - controls_quitmenu = 1 - } - } - if (control_select_con == 2) - { - if (new_key != -1) - { - dupe = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == new_key) - dupe = i - } - if (dupe >= 0) - global.input_k[dupe] = global.input_k[global.submenucoord[35]] - global.input_k[global.submenucoord[35]] = new_key - entercancel = -1 - shiftcancel = -1 - ctrlcancel = -1 - for (i = 0; i < 7; i += 1) - { - if (global.input_k[i] == 13) - { - global.input_k[7] = -1 - entercancel = 1 - } - if (global.input_k[i] == 16) - { - global.input_k[8] = -1 - shiftcancel = 1 - } - if (global.input_k[i] == 17) - { - global.input_k[9] = -1 - ctrlcancel = 1 - } - } - if (entercancel == -1) - global.input_k[7] = 13 - if (shiftcancel == -1) - global.input_k[8] = 16 - if (ctrlcancel == -1) - global.input_k[9] = 17 - } - else - { - dupe = -1 - if (new_gamepad_key == 32775) - obj_gamecontroller.gamepad_shoulderlb_reassign = 1 - for (i = 0; i < 7; i += 1) - { - if (global.input_g[i] == new_gamepad_key) - dupe = i - } - if (dupe >= 0) - global.input_g[dupe] = global.input_g[global.submenucoord[35]] - global.input_g[global.submenucoord[35]] = new_gamepad_key - global.button0 = global.input_g[4] - global.button1 = global.input_g[5] - global.button2 = global.input_g[6] - } - upbuffer = 2 - downbuffer = 2 - onebuffer = 2 - twobuffer = 2 - selectnoise = true - control_select_con = 0 - } - if (controls_quitmenu == 1) - { - selectnoise = true - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - for (i = 0; i < 10; i += 1) - ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]) - for (i = 0; i < 10; i += 1) - ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]) - ini_write_real("SHOULDERLB_REASSIGN", "SHOULDERLB_REASSIGN", obj_gamecontroller.gamepad_shoulderlb_reassign) - ossafe_ini_close() - ossafe_savedata_save() - controls_quitmenu = 0 - control_select_con = 0 - global.submenucoord[35] = 0 - global.submenu = 30 - } - } - if (global.submenu == 36) - { - if right_p() - { - if (selected_border < (array_length_1d(border_options) - 1)) - { - selected_border++ - check_border = 1 - } - } - if left_p() - { - if (selected_border > 0) - { - selected_border-- - check_border = 1 - } - } - if (check_border == 1) - { - var _border = border_options[selected_border] - if (_border == "None" || _border == "なし") - scr_enable_screen_border(0) - else - scr_enable_screen_border(1) - global.screen_border_id = border_options[selected_border] - check_border = 0 - } - if (button1_p() && onebuffer < 0) - border_select = 1 - if (button2_p() && twobuffer < 0) - border_select = 1 - if (border_select == 1) - { - onebuffer = 2 - twobuffer = 2 - ossafe_ini_open((("config_" + string(global.filechoice)) + ".ini")) - ini_write_string("BORDER", "TYPE", global.screen_border_id) - ossafe_ini_close() - ossafe_savedata_save() - control_select_con = 0 - global.submenu = 30 - } - } - } - if (global.menuno == 4) - { - if (global.submenu == 21) - { - charcoord = global.char[global.submenucoord[20]] - if up_p() - { - if (global.submenucoord[21] > 0) - { - global.submenucoord[21] -= 1 - movenoise = true - } - } - if down_p() - { - if (global.submenucoord[21] < 5) - { - if (global.spell[charcoord, (global.submenucoord[21] + 1)] != 0) - { - global.submenucoord[21] += 1 - movenoise = true - } - } - } - if (button1_p() && onebuffer < 0) - { - if (global.spellusable[charcoord, global.submenucoord[21]] == true && global.tension >= global.spellcost[charcoord, global.submenucoord[21]]) - { - if (global.spelltarget[charcoord, global.submenucoord[21]] == 1) - { - global.submenu = 22 - onebuffer = 2 - twobuffer = 2 - } - } - else - { - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - onebuffer = 2 - twobuffer = 2 - global.submenucoord[21] = 0 - global.submenu = 20 - } - } - if (global.submenu == 20) - { - if left_p() - { - movenoise = true - global.submenucoord[20] -= 1 - if (global.submenucoord[20] < 0) - global.submenucoord[20] = (chartotal - 1) - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if right_p() - { - movenoise = true - global.submenucoord[20] += 1 - if (global.submenucoord[20] > (chartotal - 1)) - global.submenucoord[20] = 0 - if (chartotal >= 2) - dograndom = ceil(random(100)) - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenu = 21 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 1) - { - if (global.submenu == 2 || global.submenu == 3) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 1 - movenoise = true - } - } - if down_p() - { - sm = global.submenucoord[2] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.item[(global.submenucoord[2] + 2)] != 0) - { - global.submenucoord[2] += 2 - movenoise = true - } - else if (global.item[(global.submenucoord[2] + 1)] != 0) - { - global.submenucoord[2] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[2] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - global.submenucoord[2] -= 2 - movenoise = true - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - global.submenucoord[2] -= 2 - movenoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 4) - { - if (left_p() || right_p()) - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 1 - } - } - if down_p() - { - sm = global.submenucoord[4] - if (sm == 0 || sm == 2 || sm == 4 || sm == 6 || sm == 8) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - } - if (sm == 1 || sm == 3 || sm == 5 || sm == 7 || sm == 9) - { - if (global.keyitem[(global.submenucoord[4] + 2)] != 0) - { - global.submenucoord[4] += 2 - movenoise = true - } - else if (global.keyitem[(global.submenucoord[4] + 1)] != 0) - { - global.submenucoord[4] += 1 - movenoise = true - } - } - } - if up_p() - { - sm = global.submenucoord[4] - if (sm == 2 || sm == 4 || sm == 6 || sm == 8 || sm == 10) - { - movenoise = true - global.submenucoord[4] -= 2 - } - if (sm == 3 || sm == 5 || sm == 7 || sm == 9 || sm == 11) - { - movenoise = true - global.submenucoord[4] -= 2 - } - } - if (button1_p() && onebuffer < 0) - { - onebuffer = 2 - twobuffer = 1 - if (keyitemusable[sm] == 1) - { - global.charselect = 3 - scr_itemuse((global.keyitem[sm] + 300)) - } - else - snd_play(snd_cantselect) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - deschaver = 0 - global.submenu = 1 - } - } - if (global.submenu == 3) - { - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 3 - global.submenu = 7 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 2) - { - if (button1_p() && onebuffer < 0) - { - onebuffer = 3 - scr_iteminfo(global.item[global.submenucoord[2]]) - if (itemtarget == 1) - { - selectnoise = true - global.submenu = 5 - } - if (itemtarget == 2) - global.submenu = 6 - } - if (global.item[global.submenucoord[2]] == 0) - { - if (global.submenucoord[2] == 0) - { - global.submenu = 1 - deschaver = 0 - twobuffer = 2 - onebuffer = 2 - } - if (global.submenucoord[2] > 0) - global.submenucoord[2] -= 1 - } - } - if (global.submenu == 1) - { - if left_p() - { - if (global.submenucoord[1] == 0) - { - global.submenucoord[1] = 2 - movenoise = true - } - else - { - global.submenucoord[1] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.submenucoord[1] == 2) - { - global.submenucoord[1] = 0 - movenoise = true - } - else - { - global.submenucoord[1] += 1 - movenoise = true - } - } - if button1_p() - { - global.submenu = (global.submenucoord[1] + 2) - if (global.submenu == 4) - { - deschaver = 1 - selectnoise = true - } - if (global.submenu == 2 || global.submenu == 3) - { - deschaver = 1 - scr_itemdesc() - if (global.item[0] == 0) - { - global.submenu = 1 - deschaver = 0 - } - else - selectnoise = true - } - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - } - } - } - if (global.menuno == 2) - { - if (global.submenu == 12 || global.submenu == 13 || global.submenu == 14) - { - _up_pressed = 0 - if up_h() - { - if up_p() - _up_pressed = 1 - hold_up += 1 - if (hold_up >= 8) - { - _up_pressed = 1 - hold_up = 6 - } - if (_up_pressed == 1) - { - if (global.submenucoord[global.submenu] > 0) - { - global.submenucoord[global.submenu] -= 1 - movenoise = true - } - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] < pagemax[0]) - { - pagemax[0] -= 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] < pagemax[1]) - { - pagemax[1] -= 1 - movenoise = true - } - } - } - } - else - hold_up = 0 - _down_pressed = 0 - if down_h() - { - if (down_p() == 1) - _down_pressed = 1 - hold_down += 1 - if (hold_down >= 8) - { - _down_pressed = 1 - hold_down = 6 - } - if (global.submenucoord[global.submenu] < 11 && _down_pressed == 1) - { - movenoise = true - if (global.submenu == 12) - nextone = global.weapon[global.submenucoord[(global.submenu + 1)]] - if (global.submenu == 13 || global.submenu == 14) - nextone = global.armor[global.submenucoord[(global.submenu + 1)]] - global.submenucoord[global.submenu] += 1 - if (global.submenu == 12) - { - if (global.submenucoord[global.submenu] > (pagemax[0] + 5) && pagemax[0] < 6) - { - pagemax[0] += 1 - movenoise = true - } - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenucoord[global.submenu] > (pagemax[1] + 5) && pagemax[1] < 6) - { - pagemax[1] += 1 - movenoise = true - } - } - } - } - else - hold_down = 0 - if (button1_p() && onebuffer < 0) - { - onebuffer = 5 - canequip = false - wwho = global.char[global.submenucoord[10]] - wmsg = " " - if (global.submenu == 12) - { - scr_weaponinfo(global.weapon[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = wmessage2temp - if (wwho == 3) - wmsg = wmessage3temp - if (wwho == 1 && weaponchar1temp == 1) - canequip = true - if (wwho == 2 && weaponchar2temp == 1) - canequip = true - if (wwho == 3 && weaponchar3temp == 1) - canequip = true - } - if (global.submenu == 13 || global.submenu == 14) - { - scr_armorinfo(global.armor[global.submenucoord[global.submenu]]) - if (wwho == 2) - wmsg = amessage2temp - if (wwho == 3) - wmsg = amessage3temp - if (wwho == 1 && armorchar1temp == 1) - canequip = true - if (wwho == 2 && armorchar2temp == 1) - canequip = true - if (wwho == 3 && armorchar3temp == 1) - canequip = true - } - if (canequip == true) - { - hold_up = 0 - hold_down = 0 - snd_play(snd_equip) - if (global.submenu == 12) - { - oldequip = global.charweapon[wwho] - newequip = global.weapon[global.submenucoord[global.submenu]] - global.charweapon[wwho] = newequip - global.weapon[global.submenucoord[global.submenu]] = oldequip - scr_weaponinfo_mine() - scr_weaponinfo_all() - twobuffer = 2 - global.submenu = 11 - } - if (global.submenu == 13 || global.submenu == 14) - { - if (global.submenu == 13) - oldequip = global.chararmor1[wwho] - if (global.submenu == 14) - oldequip = global.chararmor2[wwho] - newequip = global.armor[global.submenucoord[global.submenu]] - if (global.submenu == 13) - global.chararmor1[wwho] = newequip - if (global.submenu == 14) - global.chararmor2[wwho] = newequip - global.armor[global.submenucoord[global.submenu]] = oldequip - scr_armorinfo_mine() - scr_armorinfo_all() - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - else - snd_play(snd_cantselect) - scr_itemcomment(global.submenucoord[10], wmsg) - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - hold_up = 0 - hold_down = 0 - twobuffer = 2 - scr_dmenu_armor_selection_match() - global.submenu = 11 - } - } - if (global.submenu == 11) - { - if up_p() - { - global.submenucoord[11] -= 1 - if (global.submenucoord[11] == -1) - global.submenucoord[11] = 2 - movenoise = true - } - if down_p() - { - global.submenucoord[11] += 1 - if (global.submenucoord[11] == 3) - global.submenucoord[11] = 0 - movenoise = true - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.submenu = (12 + global.submenucoord[11]) - scr_dmenu_armor_selection_match() - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - deschaver = 0 - twobuffer = 2 - global.submenu = 10 - } - } - if (global.submenu == 10) - { - if left_p() - { - movenoise = true - global.submenucoord[10] -= 1 - if (global.submenucoord[10] < 0) - global.submenucoord[10] = (chartotal - 1) - } - if right_p() - { - movenoise = true - global.submenucoord[10] += 1 - if (global.submenucoord[10] > (chartotal - 1)) - global.submenucoord[10] = 0 - } - global.charselect = global.submenucoord[10] - if (button1_p() && onebuffer < 0) - { - selectnoise = true - deschaver = 1 - global.submenucoord[11] = 0 - global.submenu = 11 - onebuffer = 2 - } - if (button2_p() && twobuffer < 0) - { - cancelnoise = 1 - twobuffer = 2 - global.menuno = 0 - global.submenu = 0 - global.charselect = -1 - } - } - } - if (global.menuno == 0) - { - global.submenu = 0 - if left_p() - { - if (global.menucoord[0] == 0) - { - global.menucoord[0] = 4 - movenoise = true - } - else - { - global.menucoord[0] -= 1 - if (global.menucoord[0] == 2) - global.menucoord[0] -= 1 - movenoise = true - } - } - if right_p() - { - if (global.menucoord[0] == 4) - { - global.menucoord[0] = 0 - movenoise = true - } - else - { - global.menucoord[0] += 1 - if (global.menucoord[0] == 2) - global.menucoord[0] += 1 - movenoise = true - } - } - if (button1_p() && onebuffer < 0) - { - selectnoise = true - onebuffer = 2 - global.menuno = (global.menucoord[0] + 1) - if (global.menuno == 1) - { - global.submenu = 1 - global.submenucoord[1] = 0 - global.submenucoord[2] = 0 - global.submenucoord[3] = 0 - global.submenucoord[4] = 0 - } - if (global.menuno == 2) - { - scr_weaponinfo_all() - scr_armorinfo_all() - scr_weaponinfo_mine() - scr_armorinfo_mine() - global.submenucoord[10] = 0 - global.submenucoord[11] = 0 - global.submenucoord[12] = 0 - global.submenucoord[13] = 0 - global.submenucoord[14] = 0 - pagemax[0] = 0 - pagemax[1] = 0 - global.submenu = 10 - global.charselect = global.submenucoord[10] - } - if (global.menuno == 3) - global.menuno = 0 - if (global.menuno == 4) - { - global.submenu = 20 - scr_spellinfo_all() - } - if (global.menuno == 5) - { - global.submenu = 30 - global.submenucoord[30] = 0 - } - } - close = 0 - if (button2_p() && twobuffer < 0) - close = 1 - if (button3_p() && threebuffer < 0) - close = 1 - if (close == 1) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - charcon = 0 - with (obj_mainchara) - { - threebuffer = 2 - twobuffer = 2 - } - } - } - } -} -if (global.interact == 6) -{ - if (!instance_exists(obj_dialoguer)) - global.interact = 0 -} -if (charcon == 1) -{ - drawchar = 1 - bpy = 60 - tpy = 80 - if (global.interact == 5) - { - if (tp < (tpy - 1)) - { - if ((tpy - tp) <= 40) - tp += round(((tpy - tp) / 2.5)) - else - tp += 30 - } - else - tp = tpy - } - if (bp < (bpy - 1) && charcon == 1) - { - if ((bpy - bp) <= 40) - bp += round(((bpy - bp) / 2.5)) - else - bp += 30 - } - else - bp = bpy -} -if (charcon == 0) -{ - if (tp > 0) - { - if (tp >= 80) - tp -= round((tp / 2.5)) - else - tp -= 30 - } - else - tp = 0 - if (bp > 0) - { - if (bp >= 40) - bp -= round((bp / 2.5)) - else - bp -= 30 - } - else - bp = 0 - if (bp == 0) - drawchar = 0 -} -if (movenoise == true) -{ - snd_play(snd_menumove) - movenoise = false -} -if (selectnoise == true) -{ - snd_play(snd_select) - selectnoise = false -} -if (cancelnoise == 1) -{ - snd_play(snd_smallswing) - cancelnoise = 0 -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -upbuffer -= 1 -downbuffer -= 1 diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_heart_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_heart_Step_0.gml deleted file mode 100644 index 0bb0ee3f2..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_heart_Step_0.gml +++ /dev/null @@ -1,200 +0,0 @@ -wallcheck = 0 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if left_h() - press_l = 1 -if right_h() - press_r = 1 -if up_h() - press_u = 1 -if down_h() - press_d = 1 -px = 0 -py = 0 -if (press_r == 1) - px = wspeed -if (press_l == 1) - px = (-wspeed) -if (press_d == 1) - py = wspeed -if (press_u == 1) - py = (-wspeed) -xmeet = 0 -ymeet = 0 -xymeet = 0 -if place_meeting((x + px), (y + py), obj_battlesolid) - xymeet = 1 -if place_meeting((x + px), y, obj_battlesolid) -{ - if place_meeting((x + px), y, obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_battlesolid))) - { - y -= g - py = 0 - break - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_battlesolid))) - { - y += g - py = 0 - break - } - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_battlesolid)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 -} -if place_meeting(x, (y + py), obj_battlesolid) -{ - ymeet = 1 - bky = 0 - if place_meeting(x, (y + py), obj_battlesolid) - { - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_battlesolid))) - { - x -= g - px = 0 - break - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_battlesolid))) - { - x += g - px = 0 - break - } - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_battlesolid)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 -} -if place_meeting((x + px), (y + py), obj_battlesolid) -{ - xymeet = 1 - bkxy = 0 - i = px - j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_battlesolid)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } -} -if ((x + px) >= ((__view_get(0, 0) + 640) - sprite_width)) - px = (((__view_get(0, 0) + 640) - sprite_width) - x) -if ((x + px) <= 0) - px = (-x) -if ((y + py) <= 0) - py = (-y) -if ((y + py) >= (((__view_get(1, 0) + 320) - sprite_height) + boundaryup)) - py = ((((__view_get(1, 0) + 320) - sprite_height) - y) + boundaryup) -x += px -y += py -if (dmgnoise == true) -{ - dmgnoise = false - snd_stop(snd_hurt1) - snd_play(snd_hurt1) -} -global.inv -= 1 -if (global.inv > 0) - image_speed = 0.25 -else -{ - image_speed = 0 - image_index = 0 -} -global.heartx = ((x + 2) - __view_get(0, 0)) -global.hearty = ((y + 2) - __view_get(1, 0)) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_mainchara_Step_0.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_mainchara_Step_0.gml deleted file mode 100644 index 1a8bb3323..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Object_obj_mainchara_Step_0.gml +++ /dev/null @@ -1,494 +0,0 @@ -scr_depth() -wallcheck = 0 -nowx = x -nowy = y -var nopress = 0 -if (press_d == 0 && press_l == 0 && press_u == 0 && press_r == 0) - nopress = 1 -press_l = 0 -press_r = 0 -press_d = 0 -press_u = 0 -bkx = 0 -bky = 0 -bkxy = 0 -jelly = 2 -if (global.interact == 0) -{ - if (button3_p() && threebuffer < 0) - { - if (global.flag[7] == 0 && battlemode == 0) - { - if instance_exists(obj_overworldc) - { - if (!menuOpened) - { - menuOpened = 1 - movenoise = true - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - else - menuOpened = 0 - } - else - { - global.menuno = 0 - global.interact = 5 - threebuffer = 2 - twobuffer = 2 - } - } - } - if (global.flag[11] == 1) - { - if (button2_h() && twobuffer < 0) - run = 0 - else - run = 1 - } - else if (button2_h() && twobuffer < 0) - run = 1 - else - run = 0 - if (autorun > 0) - { - if (autorun == 1) - { - run = 1 - runtimer = 200 - } - if (autorun == 2) - { - run = 1 - runtimer = 50 - } - } - if (run == 1) - { - if (darkmode == false) - { - wspeed = (bwspeed + 1) - if (runtimer > 10) - wspeed = (bwspeed + 2) - if (runtimer > 60) - wspeed = (bwspeed + 3) - } - if (darkmode == true) - { - wspeed = (bwspeed + 2) - if (runtimer > 10) - wspeed = (bwspeed + 4) - if (runtimer > 60) - wspeed = (bwspeed + 5) - } - } - if (run == 0) - wspeed = bwspeed - if left_h() - press_l = 1 - if right_h() - press_r = 1 - if up_h() - press_u = 1 - if down_h() - press_d = 1 - px = 0 - py = 0 - pressdir = -1 - if (press_r == 1) - { - px = wspeed - pressdir = 1 - } - if (press_l == 1) - { - px = (-wspeed) - pressdir = 3 - } - if (press_d == 1) - { - py = wspeed - pressdir = 0 - } - if (press_u == 1) - { - py = (-wspeed) - pressdir = 2 - } - if (nopress == 1 && pressdir != -1) - global.facing = pressdir - if (global.facing == 2) - { - if (press_d == 1) - global.facing = 0 - if (press_u == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 0) - { - if (press_u == 1) - global.facing = 2 - if (press_d == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 3) - { - if (press_r == 1) - global.facing = 1 - if (press_l == 0 && pressdir != -1) - global.facing = pressdir - } - if (global.facing == 1) - { - if (press_l == 1) - global.facing = 3 - if (press_r == 0 && pressdir != -1) - global.facing = pressdir - } - nopress = 0 - xmeet = 0 - ymeet = 0 - xymeet = 0 - if place_meeting((x + px), y, obj_solidblock) - { - for (var g = wspeed; g > 0; g -= 1) - { - var mvd = 0 - if (press_d == 0 && (!place_meeting((x + px), (y - g), obj_solidblock))) - { - y -= g - py = 0 - break - } - else - { - mvd = 1 - } - if (press_u == 0 && mvd == 0 && (!place_meeting((x + px), (y + g), obj_solidblock))) - { - y += g - py = 0 - break - } - } - xmeet = 1 - bkx = 0 - if (px > 0) - { - for (var i = px; i >= 0; i -= 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (px < 0) - { - for (i = px; i <= 0; i += 1) - { - if (!place_meeting((x + i), y, obj_solidblock)) - { - px = i - bkx = 1 - break - } - } - } - if (bkx == 0) - px = 0 - } - else if place_meeting(x, (y + py), obj_solidblock) - { - ymeet = 1 - bky = 0 - for (g = wspeed; g > 0; g -= 1) - { - mvd = 0 - if (press_r == 0 && (!place_meeting((x - g), (y + py), obj_solidblock))) - { - x -= g - px = 0 - break - } - else - { - mvd = 1 - } - if (mvd == 0 && press_l == 0 && (!place_meeting((x + g), (y + py), obj_solidblock))) - { - x += g - px = 0 - break - } - } - if (py > 0) - { - for (i = py; i >= 0; i -= 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (py < 0) - { - for (i = py; i <= 0; i += 1) - { - if (!place_meeting(x, (y + i), obj_solidblock)) - { - py = i - bky = 1 - break - } - } - } - if (bky == 0) - py = 0 - } - if place_meeting((x + px), (y + py), obj_solidblock) - { - xymeet = 1 - bkxy = 0 - i = px - var j = py - while (j != 0 || i != 0) - { - if (!place_meeting((x + i), (y + j), obj_solidblock)) - { - px = i - py = j - bkxy = 1 - break; - } - if (abs(j) >= 1) - { - if (j > 0) - j -= 1 - if (j < 0) - j += 1 - } - else - j = 0 - if (abs(i) >= 1) - { - if (i > 0) - i -= 1 - if (i < 0) - i += 1 - } - else - i = 0 - } - if (bkxy == 0) - { - px = 0 - py = 0 - } - } - runmove = false - if (run == 1 && xmeet == 0 && ymeet == 0 && xymeet == 0) - { - if (abs(px) > 0 || abs(py) > 0) - { - runmove = true - runtimer += 1 - } - else - runtimer = 0 - } - else - runtimer = 0 - x += px - y += py -} -walk = false -if (x != nowx && nopress == 0) - walk = true -if (y != nowy && nopress == 0) - walk = true -if (walk == true) - walkbuffer = 6 -if (walkbuffer > 3 && fun == false) -{ - walktimer += 1.5 - if (runmove == true) - walktimer += 1.5 - if (walktimer >= 40) - walktimer -= 40 - if (walktimer < 10) - image_index = 0 - if (walktimer >= 10) - image_index = 1 - if (walktimer >= 20) - image_index = 2 - if (walktimer >= 30) - image_index = 3 -} -else if (walkbuffer <= 0 && fun == false) -{ - if (walktimer < 10) - walktimer = 9.5 - if (walktimer >= 10 && walktimer < 20) - walktimer = 19.5 - if (walktimer >= 20 && walktimer < 30) - walktimer = 29.5 - if (walktimer >= 30) - walktimer = 39.5 - image_index = 0 -} -walkbuffer -= 0.75 -if (fun == false) -{ - if (global.facing == 0) - sprite_index = dsprite - if (global.facing == 1) - sprite_index = rsprite - if (global.facing == 2) - sprite_index = usprite - if (global.facing == 3) - sprite_index = lsprite -} -if (stepping == 1) -{ - if (image_index == 1 && stepped == false) - { - if (global.flag[31] == 0) - { - snd_play(snd_step1) - stepped = true - } - } - else if (image_index == 0 || image_index == 2) - stepped = false - else if (image_index == 3 && stepped == false) - { - stepped = true - if (global.flag[31] == 0) - snd_play(snd_step2) - } -} -if (onebuffer < 0) -{ - if (global.interact == 0) - { - if button1_p() - { - thisinteract = 0 - d = (global.darkzone + 1) - if (global.facing == 1) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), ((x + sprite_width) + (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 3 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 3) - { - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (sprite_width / 2)), ((y + (6 * d)) + (sprite_height / 2)), (x - (13 * d)), (y + sprite_height), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 1 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 0) - { - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (4 * d)), (y + (28 * d)), ((x + sprite_width) - (4 * d)), ((y + sprite_height) + (15 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 2 - with (interactedobject) - scr_interact() - } - } - thisinteract = 0 - if (global.facing == 2) - { - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - thisinteract = 1 - if collision_rectangle((x + 3), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - thisinteract = 2 - } - if (thisinteract > 0) - { - if (thisinteract == 1) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactable, 0, 1) - if (thisinteract == 2) - interactedobject = collision_rectangle((x + (3 * d)), ((y + sprite_height) - (5 * d)), ((x + sprite_width) - (5 * d)), (y + (5 * d)), obj_interactablesolid, 0, 1) - if (interactedobject != noone) - { - with (interactedobject) - facing = 0 - with (interactedobject) - scr_interact() - } - } - } - } -} -onebuffer -= 1 -twobuffer -= 1 -threebuffer -= 1 -with (collision_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, obj_doorparent, 0, 0)) - event_user(9) -if (battlemode == 1) -{ - global.inv -= 1 - if (global.inv < 0 && global.interact != 3) - { - with (collision_rectangle((x + 12), (y + 40), (x + 27), (y + 49), obj_overworldbulletparent, 1, 0)) - event_user(5) - with (collision_line((x + 12), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - with (collision_line((x + 26), (y + 49), (x + 19), (y + 57), obj_overworldbulletparent, true, false)) - event_user(5) - } -} diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index 958d2252b..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,54 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index b538843f6..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,83 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, true, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 66c8071e3..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,187 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 04b6ec858..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,38 +0,0 @@ -var lines; -var name = string_lower(argument0) -var file = ds_map_find_value(global.savedata, name) -if is_undefined(file) - return undefined; -var data = file -var num_lines = 0 -while (string_byte_length(data) > 0) -{ - var newline_pos = string_pos("\n", data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == "\r") - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line -} -handle = ds_map_create() -ds_map_set(handle, "is_write", 0) -ds_map_set(handle, "text", lines) -ds_map_set(handle, "num_lines", num_lines) -ds_map_set(handle, "line", 0) -ds_map_set(handle, "line_read", 0) -return handle; diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_armorget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_armorget.gml deleted file mode 100644 index ace9a0359..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_armorget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.armor[12] = 999 -while (loop == true) -{ - if (global.armor[i] == 0) - { - global.armor[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_armorinfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_encountersetup.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_encountersetup.gml deleted file mode 100644 index 0d1f0ff0a..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_encountersetup.gml +++ /dev/null @@ -1,396 +0,0 @@ -xx = __view_get(0, 0) -yy = __view_get(1, 0) -for (i = 0; i < 3; i += 1) -{ - global.heromakex[i] = (xx + 80) - global.heromakey[i] = ((yy + 50) + (80 * i)) - global.monsterinstancetype[i] = obj_lancerboss - global.monstertype[i] = 1 - global.monstermakex[i] = (xx + 540) - global.monstermakey[i] = ((yy + 160) + (80 * i)) -} -if (global.char[0] != 0 && global.char[1] == 0 && global.char[2] == 0) - global.heromakey[0] = (yy + 140) -if (global.char[0] != 0 && global.char[1] != 0 && global.char[2] == 0) -{ - global.heromakey[0] = (yy + 100) - global.heromakey[1] = (yy + 180) -} -switch argument0 -{ - case 0: - break - case 1: - global.monsterinstancetype[0] = obj_placeholderenemy - global.monstertype[0] = 1 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_placeholderenemy - global.monstertype[1] = 1 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - break - case 2: - global.monsterinstancetype[0] = obj_lancerboss - global.monstertype[0] = 2 - global.monstermakex[0] = (xx + 540) - global.monstermakey[0] = (yy + 200) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 3: - global.monsterinstancetype[0] = obj_dummyenemy - global.monstertype[0] = 3 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - if instance_exists(obj_npc_room) - { - global.monstermakex[0] = obj_npc_room.xstart - global.monstermakey[0] = obj_npc_room.ystart - } - global.monstertype[1] = 0 - global.monstertype[2] = 0 - break - case 4: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_82_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_83_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_84_0") - break - case 5: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_100_0") - break - case 6: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_116_0") - break - case 7: - global.monsterinstancetype[0] = obj_smallcheckers_enemy - global.monstertype[0] = 9 - global.monstermakex[0] = (xx + 440) - global.monstermakey[0] = (yy + 150) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_128_0") - break - case 8: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 16 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_139_0") - break - case 9: - global.monsterinstancetype[0] = obj_heartenemy - global.monstertype[0] = 6 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_158_0") - break - case 12: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 10 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_172_0") - break - case 13: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_185_0") - global.monstertype[2] = 0 - break - case 14: - global.monsterinstancetype[0] = obj_ponman_enemy - global.monstertype[0] = 11 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_ponman_enemy - global.monstertype[1] = 11 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_ponman_enemy - global.monstertype[2] = 11 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_206_0") - break - case 15: - global.monsterinstancetype[0] = obj_clubsenemy - global.monstertype[0] = 7 - global.monstermakex[0] = (xx + 400) - global.monstermakey[0] = (yy + 30) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 420) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_223_0") - break - case 16: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_234_0") - break - case 17: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_250_0") - break - case 18: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_261_0") - break - case 19: - global.monsterinstancetype[0] = obj_bloxer_enemy - global.monstertype[0] = 14 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_bloxer_enemy - global.monstertype[1] = 14 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_277_0") - break - case 20: - global.monsterinstancetype[0] = obj_lancerboss2 - global.monstertype[0] = 12 - global.heromakex[0] = (xx + 120) - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_292_0") - break - case 21: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 140) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_303_0") - if (global.flag[500] >= 1) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_304_0") - if (global.flag[500] == 2) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_305_0") - break - case 22: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_jigsawryenemy - global.monstertype[1] = 15 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_jigsawryenemy - global.monstertype[2] = 15 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_324_0") - break - case 23: - global.monsterinstancetype[0] = obj_jigsawryenemy - global.monstertype[0] = 15 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_heartenemy - global.monstertype[2] = 6 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_343_0") - break - case 24: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 60) - global.monsterinstancetype[1] = obj_diamondenemy - global.monstertype[1] = 5 - global.monstermakex[1] = (xx + 460) - global.monstermakey[1] = (yy + 180) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_358_0") - break - case 25: - global.heromakex[0] = (xx + 80) - global.heromakey[0] = (yy + 100) - global.heromakex[1] = (xx + 90) - global.heromakey[1] = (yy + 150) - global.heromakex[2] = (xx + 100) - global.heromakey[2] = (yy + 210) - global.monsterinstancetype[0] = obj_joker - global.monstertype[0] = 20 - global.monstermakex[0] = (xx + 500) - global.monstermakey[0] = (yy + 160) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_384_0") - break - case 27: - global.monsterinstancetype[0] = obj_checkers_enemy - global.monstertype[0] = 21 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 120) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_397_0") - global.heromakey[0] = (yy + 65) - break - case 28: - global.monsterinstancetype[0] = obj_rudinnranger - global.monstertype[0] = 22 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_rudinnranger - global.monstertype[1] = 22 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_414_0") - break - case 29: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 110) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 200) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_430_0") - break - case 30: - global.monsterinstancetype[0] = obj_headhathy - global.monstertype[0] = 23 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_headhathy - global.monstertype[1] = 23 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_headhathy - global.monstertype[2] = 23 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_449_0") - break - case 31: - global.monsterinstancetype[0] = obj_susieenemy - global.monstertype[0] = 19 - global.monstermakex[0] = (xx + 520) - global.monstermakey[0] = (yy + 80) - global.monsterinstancetype[1] = obj_lancerboss3 - global.monstertype[1] = 18 - global.monstermakex[1] = (xx + 540) - global.monstermakey[1] = (yy + 240) - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_463_0") - break - case 32: - global.monsterinstancetype[0] = obj_rabbick_enemy - global.monstertype[0] = 13 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_rabbick_enemy - global.monstertype[1] = 13 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_rabbick_enemy - global.monstertype[2] = 13 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_484_0") - break - case 33: - global.monsterinstancetype[0] = obj_diamondenemy - global.monstertype[0] = 5 - global.monstermakex[0] = (xx + 480) - global.monstermakey[0] = (yy + 20) - global.monsterinstancetype[1] = obj_heartenemy - global.monstertype[1] = 6 - global.monstermakex[1] = (xx + 500) - global.monstermakey[1] = (yy + 120) - global.monsterinstancetype[2] = obj_diamondenemy - global.monstertype[2] = 5 - global.monstermakex[2] = (xx + 460) - global.monstermakey[2] = (yy + 220) - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_505_0") - break - case 40: - global.monsterinstancetype[0] = obj_king_boss - global.monstertype[0] = 25 - global.monstermakex[0] = (xx + 460) - global.monstermakey[0] = (yy + 70) - global.monstertype[1] = 0 - global.monstertype[2] = 0 - global.battlemsg[0] = scr_84_get_lang_string("scr_encountersetup_slash_scr_encountersetup_gml_517_0") - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index fdc0e8f61..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_iteminfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_keyitemget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_keyitemget.gml deleted file mode 100644 index 8c2dee368..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_keyitemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.item[12] = 999 -while (loop == true) -{ - if (global.keyitem[i] == 0) - { - global.keyitem[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_keyiteminfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_litemget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_litemget.gml deleted file mode 100644 index 13177c595..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_litemget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.litem[8] = 999 -while (loop == true) -{ - if (global.litem[i] == 0) - { - global.litem[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_litemname() diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_phoneadd.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_phoneadd.gml deleted file mode 100644 index 6adc5fc69..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_phoneadd.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.phone[8] = 999 -while (loop == true) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - noroom = true - break - } - i += 1 -} -scr_phonename() diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spell.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spell.gml deleted file mode 100644 index 4de0af7ab..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spell.gml +++ /dev/null @@ -1,236 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -global.spelldelay = 10 -switch spell -{ - case 0: - break - case 1: - cancelattack = false - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - damage = ceil(((global.battleat[argument1] * 10) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - scr_damage_enemy(star, damage) - attack = instance_create((global.monsterx[star] + random(6)), (global.monstery[star] + random(6)), obj_basicattack) - attack.sprite_index = spr_attack_mash1 - dm.delay = 8 - } - global.spelldelay = 30 - break - case 2: - healnum = (global.battlemag[argument1] * 5) - scr_heal(star, healnum) - global.charinstance[star].healnum = healnum - with (global.charinstance[star]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - global.spelldelay = 15 - break - case 3: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - with (global.monsterinstance[star]) - { - if (global.monstertype[myself] != 19 && global.monstertype[myself] != 3) - { - global.flag[(51 + myself)] = 3 - event_user(10) - scr_monsterdefeat() - } - else - { - pacifycon = 1 - global.spelldelay = 999 - } - } - } - else - { - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - } - } - global.spelldelay = 20 - break - case 4: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 5) + (global.battleat[argument1] * 11)) - (global.monsterdf[star] * 3))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - } - break - case 5: - cancelattack = false - global.spelldelay = 30 - if (global.monster[star] == false) - scr_retarget_spell() - if (cancelattack == false) - { - global.spelldelay = 70 - damage = ceil((((global.battlemag[argument1] * 6) + (global.battleat[argument1] * 13)) - (global.monsterdf[star] * 6))) - if (global.automiss[star] == true) - damage = 0 - attack = instance_create(obj_herosusie.x, obj_herosusie.y, obj_rudebuster_anim) - attack.damage = damage - attack.star = star - attack.caster = caster - attack.target = global.monsterinstance[star] - attack.red = 1 - } - break - case 6: - healnum = (global.battlemag[argument1] * 4) - for (i = 0; i < 3; i += 1) - { - scr_heal(i, healnum) - global.charinstance[i].healnum = healnum - with (global.charinstance[i]) - { - ha = instance_create(x, y, obj_healanim) - ha.target = id - dmgwr = scr_dmgwriter_selfchar() - with (dmgwr) - { - delay = 8 - type = 3 - } - if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]]) - { - with (dmgwr) - specialmessage = 3 - } - dmgwr.damage = healnum - tu += 1 - } - } - global.spelldelay = 15 - break - case 100: - if (global.monster[star] == false) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.mercymod[star] >= 100) - { - if (global.monstertype[star] != 3) - { - with (global.monsterinstance[star]) - { - global.flag[(51 + myself)] = 2 - event_user(10) - scr_monsterdefeat() - } - } - else - { - with (global.monsterinstance[star]) - sparecon = 1 - } - } - else - { - scr_mercyadd(star, global.sparepoint[star]) - _pspell = instance_create(0, 0, obj_pacifyspell) - _pspell.target = global.monsterinstance[star] - _pspell.fail = 1 - _pspell.flashcolor = c_yellow - } - } - global.spelldelay = 0 - break - case 200: - break - case 201: - scr_healitemspell(40) - break - case 202: - reviveamt = ceil((global.maxhp[global.char[star]] / 2)) - if (global.hp[global.char[star]] <= 0) - reviveamt = (ceil(global.maxhp[global.char[star]]) + abs(global.hp[global.char[star]])) - scr_healitemspell(reviveamt) - break - case 203: - break - case 204: - break - case 205: - scr_healitemspell(20) - break - case 206: - scr_healallitemspell(160) - break - case 207: - scr_healallitemspell(80) - break - case 208: - scr_healitemspell(70) - break - case 209: - scr_healitemspell(50) - break - case 210: - scr_healitemspell(4) - break - case 211: - scr_healallitemspell(30) - break - case 212: - if (global.char[star] == 1) - scr_healitemspell(10) - if (global.char[star] == 2) - scr_healitemspell(90) - if (global.char[star] == 3) - scr_healitemspell(60) - break - case 213: - if (global.char[star] == 1) - scr_healitemspell(80) - if (global.char[star] == 2) - scr_healitemspell(30) - if (global.char[star] == 3) - scr_healitemspell(30) - break - case 214: - scr_healitemspell(500) - break - case 215: - scr_healitemspell(60) - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spell_overworld.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spell_overworld.gml deleted file mode 100644 index 79e96f055..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spell_overworld.gml +++ /dev/null @@ -1,11 +0,0 @@ -w = argument0 -usable = false -switch argument0 -{ - case 0: - break - case 2: - scr_healitem(global.charselect, 100) - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spelltext.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spelltext.gml deleted file mode 100644 index b5ab84978..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_spelltext.gml +++ /dev/null @@ -1,180 +0,0 @@ -spell = argument0 -caster = argument1 -star = global.chartarget[argument1] -spelltext = " " -switch spell -{ - case 0: - break - case 1: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_14_0"), global.charname[global.char[caster]]) - break - case 2: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_18_0"), global.charname[global.char[caster]]) - break - case 3: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_23_0"), global.charname[global.char[caster]]) - scr_retarget_spell() - if (global.monster[star] == true) - { - if (global.monsterstatus[star] == true) - { - } - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_33_0"), global.charname[global.char[caster]]) - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_36_0"), global.charname[global.char[caster]]) - } - } - break - case 4: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_43_0"), global.charname[global.char[caster]]) - break - case 5: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_47_0"), global.charname[global.char[caster]]) - break - case 6: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_51_0"), global.charname[global.char[caster]]) - break - case 100: - cancelattack = false - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_58_0"), global.charname[global.char[caster]], global.monstername[star]) - scr_retarget_spell() - if (global.mercymod[star] >= 100) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_62_0"), global.charname[global.char[caster]], global.monstername[star]) - else - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_66_0"), global.charname[global.char[caster]], global.monstername[star]) - if (global.monsterstatus[star] == true) - { - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_69_0"), global.charname[global.char[caster]], global.monstername[star]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_70_0") - } - } - if (cancelattack == true) - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_73_0"), global.charname[global.char[caster]]) - break - case 201: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_78_0"), global.charname[global.char[caster]]) - break - case 202: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_82_0"), global.charname[global.char[caster]]) - break - case 203: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_86_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_87_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.mercymod[_en] = 200 - } - } - } - if (spec_shard > 0) - { - scr_itemshift(global.bmenucoord[4, argument1], 0) - global.msg[1] = "" - global.msg[2] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_109_0") - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_112_0"), global.monstername[_j]) - } - global.msg[1] += "/" - } - break - case 204: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_122_0"), global.charname[global.char[caster]]) - global.msg[1] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_123_0") - spec_shard = 0 - for (_en = 0; _en < 3; _en += 1) - { - shardtest[_en] = 0 - if (global.monster[_en] == true) - { - if (global.monstertype[_en] == 5) - { - spec_shard = 1 - shardtest[_en] = 1 - global.monsterstatus[_en] = true - global.monstercomment[_en] = scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_135_0") - } - if (global.monstertype[_en] == 6) - { - spec_shard = 1 - shardtest[_en] = 2 - } - if (global.monstertype[_en] == 7 || global.monstertype[_en] == 16) - { - spec_shard = 1 - shardtest[_en] = 3 - with (global.monsterinstance[_en]) - { - battlecancel = 1 - if (manual == 0) - { - manual = 1 - scr_mercyadd(myself, 50) - } - } - } - } - } - if (spec_shard > 0) - { - global.msg[1] = "" - for (_j = 0; _j < 3; _j += 1) - { - if (shardtest[_j] == 1) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_168_0"), global.monstername[_j]) - if (shardtest[_j] == 2) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_169_0"), global.monstername[_j]) - if (shardtest[_j] == 3) - global.msg[1] += scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_170_0"), global.monstername[_j]) - } - global.msg[1] += scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_172_0") - } - break - case 205: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_179_0"), global.charname[global.char[caster]]) - break - case 206: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_183_0"), global.charname[global.char[caster]]) - break - case 207: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_187_0"), global.charname[global.char[caster]]) - break - case 208: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_191_0"), global.charname[global.char[caster]]) - break - case 209: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_194_0"), global.charname[global.char[caster]]) - break - case 210: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_197_0"), global.charname[global.char[caster]]) - break - case 211: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_200_0"), global.charname[global.char[caster]]) - break - case 212: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_203_0"), global.charname[global.char[caster]]) - break - case 213: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_206_0"), global.charname[global.char[caster]]) - break - case 214: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_209_0"), global.charname[global.char[caster]]) - break - case 215: - global.msg[0] = scr_84_get_subst_string(scr_84_get_lang_string("scr_spelltext_slash_scr_spelltext_gml_212_0"), global.charname[global.char[caster]]) - break -} - diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_weaponget.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_weaponget.gml deleted file mode 100644 index 4a242d00c..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_scr_weaponget.gml +++ /dev/null @@ -1,19 +0,0 @@ -i = 0 -loop = true -noroom = false -global.weapon[12] = 999 -while (loop == true) -{ - if (global.weapon[i] == 0) - { - global.weapon[i] = argument0 - break - } - if (i == 12) - { - noroom = true - break - } - i += 1 -} -script_execute(scr_weaponinfo_all) diff --git a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_tile_get_ids_at_depth.gml b/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_tile_get_ids_at_depth.gml deleted file mode 100644 index 916ad6c54..000000000 --- a/UndertaleModTool/Corrections/cf6517bfa3b7b7e96c21b6c1a41f8415/Temp/gml_Script_tile_get_ids_at_depth.gml +++ /dev/null @@ -1,36 +0,0 @@ -/// @description Returns an array containing the unique ID values for all tiles at a given depth. -/// @param depth The depth of the tile layer to get the IDs of. -/// @returns {array} IDs of all tiles of the specified depth in the room - -var __depth = argument0; - -var __tiles; -__tiles[0] = -1; -var __currtile = 0; - -// Scan through all layers looking for tiles -var __layers = layer_get_all(); -var __numlayers = array_length_1d(__layers); - -var __i; -for(__i = 0; __i < __numlayers; __i++) -{ - if (layer_get_depth(__layers[__i]) != __depth) - continue; - - var __els = layer_get_all_elements(__layers[__i]); - var __numels = array_length_1d(__els); - - var __j; - for(__j = 0; __j < __numels; __j++) - { - var __eltype = layer_get_element_type(__els[__j]); - if (__eltype == layerelementtype_tile) - { - __tiles[__currtile] = __els[__j]; - __currtile++; - } - } -} - -return __tiles; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 79f5d3c57..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,436 +0,0 @@ -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -var halfsize = 0 -for (var n = 1; n <= stringpos; n++) -{ - var ch = string_char_at(originalstring, n) - var myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = 0xFDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = 0xD4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - var newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - var sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - var sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - var icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - var sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - var spritex = myx - var spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - var icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - var choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (__view_get(2, view_current) == 640) - myx *= 2 - myx += __view_get(0, view_current) - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - var nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - var letterx = myx - var offsetx = 0 - var offsety = 0 - var halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(string_hash_to_newline(myletter)) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - var unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - var lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - var angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - var display_scale = (surface_get_width(application_surface) / __view_get(2, view_current)) - var finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - var finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, string_hash_to_newline(myletter), (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(string_hash_to_newline(myletter)) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_halfbullet_gen_Other_10.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_halfbullet_gen_Other_10.gml deleted file mode 100644 index eed614253..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_halfbullet_gen_Other_10.gml +++ /dev/null @@ -1,449 +0,0 @@ -if (defined == 0) -{ - if (type == 999) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 2, 6, 0) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 0) - scr_hb_add(22, 2, 6, 2) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 2) - scr_hb_add(66, 1, 6, 0) - scr_hb_add(66, 2, 6, 1) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 0) - scr_hb_add(110, 2, 6, 2) - scr_hb_add(132, 0, 6, 0) - scr_hb_add(132, 2, 6, 0) - scr_hb_add(154, 0, 6, 2) - scr_hb_add(154, 1, 6, 0) - scr_hb_add(154, 2, 6, 1) - maxtimer = 250 - } - if (type == 0) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(8, 1, 6, 0) - scr_hb_add(16, 1, 6, 0) - maxtimer = 95 - } - if (type == 1) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(25, 0, 6, 0) - scr_hb_add(25, 2, 6, 0) - scr_hb_add(50, 1, 6, 0) - scr_hb_add(75, 0, 6, 0) - scr_hb_add(75, 2, 6, 0) - maxtimer = 150 - } - if (type == 2) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 0) - scr_hb_add(132, 2, 6, 2) - scr_hb_add(138, 0, 6, 1) - scr_hb_add(138, 1, 6, 0) - scr_hb_add(138, 2, 6, 2) - scr_hb_add(144, 0, 6, 1) - scr_hb_add(144, 1, 6, 0) - scr_hb_add(144, 2, 6, 2) - maxtimer = 220 - } - if (type == 3) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 1, 6, 1) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 2) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 1, 6, 1) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 2) - scr_hb_add(132, 2, 6, 0) - maxtimer = 210 - } - if (type == 4) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 2) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(44, 2, 6, 2) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 1, 6, 1) - scr_hb_add(66, 2, 6, 2) - scr_hb_add(88, 0, 6, 1) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 2) - scr_hb_add(110, 2, 6, 0) - maxtimer = 180 - } - if (type == 5) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(19, 0, 6, 0) - scr_hb_add(19, 2, 6, 0) - scr_hb_add(38, 0, 6, 0) - scr_hb_add(38, 1, 6, 1) - scr_hb_add(38, 2, 6, 2) - scr_hb_add(57, 0, 6, 0) - scr_hb_add(57, 2, 6, 0) - scr_hb_add(76, 1, 6, 0) - scr_hb_add(95, 0, 6, 0) - scr_hb_add(95, 2, 6, 0) - scr_hb_add(114, 0, 6, 1) - scr_hb_add(114, 1, 6, 2) - scr_hb_add(114, 2, 6, 0) - scr_hb_add(133, 0, 6, 0) - scr_hb_add(133, 2, 6, 0) - scr_hb_add(165, 1, 8, 0) - maxtimer = 230 - } - if (type == 6) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(20, 1, 6, 0) - scr_hb_add(20, 2, 6, 0) - scr_hb_add(40, 0, 6, 1) - scr_hb_add(40, 1, 6, 0) - scr_hb_add(40, 2, 6, 2) - scr_hb_add(60, 0, 6, 0) - scr_hb_add(60, 1, 6, 0) - scr_hb_add(80, 0, 6, 0) - scr_hb_add(80, 2, 6, 0) - scr_hb_add(100, 1, 6, 0) - scr_hb_add(100, 2, 6, 0) - scr_hb_add(120, 0, 6, 0) - scr_hb_add(120, 2, 6, 0) - scr_hb_add(140, 0, 6, 0) - scr_hb_add(140, 1, 6, 0) - scr_hb_add(160, 0, 6, 1) - scr_hb_add(160, 1, 6, 0) - scr_hb_add(160, 2, 6, 2) - scr_hb_add(167, 0, 6, 1) - scr_hb_add(167, 1, 6, 0) - scr_hb_add(167, 2, 6, 2) - scr_hb_add(174, 0, 6, 1) - scr_hb_add(174, 1, 6, 0) - scr_hb_add(174, 2, 6, 2) - shift_timer_max = 235 - scr_hb_add(235, 4, 10, 0) - scr_hb_add(235, 7, 10, 0) - maxtimer = 290 - } - if (type == 7) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 3, 6, 1) - scr_hb_add(0, 4, 6, 0) - scr_hb_add(0, 5, 6, 2) - scr_hb_add(30, 0, 6, 1) - scr_hb_add(30, 1, 6, 0) - scr_hb_add(30, 2, 6, 2) - scr_hb_add(60, 3, 6, 2) - scr_hb_add(60, 4, 6, 0) - scr_hb_add(60, 5, 6, 1) - scr_hb_add(90, 0, 6, 1) - scr_hb_add(90, 1, 6, 0) - scr_hb_add(90, 2, 6, 2) - scr_hb_add(120, 3, 6, 1) - scr_hb_add(120, 4, 6, 0) - scr_hb_add(120, 5, 6, 2) - scr_hb_add(150, 0, 6, 1) - scr_hb_add(150, 1, 6, 0) - scr_hb_add(150, 2, 6, 2) - maxtimer = 230 - } - if (type == 8) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 7, 0) - scr_hb_add(0, 5, 7, 0) - scr_hb_add(20, 1, 7, 0) - scr_hb_add(20, 2, 7, 0) - scr_hb_add(40, 6, 7, 0) - scr_hb_add(40, 7, 7, 0) - scr_hb_add(60, 0, 7, 0) - scr_hb_add(60, 1, 7, 0) - scr_hb_add(80, 0, 7, 1) - scr_hb_add(80, 1, 7, 0) - scr_hb_add(80, 2, 7, 2) - scr_hb_add(105, 3, 7, 1) - scr_hb_add(105, 4, 7, 0) - scr_hb_add(105, 5, 7, 2) - scr_hb_add(105, 6, 7, 1) - scr_hb_add(105, 7, 7, 0) - scr_hb_add(105, 8, 7, 2) - scr_hb_add(130, 3, 7, 2) - scr_hb_add(130, 4, 7, 0) - scr_hb_add(130, 5, 7, 1) - scr_hb_add(130, 6, 7, 2) - scr_hb_add(130, 7, 7, 0) - scr_hb_add(130, 8, 7, 1) - maxtimer = 220 - } - if (type == 9) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 8, 0) - scr_hb_add(0, 5, 8, 0) - scr_hb_add(19, 6, 8, 0) - scr_hb_add(19, 7, 8, 0) - scr_hb_add(38, 0, 8, 1) - scr_hb_add(38, 1, 8, 0) - scr_hb_add(38, 2, 8, 2) - scr_hb_add(57, 0, 8, 0) - scr_hb_add(57, 2, 8, 0) - scr_hb_add(76, 6, 8, 0) - scr_hb_add(76, 7, 8, 0) - scr_hb_add(95, 4, 8, 0) - scr_hb_add(95, 5, 8, 0) - scr_hb_add(120, 0, 8, 1) - scr_hb_add(120, 1, 8, 0) - scr_hb_add(120, 2, 8, 2) - scr_hb_add(135, 0, 8, 0) - scr_hb_add(135, 2, 8, 0) - maxtimer = 210 - } - if (type == 10 || type == 12) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 0 - cur_time = 0 - time_gap = 17 - if (type == 12) - { - time_gap = 12 - max_attack = 16 - } - prev_pat = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - prev_pat = cur_pat - } - maxtimer = (cur_time + 50) - } - if (type == 11 || type == 13) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 1 - cur_time = 0 - time_gap = 18 - if (type == 13) - { - time_gap = 13 - max_attack = 16 - } - prev_dir = -1 - prev_pat = -1 - cur_dir = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - } - } - if (cur_pat >= 6) - cur_dir = 1 - else - cur_dir = 2 - if (prev_dir != -1) - { - if (prev_dir != cur_dir) - { - if (type == 11) - cur_time += 5 - if (type == 13) - cur_time += 4 - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 6) - { - scr_hb_add(cur_time, 3, 8, 0) - scr_hb_add(cur_time, 4, 8, 0) - cur_time += time_gap - } - if (cur_pat == 7) - { - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 0) - cur_time += time_gap - } - if (cur_pat == 8) - { - scr_hb_add(cur_time, 3, 8, 1) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 2) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - if (cur_pat == 9) - { - scr_hb_add(cur_time, 3, 8, 2) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 1) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - prev_pat = cur_pat - prev_dir = cur_dir - } - maxtimer = (cur_time + 50) - } - global.turntimer = maxtimer - defined = 1 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_halfbullet_gen_Step_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_halfbullet_gen_Step_0.gml deleted file mode 100644 index 3df40f867..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_halfbullet_gen_Step_0.gml +++ /dev/null @@ -1,60 +0,0 @@ -if (active == true && defined == 1) -{ - while (bullettime[curbullet] == bultimer) - { - bul = instance_create(0, 0, obj_halfbullet) - if instance_exists(bul) - { - if (bulletpos[curbullet] == 0 || bulletpos[curbullet] == 1 || bulletpos[curbullet] == 2) - { - bul.x = xpos[bulletpos[curbullet]] - bul.y = -60 - bul.hspeed = 0 - bul.vspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 3 || bulletpos[curbullet] == 4 || bulletpos[curbullet] == 5) - { - bul.x = -48 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 6 || bulletpos[curbullet] == 7 || bulletpos[curbullet] == 8) - { - bul.x = 700 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = (-bulletspeed[curbullet]) - } - bul.type = bullettype[curbullet] - if (bul.type == 1) - bul.image_blend = global.joycon_color[0] - if (bul.type == 2) - bul.image_blend = global.joycon_color[1] - } - curbullet += 1 - if (curbullet >= maxbullet) - { - break - active = false - } - } -} -bultimer += 1 -if (bultimer >= (maxtimer - 10)) - darkness = 0 -if (bultimer >= maxtimer) -{ - with (obj_halfbullet) - instance_destroy() - instance_destroy() -} -if (shift_timer_max >= -1) -{ - shift_timer += 1 - if (shift_timer == shift_timer_max) - { - with (obj_hearthalf) - vertical_ok = 1 - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index f9c3e45d6..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,21 +0,0 @@ -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -var msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (var i = 0; true; i++) -{ - var text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -var xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 08a409c88..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,444 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -var vspacing = 15 -if (global.language == "ja") - vspacing = 16 -var button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), string_hash_to_newline(itext)) - var xx = ((20 + string_width(string_hash_to_newline(itext))) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -var stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), string_hash_to_newline(stext)) - draw_set_color(c_white) -} -button_x += string_width(string_hash_to_newline(stext)) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, string_hash_to_newline(global.button0)) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), string_hash_to_newline(global.button1)) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), string_hash_to_newline(global.button2)) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var analog_text_width = string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")))) - draw_text_transformed(20, (135 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_choice"))) -if (global.joy_dir == 0) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_normal"))) -if (global.joy_dir == 1) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_analog"))) -if (global.joy_dir == 2) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_pov"))) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_reset"))) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_test"))) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_fall")), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 494a374b5..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - return; -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - return; - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index d63e8da5e..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,99 +0,0 @@ -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - return; -} -num_borders = 12 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (var i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -border_11 = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - var BW = ini_read_real("General", "BW", 0) - var BP = ini_read_real("General", "BP", 0) - var BH = ini_read_real("General", "BH", 0) - var DB = ini_read_real("General", "DB", 0) - var EndF = ini_read_real("EndF", "EndF", 0) - var M = ini_read_real("Alphys", "M", 0) - var R = ini_read_real("Alphys", "R", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (global.osflavor == 5) - { - if M - { - border_enabled[11] = 1 - border_11 = R - } - if DB - border_enabled[12] = 1 - } - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 8c37eb92b..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,302 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_fall")), 1, 1, -20) -} -var menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, string_hash_to_newline(scr_gettext("settings_language"))) -draw_text(92, 70, string_hash_to_newline(scr_gettext(("settings_language_" + global.language)))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_button"))) - var vspacing = 18 - var button_x = 0 - for (var i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - var itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), string_hash_to_newline(itext)) - draw_set_color(c_white) - var xx = (40 + string_width(string_hash_to_newline(itext))) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - var button = -4 - for (var b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check((obj_time.j_ch - 1), button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - var command = string_char_at("ZXC", (i + 1)) - var sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(scr_gettext("joyconfig_reset"))) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - var border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_label)) - if (global.screen_border_id == 0) - var border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == 11) - border_sel = scr_gettext(((("settings_border_" + string(global.screen_border_id)) + "_") + string(border_11))) - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(string_hash_to_newline(border_label))) + 20), ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_sel)) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_joyconfig"))) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 0210cdb97..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), string_hash_to_newline((s_value[(i * 2)] + "G - Ninechara"))) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), string_hash_to_newline((s_value[((i * 2) + 1)] + "G - Ninechara"))) - } - draw_text(30, 210, string_hash_to_newline(scr_gettext("shop_exit_submenu"))) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, string_hash_to_newline((("Really sell Ninechara for " + string(value[sellpos])) + "G?"))) - draw_text(80, 180, string_hash_to_newline("Yes")) - draw_text(190, 180, string_hash_to_newline("No")) - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_time_Create_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_time_Create_0.gml deleted file mode 100644 index 84fb4f418..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_time_Create_0.gml +++ /dev/null @@ -1,151 +0,0 @@ -if (os_type == os_windows) - global.osflavor = 1 -else if (os_type == os_ps4 || os_type == os_psvita) - global.osflavor = 4 -else if (os_type == os_switch_beta) - global.osflavor = 5 -else - global.osflavor = 2 -global.locale = ((os_get_language() + "_") + string_upper(os_get_region())) -if (global.osflavor >= 3) -{ - application_surface_enable(true) - application_surface_draw_enable(false) -} -if (os_type == os_switch_beta && (!variable_global_exists("switchlogin"))) - global.switchlogin = switch_accounts_select_account(1, 0, 0) -if (os_type == os_switch_beta) -{ - switch_controller_support_set_defaults() - switch_controller_support_set_singleplayer_only(1) - switch_controller_set_supported_styles(7) - missing_controller_timeout = 0 -} -global.savedata_async_id = -1 -global.savedata_async_load = 0 -global.savedata_error = 0 -global.savedata_debuginfo = "" -global.disable_os_pause = 0 -paused = 0 -idle = 0 -idle_time = 0 -up = 0 -down = 0 -left = 0 -right = 0 -quit = 0 -try_up = 0 -try_down = 0 -try_left = 0 -try_right = 0 -canquit = 1 -h_skip = 0 -j_xpos = 0 -j_ypos = 0 -j_dir = 0 -j_fr = 0 -j_fl = 0 -j_fu = 0 -j_fd = 0 -j_fr_p = 0 -j_fl_p = 0 -j_fu_p = 0 -j_fd_p = 0 -for (var i = 0; i < 12; i += 1) -{ - j_prev[i] = 0 - j_on[i] = 0 -} -global.button0 = 2 -global.button1 = 1 -global.button2 = 4 -global.analog_sense = 0.15 -global.analog_sense_sense = 0.01 -global.joy_dir = 0 -if (os_type == os_ps4 || os_type == os_psvita) -{ - if (substr(global.locale, 1, 2) == "ja") - { - global.button0 = 32770 - global.button1 = 32769 - } - else - { - global.button0 = 32769 - global.button1 = 32770 - } - global.button2 = 32772 -} -else if (os_type == os_switch_beta) -{ - global.button0 = 32770 - global.button1 = 32769 - global.button2 = 32772 -} -global.default_button0 = global.button0 -global.default_button1 = global.button1 -global.default_button2 = global.button2 -global.default_analog_sense = global.analog_sense -global.default_analog_sense_sense = global.analog_sense_sense -global.default_joy_dir = global.joy_dir -global.screen_border_id = 0 -global.screen_border_active = 0 -global.screen_border_alpha = 1 -global.screen_border_state = 0 -global.screen_border_dynamic_fade_id = 0 -global.screen_border_dynamic_fade_level = 0 -global.screen_border_activate_on_game_over = 0 -debug_r = 0 -debug_f = 0 -j1 = 0 -j2 = 0 -ja = 0 -j_ch = 0 -jt = 0 -if (global.osflavor >= 4) -{ - for (i = 0; i < gamepad_get_device_count(); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch == 0) - { - if (os_type == os_switch_beta) - { - if (switch_controller_support_show() == 0) - j_ch = (switch_controller_support_get_selected_id() + 1) - } - else - j_ch = 1 - } -} -spec_rtimer = 0 -global.endsong_loaded = 0 -control_init() -scr_kanatype_init() -if (!variable_global_exists("text_data_en")) - script_execute(textdata_en) -if (!variable_global_exists("text_data_ja")) - script_execute(textdata_ja) -if (os_type == os_switch_beta) - global.language = substr(switch_language_get_desired_language(), 1, 2) -else - global.language = substr(global.locale, 1, 2) -if (global.language != "ja") - global.language = "en" -if (!variable_global_exists("trophy_init_complete")) -{ - global.trophy_init_complete = 0 - trophy_ts = -1 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_time_Step_1.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_time_Step_1.gml deleted file mode 100644 index bca42138e..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_time_Step_1.gml +++ /dev/null @@ -1,400 +0,0 @@ -if (started <= 0) -{ - if (global.savedata_async_id >= 0) - return; - started = -1 - if (!trophy_init()) - { - if (trophy_ts < 0) - trophy_ts = current_time - return; - } - ossafe_ini_open("config.ini") - var lang = ini_read_string("General", "lang", "") - var sb_i = ini_read_real("General", "sb", -1) - var b0_i = ini_read_real("joypad1", "b0", -1) - var b1_i = ini_read_real("joypad1", "b1", -1) - var b2_i = ini_read_real("joypad1", "b2", -1) - var as_i = ini_read_real("joypad1", "as", -1) - var jd_i = ini_read_real("joypad1", "jd", -1) - if (string_length(lang) > 0) - global.language = lang - if (sb_i >= 0) - global.screen_border_id = sb_i - if (b0_i >= 0) - global.button0 = b0_i - if (b1_i >= 0) - global.button1 = b1_i - if (b2_i >= 0) - global.button2 = b2_i - if (as_i >= 0) - global.analog_sense = as_i - if (jd_i >= 0) - global.joy_dir = jd_i - ossafe_ini_close() - scr_enable_screen_border(global.osflavor >= 4) - if (global.osflavor >= 4) - { - global.analog_sense = 0.15 - if (os_type == os_psvita) - global.analog_sense = 0.9 - global.joy_dir = 0 - } - ossafe_ini_open("undertale.ini") - fskip = ini_read_real("FFFFF", "E", -1) - ftime = ini_read_real("FFFFF", "F", -1) - true_end = ini_read_real("EndF", "EndF", -1) - ossafe_ini_close() - sksk = 0 - if (ftime == 1) - { - sksk = 1 - room_goto(room_f_start) - } - if (true_end == 1 && sksk == 0) - { - sksk = 1 - room_goto(room_flowey_regret) - } - if (fskip >= 1 && sksk == 0) - { - global.filechoice = 8 - scr_load() - if (fskip == 1) - room_goto(room_flowey_endchoice) - if (fskip == 2) - room_goto(room_castle_exit) - } - else if (sksk == 0) - room_goto_next() - if (ossafe_file_exists("system_information_962") && (!ossafe_file_exists("system_information_963"))) - room_goto(room_nothingness) - started = 1 - return; -} -if (!paused) - time += 1 -if (global.osflavor <= 2) -{ - if (jt == 0) - { - if (j_ch != 2) - { - if joystick_exists(1) - j_ch = 1 - else if (j_ch == 1) - j_ch = 0 - } - } - if (jt == 4) - { - if (j_ch != 1) - { - if joystick_exists(2) - j_ch = 2 - else if (j_ch == 2) - j_ch = 0 - } - } - jt += 1 - if (jt >= 8) - jt = 0 -} -else if (os_type == os_switch_beta) -{ - if (j_ch > 0 && gamepad_is_connected((j_ch - 1))) - missing_controller_timeout = 0 - else - { - j_ch = 0 - for (var i = 0; (i < gamepad_get_device_count()); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch > 0) - missing_controller_timeout = 0 - else if (missing_controller_timeout == 0) - missing_controller_timeout = (current_time + 2000) - else if (current_time >= missing_controller_timeout) - { - if (switch_controller_support_show() == 0) - { - j_ch = (switch_controller_support_get_selected_id() + 1) - missing_controller_timeout = 0 - } - } - } -} -control_update() -if (j_ch > 0) -{ - j_fr_p = j_fr - j_fl_p = j_fl - j_fu_p = j_fu - j_fd_p = j_fd - j_fr = 0 - j_fl = 0 - j_fu = 0 - j_fd = 0 - if (global.osflavor >= 4) - { - if (gamepad_button_check((j_ch - 1), gp_padu) || gamepad_button_check((j_ch - 1), gp_padd) || gamepad_button_check((j_ch - 1), gp_padl) || gamepad_button_check((j_ch - 1), gp_padr)) - { - j_fu = gamepad_button_check((j_ch - 1), gp_padu) - j_fd = gamepad_button_check((j_ch - 1), gp_padd) - j_fl = gamepad_button_check((j_ch - 1), gp_padl) - j_fr = gamepad_button_check((j_ch - 1), gp_padr) - } - else if (global.joy_dir != 2) - { - var j_xpos = gamepad_axis_value((j_ch - 1), gp_axislh) - var j_ypos = gamepad_axis_value((j_ch - 1), gp_axislv) - var analog_sense = global.analog_sense - if (sqrt((sqr(j_xpos) + sqr(j_ypos))) >= analog_sense) - { - var angle = darctan2(j_ypos, j_xpos) - if (angle < 0) - angle += 360 - if (angle < 67.5 || angle > 292.5) - j_fr = 1 - if (angle > 22.5 && angle < 157.5) - j_fd = 1 - if (angle > 112.5 && angle < 247.5) - j_fl = 1 - if (angle > 202.5 && angle < 337.5) - j_fu = 1 - } - } - } - else - { - if (global.joy_dir == 0 || global.joy_dir == 1) - { - j_xpos = joystick_xpos(j_ch) - j_ypos = joystick_ypos(j_ch) - } - j_dir = joystick_direction(j_ch) - if (global.joy_dir == 0 || global.joy_dir == 1) - { - if (j_dir == 101) - { - if (j_xpos >= global.analog_sense) - j_fr = 1 - if (j_xpos <= (-global.analog_sense)) - j_fl = 1 - if (j_ypos >= global.analog_sense) - j_fd = 1 - if (j_ypos <= (-global.analog_sense)) - j_fu = 1 - } - } - if (j_dir != 101) - { - if (j_dir == 100) - j_fl = 1 - if (j_dir == 98) - j_fd = 1 - if (j_dir == 102) - j_fr = 1 - if (j_dir == 104) - j_fu = 1 - if (j_dir == 99) - { - j_fr = 1 - j_fd = 1 - } - if (j_dir == 97) - { - j_fd = 1 - j_fl = 1 - } - if (j_dir == 103) - { - j_fu = 1 - j_fl = 1 - } - if (j_dir == 105) - { - j_fu = 1 - j_fr = 1 - } - } - if (global.joy_dir == 0 || global.joy_dir == 2) - { - j_pov = joystick_pov(j_ch) - if (j_pov == 0) - j_fu = 1 - if (j_pov == 270) - j_fl = 1 - if (j_pov == 90) - j_fr = 1 - if (j_pov == 180) - j_fd = 1 - if (j_pov == 315) - { - j_fu = 1 - j_fl = 1 - } - if (j_pov == 45) - { - j_fu = 1 - j_fr = 1 - } - if (j_pov == 225) - { - j_fd = 1 - j_fl = 1 - } - if (j_pov == 135) - { - j_fd = 1 - j_fr = 1 - } - } - } - if (j_fr != j_fr_p && j_fr == 1) - keyboard_key_press(vk_right) - if (j_fl != j_fl_p && j_fl == 1) - keyboard_key_press(vk_left) - if (j_fd != j_fd_p && j_fd == 1) - keyboard_key_press(vk_down) - if (j_fu != j_fu_p && j_fu == 1) - keyboard_key_press(vk_up) - if (j_fr != j_fr_p && j_fr == 0) - keyboard_key_release(vk_right) - if (j_fl != j_fl_p && j_fl == 0) - keyboard_key_release(vk_left) - if (j_fd != j_fd_p && j_fd == 0) - keyboard_key_release(vk_down) - if (j_fu != j_fu_p && j_fu == 0) - keyboard_key_release(vk_up) -} -up = 0 -down = 0 -left = 0 -right = 0 -if keyboard_check(vk_up) - try_up = 1 -if keyboard_check_released(vk_up) - try_up = 0 -if keyboard_check(vk_down) - try_down = 1 -if keyboard_check_released(vk_down) - try_down = 0 -if keyboard_check(vk_right) - try_right = 1 -if keyboard_check_released(vk_right) - try_right = 0 -if keyboard_check(vk_left) - try_left = 1 -if keyboard_check_released(vk_left) - try_left = 0 -if (global.osflavor == 1) -{ - if try_up - up = keyboard_check_direct(vk_up) - if try_down - down = keyboard_check_direct(vk_down) - if try_left - left = keyboard_check_direct(vk_left) - if try_right - right = keyboard_check_direct(vk_right) -} -else -{ - if try_up - up = keyboard_check(vk_up) - if try_down - down = keyboard_check(vk_down) - if try_left - left = keyboard_check(vk_left) - if try_right - right = keyboard_check(vk_right) -} -if keyboard_check_released(vk_up) - up = 0 -if keyboard_check_released(vk_down) - down = 0 -if keyboard_check_released(vk_left) - left = 0 -if keyboard_check_released(vk_right) - right = 0 -var now_idle = (!(up || down || left || right || control_check(0) || control_check(1) || control_check(2))) -if (now_idle && (!idle)) - idle_time = current_time -idle = now_idle -if control_check(2) -{ - if (global.flag[28] == 1) - { - if (instance_exists(OBJ_WRITER) && (!instance_exists(obj_choicer))) - { - if (h_skip == 0) - { - keyboard_key_press(ord("X")) - keyboard_key_press(ord("Z")) - } - if (h_skip == 1) - { - keyboard_key_release(ord("Z")) - keyboard_key_release(ord("X")) - } - if (h_skip == 0) - h_skip = 1 - else - h_skip = 0 - } - } -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("F")) - room_speed = 200 -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("W")) - room_speed = 10 -} -if keyboard_check_pressed(vk_f4) -{ - if window_get_fullscreen() - window_set_fullscreen(false) - else - window_set_fullscreen(true) -} -if (canquit == 1) -{ - if (global.debug == 1) - { - if (keyboard_check_pressed(ord("R")) && instance_exists(obj_essaystuff) == 0) - { - debug_r += 1 - if (debug_r > 5) - game_restart() - spec_rtimer = 1 - } - } - spec_rtimer += 1 - if (spec_rtimer >= 6) - debug_r = 0 - if keyboard_check(vk_escape) - { - quit += 1 - if (instance_exists(obj_quittingmessage) == 0) - instance_create(0, 0, obj_quittingmessage) - } - else - quit = 0 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 887b086f9..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - return; - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ee7a4ca81..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6623 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\\XLa, la.^3 &Time to wake&up and\\R smell\\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\\Y" - if (global.flag[22] == 2) - adder = "\\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 965: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_2") - global.msg[1] = scr_gettext("SCR_TEXT_mewmew_3") - global.msg[2] = " " - if (global.tempvalue[14] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_6") - with (obj_mewmew_npc) - con = 1 - } - break - case 966: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_4") - with (obj_mewmew_npc) - con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_5") - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1077: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_0") - if instance_exists(obj_mewmew_boss) - { - if (obj_mewmew_boss.true_battle >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_1") - } - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_get_element.gml deleted file mode 100644 index bd067ef6b..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, false, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_joystick_pov.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_joystick_pov.gml deleted file mode 100644 index 6c8efecf4..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_joystick_pov.gml +++ /dev/null @@ -1,7 +0,0 @@ -var jid = __joystick_2_gamepad(argument0) -var mask = 0 -mask |= (gamepad_button_value(jid, gp_padu) > 0 ? 1 : 0) -mask |= (gamepad_button_value(jid, gp_padr) > 0 ? 2 : 0) -mask |= (gamepad_button_value(jid, gp_padd) > 0 ? 4 : 0) -mask |= (gamepad_button_value(jid, gp_padl) > 0 ? 8 : 0) -return global.__jstick_povangle[mask]; diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 5baecfc3f..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,43 +0,0 @@ -var lines; -if (global.osflavor <= 2) - return file_text_open_read(argument0); -else -{ - var name = string_lower(argument0) - var file = ds_map_find_value(global.savedata, name) - if is_undefined(file) - return undefined; - var data = file - var num_lines = 0 - while (string_byte_length(data) > 0) - { - var newline_pos = string_pos(chr($0A), data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == chr($0D)) - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line - } - handle = ds_map_create() - ds_map_set(handle, "is_write", 0) - ds_map_set(handle, "text", lines) - ds_map_set(handle, "num_lines", num_lines) - ds_map_set(handle, "line", 0) - ds_map_set(handle, "line_read", 0) - return handle; -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index f76acbdc9..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,23 +0,0 @@ -var xx = argument0 -var yy = argument1 -if (global.language == "ja") -{ - var use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (var i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, string_hash_to_newline(global.charname)) -return string_width(string_hash_to_newline(global.charname)); diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_draw_screen_border.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_draw_screen_border.gml deleted file mode 100644 index ddd3cc787..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_draw_screen_border.gml +++ /dev/null @@ -1,259 +0,0 @@ -var overlay; -var border_id = argument0 -draw_enable_alphablend(0) -if (border_id == 1) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_line_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_line_544, 0, 0) -} -if (border_id == 2) -{ - var fade_time = 60 - if instance_exists(obj_stalkerflowey) - { - global.screen_border_state += (1 / fade_time) - if (global.screen_border_state > 1) - global.screen_border_state = 1 - } - else - { - global.screen_border_state -= (1 / fade_time) - if (global.screen_border_state < 0) - global.screen_border_state = 0 - } - var idle_min = 300000 - var idle_time = 0 - if (obj_time.idle && current_time >= (obj_time.idle_time + idle_min)) - idle_time = (current_time - (obj_time.idle_time + idle_min)) - var idle_frame = (floor((idle_time / 100)) % 3) - var base = -4 - for (var i = 0; i < 9; i++) - { - overlay[i, 0] = -4 - overlay[i, 1] = spr_undertaletitle - overlay[i, 2] = spr_undertaletitle - } - if (os_type == os_ps4 || os_type == os_switch_beta) - { - base = bg_border_sepia_1080 - overlay[0, 1] = spr_blconbelow - overlay[0, 2] = spr_truechara_laugh - overlay[1, 1] = spr_superbone - overlay[1, 2] = buttonL_nx_zr - overlay[2, 1] = spr_barktry_ja - overlay[2, 2] = spr_finalfroggit - overlay[3, 1] = spr_undertaletitle - overlay[3, 2] = spr_undynex_example - overlay[4, 1] = spr_vegetoid - overlay[4, 2] = spr_blconbelow - overlay[5, 1] = spr_bookshelf - overlay[5, 2] = spr_undertaletitle - overlay[6, 1] = spr_forcefield_right_middle - overlay[6, 2] = spr_alphyshelper_embarrass - overlay[7, 1] = spr_chipdoor_chippart - overlay[7, 2] = spr_gb_npc - overlay[8, 1] = spr_undynea_ut - overlay[8, 2] = spr_uppbutton - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_1080_1a - overlay[1, 0] = bg_border_sepia_1080_2a - overlay[2, 0] = bg_border_sepia_1080_3a - overlay[3, 0] = bg_border_sepia_1080_4a - overlay[4, 0] = bg_border_sepia_1080_5a - overlay[5, 0] = bg_border_sepia_1080_6a - overlay[6, 0] = bg_border_sepia_1080_7a - overlay[7, 0] = bg_border_sepia_1080_8a - overlay[8, 0] = bg_border_sepia_1080_9a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_1080_1b - overlay[1, 0] = bg_border_sepia_1080_2b - overlay[2, 0] = bg_border_sepia_1080_3b - overlay[3, 0] = bg_border_sepia_1080_4b - overlay[4, 0] = bg_border_sepia_1080_5b - overlay[5, 0] = bg_border_sepia_1080_6b - overlay[6, 0] = bg_border_sepia_1080_7b - overlay[7, 0] = bg_border_sepia_1080_8b - overlay[8, 0] = bg_border_sepia_1080_9b - } - if (global.screen_border_state > 0) - overlay1 = 2839 - } - else if (os_type == os_psvita) - { - base = bg_border_sepia_544 - overlay[0, 1] = spr_talkbt - overlay[0, 2] = spr_undyneb_face3 - overlay[1, 1] = spr_heartorange - overlay[1, 2] = spr_wizard_orbhurt - overlay[2, 1] = spr_undertaletitle - overlay[2, 2] = spr_oolbone_ja - overlay[3, 1] = button_ps4_l3 - overlay[3, 2] = spr_undertaletitle - overlay[4, 1] = buttonL_nx_zl - overlay[4, 2] = spr_whimsunhurt - overlay[5, 1] = buttonL_vita_triangle - overlay[5, 2] = spr_vulkinface5 - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_544_1a - overlay[1, 0] = bg_border_sepia_544_2a - overlay[2, 0] = bg_border_sepia_544_3a - overlay[3, 0] = bg_border_sepia_544_4a - overlay[4, 0] = bg_border_sepia_544_5a - overlay[5, 0] = bg_border_sepia_544_6a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_544_1b - overlay[1, 0] = bg_border_sepia_544_2b - overlay[2, 0] = bg_border_sepia_544_3b - overlay[3, 0] = bg_border_sepia_544_4b - overlay[4, 0] = bg_border_sepia_544_5b - overlay[5, 0] = bg_border_sepia_544_6b - } - if (global.screen_border_state > 0) - overlay1 = 2853 - } - if (base != -4) - { - scr_draw_background_ps4(base, 0, 0) - if (overlay[0, 0] != -4) - { - if (global.screen_border_state > 0) - { - draw_enable_alphablend(1) - draw_set_alpha((global.screen_border_state * 0.5)) - } - scr_draw_background_ps4(overlay[0, 0], overlay[0, 1], overlay[0, 2]) - if (global.screen_border_state > 0) - { - draw_set_alpha(1) - draw_enable_alphablend(0) - } - } - for (i = 1; i < 9; i++) - { - if (overlay[i, 0] != -4) - scr_draw_background_ps4(overlay[i, 0], overlay[i, 1], overlay[i, 2]) - } - } -} -if (border_id == 3) -{ - var room_id = global.currentroom - if ((room_id >= 4 && room_id <= 43) || (room >= room_introstory && room <= room_intromenu) || (room >= room_settings && room <= room_controltest)) - border_id = 4 - if ((room_id >= 44 && room_id <= 81) || room_id == 311 || (room_id >= 265 && room_id <= 266)) - border_id = 5 - if ((room_id >= 82 && room_id <= 136) || room_id == 312 || room_id == 315) - border_id = 6 - if ((room_id >= 137 && room_id <= 215) || room_id == 313 || room_id == 314 || (room_id >= 242 && room_id <= 243)) - border_id = 7 - if (room_id >= 216 && room_id <= 240) - border_id = 8 - if (room_id >= 244 && room_id <= 263) - border_id = 9 - if (room_id == 136 || room_id == 213 || room_id == 215 || room_id == 242 || room_id == 243 || room_id == 316 || room_id == 335 || room_id == 336 || room_id == 337) - border_id = 3.5 - if (global.flag[479] == 0 && (room_id == 244 || room_id == 245)) - border_id = 3.5 - if (border_id != global.screen_border_state) - { - if (global.screen_border_state != 0) - { - if (global.screen_border_dynamic_fade_id == border_id) - global.screen_border_dynamic_fade_level = (1 - global.screen_border_dynamic_fade_level) - else - global.screen_border_dynamic_fade_level = 1 - global.screen_border_dynamic_fade_id = global.screen_border_state - } - global.screen_border_state = border_id - } - if (global.screen_border_dynamic_fade_level > 0) - { - fade_time = 30 - global.screen_border_dynamic_fade_level -= (1 / fade_time) - if (global.screen_border_dynamic_fade_level > 0) - { - scr_draw_screen_border(global.screen_border_dynamic_fade_id) - draw_set_alpha((1 - global.screen_border_dynamic_fade_level)) - } - else - { - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - } - } -} -if (border_id == 3.5) -{ - draw_set_color(c_black) - ossafe_fill_rectangle(0, 0, (window_get_width() - 1), (window_get_height() - 1)) - draw_set_color(c_white) -} -if (border_id == 4) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_ruins_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_ruins_544, 0, 0) -} -if (border_id == 5) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_tundra_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_tundra_544, 0, 0) -} -if (border_id == 6) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_water1_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_water1_544, 0, 0) -} -if (border_id == 7) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_fire_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_fire_544, 0, 0) -} -if (border_id == 8) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_castle_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_castle_544, 0, 0) -} -if (border_id == 9) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_truelab_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_truelab_544, 0, 0) -} -if (border_id == 10) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_rad_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_rad_544, 0, 0) -} -if (border_id == 11) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_anime_1080, 0, 0) -} -if (border_id == 12) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_dog_1080, 0, 0) -} -draw_set_alpha(1) -draw_enable_alphablend(1) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 30f82a28b..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,8 +0,0 @@ -global.msg[0] = scr_gettext("scr_itemdesc_2") -for (var i = 0; true; i++) -{ - var desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 4c986d2f8..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,39 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -var bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 69fc16d1e..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,901 +0,0 @@ -var credamt = 0 -if (global.osflavor <= 2) -{ - var credits_path = (working_directory + "credits.txt") - var credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - var thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew \"Southrop\" Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara \"Svenna\" Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean \"Ariamaki\" Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin \"BenaSPACE\" McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn \"Xisuu\" Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan \"ChessboardMan\" Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles \"Chip Champion\" Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary \"ZarroTsu\" Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will \"Radnar\" Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin \"AT\" Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves \"TehLazyOne\"" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke \"Association\" Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_namingscreen.gml deleted file mode 100644 index 910c48cca..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var lines; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - var xx = (name_x - (q / 3)) - if (global.language == "ja") - { - var kana_count = 0 - for (var i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - var confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - return; - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, string_hash_to_newline(spec_m)) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (var row = 0; row < rows; row++) - { - var yy = ymap[row] - for (var col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), string_hash_to_newline(charmap[row, col])) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - var menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, string_hash_to_newline(menu_text0)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - var menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, string_hash_to_newline(menu_text1)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - var menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, string_hash_to_newline(menu_text2)) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - var charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, string_hash_to_newline(charset_text0)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - var charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, string_hash_to_newline(charset_text1)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - var charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, string_hash_to_newline(charset_text2)) - } - var old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - var best = 0 - var bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - var diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, string_hash_to_newline(charname)) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - var roomname = scr_roomname(roome) - var lvtext = scr_gettext("save_menu_lv", string(love)) - var timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - var namesize = string_width(string_hash_to_newline(substr(name, 1, 6))) - var lvsize = string_width(string_hash_to_newline(lvtext)) - var timesize = string_width(string_hash_to_newline(timetext)) - var x_center = 160 - var lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - var namepos = 70 - var timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, string_hash_to_newline(name)) - draw_text(lvpos, 62, string_hash_to_newline(lvtext)) - draw_text((timepos - timesize), 62, string_hash_to_newline(timetext)) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, string_hash_to_newline(roomname)) - if (selected3 == 0) - draw_set_color(c_yellow) - var continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, string_hash_to_newline(continue_text)) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - var reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, string_hash_to_newline(reset_text)) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - var action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, string_hash_to_newline(scr_gettext("instructions_title"))) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\\*Z") - draw_text(115, 50, string_hash_to_newline(scr_gettext("instructions_confirm_label"))) - scr_drawtext_icons(85, 70, "\\*X") - draw_text(115, 70, string_hash_to_newline(scr_gettext("instructions_cancel_label"))) - scr_drawtext_icons(85, 90, "\\*C") - draw_text(115, 90, string_hash_to_newline(scr_gettext("instructions_menu_label"))) - draw_text(86, 130, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - var num_lines = 5 - if (global.language == "ja") - { - var label_x = 0 - for (i = 0; i < num_lines; i++) - { - var key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), string_hash_to_newline(key)) - xx = ((50 + string_width(string_hash_to_newline(key))) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - var label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), string_hash_to_newline(label)) - } - draw_text(50, 145, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), string_hash_to_newline(((key + " - ") + label))) - } - draw_text(85, 140, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, string_hash_to_newline(scr_gettext("instructions_begin"))) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - var yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, string_hash_to_newline(scr_gettext("settings_name"))) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_base_writer_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_base_writer_Draw_0.gml deleted file mode 100644 index 79f5d3c57..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_base_writer_Draw_0.gml +++ /dev/null @@ -1,436 +0,0 @@ -if vtext - myx = (writingxend - vspacing) -else - myx = writingx -myy = writingy -var halfsize = 0 -for (var n = 1; n <= stringpos; n++) -{ - var ch = string_char_at(originalstring, n) - var myletter = "" - if (ch == "^" && string_char_at(originalstring, (n + 1)) != "0") - { - n++ - continue - } - if (ch == "\\") - { - n++ - ch = string_char_at(originalstring, n) - if (ch == "R") - mycolor = c_red - else if (ch == "G") - mycolor = c_lime - else if (ch == "W") - mycolor = c_white - else if (ch == "Y") - mycolor = c_yellow - else if (ch == "X") - mycolor = c_black - else if (ch == "B") - mycolor = c_blue - else if (ch == "O") - mycolor = c_orange - else if (ch == "L") - mycolor = 0xFDC00E - else if (ch == "P") - mycolor = c_fuchsia - else if (ch == "p") - mycolor = 0xD4BBFF - else if (ch == "C") - event_user(1) - else if (ch == "M") - { - n++ - ch = string_char_at(originalstring, n) - global.flag[20] = real(ch) - } - else if (ch == "E") - { - n++ - ch = string_char_at(originalstring, n) - global.faceemotion = real(ch) - } - else if (ch == "F") - { - n++ - ch = string_char_at(originalstring, n) - global.facechoice = real(ch) - global.facechange = 1 - } - else if (ch == "S") - n++ - else if (ch == "T") - { - n++ - var newtyper = string_char_at(originalstring, n) - if (newtyper == "-") - halfsize = 1 - else if (newtyper == "+") - halfsize = 0 - else - { - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - SCR_TEXTTYPE(global.typer) - global.facechange = 1 - } - } - else if (ch == "z") - { - n++ - var sym = real(string_char_at(originalstring, n)) - if (sym == 4) - { - var sym_s = spr_infinitysign - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - } - } - else if (ch == "*") - { - n++ - ch = string_char_at(originalstring, n) - var icontype = 0 - if (myfont == fnt_papyrus || myfont == fnt_ja_papyrus_btl) - icontype = 1 - var sprite = scr_getbuttonsprite(ch, icontype) - if (sprite != -4) - { - var spritex = myx - var spritey = myy - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - spritex += hspeed - spritey += vspeed - } - else if (shake == 40) - { - spritex += hspeed - spritey += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - spritex += hspeed - spritey += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - spritex += hspeed - spritey += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - spritex += ((hspeed * 0.7) + 10) - spritey += (vspeed * 0.7) - direction -= (30 * n) - } - } - else if (!instance_exists(obj_papdate)) - { - spritex += (random(shake) - (shake / 2)) - spritey += (random(shake) - (shake / 2)) - } - var icon_scale = 1 - if (myfont == fnt_main || myfont == fnt_ja_main) - icon_scale = 2 - if (myfont == fnt_main || myfont == fnt_maintext) - spritey += (1 * icon_scale) - if (myfont == fnt_ja_papyrus_btl) - spritex -= 1 - if (myfont == fnt_papyrus && icontype == 1) - spritey += floor(((16 - sprite_get_height(sprite)) / 2)) - if vtext - { - draw_sprite_ext(sprite, 0, (spritex - sprite_get_width(sprite)), spritey, icon_scale, icon_scale, 0, c_white, 1) - myy += ((sprite_get_height(sprite) + 1) * icon_scale) - } - else - { - draw_sprite_ext(sprite, 0, spritex, spritey, icon_scale, icon_scale, 0, c_white, 1) - myx += ((sprite_get_width(sprite) + 1) * icon_scale) - } - } - } - else if (ch == ">") - { - n++ - var choiceindex = real(string_char_at(originalstring, n)) - if (choiceindex == 1) - myx = 196 - else - { - myx = 100 - if (myfont == fnt_ja_comicsans_big) - myx += 11 - } - if (__view_get(2, view_current) == 640) - myx *= 2 - myx += __view_get(0, view_current) - } - continue - } - if (ch == "&") - { - script_execute(SCR_NEWLINE) - continue - } - if (ch == "/") - { - halt = 1 - var nextch = string_char_at(originalstring, (n + 1)) - if (nextch == "%") - halt = 2 - else if (nextch == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - else if (nextch == "*") - halt = 6 - break - } - else if (ch == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringno++ - originalstring = scr_replace_buttons_pc(mystring[stringno]) - stringpos = 0 - myx = writingx - myy = writingy - alarm[0] = textspeed - break - } - else - { - myletter = string_char_at(originalstring, n) - if (myletter == "^") - n++ - if ((!vtext) && myx > writingxend) - script_execute(SCR_NEWLINE) - var letterx = myx - var offsetx = 0 - var offsety = 0 - var halfscale = 1 - if halfsize - { - halfscale = 0.5 - if vtext - offsetx += (vspacing * 0.33) - else - offsety += (vspacing * 0.33) - } - if (global.language == "en") - { - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - letterx += 2 - if (myletter == "I") - letterx += 2 - if (myletter == "!") - letterx += 2 - if (myletter == ".") - letterx += 2 - if (myletter == "S") - letterx += 1 - if (myletter == "?") - letterx += 2 - if (myletter == "D") - letterx += 1 - if (myletter == "A") - letterx += 1 - if (myletter == "'") - letterx += 1 - } - } - else if (global.language == "ja") - { - if (vtext && (myfont == fnt_ja_papyrus || myfont == fnt_ja_papyrus_btl)) - { - if (myy == writingy && (myletter == "「" || myletter == "『")) - myy -= round((((string_width(string_hash_to_newline(myletter)) / 2) * htextscale) * halfscale)) - } - else if (myfont == fnt_ja_maintext || myfont == fnt_ja_main) - { - var unit = (htextscale * halfscale) - if (myfont == fnt_ja_main) - unit *= 2 - if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (n > 1) - { - var lastch = ord(string_char_at(originalstring, (n - 1))) - if (lastch >= 1024 && lastch < 65281 && lastch != 8211 && lastch != 12288) - letterx += unit - } - } - } - } - scr_setfont(myfont) - draw_set_color(mycolor) - if vtext - var angle = -90 - else - angle = 0 - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - offsetx += hspeed - offsety += vspeed - } - else if (shake == 40) - { - offsetx += hspeed - offsety += vspeed - } - else if (shake == 41) - { - direction += (10 * n) - offsetx += hspeed - offsety += vspeed - direction -= (10 * n) - } - else if (shake == 42) - { - direction += (20 * n) - offsetx += hspeed - offsety += vspeed - direction -= (20 * n) - } - else if (shake == 43) - { - direction += (30 * n) - offsetx += ((hspeed * 0.7) + 10) - offsety += (vspeed * 0.7) - direction -= (30 * n) - } - } - else - { - offsetx += (random(shake) - (shake / 2)) - offsety += (random(shake) - (shake / 2)) - } - var display_scale = (surface_get_width(application_surface) / __view_get(2, view_current)) - var finalx = (round(((letterx + offsetx) * display_scale)) / display_scale) - var finaly = (round(((myy + offsety) * display_scale)) / display_scale) - draw_text_transformed(finalx, finaly, string_hash_to_newline(myletter), (htextscale * halfscale), (vtextscale * halfscale), angle) - letterx += spacing - if (global.language == "en") - { - if (myfont == fnt_comicsans) - { - if (myletter == "w") - letterx += 2 - if (myletter == "m") - letterx += 2 - if (myletter == "i") - letterx -= 2 - if (myletter == "l") - letterx -= 2 - if (myletter == "s") - letterx -= 1 - if (myletter == "j") - letterx -= 1 - } - else if (myfont == fnt_papyrus) - { - if (myletter == "D") - letterx += 1 - if (myletter == "Q") - letterx += 3 - if (myletter == "M") - letterx += 1 - if (myletter == "L") - letterx -= 1 - if (myletter == "K") - letterx -= 1 - if (myletter == "C") - letterx += 1 - if (myletter == ".") - letterx -= 3 - if (myletter == "!") - letterx -= 3 - if (myletter == "O" || myletter == "W") - letterx += 2 - if (myletter == "I") - letterx -= 6 - if (myletter == "T") - letterx -= 1 - if (myletter == "P") - letterx -= 2 - if (myletter == "R") - letterx -= 2 - if (myletter == "A") - letterx += 1 - if (myletter == "H") - letterx += 1 - if (myletter == "B") - letterx += 1 - if (myletter == "G") - letterx += 1 - if (myletter == "F") - letterx -= 1 - if (myletter == "?") - letterx -= 3 - if (myletter == "'") - letterx -= 6 - if (myletter == "J") - letterx -= 1 - } - } - else if (global.language == "ja") - { - if vtext - myy += round(((string_width(string_hash_to_newline(myletter)) * htextscale) * halfscale)) - else if (myletter == " " || ord(myletter) >= 65377) - letterx -= floor((spacing / 2)) - else if (ord(myletter) < 1024 || ord(myletter) == 8211) - { - if (myfont == fnt_ja_comicsans || myfont == fnt_ja_comicsans_big) - letterx -= floor((spacing * 0.3)) - else - letterx -= floor((spacing * 0.4)) - } - } - if (!vtext) - { - if halfsize - myx = round((myx + ((letterx - myx) / 2))) - else - myx = letterx - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml deleted file mode 100644 index eed614253..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_halfbullet_gen_Other_10.gml +++ /dev/null @@ -1,449 +0,0 @@ -if (defined == 0) -{ - if (type == 999) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 2, 6, 0) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 0) - scr_hb_add(22, 2, 6, 2) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 2) - scr_hb_add(66, 1, 6, 0) - scr_hb_add(66, 2, 6, 1) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 0) - scr_hb_add(110, 2, 6, 2) - scr_hb_add(132, 0, 6, 0) - scr_hb_add(132, 2, 6, 0) - scr_hb_add(154, 0, 6, 2) - scr_hb_add(154, 1, 6, 0) - scr_hb_add(154, 2, 6, 1) - maxtimer = 250 - } - if (type == 0) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(8, 1, 6, 0) - scr_hb_add(16, 1, 6, 0) - maxtimer = 95 - } - if (type == 1) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(25, 0, 6, 0) - scr_hb_add(25, 2, 6, 0) - scr_hb_add(50, 1, 6, 0) - scr_hb_add(75, 0, 6, 0) - scr_hb_add(75, 2, 6, 0) - maxtimer = 150 - } - if (type == 2) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 0) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 0) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 0) - scr_hb_add(132, 2, 6, 2) - scr_hb_add(138, 0, 6, 1) - scr_hb_add(138, 1, 6, 0) - scr_hb_add(138, 2, 6, 2) - scr_hb_add(144, 0, 6, 1) - scr_hb_add(144, 1, 6, 0) - scr_hb_add(144, 2, 6, 2) - maxtimer = 220 - } - if (type == 3) - { - scr_hb_add(0, 0, 6, 0) - scr_hb_add(0, 1, 6, 1) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 0) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 2) - scr_hb_add(44, 2, 6, 0) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 2, 6, 0) - scr_hb_add(88, 0, 6, 0) - scr_hb_add(88, 1, 6, 1) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 0) - scr_hb_add(110, 2, 6, 0) - scr_hb_add(132, 0, 6, 1) - scr_hb_add(132, 1, 6, 2) - scr_hb_add(132, 2, 6, 0) - maxtimer = 210 - } - if (type == 4) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(22, 0, 6, 1) - scr_hb_add(22, 1, 6, 2) - scr_hb_add(22, 2, 6, 0) - scr_hb_add(44, 0, 6, 1) - scr_hb_add(44, 1, 6, 0) - scr_hb_add(44, 2, 6, 2) - scr_hb_add(66, 0, 6, 0) - scr_hb_add(66, 1, 6, 1) - scr_hb_add(66, 2, 6, 2) - scr_hb_add(88, 0, 6, 1) - scr_hb_add(88, 1, 6, 0) - scr_hb_add(88, 2, 6, 2) - scr_hb_add(110, 0, 6, 1) - scr_hb_add(110, 1, 6, 2) - scr_hb_add(110, 2, 6, 0) - maxtimer = 180 - } - if (type == 5) - { - scr_hb_add(0, 1, 6, 0) - scr_hb_add(19, 0, 6, 0) - scr_hb_add(19, 2, 6, 0) - scr_hb_add(38, 0, 6, 0) - scr_hb_add(38, 1, 6, 1) - scr_hb_add(38, 2, 6, 2) - scr_hb_add(57, 0, 6, 0) - scr_hb_add(57, 2, 6, 0) - scr_hb_add(76, 1, 6, 0) - scr_hb_add(95, 0, 6, 0) - scr_hb_add(95, 2, 6, 0) - scr_hb_add(114, 0, 6, 1) - scr_hb_add(114, 1, 6, 2) - scr_hb_add(114, 2, 6, 0) - scr_hb_add(133, 0, 6, 0) - scr_hb_add(133, 2, 6, 0) - scr_hb_add(165, 1, 8, 0) - maxtimer = 230 - } - if (type == 6) - { - scr_hb_add(0, 0, 6, 1) - scr_hb_add(0, 1, 6, 0) - scr_hb_add(0, 2, 6, 2) - scr_hb_add(20, 1, 6, 0) - scr_hb_add(20, 2, 6, 0) - scr_hb_add(40, 0, 6, 1) - scr_hb_add(40, 1, 6, 0) - scr_hb_add(40, 2, 6, 2) - scr_hb_add(60, 0, 6, 0) - scr_hb_add(60, 1, 6, 0) - scr_hb_add(80, 0, 6, 0) - scr_hb_add(80, 2, 6, 0) - scr_hb_add(100, 1, 6, 0) - scr_hb_add(100, 2, 6, 0) - scr_hb_add(120, 0, 6, 0) - scr_hb_add(120, 2, 6, 0) - scr_hb_add(140, 0, 6, 0) - scr_hb_add(140, 1, 6, 0) - scr_hb_add(160, 0, 6, 1) - scr_hb_add(160, 1, 6, 0) - scr_hb_add(160, 2, 6, 2) - scr_hb_add(167, 0, 6, 1) - scr_hb_add(167, 1, 6, 0) - scr_hb_add(167, 2, 6, 2) - scr_hb_add(174, 0, 6, 1) - scr_hb_add(174, 1, 6, 0) - scr_hb_add(174, 2, 6, 2) - shift_timer_max = 235 - scr_hb_add(235, 4, 10, 0) - scr_hb_add(235, 7, 10, 0) - maxtimer = 290 - } - if (type == 7) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 3, 6, 1) - scr_hb_add(0, 4, 6, 0) - scr_hb_add(0, 5, 6, 2) - scr_hb_add(30, 0, 6, 1) - scr_hb_add(30, 1, 6, 0) - scr_hb_add(30, 2, 6, 2) - scr_hb_add(60, 3, 6, 2) - scr_hb_add(60, 4, 6, 0) - scr_hb_add(60, 5, 6, 1) - scr_hb_add(90, 0, 6, 1) - scr_hb_add(90, 1, 6, 0) - scr_hb_add(90, 2, 6, 2) - scr_hb_add(120, 3, 6, 1) - scr_hb_add(120, 4, 6, 0) - scr_hb_add(120, 5, 6, 2) - scr_hb_add(150, 0, 6, 1) - scr_hb_add(150, 1, 6, 0) - scr_hb_add(150, 2, 6, 2) - maxtimer = 230 - } - if (type == 8) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 7, 0) - scr_hb_add(0, 5, 7, 0) - scr_hb_add(20, 1, 7, 0) - scr_hb_add(20, 2, 7, 0) - scr_hb_add(40, 6, 7, 0) - scr_hb_add(40, 7, 7, 0) - scr_hb_add(60, 0, 7, 0) - scr_hb_add(60, 1, 7, 0) - scr_hb_add(80, 0, 7, 1) - scr_hb_add(80, 1, 7, 0) - scr_hb_add(80, 2, 7, 2) - scr_hb_add(105, 3, 7, 1) - scr_hb_add(105, 4, 7, 0) - scr_hb_add(105, 5, 7, 2) - scr_hb_add(105, 6, 7, 1) - scr_hb_add(105, 7, 7, 0) - scr_hb_add(105, 8, 7, 2) - scr_hb_add(130, 3, 7, 2) - scr_hb_add(130, 4, 7, 0) - scr_hb_add(130, 5, 7, 1) - scr_hb_add(130, 6, 7, 2) - scr_hb_add(130, 7, 7, 0) - scr_hb_add(130, 8, 7, 1) - maxtimer = 220 - } - if (type == 9) - { - with (obj_hearthalf) - vertical_ok = 1 - scr_hb_add(0, 4, 8, 0) - scr_hb_add(0, 5, 8, 0) - scr_hb_add(19, 6, 8, 0) - scr_hb_add(19, 7, 8, 0) - scr_hb_add(38, 0, 8, 1) - scr_hb_add(38, 1, 8, 0) - scr_hb_add(38, 2, 8, 2) - scr_hb_add(57, 0, 8, 0) - scr_hb_add(57, 2, 8, 0) - scr_hb_add(76, 6, 8, 0) - scr_hb_add(76, 7, 8, 0) - scr_hb_add(95, 4, 8, 0) - scr_hb_add(95, 5, 8, 0) - scr_hb_add(120, 0, 8, 1) - scr_hb_add(120, 1, 8, 0) - scr_hb_add(120, 2, 8, 2) - scr_hb_add(135, 0, 8, 0) - scr_hb_add(135, 2, 8, 0) - maxtimer = 210 - } - if (type == 10 || type == 12) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 0 - cur_time = 0 - time_gap = 17 - if (type == 12) - { - time_gap = 12 - max_attack = 16 - } - prev_pat = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5) - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - prev_pat = cur_pat - } - maxtimer = (cur_time + 50) - } - if (type == 11 || type == 13) - { - max_attack = 9 - with (obj_hearthalf) - vertical_ok = 1 - cur_time = 0 - time_gap = 18 - if (type == 13) - { - time_gap = 13 - max_attack = 16 - } - prev_dir = -1 - prev_pat = -1 - cur_dir = -1 - for (n = 0; n < max_attack; n += 1) - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - ok = 0 - while (ok == 0) - { - if (cur_pat != prev_pat) - ok = 2 - if (cur_pat == 4 && prev_pat == 5) - ok = 0 - if (cur_pat == 5 && prev_pat == 4) - ok = 0 - if (ok == 2) - { - ok = 1 - break - } - else - { - cur_pat = choose(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) - } - } - if (cur_pat >= 6) - cur_dir = 1 - else - cur_dir = 2 - if (prev_dir != -1) - { - if (prev_dir != cur_dir) - { - if (type == 11) - cur_time += 5 - if (type == 13) - cur_time += 4 - } - } - if (cur_pat == 0) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 1) - { - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 2) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 0) - cur_time += time_gap - } - if (cur_pat == 3) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 0) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 4) - { - scr_hb_add(cur_time, 0, 8, 1) - scr_hb_add(cur_time, 1, 8, 2) - scr_hb_add(cur_time, 2, 8, 0) - cur_time += time_gap - } - if (cur_pat == 5) - { - scr_hb_add(cur_time, 0, 8, 0) - scr_hb_add(cur_time, 1, 8, 1) - scr_hb_add(cur_time, 2, 8, 2) - cur_time += time_gap - } - if (cur_pat == 6) - { - scr_hb_add(cur_time, 3, 8, 0) - scr_hb_add(cur_time, 4, 8, 0) - cur_time += time_gap - } - if (cur_pat == 7) - { - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 0) - cur_time += time_gap - } - if (cur_pat == 8) - { - scr_hb_add(cur_time, 3, 8, 1) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 2) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - if (cur_pat == 9) - { - scr_hb_add(cur_time, 3, 8, 2) - scr_hb_add(cur_time, 4, 8, 0) - scr_hb_add(cur_time, 5, 8, 1) - cur_time += time_gap - if (type == 11) - cur_time += 2 - } - prev_pat = cur_pat - prev_dir = cur_dir - } - maxtimer = (cur_time + 50) - } - global.turntimer = maxtimer - defined = 1 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml deleted file mode 100644 index 3df40f867..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_halfbullet_gen_Step_0.gml +++ /dev/null @@ -1,60 +0,0 @@ -if (active == true && defined == 1) -{ - while (bullettime[curbullet] == bultimer) - { - bul = instance_create(0, 0, obj_halfbullet) - if instance_exists(bul) - { - if (bulletpos[curbullet] == 0 || bulletpos[curbullet] == 1 || bulletpos[curbullet] == 2) - { - bul.x = xpos[bulletpos[curbullet]] - bul.y = -60 - bul.hspeed = 0 - bul.vspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 3 || bulletpos[curbullet] == 4 || bulletpos[curbullet] == 5) - { - bul.x = -48 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = bulletspeed[curbullet] - } - if (bulletpos[curbullet] == 6 || bulletpos[curbullet] == 7 || bulletpos[curbullet] == 8) - { - bul.x = 700 - bul.y = ypos[bulletpos[curbullet]] - bul.vspeed = 0 - bul.hspeed = (-bulletspeed[curbullet]) - } - bul.type = bullettype[curbullet] - if (bul.type == 1) - bul.image_blend = global.joycon_color[0] - if (bul.type == 2) - bul.image_blend = global.joycon_color[1] - } - curbullet += 1 - if (curbullet >= maxbullet) - { - break - active = false - } - } -} -bultimer += 1 -if (bultimer >= (maxtimer - 10)) - darkness = 0 -if (bultimer >= maxtimer) -{ - with (obj_halfbullet) - instance_destroy() - instance_destroy() -} -if (shift_timer_max >= -1) -{ - shift_timer += 1 - if (shift_timer == shift_timer_max) - { - with (obj_hearthalf) - vertical_ok = 1 - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_heartdefeated_Other_11.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_heartdefeated_Other_11.gml deleted file mode 100644 index f9c3e45d6..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_heartdefeated_Other_11.gml +++ /dev/null @@ -1,21 +0,0 @@ -if (floor((msgnum / 100)) == 1) - global.typer = 32 -else if (floor((msgnum / 100)) == 3) - global.typer = 110 -else - global.typer = 30 -var msgid_base = (("obj_heartdefeated_" + string(msgnum)) + "_") -for (var i = 0; true; i++) -{ - var text = scr_gettext((msgid_base + string(i))) - if (text == "") - break - global.msg[i] = text -} -dingus = 1 -script_execute(SCR_TEXTTYPE, global.typer) -global.msc = 0 -var xx = 100 -if (global.language == "ja") - xx = 88 -instance_create(xx, 300, OBJ_WRITER) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 08a409c88..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,444 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if control_check_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ossafe_ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ossafe_ini_close() - sm = instance_create(0, 0, obj_settingsmenu) - sm.menu_engage = 0 - sm.buffer = buffer - sm.intro = intro - sm.rectile = rectile - sm.buffer = buffer - sm.weather = weather - sm.extreme = extreme - sm.extreme2 = extreme2 - sm.harp = harp - sm.weathermusic = weathermusic - instance_destroy() -} -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (weather != 3) -{ - draw_set_halign(fa_right) - draw_text_transformed(300, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) - draw_set_halign(fa_left) -} -else - draw_text_transformed(10, 10, string_hash_to_newline(scr_gettext("joyconfig_title")), 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -var vspacing = 15 -if (global.language == "ja") - vspacing = 16 -var button_x = 0 -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = scr_gettext("joyconfig_button_confirm") - if (i == 2) - itext = scr_gettext("joyconfig_button_cancel") - if (i == 3) - itext = scr_gettext("joyconfig_button_menu") - draw_text(20, (75 + ((i - 1) * vspacing)), string_hash_to_newline(itext)) - var xx = ((20 + string_width(string_hash_to_newline(itext))) + 10) - if (xx > button_x) - button_x = xx - draw_set_color(c_white) -} -var stext = scr_gettext("settings_button_separator") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(button_x, (75 + ((i - 1) * vspacing)), string_hash_to_newline(stext)) - draw_set_color(c_white) -} -button_x += string_width(string_hash_to_newline(stext)) -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, 75, (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), 90) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, 75, string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), 75, string_hash_to_newline(global.button0)) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (1 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (1 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (1 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (1 * vspacing)), string_hash_to_newline(global.button1)) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - ossafe_fill_rectangle(button_x, (75 + (2 * vspacing)), (button_x + string_width(string_hash_to_newline(scr_gettext("joyconfig_prompt_button")))), (90 + (2 * vspacing))) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(button_x, (75 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_prompt_button"))) - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text((button_x + 10), (75 + (2 * vspacing)), string_hash_to_newline(global.button2)) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var analog_text_width = string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens"))) -var sensebar_x = ((20 + analog_text_width) + 10) -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense -= global.analog_sense_sense - if obj_time.left - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - scale = (analog_text_width / string_width(string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")))) - draw_text_transformed(20, (135 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_analog_sens_sq")), scale, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if obj_time.right - global.analog_sense_sense -= 0.01 - if obj_time.left - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (control_check_pressed(0) || control_check_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, sensebar_x, (135 + vspacing), 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, ((sensebar_x + 40) - (global.analog_sense_sense * 200)), (138 + vspacing), 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_choice"))) -if (global.joy_dir == 0) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_normal"))) -if (global.joy_dir == 1) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_analog"))) -if (global.joy_dir == 2) - draw_text(100, 170, string_hash_to_newline(scr_gettext("joyconfig_dir_pov"))) -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, (170 + vspacing), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, (170 + vspacing), string_hash_to_newline(scr_gettext("joyconfig_reset"))) -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, (170 + (2 * vspacing)), string_hash_to_newline(scr_gettext("joyconfig_test"))) -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_test_fall")), 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 494a374b5..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - return; -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - return; - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = scr_gettext("obj_movedogehead_185") - if (gg == 1) - global.msg[0] = scr_gettext("obj_movedogehead_186") - if (gg == 2) - global.msg[0] = scr_gettext("obj_movedogehead_187") - global.msg[1] = scr_gettext("obj_movedogehead_188") - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_settingsmenu_Create_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_settingsmenu_Create_0.gml deleted file mode 100644 index d63e8da5e..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_settingsmenu_Create_0.gml +++ /dev/null @@ -1,99 +0,0 @@ -if global.to_joyconfig -{ - global.to_joyconfig = 0 - instance_create(0, 0, obj_joypadmenu) - instance_destroy() - return; -} -num_borders = 12 -border_enabled[0] = 1 -border_enabled[1] = 1 -border_enabled[2] = 1 -border_enabled[3] = 1 -for (var i = 4; i <= num_borders; i++) - border_enabled[i] = 0 -border_11 = 0 -fun = false -if ossafe_file_exists("undertale.ini") -{ - ossafe_ini_open("undertale.ini") - if ossafe_file_exists("file0") - { - fun = true - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - var BW = ini_read_real("General", "BW", 0) - var BP = ini_read_real("General", "BP", 0) - var BH = ini_read_real("General", "BH", 0) - var DB = ini_read_real("General", "DB", 0) - var EndF = ini_read_real("EndF", "EndF", 0) - var M = ini_read_real("Alphys", "M", 0) - var R = ini_read_real("Alphys", "R", 0) - if ((Won || BW) || (CP || BP)) - { - for (i = 4; i <= 8; i++) - border_enabled[i] = 1 - } - if (CP || BP) - border_enabled[9] = 1 - if (CH || BH) - border_enabled[10] = 1 - if (global.osflavor == 5) - { - if M - { - border_enabled[11] = 1 - border_11 = R - } - if DB - border_enabled[12] = 1 - } - if (EndF >= 2) - fun = false - } - ossafe_ini_close() -} -menu = 0 -menu_engage = 0 -buffer = 5 -button_list[0] = 32769 -button_list[1] = 32770 -button_list[2] = 32771 -button_list[3] = 32772 -button_list[4] = 32773 -button_list[5] = 32775 -button_list[6] = 32774 -button_list[7] = 32776 -button_list[8] = 32779 -button_list[9] = 32780 -button_list[10] = 32777 -button_list[11] = 32778 -button_list[12] = -4 -r_line = scr_gettext("joyconfig_resetted") -o_o = 0 -siner = 0 -r_buffer = 0 -intro = 0 -weather = 0 -rectile = 0 -extreme = 0 -extreme2 = 0 -harp = 0 -weathermusic = 0 -if (fun == true) -{ - intro = 1 - menu_engage = -1 - weather = 1 - month = current_month - if (month == 12 || month == 1 || month == 2) - weather = 1 - if (month == 3 || month == 4 || month == 5) - weather = 2 - if (month == 6 || month == 7 || month == 8) - weather = 3 - if (month == 9 || month == 10 || month == 11) - weather = 4 -} -finish = 0 diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_settingsmenu_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_settingsmenu_Draw_0.gml deleted file mode 100644 index 8c37eb92b..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_settingsmenu_Draw_0.gml +++ /dev/null @@ -1,302 +0,0 @@ -buffer -= 1 -if (fun == true && harp == abc_123_a) -{ - harp = caster_load("music/harpnoise.ogg") - if (weather == 1) - weathermusic = caster_load("music/options_winter.ogg") - if (weather == 2 || weather == 4) - weathermusic = caster_load("music/options_fall.ogg") - if (weather == 3) - weathermusic = caster_load("music/options_summer.ogg") -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_winter")), 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_spring")), 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_summer")), 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), string_hash_to_newline(scr_gettext("joyconfig_fun_fall")), 1, 1, -20) -} -var menu_max = 6 -if (global.osflavor <= 2) -{ - menu_max = 2 - if (obj_time.j_ch == 0) - menu_max = 1 -} -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu <= 0) - menu = 0 - if (menu >= menu_max) - menu = menu_max - if (buffer < 0 && control_check_pressed(0)) - { - if (!(global.osflavor >= 4 && menu >= 2 && menu <= 4)) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } - if (menu == 1) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.language == "en") - global.language = "ja" - else - global.language = "en" - } - menu_engage = 0 - } - if (menu == 6) - { - if ((global.osflavor <= 2 && menu_engage == 1) || keyboard_check_pressed(vk_right)) - { - do { - global.screen_border_id++ - if (global.screen_border_id > num_borders) - global.screen_border_id = 0 - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - else if keyboard_check_pressed(vk_left) - { - do { - global.screen_border_id-- - if (global.screen_border_id < 0) - global.screen_border_id = num_borders - } until (global.screen_border_id < 0 || border_enabled[global.screen_border_id]); - - global.screen_border_state = 0 - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - scr_enable_screen_border(1) - } - menu_engage = 0 - } -} -if (menu == 0 && menu_engage == 1) - finish = 1 -draw_set_color(c_white) -scr_setfont(fnt_maintext) -scr_drawtext_centered_scaled(160, 10, scr_gettext("settings_title"), 2, 2) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, string_hash_to_newline(scr_gettext("joyconfig_exit"))) -if (menu != 1) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 70, string_hash_to_newline(scr_gettext("settings_language"))) -draw_text(92, 70, string_hash_to_newline(scr_gettext(("settings_language_" + global.language)))) -if (global.osflavor >= 4) -{ - draw_set_color(c_white) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_button"))) - var vspacing = 18 - var button_x = 0 - for (var i = 0; i < 3; i++) - { - if (menu == (i + 2)) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - if (i == 0) - var itext = scr_gettext("settings_button_confirm") - else if (i == 1) - itext = scr_gettext("settings_button_cancel") - else - itext = scr_gettext("settings_button_menu") - draw_text(40, (100 + ((i + 1) * vspacing)), string_hash_to_newline(itext)) - draw_set_color(c_white) - var xx = (40 + string_width(string_hash_to_newline(itext))) - if (xx > button_x) - button_x = xx - } - button_x += 15 - for (i = 0; i < 3; i++) - { - if (menu == (i + 2) && buffer < 0) - { - var button = -4 - for (var b = 0; button_list[b] != -4; b++) - { - if gamepad_button_check((obj_time.j_ch - 1), button_list[b]) - { - button = button_list[b] - break - } - } - if (button != -4) - { - if (menu == 2) - { - if (global.button1 == button) - global.button1 = global.button0 - if (global.button2 == button) - global.button2 = global.button0 - global.button0 = button - } - else if (menu == 3) - { - if (global.button0 == button) - global.button0 = global.button1 - if (global.button2 == button) - global.button2 = global.button1 - global.button1 = button - } - else - { - if (global.button0 == button) - global.button0 = global.button2 - if (global.button1 == button) - global.button1 = global.button2 - global.button2 = button - } - buffer = 4 - } - } - var command = string_char_at("ZXC", (i + 1)) - var sprite = scr_getbuttonsprite(command, 0) - if (sprite != -4) - draw_sprite(sprite, 0, button_x, (100 + ((i + 1) * vspacing))) - } - if (r_buffer > 0) - { - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(r_line), 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) - } - else - { - if (menu != 5) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, ((100 + (3 * vspacing)) + 25), string_hash_to_newline(scr_gettext("joyconfig_reset"))) - } - if (menu == 5 && menu_engage == 1) - { - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = scr_gettext("joyconfig_spaghetted") - else - r_line = scr_gettext("joyconfig_resetted") - } - global.button0 = global.default_button0 - global.button1 = global.default_button1 - global.button2 = global.default_button2 - global.analog_sense = global.default_analog_sense - global.analog_sense_sense = global.default_analog_sense_sense - global.joy_dir = global.default_joy_dir - menu_engage = 0 - } - if (menu != 6) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - var border_label = scr_gettext("settings_border") - draw_text(20, ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_label)) - if (global.screen_border_id == 0) - var border_sel = scr_gettext("settings_border_none") - else if (global.screen_border_id == 11) - border_sel = scr_gettext(((("settings_border_" + string(global.screen_border_id)) + "_") + string(border_11))) - else - border_sel = scr_gettext(("settings_border_" + string(global.screen_border_id))) - draw_text(((20 + string_width(string_hash_to_newline(border_label))) + 20), ((100 + (3 * vspacing)) + 50), string_hash_to_newline(border_sel)) -} -else if (obj_time.j_ch > 0) -{ - if (menu != 2) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - draw_text(20, 100, string_hash_to_newline(scr_gettext("settings_joyconfig"))) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - ossafe_fill_rectangle((168 - rectile), -10, -1, 250) - draw_set_color(c_black) - ossafe_fill_rectangle((152 + rectile), -10, 330, 250) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} -if (global.osflavor <= 2 && menu == 2 && menu_engage == 1) -{ - jc = instance_create(0, 0, obj_joypadmenu) - jc.menu_engage = 0 - jc.buffer = buffer - jc.intro = intro - jc.rectile = rectile - jc.buffer = buffer - jc.weather = weather - jc.extreme = extreme - jc.extreme2 = extreme2 - jc.harp = harp - jc.weathermusic = weathermusic - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index 0210cdb97..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - scr_setfont(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), string_hash_to_newline((s_value[(i * 2)] + "G - Ninechara"))) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), string_hash_to_newline((s_value[((i * 2) + 1)] + "G - Ninechara"))) - } - draw_text(30, 210, string_hash_to_newline(scr_gettext("shop_exit_submenu"))) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if control_check_pressed(0) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - scr_setfont(fnt_maintext) - draw_text(55, 150, string_hash_to_newline((("Really sell Ninechara for " + string(value[sellpos])) + "G?"))) - draw_text(80, 180, string_hash_to_newline("Yes")) - draw_text(190, 180, string_hash_to_newline("No")) - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, string_hash_to_newline("(9999 G)")) - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (control_check_pressed(0) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_time_Create_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_time_Create_0.gml deleted file mode 100644 index 84fb4f418..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_time_Create_0.gml +++ /dev/null @@ -1,151 +0,0 @@ -if (os_type == os_windows) - global.osflavor = 1 -else if (os_type == os_ps4 || os_type == os_psvita) - global.osflavor = 4 -else if (os_type == os_switch_beta) - global.osflavor = 5 -else - global.osflavor = 2 -global.locale = ((os_get_language() + "_") + string_upper(os_get_region())) -if (global.osflavor >= 3) -{ - application_surface_enable(true) - application_surface_draw_enable(false) -} -if (os_type == os_switch_beta && (!variable_global_exists("switchlogin"))) - global.switchlogin = switch_accounts_select_account(1, 0, 0) -if (os_type == os_switch_beta) -{ - switch_controller_support_set_defaults() - switch_controller_support_set_singleplayer_only(1) - switch_controller_set_supported_styles(7) - missing_controller_timeout = 0 -} -global.savedata_async_id = -1 -global.savedata_async_load = 0 -global.savedata_error = 0 -global.savedata_debuginfo = "" -global.disable_os_pause = 0 -paused = 0 -idle = 0 -idle_time = 0 -up = 0 -down = 0 -left = 0 -right = 0 -quit = 0 -try_up = 0 -try_down = 0 -try_left = 0 -try_right = 0 -canquit = 1 -h_skip = 0 -j_xpos = 0 -j_ypos = 0 -j_dir = 0 -j_fr = 0 -j_fl = 0 -j_fu = 0 -j_fd = 0 -j_fr_p = 0 -j_fl_p = 0 -j_fu_p = 0 -j_fd_p = 0 -for (var i = 0; i < 12; i += 1) -{ - j_prev[i] = 0 - j_on[i] = 0 -} -global.button0 = 2 -global.button1 = 1 -global.button2 = 4 -global.analog_sense = 0.15 -global.analog_sense_sense = 0.01 -global.joy_dir = 0 -if (os_type == os_ps4 || os_type == os_psvita) -{ - if (substr(global.locale, 1, 2) == "ja") - { - global.button0 = 32770 - global.button1 = 32769 - } - else - { - global.button0 = 32769 - global.button1 = 32770 - } - global.button2 = 32772 -} -else if (os_type == os_switch_beta) -{ - global.button0 = 32770 - global.button1 = 32769 - global.button2 = 32772 -} -global.default_button0 = global.button0 -global.default_button1 = global.button1 -global.default_button2 = global.button2 -global.default_analog_sense = global.analog_sense -global.default_analog_sense_sense = global.analog_sense_sense -global.default_joy_dir = global.joy_dir -global.screen_border_id = 0 -global.screen_border_active = 0 -global.screen_border_alpha = 1 -global.screen_border_state = 0 -global.screen_border_dynamic_fade_id = 0 -global.screen_border_dynamic_fade_level = 0 -global.screen_border_activate_on_game_over = 0 -debug_r = 0 -debug_f = 0 -j1 = 0 -j2 = 0 -ja = 0 -j_ch = 0 -jt = 0 -if (global.osflavor >= 4) -{ - for (i = 0; i < gamepad_get_device_count(); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch == 0) - { - if (os_type == os_switch_beta) - { - if (switch_controller_support_show() == 0) - j_ch = (switch_controller_support_get_selected_id() + 1) - } - else - j_ch = 1 - } -} -spec_rtimer = 0 -global.endsong_loaded = 0 -control_init() -scr_kanatype_init() -if (!variable_global_exists("text_data_en")) - script_execute(textdata_en) -if (!variable_global_exists("text_data_ja")) - script_execute(textdata_ja) -if (os_type == os_switch_beta) - global.language = substr(switch_language_get_desired_language(), 1, 2) -else - global.language = substr(global.locale, 1, 2) -if (global.language != "ja") - global.language = "en" -if (!variable_global_exists("trophy_init_complete")) -{ - global.trophy_init_complete = 0 - trophy_ts = -1 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_time_Step_1.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_time_Step_1.gml deleted file mode 100644 index bca42138e..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_time_Step_1.gml +++ /dev/null @@ -1,400 +0,0 @@ -if (started <= 0) -{ - if (global.savedata_async_id >= 0) - return; - started = -1 - if (!trophy_init()) - { - if (trophy_ts < 0) - trophy_ts = current_time - return; - } - ossafe_ini_open("config.ini") - var lang = ini_read_string("General", "lang", "") - var sb_i = ini_read_real("General", "sb", -1) - var b0_i = ini_read_real("joypad1", "b0", -1) - var b1_i = ini_read_real("joypad1", "b1", -1) - var b2_i = ini_read_real("joypad1", "b2", -1) - var as_i = ini_read_real("joypad1", "as", -1) - var jd_i = ini_read_real("joypad1", "jd", -1) - if (string_length(lang) > 0) - global.language = lang - if (sb_i >= 0) - global.screen_border_id = sb_i - if (b0_i >= 0) - global.button0 = b0_i - if (b1_i >= 0) - global.button1 = b1_i - if (b2_i >= 0) - global.button2 = b2_i - if (as_i >= 0) - global.analog_sense = as_i - if (jd_i >= 0) - global.joy_dir = jd_i - ossafe_ini_close() - scr_enable_screen_border(global.osflavor >= 4) - if (global.osflavor >= 4) - { - global.analog_sense = 0.15 - if (os_type == os_psvita) - global.analog_sense = 0.9 - global.joy_dir = 0 - } - ossafe_ini_open("undertale.ini") - fskip = ini_read_real("FFFFF", "E", -1) - ftime = ini_read_real("FFFFF", "F", -1) - true_end = ini_read_real("EndF", "EndF", -1) - ossafe_ini_close() - sksk = 0 - if (ftime == 1) - { - sksk = 1 - room_goto(room_f_start) - } - if (true_end == 1 && sksk == 0) - { - sksk = 1 - room_goto(room_flowey_regret) - } - if (fskip >= 1 && sksk == 0) - { - global.filechoice = 8 - scr_load() - if (fskip == 1) - room_goto(room_flowey_endchoice) - if (fskip == 2) - room_goto(room_castle_exit) - } - else if (sksk == 0) - room_goto_next() - if (ossafe_file_exists("system_information_962") && (!ossafe_file_exists("system_information_963"))) - room_goto(room_nothingness) - started = 1 - return; -} -if (!paused) - time += 1 -if (global.osflavor <= 2) -{ - if (jt == 0) - { - if (j_ch != 2) - { - if joystick_exists(1) - j_ch = 1 - else if (j_ch == 1) - j_ch = 0 - } - } - if (jt == 4) - { - if (j_ch != 1) - { - if joystick_exists(2) - j_ch = 2 - else if (j_ch == 2) - j_ch = 0 - } - } - jt += 1 - if (jt >= 8) - jt = 0 -} -else if (os_type == os_switch_beta) -{ - if (j_ch > 0 && gamepad_is_connected((j_ch - 1))) - missing_controller_timeout = 0 - else - { - j_ch = 0 - for (var i = 0; (i < gamepad_get_device_count()); i++) - { - if gamepad_is_connected(i) - { - if (j_ch > 0) - { - j_ch = 0 - break - } - else - { - j_ch = (i + 1) - } - } - } - if (j_ch > 0) - missing_controller_timeout = 0 - else if (missing_controller_timeout == 0) - missing_controller_timeout = (current_time + 2000) - else if (current_time >= missing_controller_timeout) - { - if (switch_controller_support_show() == 0) - { - j_ch = (switch_controller_support_get_selected_id() + 1) - missing_controller_timeout = 0 - } - } - } -} -control_update() -if (j_ch > 0) -{ - j_fr_p = j_fr - j_fl_p = j_fl - j_fu_p = j_fu - j_fd_p = j_fd - j_fr = 0 - j_fl = 0 - j_fu = 0 - j_fd = 0 - if (global.osflavor >= 4) - { - if (gamepad_button_check((j_ch - 1), gp_padu) || gamepad_button_check((j_ch - 1), gp_padd) || gamepad_button_check((j_ch - 1), gp_padl) || gamepad_button_check((j_ch - 1), gp_padr)) - { - j_fu = gamepad_button_check((j_ch - 1), gp_padu) - j_fd = gamepad_button_check((j_ch - 1), gp_padd) - j_fl = gamepad_button_check((j_ch - 1), gp_padl) - j_fr = gamepad_button_check((j_ch - 1), gp_padr) - } - else if (global.joy_dir != 2) - { - var j_xpos = gamepad_axis_value((j_ch - 1), gp_axislh) - var j_ypos = gamepad_axis_value((j_ch - 1), gp_axislv) - var analog_sense = global.analog_sense - if (sqrt((sqr(j_xpos) + sqr(j_ypos))) >= analog_sense) - { - var angle = darctan2(j_ypos, j_xpos) - if (angle < 0) - angle += 360 - if (angle < 67.5 || angle > 292.5) - j_fr = 1 - if (angle > 22.5 && angle < 157.5) - j_fd = 1 - if (angle > 112.5 && angle < 247.5) - j_fl = 1 - if (angle > 202.5 && angle < 337.5) - j_fu = 1 - } - } - } - else - { - if (global.joy_dir == 0 || global.joy_dir == 1) - { - j_xpos = joystick_xpos(j_ch) - j_ypos = joystick_ypos(j_ch) - } - j_dir = joystick_direction(j_ch) - if (global.joy_dir == 0 || global.joy_dir == 1) - { - if (j_dir == 101) - { - if (j_xpos >= global.analog_sense) - j_fr = 1 - if (j_xpos <= (-global.analog_sense)) - j_fl = 1 - if (j_ypos >= global.analog_sense) - j_fd = 1 - if (j_ypos <= (-global.analog_sense)) - j_fu = 1 - } - } - if (j_dir != 101) - { - if (j_dir == 100) - j_fl = 1 - if (j_dir == 98) - j_fd = 1 - if (j_dir == 102) - j_fr = 1 - if (j_dir == 104) - j_fu = 1 - if (j_dir == 99) - { - j_fr = 1 - j_fd = 1 - } - if (j_dir == 97) - { - j_fd = 1 - j_fl = 1 - } - if (j_dir == 103) - { - j_fu = 1 - j_fl = 1 - } - if (j_dir == 105) - { - j_fu = 1 - j_fr = 1 - } - } - if (global.joy_dir == 0 || global.joy_dir == 2) - { - j_pov = joystick_pov(j_ch) - if (j_pov == 0) - j_fu = 1 - if (j_pov == 270) - j_fl = 1 - if (j_pov == 90) - j_fr = 1 - if (j_pov == 180) - j_fd = 1 - if (j_pov == 315) - { - j_fu = 1 - j_fl = 1 - } - if (j_pov == 45) - { - j_fu = 1 - j_fr = 1 - } - if (j_pov == 225) - { - j_fd = 1 - j_fl = 1 - } - if (j_pov == 135) - { - j_fd = 1 - j_fr = 1 - } - } - } - if (j_fr != j_fr_p && j_fr == 1) - keyboard_key_press(vk_right) - if (j_fl != j_fl_p && j_fl == 1) - keyboard_key_press(vk_left) - if (j_fd != j_fd_p && j_fd == 1) - keyboard_key_press(vk_down) - if (j_fu != j_fu_p && j_fu == 1) - keyboard_key_press(vk_up) - if (j_fr != j_fr_p && j_fr == 0) - keyboard_key_release(vk_right) - if (j_fl != j_fl_p && j_fl == 0) - keyboard_key_release(vk_left) - if (j_fd != j_fd_p && j_fd == 0) - keyboard_key_release(vk_down) - if (j_fu != j_fu_p && j_fu == 0) - keyboard_key_release(vk_up) -} -up = 0 -down = 0 -left = 0 -right = 0 -if keyboard_check(vk_up) - try_up = 1 -if keyboard_check_released(vk_up) - try_up = 0 -if keyboard_check(vk_down) - try_down = 1 -if keyboard_check_released(vk_down) - try_down = 0 -if keyboard_check(vk_right) - try_right = 1 -if keyboard_check_released(vk_right) - try_right = 0 -if keyboard_check(vk_left) - try_left = 1 -if keyboard_check_released(vk_left) - try_left = 0 -if (global.osflavor == 1) -{ - if try_up - up = keyboard_check_direct(vk_up) - if try_down - down = keyboard_check_direct(vk_down) - if try_left - left = keyboard_check_direct(vk_left) - if try_right - right = keyboard_check_direct(vk_right) -} -else -{ - if try_up - up = keyboard_check(vk_up) - if try_down - down = keyboard_check(vk_down) - if try_left - left = keyboard_check(vk_left) - if try_right - right = keyboard_check(vk_right) -} -if keyboard_check_released(vk_up) - up = 0 -if keyboard_check_released(vk_down) - down = 0 -if keyboard_check_released(vk_left) - left = 0 -if keyboard_check_released(vk_right) - right = 0 -var now_idle = (!(up || down || left || right || control_check(0) || control_check(1) || control_check(2))) -if (now_idle && (!idle)) - idle_time = current_time -idle = now_idle -if control_check(2) -{ - if (global.flag[28] == 1) - { - if (instance_exists(OBJ_WRITER) && (!instance_exists(obj_choicer))) - { - if (h_skip == 0) - { - keyboard_key_press(ord("X")) - keyboard_key_press(ord("Z")) - } - if (h_skip == 1) - { - keyboard_key_release(ord("Z")) - keyboard_key_release(ord("X")) - } - if (h_skip == 0) - h_skip = 1 - else - h_skip = 0 - } - } -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("F")) - room_speed = 200 -} -if (global.debug == 1) -{ - if keyboard_check_pressed(ord("W")) - room_speed = 10 -} -if keyboard_check_pressed(vk_f4) -{ - if window_get_fullscreen() - window_set_fullscreen(false) - else - window_set_fullscreen(true) -} -if (canquit == 1) -{ - if (global.debug == 1) - { - if (keyboard_check_pressed(ord("R")) && instance_exists(obj_essaystuff) == 0) - { - debug_r += 1 - if (debug_r > 5) - game_restart() - spec_rtimer = 1 - } - } - spec_rtimer += 1 - if (spec_rtimer >= 6) - debug_r = 0 - if keyboard_check(vk_escape) - { - quit += 1 - if (instance_exists(obj_quittingmessage) == 0) - instance_create(0, 0, obj_quittingmessage) - } - else - quit = 0 -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index 887b086f9..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = "0" - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - return; - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index ee7a4ca81..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6623 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\\XLa, la.^3 &Time to wake&up and\\R smell\\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = "\\W" - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\\Y" - if (global.flag[22] == 2) - adder = "\\p" - } - global.msg[0] = adder - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += scr_gettext("battle_name_a") - } - global.msg[0] += "\\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += scr_gettext("battle_name_b") - } - global.msg[0] += "\\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\\p" - global.msg[0] += (scr_gettext("battle_name_header") + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += scr_gettext("battle_name_c") - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = "" - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\\Y" - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\\p" - } - } - global.msg[0] += scr_gettext("battle_mercy_spare") - if (global.mercy == 0) - global.msg[0] += (" &\\W" + scr_gettext("battle_mercy_flee")) - break - case 9: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[0]) - if (global.item[1] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[1]) - global.msg[0] += "&" - if (global.item[2] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[2]) - if (global.item[3] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[3]) - global.msg[0] += ("&" + scr_gettext("item_menub_page1")) - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = (scr_gettext("item_menub_header") + global.itemnameb[4]) - if (global.item[5] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[5]) - global.msg[0] += "&" - if (global.item[6] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[6]) - if (global.item[7] != 0) - global.msg[0] += (scr_gettext("item_menub_header") + global.itemnameb[7]) - global.msg[0] += ("&" + scr_gettext("item_menub_page2")) - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += scr_gettext("recover_hp", string(global.item[8])) - else - global.msg[0] += scr_gettext("recover_hp_max") - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = scr_gettext("SCR_TEXT_99") - if (i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_100") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_102") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_103") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_104") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = scr_gettext("SCR_TEXT_111") - if (i == 2) - global.msg[0] = scr_gettext("SCR_TEXT_112") - if (i > 3) - global.msg[0] = scr_gettext("SCR_TEXT_113") - if (i == 3) - global.msg[0] = scr_gettext("SCR_TEXT_114") - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_121", string(global.xpreward[3]), string(global.goldreward[3])) - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = scr_gettext("SCR_TEXT_127") - global.msg[1] = scr_gettext("SCR_TEXT_128") - } - if (room == room_ruins7) - { - global.msg[0] = scr_gettext("SCR_TEXT_129") - global.msg[1] = scr_gettext("SCR_TEXT_130") - } - if (room == room_ruins12A) - { - global.msg[0] = scr_gettext("SCR_TEXT_131") - global.msg[1] = scr_gettext("SCR_TEXT_132") - } - if (room == room_ruins19) - global.msg[0] = scr_gettext("SCR_TEXT_133") - if (global.flag[202] >= 20) - global.msg[0] = scr_gettext("SCR_TEXT_134") - if (room == room_tundra1) - global.msg[0] = scr_gettext("SCR_TEXT_135") - if (room == room_tundra3) - global.msg[0] = scr_gettext("SCR_TEXT_136") - if (room == room_tundra_spaghetti) - { - global.msg[0] = scr_gettext("SCR_TEXT_137") - global.msg[1] = scr_gettext("SCR_TEXT_138") - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = scr_gettext("SCR_TEXT_140") - global.msg[1] = scr_gettext("SCR_TEXT_141") - if (global.flag[55] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_142") - global.msg[1] = scr_gettext("SCR_TEXT_143") - } - } - if (room == room_tundra_town) - global.msg[0] = scr_gettext("SCR_TEXT_144") - if (room == room_water2) - global.msg[0] = scr_gettext("SCR_TEXT_145") - if (room == room_water4) - global.msg[0] = scr_gettext("SCR_TEXT_146") - if (room == room_water_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_147") - global.msg[1] = scr_gettext("SCR_TEXT_148") - } - if (room == room_water_preundyne) - { - global.msg[0] = scr_gettext("SCR_TEXT_150") - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_151") - global.msg[1] = scr_gettext("SCR_TEXT_152") - } - if (room == room_water_trashzone2) - global.msg[0] = scr_gettext("SCR_TEXT_153") - if (room == room_water_trashsavepoint) - { - global.msg[0] = scr_gettext("SCR_TEXT_156") - global.msg[1] = scr_gettext("SCR_TEXT_157") - global.msg[2] = scr_gettext("SCR_TEXT_158") - global.msg[3] = scr_gettext("SCR_TEXT_159") - global.msg[4] = scr_gettext("SCR_TEXT_160") - if (global.flag[91] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_161") - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = scr_gettext("SCR_TEXT_164") - if (room == room_water_temvillage) - global.msg[0] = scr_gettext("SCR_TEXT_165") - if (room == room_water_undynefinal) - { - global.msg[0] = scr_gettext("SCR_TEXT_168") - if (global.flag[99] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_169") - if (global.flag[350] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_170") - } - if (room == room_fire_prelab) - { - global.msg[0] = scr_gettext("SCR_TEXT_174") - global.msg[1] = scr_gettext("SCR_TEXT_175") - } - if (room == room_fire6) - global.msg[0] = scr_gettext("SCR_TEXT_180") - if (room == room_fire_savepoint1) - { - global.msg[0] = scr_gettext("SCR_TEXT_184") - global.msg[1] = scr_gettext("SCR_TEXT_185") - } - if (room == room_fire_mewmew2) - { - global.msg[0] = scr_gettext("SCR_TEXT_187") - global.msg[1] = scr_gettext("SCR_TEXT_188") - } - if (room == room_fire_hotelfront_1) - global.msg[0] = scr_gettext("SCR_TEXT_191") - if (room == room_fire_hotellobby) - global.msg[0] = scr_gettext("SCR_TEXT_195") - if (room == room_fire_core_branch) - global.msg[0] = scr_gettext("SCR_TEXT_199") - if (room == room_fire_core_premett) - { - global.msg[0] = scr_gettext("SCR_TEXT_203") - global.msg[1] = scr_gettext("SCR_TEXT_204") - } - if (room == room_fire_savepoint2) - { - global.msg[0] = scr_gettext("SCR_TEXT_208") - global.msg[1] = scr_gettext("SCR_TEXT_209") - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_store1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_store2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_store3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = scr_gettext("item_box_take1", global.itemname[global.menucoord[6]]) - if (i > 12) - global.msg[0] = scr_gettext("item_box_take2", global.itemname[global.menucoord[6]]) - if (i > 13) - global.msg[0] = scr_gettext("item_box_take3", global.itemname[global.menucoord[6]]) - global.msg[0] += "/%" - break - case 18: - global.msg[0] = scr_gettext("item_full_inventory") - break - case 19: - global.msg[0] = scr_gettext("item_full_box") - break - case 23: - global.msg[0] = scr_gettext("SCR_TEXT_242") - break - case 30: - global.msg[0] = scr_gettext("SCR_TEXT_246") - global.msg[1] = scr_gettext("SCR_TEXT_247") - global.msg[2] = scr_gettext("SCR_TEXT_248") - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = scr_gettext("SCR_TEXT_270") - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = scr_gettext("SCR_TEXT_275") - if (gx == 1) - global.msg[0] = scr_gettext("SCR_TEXT_276") - if (gx == 2) - global.msg[0] = scr_gettext("SCR_TEXT_277") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_282") - break - case 200: - global.msg[0] = scr_gettext("SCR_TEXT_291") - global.msg[1] = scr_gettext("SCR_TEXT_292") - global.msg[2] = scr_gettext("SCR_TEXT_293") - global.msg[3] = scr_gettext("SCR_TEXT_294") - global.msg[4] = scr_gettext("SCR_TEXT_295") - global.msg[5] = scr_gettext("SCR_TEXT_296") - global.msg[6] = scr_gettext("SCR_TEXT_297") - break - case 201: - global.msg[0] = scr_gettext("SCR_TEXT_301") - global.msg[1] = scr_gettext("SCR_TEXT_302") - break - case 202: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 203: - global.msg[0] = scr_gettext("SCR_TEXT_311") - global.msg[1] = scr_gettext("SCR_TEXT_312") - global.msg[2] = scr_gettext("SCR_TEXT_313") - global.msg[3] = scr_gettext("SCR_TEXT_314") - break - case 204: - global.msg[0] = scr_gettext("SCR_TEXT_318") - global.msg[1] = scr_gettext("SCR_TEXT_319") - if (global.flag[6] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_322") - global.msg[2] = scr_gettext("SCR_TEXT_323") - global.msg[3] = scr_gettext("SCR_TEXT_324") - global.msg[4] = scr_gettext("SCR_TEXT_325") - } - break - case 205: - global.msg[0] = scr_gettext("SCR_TEXT_330") - break - case 206: - global.msg[0] = scr_gettext("SCR_TEXT_334") - global.msg[1] = scr_gettext("SCR_TEXT_335") - break - case 207: - global.msg[0] = scr_gettext("SCR_TEXT_339") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_342") - break - case 208: - global.msg[0] = scr_gettext("SCR_TEXT_347") - global.msg[1] = scr_gettext("SCR_TEXT_348") - if (global.flag[6] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_352") - break - case 209: - global.msg[0] = scr_gettext("SCR_TEXT_357") - global.msg[1] = scr_gettext("SCR_TEXT_358") - break - case 210: - global.msg[0] = scr_gettext("SCR_TEXT_362") - global.msg[1] = scr_gettext("SCR_TEXT_363") - break - case 211: - global.msg[0] = scr_gettext("SCR_TEXT_367") - global.msg[1] = scr_gettext("SCR_TEXT_368") - global.msg[2] = scr_gettext("SCR_TEXT_369") - global.msg[3] = scr_gettext("SCR_TEXT_370") - global.msg[4] = scr_gettext("SCR_TEXT_371") - global.msg[5] = scr_gettext("SCR_TEXT_372") - global.msg[6] = scr_gettext("SCR_TEXT_373") - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_379") - global.msg[1] = scr_gettext("SCR_TEXT_380") - } - if (global.flag[10] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_384") - if (global.flag[11] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_388") - global.msg[1] = scr_gettext("SCR_TEXT_389") - global.msg[2] = scr_gettext("SCR_TEXT_390") - global.msg[3] = scr_gettext("SCR_TEXT_391") - global.msg[4] = scr_gettext("SCR_TEXT_392") - global.msg[5] = scr_gettext("SCR_TEXT_393") - global.msg[6] = scr_gettext("SCR_TEXT_394") - } - if (global.flag[13] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_398") - global.msg[1] = scr_gettext("SCR_TEXT_399") - global.msg[2] = scr_gettext("SCR_TEXT_400") - } - break - case 213: - global.msg[0] = scr_gettext("SCR_TEXT_405") - global.msg[1] = scr_gettext("SCR_TEXT_406") - break - case 214: - global.msg[0] = scr_gettext("SCR_TEXT_411") - global.msg[1] = scr_gettext("SCR_TEXT_412") - global.msg[2] = scr_gettext("SCR_TEXT_413") - global.msg[3] = scr_gettext("SCR_TEXT_414") - global.msg[4] = scr_gettext("SCR_TEXT_415") - global.msg[5] = scr_gettext("SCR_TEXT_416") - global.msg[6] = scr_gettext("SCR_TEXT_417") - global.msg[7] = scr_gettext("SCR_TEXT_418") - global.msg[8] = scr_gettext("SCR_TEXT_419") - break - case 215: - global.msg[0] = scr_gettext("SCR_TEXT_423") - global.msg[1] = scr_gettext("SCR_TEXT_424") - break - case 216: - global.msg[0] = scr_gettext("SCR_TEXT_428") - global.msg[1] = scr_gettext("SCR_TEXT_429") - break - case 217: - global.msg[0] = scr_gettext("SCR_TEXT_433") - global.msg[1] = scr_gettext("SCR_TEXT_434") - break - case 218: - global.msg[0] = scr_gettext("SCR_TEXT_438") - break - case 219: - global.msg[0] = scr_gettext("SCR_TEXT_442") - break - case 220: - global.msg[0] = scr_gettext("SCR_TEXT_446") - global.msg[1] = scr_gettext("SCR_TEXT_447") - global.msg[2] = scr_gettext("SCR_TEXT_448") - global.msg[3] = scr_gettext("SCR_TEXT_449") - global.msg[4] = scr_gettext("SCR_TEXT_450") - global.msg[5] = scr_gettext("SCR_TEXT_451") - global.msg[6] = scr_gettext("SCR_TEXT_452") - global.msg[7] = scr_gettext("SCR_TEXT_453") - global.msg[8] = scr_gettext("SCR_TEXT_454") - global.msg[9] = scr_gettext("SCR_TEXT_455") - break - case 221: - global.msg[0] = scr_gettext("SCR_TEXT_459") - global.msg[1] = scr_gettext("SCR_TEXT_460") - global.msg[2] = scr_gettext("SCR_TEXT_461") - global.msg[3] = scr_gettext("SCR_TEXT_462") - global.msg[4] = scr_gettext("SCR_TEXT_463") - break - case 222: - global.msg[0] = scr_gettext("SCR_TEXT_467") - global.msg[1] = scr_gettext("SCR_TEXT_468") - global.msg[2] = scr_gettext("SCR_TEXT_469") - global.msg[3] = scr_gettext("SCR_TEXT_470") - global.msg[4] = scr_gettext("SCR_TEXT_471") - global.msg[5] = scr_gettext("SCR_TEXT_472") - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ossafe_ini_close() - ossafe_savedata_save() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ossafe_ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ossafe_ini_close() - ossafe_savedata_save() - } - global.msg[0] = scr_gettext("SCR_TEXT_490") - global.msg[1] = scr_gettext("SCR_TEXT_491") - global.msg[2] = scr_gettext("SCR_TEXT_492") - global.msg[5] = scr_gettext("SCR_TEXT_493") - break - case 224: - global.msg[0] = scr_gettext("SCR_TEXT_497") - global.msg[1] = scr_gettext("SCR_TEXT_498") - global.msg[2] = scr_gettext("SCR_TEXT_499") - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_511") - global.msg[1] = scr_gettext("SCR_TEXT_512") - global.msg[2] = scr_gettext("SCR_TEXT_513") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_516") - global.msg[1] = scr_gettext("SCR_TEXT_517") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_522") - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_529") - if (global.flag[56] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_533") - global.msg[1] = scr_gettext("SCR_TEXT_534") - global.msg[2] = scr_gettext("SCR_TEXT_535") - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_540") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_545") - global.msg[1] = scr_gettext("SCR_TEXT_546") - global.msg[2] = scr_gettext("SCR_TEXT_547") - global.msg[3] = scr_gettext("SCR_TEXT_548") - global.msg[4] = scr_gettext("SCR_TEXT_549") - } - } - if (global.flag[56] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_554") - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_559") - scr_itemget(16) - if (noroom == 1) - global.msg[2] = scr_gettext("SCR_TEXT_563") - else - { - global.msg[2] = scr_gettext("SCR_TEXT_567") - global.msg[3] = scr_gettext("SCR_TEXT_568") - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_576") - global.msg[1] = scr_gettext("SCR_TEXT_577") - global.msg[2] = scr_gettext("SCR_TEXT_578") - global.msg[3] = scr_gettext("SCR_TEXT_579") - global.msg[4] = scr_gettext("SCR_TEXT_580") - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_590") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_593") - global.msg[1] = scr_gettext("SCR_TEXT_594") - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_600") - break - case 228: - global.msg[0] = scr_gettext("SCR_TEXT_605") - if (global.flag[254] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_606") - scr_sansface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_608") - global.msg[3] = scr_gettext("SCR_TEXT_609") - scr_papface(4, 1) - global.msg[5] = scr_gettext("SCR_TEXT_611") - global.msg[6] = scr_gettext("SCR_TEXT_612") - global.msg[7] = scr_gettext("SCR_TEXT_613") - global.msg[8] = scr_gettext("SCR_TEXT_614") - scr_sansface(9, 0) - global.msg[10] = scr_gettext("SCR_TEXT_616") - global.msg[11] = scr_gettext("SCR_TEXT_617") - scr_papface(12, 3) - global.msg[13] = scr_gettext("SCR_TEXT_619") - global.msg[14] = scr_gettext("SCR_TEXT_620") - global.msg[15] = scr_gettext("SCR_TEXT_621") - global.msg[16] = scr_gettext("SCR_TEXT_622") - global.msg[17] = scr_gettext("SCR_TEXT_623") - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_631") - global.msg[2] = scr_gettext("SCR_TEXT_632") - global.msg[3] = scr_gettext("SCR_TEXT_633") - global.msg[4] = scr_gettext("SCR_TEXT_634") - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_639") - global.msg[2] = scr_gettext("SCR_TEXT_640") - global.msg[3] = scr_gettext("SCR_TEXT_641") - global.msg[4] = scr_gettext("SCR_TEXT_642") - global.msg[5] = scr_gettext("SCR_TEXT_643") - global.msg[6] = scr_gettext("SCR_TEXT_644") - global.msg[7] = scr_gettext("SCR_TEXT_645") - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_654") - global.msg[1] = scr_gettext("SCR_TEXT_655") - global.msg[2] = scr_gettext("SCR_TEXT_656") - global.msg[3] = scr_gettext("SCR_TEXT_657") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_661") - global.msg[1] = scr_gettext("SCR_TEXT_662") - global.msg[2] = scr_gettext("SCR_TEXT_663") - global.msg[3] = scr_gettext("SCR_TEXT_664") - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_682") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_684") - global.msg[1] = scr_gettext("SCR_TEXT_685") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_688") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_691") - global.msg[1] = scr_gettext("SCR_TEXT_692") - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_704") - global.msg[1] = scr_gettext("SCR_TEXT_705") - global.msg[2] = scr_gettext("SCR_TEXT_706") - global.msg[3] = scr_gettext("SCR_TEXT_707") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_711") - global.msg[1] = scr_gettext("SCR_TEXT_712") - global.msg[2] = scr_gettext("SCR_TEXT_713") - global.msg[3] = scr_gettext("SCR_TEXT_714") - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_721") - global.msg[1] = scr_gettext("SCR_TEXT_722") - global.msg[2] = scr_gettext("SCR_TEXT_723") - global.msg[3] = scr_gettext("SCR_TEXT_724") - } - if (global.flag[60] >= 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_728") - global.msg[1] = scr_gettext("SCR_TEXT_729") - global.msg[2] = scr_gettext("SCR_TEXT_730") - global.msg[3] = scr_gettext("SCR_TEXT_731") - } - } - if (itemcount > 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_736") - global.msg[1] = scr_gettext("SCR_TEXT_737") - global.msg[2] = scr_gettext("SCR_TEXT_738") - global.msg[3] = scr_gettext("SCR_TEXT_739") - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_777") - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_779") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_781") - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_784") - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = scr_gettext("SCR_TEXT_803") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_809") - global.msg[1] = scr_gettext("SCR_TEXT_810") - } - break - case 235: - global.msg[0] = scr_gettext("SCR_TEXT_815") - global.msg[1] = scr_gettext("SCR_TEXT_816") - global.msg[2] = scr_gettext("SCR_TEXT_817") - break - case 236: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_823") - global.msg[1] = scr_gettext("SCR_TEXT_824") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_828") - global.msg[1] = scr_gettext("SCR_TEXT_829") - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_836") - global.msg[1] = scr_gettext("SCR_TEXT_837") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_841") - global.msg[1] = scr_gettext("SCR_TEXT_842") - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_849") - global.msg[1] = scr_gettext("SCR_TEXT_850") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_854") - break - case 239: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_861") - global.msg[1] = scr_gettext("SCR_TEXT_862") - global.msg[2] = scr_gettext("SCR_TEXT_863") - if (global.gold >= 50000) - { - global.msg[0] = scr_gettext("SCR_TEXT_867") - global.msg[1] = scr_gettext("SCR_TEXT_868") - global.msg[2] = scr_gettext("SCR_TEXT_869") - global.msg[3] = scr_gettext("SCR_TEXT_870") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_875") - break - case 240: - global.msg[0] = scr_gettext("SCR_TEXT_880") - global.msg[1] = scr_gettext("SCR_TEXT_881") - global.msg[2] = scr_gettext("SCR_TEXT_882") - global.msg[3] = scr_gettext("SCR_TEXT_883") - global.msg[4] = scr_gettext("SCR_TEXT_884") - global.msg[5] = scr_gettext("SCR_TEXT_885") - break - case 241: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_890") - if (global.choice == 0) - { - global.msg[2] = scr_gettext("SCR_TEXT_893") - global.msg[3] = scr_gettext("SCR_TEXT_894") - global.msg[4] = scr_gettext("SCR_TEXT_895") - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_900") - global.msg[3] = scr_gettext("SCR_TEXT_901") - global.msg[4] = scr_gettext("SCR_TEXT_902") - global.flag[62] = 2 - } - global.msg[5] = scr_gettext("SCR_TEXT_905") - global.msg[6] = scr_gettext("SCR_TEXT_906") - global.msg[7] = scr_gettext("SCR_TEXT_907") - break - case 243: - global.msg[0] = scr_gettext("SCR_TEXT_911") - global.msg[1] = scr_gettext("SCR_TEXT_912") - global.msg[2] = scr_gettext("SCR_TEXT_913") - global.msg[3] = scr_gettext("SCR_TEXT_914") - global.msg[4] = scr_gettext("SCR_TEXT_915") - global.msg[5] = scr_gettext("SCR_TEXT_916") - global.msg[6] = scr_gettext("SCR_TEXT_917") - global.msg[7] = scr_gettext("SCR_TEXT_918") - global.msg[8] = scr_gettext("SCR_TEXT_919") - global.msg[9] = scr_gettext("SCR_TEXT_920") - global.msg[10] = scr_gettext("SCR_TEXT_921") - global.msg[11] = scr_gettext("SCR_TEXT_922") - global.msg[12] = scr_gettext("SCR_TEXT_923") - global.msg[13] = scr_gettext("SCR_TEXT_924") - global.msg[14] = scr_gettext("SCR_TEXT_925") - global.msg[15] = scr_gettext("SCR_TEXT_926") - global.msg[16] = scr_gettext("SCR_TEXT_927") - global.msg[17] = scr_gettext("SCR_TEXT_928") - global.msg[18] = scr_gettext("SCR_TEXT_929") - global.msg[19] = scr_gettext("SCR_TEXT_930") - global.msg[20] = scr_gettext("SCR_TEXT_931") - global.msg[21] = scr_gettext("SCR_TEXT_932") - global.msg[22] = scr_gettext("SCR_TEXT_933") - global.msg[23] = scr_gettext("SCR_TEXT_934") - global.msg[24] = scr_gettext("SCR_TEXT_935") - global.msg[25] = scr_gettext("SCR_TEXT_936") - global.msg[26] = scr_gettext("SCR_TEXT_937") - global.msg[27] = scr_gettext("SCR_TEXT_938") - global.msg[28] = scr_gettext("SCR_TEXT_939") - global.msg[29] = scr_gettext("SCR_TEXT_940") - global.msg[30] = scr_gettext("SCR_TEXT_941") - global.msg[31] = scr_gettext("SCR_TEXT_942") - global.msg[32] = scr_gettext("SCR_TEXT_943") - global.msg[33] = scr_gettext("SCR_TEXT_944") - global.msg[34] = scr_gettext("SCR_TEXT_945") - global.msg[35] = scr_gettext("SCR_TEXT_946") - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_953") - global.msg[2] = scr_gettext("SCR_TEXT_954") - global.msg[3] = scr_gettext("SCR_TEXT_955") - global.msg[4] = scr_gettext("SCR_TEXT_956") - global.msg[5] = scr_gettext("SCR_TEXT_957") - global.msg[6] = scr_gettext("SCR_TEXT_958") - global.msg[7] = scr_gettext("SCR_TEXT_959") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_965") - global.msg[2] = scr_gettext("SCR_TEXT_966") - global.msg[3] = scr_gettext("SCR_TEXT_967") - global.msg[4] = scr_gettext("SCR_TEXT_968") - global.msg[5] = scr_gettext("SCR_TEXT_969") - global.msg[6] = scr_gettext("SCR_TEXT_970") - global.msg[7] = scr_gettext("SCR_TEXT_971") - global.msg[8] = scr_gettext("SCR_TEXT_972") - global.msg[9] = scr_gettext("SCR_TEXT_973") - global.msg[10] = scr_gettext("SCR_TEXT_974") - global.msg[11] = scr_gettext("SCR_TEXT_975") - global.msg[12] = scr_gettext("SCR_TEXT_976") - global.msg[13] = scr_gettext("SCR_TEXT_977") - global.msg[14] = scr_gettext("SCR_TEXT_978") - global.msg[15] = scr_gettext("SCR_TEXT_979") - global.msg[16] = scr_gettext("SCR_TEXT_980") - global.msg[17] = scr_gettext("SCR_TEXT_981") - global.msg[18] = scr_gettext("SCR_TEXT_982") - global.msg[19] = scr_gettext("SCR_TEXT_983") - global.msg[20] = scr_gettext("SCR_TEXT_984") - global.msg[21] = scr_gettext("SCR_TEXT_985") - global.msg[22] = scr_gettext("SCR_TEXT_986") - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_994") - global.msg[2] = scr_gettext("SCR_TEXT_995") - global.msg[3] = scr_gettext("SCR_TEXT_996") - global.msg[4] = scr_gettext("SCR_TEXT_997") - global.msg[5] = scr_gettext("SCR_TEXT_998") - global.msg[6] = scr_gettext("SCR_TEXT_999") - global.msg[7] = scr_gettext("SCR_TEXT_1000") - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1006") - global.msg[2] = scr_gettext("SCR_TEXT_1007") - global.msg[3] = scr_gettext("SCR_TEXT_1008") - global.msg[4] = scr_gettext("SCR_TEXT_1009") - global.msg[5] = scr_gettext("SCR_TEXT_1010") - global.msg[6] = scr_gettext("SCR_TEXT_1011") - global.msg[7] = scr_gettext("SCR_TEXT_1012") - global.msg[8] = scr_gettext("SCR_TEXT_1013") - global.msg[9] = scr_gettext("SCR_TEXT_1014") - global.msg[10] = scr_gettext("SCR_TEXT_1015") - global.msg[11] = scr_gettext("SCR_TEXT_1016") - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1024") - global.msg[1] = scr_gettext("SCR_TEXT_1025") - global.msg[2] = scr_gettext("SCR_TEXT_1026") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1029") - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1045") - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1048") - global.msg[1] = scr_gettext("SCR_TEXT_1049") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1053") - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1060") - global.msg[1] = scr_gettext("SCR_TEXT_1061") - global.msg[2] = scr_gettext("SCR_TEXT_1062") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1065") - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1081") - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1084") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1088") - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = scr_gettext("SCR_TEXT_1096", card) - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1097", card) - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1098", card) - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1099", card) - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1100", card) - global.msg[1] = scr_gettext("SCR_TEXT_1101") - global.msg[2] = scr_gettext("SCR_TEXT_1102") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1105") - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1120") - if (global.flag[80] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_1121") - if (global.flag[80] > 4) - global.msg[0] = scr_gettext("SCR_TEXT_1122") - if (global.flag[80] > 6) - global.msg[0] = scr_gettext("SCR_TEXT_1123") - if (global.flag[80] > 12) - global.msg[0] = scr_gettext("SCR_TEXT_1124") - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1127") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1131") - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1139") - global.msg[1] = scr_gettext("SCR_TEXT_1140") - global.msg[2] = scr_gettext("SCR_TEXT_1141") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1144") - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1160") - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1163") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1167") - break - case 254: - global.msg[0] = scr_gettext("SCR_TEXT_1172") - global.msg[1] = scr_gettext("SCR_TEXT_1173") - global.msg[2] = scr_gettext("SCR_TEXT_1174") - if (global.flag[85] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1177") - break - case 255: - global.msg[0] = scr_gettext("SCR_TEXT_1182") - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1197") - global.msg[1] = scr_gettext("SCR_TEXT_1198") - global.msg[2] = scr_gettext("SCR_TEXT_1199") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1202") - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1221") - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1224") - if (noroom == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1225") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1229") - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1237") - global.msg[1] = scr_gettext("SCR_TEXT_1238") - global.msg[2] = scr_gettext("SCR_TEXT_1239") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1242") - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1258") - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1261") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1265") - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1273") - global.msg[1] = scr_gettext("SCR_TEXT_1274") - global.msg[2] = scr_gettext("SCR_TEXT_1275") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1278") - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1294") - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1297") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1301") - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1308") - global.msg[1] = scr_gettext("SCR_TEXT_1309") - global.msg[2] = scr_gettext("SCR_TEXT_1310") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1313") - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1329") - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1332") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1336") - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1343") - global.msg[1] = scr_gettext("SCR_TEXT_1344") - global.msg[2] = scr_gettext("SCR_TEXT_1345") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1348") - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1363") - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1366") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1370") - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1378") - global.msg[1] = scr_gettext("SCR_TEXT_1379") - global.msg[2] = scr_gettext("SCR_TEXT_1380") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1383") - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1393") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1397") - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = scr_gettext("SCR_TEXT_1406") - else - global.msg[0] = scr_gettext("SCR_TEXT_1408") - global.msg[1] = scr_gettext("SCR_TEXT_1409") - global.msg[2] = scr_gettext("SCR_TEXT_1410") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1413") - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1431") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1432") - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1435") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1439") - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1446") - global.msg[1] = scr_gettext("SCR_TEXT_1447") - global.msg[2] = scr_gettext("SCR_TEXT_1448") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1451") - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1470") - if (scr_murderlv() >= 16) - global.msg[0] = scr_gettext("SCR_TEXT_1471") - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1474") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1478") - break - case 272: - global.msg[0] = scr_gettext("SCR_TEXT_1483") - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1492") - global.msg[1] = scr_gettext("SCR_TEXT_1493") - global.msg[2] = scr_gettext("SCR_TEXT_1494") - global.msg[3] = scr_gettext("SCR_TEXT_1495") - } - if (global.flag[250] >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1499") - global.msg[1] = scr_gettext("SCR_TEXT_1500") - global.msg[2] = scr_gettext("SCR_TEXT_1501") - global.msg[3] = scr_gettext("SCR_TEXT_1502") - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1520") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1522") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1525") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1528") - global.msg[1] = scr_gettext("SCR_TEXT_1529") - } - break - case 500: - global.msg[0] = scr_gettext("SCR_TEXT_1535") - global.msg[1] = scr_gettext("SCR_TEXT_1536") - break - case 501: - global.msg[0] = scr_gettext("SCR_TEXT_1540") - break - case 502: - global.msg[0] = scr_gettext("SCR_TEXT_1544") - break - case 503: - global.msg[0] = scr_gettext("SCR_TEXT_1548") - break - case 504: - global.msg[0] = scr_gettext("SCR_TEXT_1552") - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1562") - global.msg[1] = scr_gettext("SCR_TEXT_1563") - global.msg[2] = scr_gettext("SCR_TEXT_1564") - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1569") - global.msg[1] = scr_gettext("SCR_TEXT_1570") - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1575") - global.msg[1] = scr_gettext("SCR_TEXT_1576") - } - if (conversation == 9) - global.msg[0] = scr_gettext("SCR_TEXT_1579") - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_1583") - global.msg[1] = scr_gettext("SCR_TEXT_1584") - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1589") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1592") - global.msg[1] = scr_gettext("SCR_TEXT_1593") - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_1603") - if (global.flag[34] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_1606") - global.msg[1] = scr_gettext("SCR_TEXT_1607") - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1624") - if (global.flag[34] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_1625") - if (global.flag[34] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_1626") - if (global.flag[34] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_1628") - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1631") - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1635") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1639") - break - case 510: - global.msg[0] = scr_gettext("SCR_TEXT_1644") - global.msg[1] = scr_gettext("SCR_TEXT_1645") - global.msg[2] = scr_gettext("SCR_TEXT_1646") - global.msg[3] = scr_gettext("SCR_TEXT_1647") - global.msg[4] = scr_gettext("SCR_TEXT_1648") - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1675") - global.msg[1] = scr_gettext("SCR_TEXT_1676") - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1692") - if (haveit == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1694") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1695") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1698") - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1705") - global.msg[1] = scr_gettext("SCR_TEXT_1706") - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1723") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1724") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1726") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1729") - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1736") - global.msg[1] = scr_gettext("SCR_TEXT_1737") - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1754") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1755") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1757") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1760") - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1771") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1772") - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1778") - global.msg[1] = scr_gettext("SCR_TEXT_1779") - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1788") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1789") - if (global.flag[43] > 25) - global.msg[0] = scr_gettext("SCR_TEXT_1790") - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1796") - global.msg[1] = scr_gettext("SCR_TEXT_1797") - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1806") - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1807") - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1817") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1818") - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_1824") - global.msg[1] = scr_gettext("SCR_TEXT_1825") - break - case 525: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_1830") - global.msg[1] = scr_gettext("SCR_TEXT_1831") - global.msg[2] = scr_gettext("SCR_TEXT_1832") - global.msg[3] = scr_gettext("SCR_TEXT_1833") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1835") - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1842") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1843") - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_1853") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1854") - } - break - case 527: - global.msg[0] = scr_gettext("SCR_TEXT_1859") - global.msg[1] = scr_gettext("SCR_TEXT_1860") - global.msg[2] = scr_gettext("SCR_TEXT_1861") - global.msg[3] = scr_gettext("SCR_TEXT_1862") - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1867") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1870") - if (global.flag[103] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_1871") - global.msg[1] = scr_gettext("SCR_TEXT_1872") - global.msg[2] = scr_gettext("SCR_TEXT_1873") - global.msg[3] = scr_gettext("SCR_TEXT_1874") - global.msg[4] = scr_gettext("SCR_TEXT_1875") - global.msg[5] = scr_gettext("SCR_TEXT_1876") - global.msg[6] = scr_gettext("SCR_TEXT_1877") - global.msg[7] = scr_gettext("SCR_TEXT_1878") - global.msg[8] = scr_gettext("SCR_TEXT_1879") - global.msg[9] = scr_gettext("SCR_TEXT_1880") - global.msg[10] = scr_gettext("SCR_TEXT_1881") - global.msg[11] = scr_gettext("SCR_TEXT_1882") - global.msg[12] = scr_gettext("SCR_TEXT_1883") - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1891") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_1895") - global.msg[1] = scr_gettext("SCR_TEXT_1896") - if (global.choice == -1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1897") - global.msg[1] = scr_gettext("SCR_TEXT_1898") - } - global.msg[2] = scr_gettext("SCR_TEXT_1899") - global.msg[3] = scr_gettext("SCR_TEXT_1900") - global.msg[4] = scr_gettext("SCR_TEXT_1901") - } - break - case 530: - global.plot = 19.3 - global.msg[0] = scr_gettext("SCR_TEXT_1907") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_1908") - global.msg[1] = scr_gettext("SCR_TEXT_1909") - r = round(random(3)) - if (r == 0) - global.msg[2] = scr_gettext("SCR_TEXT_1911") - if (r == 1) - global.msg[2] = scr_gettext("SCR_TEXT_1912") - if (r == 2) - global.msg[2] = scr_gettext("SCR_TEXT_1913") - if (r == 3) - global.msg[2] = scr_gettext("SCR_TEXT_1914") - global.msg[3] = scr_gettext("SCR_TEXT_1915") - global.msg[4] = scr_gettext("SCR_TEXT_1916") - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1921") - else - { - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1924") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = scr_gettext("SCR_TEXT_1927") - } - global.msg[1] = scr_gettext("SCR_TEXT_1930") - break - case 532: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_1934") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1935") - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = scr_gettext("SCR_TEXT_1936") - break - case 540: - global.msg[0] = scr_gettext("SCR_TEXT_1940") - global.msg[1] = scr_gettext("SCR_TEXT_1941") - global.msg[2] = scr_gettext("SCR_TEXT_1942") - global.msg[3] = scr_gettext("SCR_TEXT_1943") - global.msg[4] = scr_gettext("SCR_TEXT_1944") - global.msg[5] = scr_gettext("SCR_TEXT_1945") - global.msg[6] = scr_gettext("SCR_TEXT_1946") - global.msg[7] = scr_gettext("SCR_TEXT_1947") - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_1956") - global.msg[1] = scr_gettext("SCR_TEXT_1957") - global.msg[2] = scr_gettext("SCR_TEXT_1958") - global.msg[3] = scr_gettext("SCR_TEXT_1959") - global.msg[4] = scr_gettext("SCR_TEXT_1960") - global.msg[5] = scr_gettext("SCR_TEXT_1961") - global.msg[6] = scr_gettext("SCR_TEXT_1962") - global.msg[7] = scr_gettext("SCR_TEXT_1963") - global.msg[8] = scr_gettext("SCR_TEXT_1964") - global.msg[9] = scr_gettext("SCR_TEXT_1965") - global.msg[10] = scr_gettext("SCR_TEXT_1966") - global.msg[11] = scr_gettext("SCR_TEXT_1967") - global.msg[12] = scr_gettext("SCR_TEXT_1968") - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_1978") - global.msg[2] = scr_gettext("SCR_TEXT_1979") - global.msg[3] = scr_gettext("SCR_TEXT_1980") - global.msg[4] = scr_gettext("SCR_TEXT_1981") - global.msg[5] = scr_gettext("SCR_TEXT_1982") - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_1987") - global.msg[2] = scr_gettext("SCR_TEXT_1988") - global.msg[3] = scr_gettext("SCR_TEXT_1989") - global.msg[4] = scr_gettext("SCR_TEXT_1990") - global.msg[5] = scr_gettext("SCR_TEXT_1991") - } - if (global.flag[66] == 1) - { - global.msg[6] = scr_gettext("SCR_TEXT_1996") - global.msg[7] = scr_gettext("SCR_TEXT_1997") - global.msg[8] = scr_gettext("SCR_TEXT_1998") - } - else - { - global.msg[6] = scr_gettext("SCR_TEXT_2002") - global.msg[7] = scr_gettext("SCR_TEXT_2003") - global.msg[8] = scr_gettext("SCR_TEXT_2004") - } - global.msg[9] = scr_gettext("SCR_TEXT_2006") - global.msg[10] = scr_gettext("SCR_TEXT_2007") - global.msg[11] = scr_gettext("SCR_TEXT_2008") - global.msg[12] = scr_gettext("SCR_TEXT_2009") - global.msg[13] = scr_gettext("SCR_TEXT_2010") - global.msg[14] = scr_gettext("SCR_TEXT_2011") - global.msg[15] = scr_gettext("SCR_TEXT_2012") - global.msg[16] = scr_gettext("SCR_TEXT_2013") - global.msg[17] = scr_gettext("SCR_TEXT_2014") - global.msg[18] = scr_gettext("SCR_TEXT_2015") - global.msg[19] = scr_gettext("SCR_TEXT_2016") - global.msg[20] = scr_gettext("SCR_TEXT_2017") - global.msg[21] = scr_gettext("SCR_TEXT_2018") - break - case 544: - global.msg[0] = scr_gettext("SCR_TEXT_2023") - global.msg[1] = scr_gettext("SCR_TEXT_2024") - global.msg[2] = scr_gettext("SCR_TEXT_2025") - global.msg[3] = scr_gettext("SCR_TEXT_2026") - global.msg[4] = scr_gettext("SCR_TEXT_2027") - global.msg[5] = scr_gettext("SCR_TEXT_2028") - global.msg[6] = scr_gettext("SCR_TEXT_2029") - global.msg[6] = scr_gettext("SCR_TEXT_2030") - global.msg[7] = scr_gettext("SCR_TEXT_2031") - global.msg[8] = scr_gettext("SCR_TEXT_2032") - break - case 545: - global.msg[0] = scr_gettext("SCR_TEXT_2036") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_2039") - global.msg[2] = scr_gettext("SCR_TEXT_2040") - global.msg[3] = scr_gettext("SCR_TEXT_2041") - global.msg[4] = scr_gettext("SCR_TEXT_2042") - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_2047") - global.msg[2] = scr_gettext("SCR_TEXT_2048") - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = scr_gettext("SCR_TEXT_2058") - global.msg[1] = scr_gettext("SCR_TEXT_2059") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2062") - global.msg[1] = scr_gettext("SCR_TEXT_2063") - } - global.msg[2] = scr_gettext("SCR_TEXT_2065") - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2069") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2074") - global.msg[1] = scr_gettext("SCR_TEXT_2075") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2078") - global.msg[1] = scr_gettext("SCR_TEXT_2079") - global.msg[2] = scr_gettext("SCR_TEXT_2080") - global.msg[3] = scr_gettext("SCR_TEXT_2081") - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2089") - if (global.flag[72] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2092") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2098") - global.msg[1] = scr_gettext("SCR_TEXT_2099") - global.msg[2] = scr_gettext("SCR_TEXT_2100") - global.msg[3] = scr_gettext("SCR_TEXT_2101") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2109") - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2116") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2121") - break - case 549: - global.msg[0] = scr_gettext("SCR_TEXT_2125") - global.msg[1] = scr_gettext("SCR_TEXT_2126") - break - case 550: - global.msg[0] = scr_gettext("SCR_TEXT_2130") - global.msg[1] = scr_gettext("SCR_TEXT_2131") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = scr_gettext("SCR_TEXT_2139") - global.msg[1] = scr_gettext("SCR_TEXT_2140") - global.msg[2] = scr_gettext("SCR_TEXT_2141") - global.msg[3] = scr_gettext("SCR_TEXT_2142") - global.msg[4] = scr_gettext("SCR_TEXT_2143") - global.msg[5] = scr_gettext("SCR_TEXT_2144") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2148") - global.msg[1] = scr_gettext("SCR_TEXT_2149") - global.msg[2] = scr_gettext("SCR_TEXT_2150") - } - global.msg[6] = scr_gettext("SCR_TEXT_2152") - break - case 552: - global.msg[0] = scr_gettext("SCR_TEXT_2157") - global.msg[1] = scr_gettext("SCR_TEXT_2158") - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(__view_get(0, 0), __view_get(1, 0), obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2169") - } - break - case 553: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - global.flag[75] = global.armor - global.msg[0] = scr_gettext("SCR_TEXT_2180", armor) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_2182", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2183", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2184", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2185", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2186", armor) - global.msg[7] = scr_gettext("SCR_TEXT_2187", armor) - global.msg[8] = scr_gettext("SCR_TEXT_2188", armor) - global.msg[9] = scr_gettext("SCR_TEXT_2189", armor) - global.msg[10] = scr_gettext("SCR_TEXT_2190", armor) - global.msg[11] = scr_gettext("SCR_TEXT_2191", armor) - global.msg[12] = scr_gettext("SCR_TEXT_2192", armor) - global.msg[13] = scr_gettext("SCR_TEXT_2193", armor) - break - case 554: - armor = scr_gettext("papyrus_armor_0") - if (global.armor == 4) - armor = scr_gettext("papyrus_armor_4") - if (global.armor == 12) - armor = scr_gettext("papyrus_armor_12") - if (global.armor == 15) - armor = scr_gettext("papyrus_armor_15") - if (global.armor == 24) - armor = scr_gettext("papyrus_armor_24") - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = scr_gettext("SCR_TEXT_2206", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2207", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2208", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2209", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2210", armor) - } - else - { - global.flag[76] = 1 - global.msg[1] = scr_gettext("SCR_TEXT_2215", armor) - global.msg[2] = scr_gettext("SCR_TEXT_2216", armor) - global.msg[3] = scr_gettext("SCR_TEXT_2217", armor) - global.msg[4] = scr_gettext("SCR_TEXT_2218", armor) - global.msg[5] = scr_gettext("SCR_TEXT_2219", armor) - global.msg[6] = scr_gettext("SCR_TEXT_2220", armor) - } - break - case 556: - global.msg[0] = scr_gettext("SCR_TEXT_2227") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2231") - global.msg[2] = scr_gettext("SCR_TEXT_2232") - global.msg[3] = scr_gettext("SCR_TEXT_2233") - global.msg[4] = scr_gettext("SCR_TEXT_2234") - global.msg[5] = scr_gettext("SCR_TEXT_2235") - } - break - case 557: - global.msg[0] = scr_gettext("SCR_TEXT_2240") - global.msg[1] = scr_gettext("SCR_TEXT_2241") - global.msg[2] = scr_gettext("SCR_TEXT_2242") - break - case 558: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2248") - global.msg[1] = scr_gettext("SCR_TEXT_2249") - global.msg[2] = scr_gettext("SCR_TEXT_2250") - global.msg[3] = scr_gettext("SCR_TEXT_2251") - global.msg[4] = scr_gettext("SCR_TEXT_2252") - global.msg[5] = scr_gettext("SCR_TEXT_2253") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2257") - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2265") - global.msg[2] = scr_gettext("SCR_TEXT_2266") - global.msg[3] = scr_gettext("SCR_TEXT_2267") - global.msg[4] = scr_gettext("SCR_TEXT_2268") - if (global.flag[66] == 1) - global.msg[4] = scr_gettext("SCR_TEXT_2269") - global.msg[5] = scr_gettext("SCR_TEXT_2270") - global.msg[6] = scr_gettext("SCR_TEXT_2271") - global.msg[7] = scr_gettext("SCR_TEXT_2272") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2276") - global.msg[1] = scr_gettext("SCR_TEXT_2277") - global.msg[2] = scr_gettext("SCR_TEXT_2278") - global.msg[3] = scr_gettext("SCR_TEXT_2279") - global.msg[4] = scr_gettext("SCR_TEXT_2280") - global.msg[5] = scr_gettext("SCR_TEXT_2281") - } - break - case 560: - global.msg[0] = scr_gettext("SCR_TEXT_2286") - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2297") - global.msg[2] = scr_gettext("SCR_TEXT_2298") - global.msg[3] = scr_gettext("SCR_TEXT_2299") - global.msg[4] = scr_gettext("SCR_TEXT_2300") - global.msg[5] = scr_gettext("SCR_TEXT_2301") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2305") - global.msg[1] = scr_gettext("SCR_TEXT_2306") - } - break - case 562: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2313") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2317") - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2322") - } - } - break - case 563: - global.msg[0] = scr_gettext("SCR_TEXT_2328") - global.msg[1] = scr_gettext("SCR_TEXT_2329") - global.msg[2] = scr_gettext("SCR_TEXT_2330") - global.msg[3] = scr_gettext("SCR_TEXT_2331") - global.msg[4] = scr_gettext("SCR_TEXT_2332") - global.msg[5] = scr_gettext("SCR_TEXT_2333") - if (global.flag[66] == 1) - { - global.msg[2] = scr_gettext("SCR_TEXT_2336") - global.msg[3] = scr_gettext("SCR_TEXT_2337") - global.msg[4] = scr_gettext("SCR_TEXT_2338") - global.msg[5] = scr_gettext("SCR_TEXT_2339") - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_2348") - if (global.flag[66] == 0) - global.msg[1] = scr_gettext("SCR_TEXT_2349") - } - else - { - scr_papface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_2354") - } - break - case 565: - global.msg[0] = scr_gettext("SCR_TEXT_2359") - global.msg[1] = scr_gettext("SCR_TEXT_2360") - global.msg[2] = scr_gettext("SCR_TEXT_2361") - break - case 566: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2366") - else - global.msg[0] = scr_gettext("SCR_TEXT_2368") - break - case 567: - global.msg[0] = scr_gettext("SCR_TEXT_2372") - global.msg[1] = scr_gettext("SCR_TEXT_2373") - global.msg[2] = scr_gettext("SCR_TEXT_2374") - global.msg[3] = scr_gettext("SCR_TEXT_2375") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2376") - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2380") - global.msg[1] = scr_gettext("SCR_TEXT_2381") - global.msg[2] = scr_gettext("SCR_TEXT_2382") - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2389") - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2394") - break - case 570: - global.msg[0] = scr_gettext("SCR_TEXT_2399") - global.msg[1] = scr_gettext("SCR_TEXT_2400") - global.msg[2] = scr_gettext("SCR_TEXT_2401") - global.msg[3] = scr_gettext("SCR_TEXT_2402") - global.msg[4] = scr_gettext("SCR_TEXT_2403") - break - case 571: - global.msg[0] = scr_gettext("SCR_TEXT_2407") - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_2411") - global.msg[1] = scr_gettext("SCR_TEXT_2412") - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_2418") - global.msg[1] = scr_gettext("SCR_TEXT_2419") - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = scr_gettext("SCR_TEXT_2426") - global.msg[1] = scr_gettext("SCR_TEXT_2427") - global.msg[2] = scr_gettext("SCR_TEXT_2428") - break - case 573: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2434") - global.msg[1] = scr_gettext("SCR_TEXT_2435") - global.msg[2] = scr_gettext("SCR_TEXT_2436") - global.msg[3] = scr_gettext("SCR_TEXT_2437") - global.msg[4] = scr_gettext("SCR_TEXT_2438") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2442") - global.msg[1] = scr_gettext("SCR_TEXT_2443") - global.msg[2] = scr_gettext("SCR_TEXT_2444") - global.msg[3] = scr_gettext("SCR_TEXT_2445") - global.msg[4] = scr_gettext("SCR_TEXT_2446") - global.msg[5] = scr_gettext("SCR_TEXT_2447") - global.msg[6] = scr_gettext("SCR_TEXT_2448") - } - break - case 574: - global.msg[0] = scr_gettext("SCR_TEXT_2453") - global.msg[1] = scr_gettext("SCR_TEXT_2454") - global.msg[2] = scr_gettext("SCR_TEXT_2455") - break - case 575: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2461") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2465") - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = scr_gettext("SCR_TEXT_2472") - global.msg[1] = scr_gettext("SCR_TEXT_2473") - break - case 577: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2477") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2478") - global.msg[1] = scr_gettext("SCR_TEXT_2479") - global.msg[2] = scr_gettext("SCR_TEXT_2480") - global.msg[3] = scr_gettext("SCR_TEXT_2481") - global.msg[4] = scr_gettext("SCR_TEXT_2482") - global.msg[5] = scr_gettext("SCR_TEXT_2483") - global.msg[6] = scr_gettext("SCR_TEXT_2484") - global.msg[7] = scr_gettext("SCR_TEXT_2485") - global.msg[8] = scr_gettext("SCR_TEXT_2486") - global.msg[9] = scr_gettext("SCR_TEXT_2487") - global.msg[10] = scr_gettext("SCR_TEXT_2488") - global.msg[11] = scr_gettext("SCR_TEXT_2489") - global.msg[12] = scr_gettext("SCR_TEXT_2490") - global.msg[13] = scr_gettext("SCR_TEXT_2491") - break - case 578: - global.msg[0] = scr_gettext("SCR_TEXT_2495") - global.msg[1] = scr_gettext("SCR_TEXT_2496") - global.msg[2] = scr_gettext("SCR_TEXT_2497") - global.msg[3] = scr_gettext("SCR_TEXT_2498") - break - case 579: - global.msg[0] = scr_gettext("SCR_TEXT_2502") - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = scr_gettext("SCR_TEXT_2506") - if (global.flag[84] == 5) - global.msg[0] = scr_gettext("SCR_TEXT_2507") - if (global.flag[84] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2510") - global.msg[1] = scr_gettext("SCR_TEXT_2511") - global.msg[2] = scr_gettext("SCR_TEXT_2512") - global.msg[3] = scr_gettext("SCR_TEXT_2513") - global.msg[4] = scr_gettext("SCR_TEXT_2514") - } - if (global.flag[84] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_2518") - if (global.flag[84] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2522") - global.msg[1] = scr_gettext("SCR_TEXT_2523") - global.msg[2] = scr_gettext("SCR_TEXT_2524") - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2535") - global.msg[1] = scr_gettext("SCR_TEXT_2536") - global.msg[2] = scr_gettext("SCR_TEXT_2537") - global.msg[3] = scr_gettext("SCR_TEXT_2538") - global.msg[4] = scr_gettext("SCR_TEXT_2539") - global.msg[5] = scr_gettext("SCR_TEXT_2540") - global.msg[6] = scr_gettext("SCR_TEXT_2541") - global.msg[7] = scr_gettext("SCR_TEXT_2542") - global.msg[8] = scr_gettext("SCR_TEXT_2543") - global.msg[9] = scr_gettext("SCR_TEXT_2544") - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2553") - } - else - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2561") - global.msg[1] = scr_gettext("SCR_TEXT_2562") - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2567") - global.msg[1] = scr_gettext("SCR_TEXT_2568") - global.msg[2] = scr_gettext("SCR_TEXT_2569") - global.msg[3] = scr_gettext("SCR_TEXT_2570") - global.msg[4] = scr_gettext("SCR_TEXT_2571") - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2580") - global.msg[1] = scr_gettext("SCR_TEXT_2581") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_2585") - global.msg[1] = scr_gettext("SCR_TEXT_2586") - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2597") - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2608") - } - else if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2615") - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2626") - doak = 1 - } - break - case 585: - global.msg[0] = scr_gettext("SCR_TEXT_2634") - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2637") - global.msg[1] = scr_gettext("SCR_TEXT_2638") - } - if (global.flag[86] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2642") - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2651") - global.msg[1] = scr_gettext("SCR_TEXT_2652") - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2667") - doak = 1 - } - break - case 587: - global.msg[0] = scr_gettext("SCR_TEXT_2674") - global.msg[1] = scr_gettext("SCR_TEXT_2675") - global.msg[2] = scr_gettext("SCR_TEXT_2676") - break - case 588: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2682") - global.msg[1] = scr_gettext("SCR_TEXT_2683") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2686") - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_2692") - if (global.flag[108] > 2) - global.msg[0] = scr_gettext("SCR_TEXT_2694") - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2698") - global.msg[1] = scr_gettext("SCR_TEXT_2699") - } - if (global.flag[108] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2704") - global.msg[1] = scr_gettext("SCR_TEXT_2705") - global.msg[2] = scr_gettext("SCR_TEXT_2706") - global.msg[3] = scr_gettext("SCR_TEXT_2707") - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = scr_gettext("SCR_TEXT_2726") - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2728") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2732") - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2739") - global.msg[1] = scr_gettext("SCR_TEXT_2740") - global.msg[2] = scr_gettext("SCR_TEXT_2741") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2744") - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2752") - global.msg[1] = scr_gettext("SCR_TEXT_2753") - } - if (global.lv > 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2757") - global.msg[1] = scr_gettext("SCR_TEXT_2758") - } - if (global.lv > 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_2762") - global.msg[1] = scr_gettext("SCR_TEXT_2763") - } - if (global.lv > 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_2767") - global.msg[1] = scr_gettext("SCR_TEXT_2768") - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2774") - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = scr_gettext("SCR_TEXT_2780") - global.msg[1] = scr_gettext("SCR_TEXT_2781") - global.msg[2] = scr_gettext("SCR_TEXT_2782") - break - case 594: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2788") - global.msg[1] = scr_gettext("SCR_TEXT_2789") - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = scr_gettext("SCR_TEXT_2837") - global.msg[1] = scr_gettext("SCR_TEXT_2838") - global.msg[2] = scr_gettext("SCR_TEXT_2839") - if (global.flag[94] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_2842") - global.msg[1] = scr_gettext("SCR_TEXT_2843") - global.msg[2] = scr_gettext("SCR_TEXT_2844") - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2853") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2859") - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2867") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2873") - } - break - case 608: - global.msg[0] = scr_gettext("SCR_TEXT_2881") - global.msg[1] = scr_gettext("SCR_TEXT_2882") - global.msg[2] = scr_gettext("SCR_TEXT_2883") - if (global.flag[94] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2886") - global.msg[1] = scr_gettext("SCR_TEXT_2887") - global.msg[2] = scr_gettext("SCR_TEXT_2888") - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2897") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2903") - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2911") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2917") - } - break - case 610: - global.msg[0] = scr_gettext("SCR_TEXT_2924") - global.msg[1] = scr_gettext("SCR_TEXT_2925") - global.msg[2] = scr_gettext("SCR_TEXT_2926") - if (global.flag[94] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_2929") - global.msg[1] = scr_gettext("SCR_TEXT_2930") - global.msg[2] = scr_gettext("SCR_TEXT_2931") - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2940") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2946") - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_2954") - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2960") - } - break - case 612: - global.msg[0] = scr_gettext("SCR_TEXT_2968") - global.msg[1] = scr_gettext("SCR_TEXT_2969") - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_2977") - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_2983") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_2988") - break - case 615: - global.msg[0] = scr_gettext("SCR_TEXT_2993") - global.msg[1] = scr_gettext("SCR_TEXT_2994") - global.msg[2] = scr_gettext("SCR_TEXT_2995") - break - case 616: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3001") - global.msg[1] = scr_gettext("SCR_TEXT_3002") - global.msg[2] = scr_gettext("SCR_TEXT_3003") - global.msg[3] = scr_gettext("SCR_TEXT_3004") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3008") - break - case 617: - global.msg[0] = scr_gettext("SCR_TEXT_3014") - global.msg[1] = scr_gettext("SCR_TEXT_3015") - global.msg[2] = scr_gettext("SCR_TEXT_3016") - global.msg[3] = scr_gettext("SCR_TEXT_3017") - break - case 618: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_3023") - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = scr_gettext("SCR_TEXT_3028") - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = scr_gettext("SCR_TEXT_3034") - global.msg[1] = scr_gettext("SCR_TEXT_3035") - global.msg[2] = scr_gettext("SCR_TEXT_3036") - global.msg[3] = scr_gettext("SCR_TEXT_3037") - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3045") - global.msg[1] = scr_gettext("SCR_TEXT_3046") - global.msg[2] = scr_gettext("SCR_TEXT_3047") - global.msg[3] = scr_gettext("SCR_TEXT_3048") - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3052") - global.msg[1] = scr_gettext("SCR_TEXT_3053") - global.msg[2] = scr_gettext("SCR_TEXT_3054") - global.msg[3] = scr_gettext("SCR_TEXT_3055") - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = scr_gettext("SCR_TEXT_3061") - global.msg[1] = scr_gettext("SCR_TEXT_3062") - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3068") - break - case 621: - global.msg[0] = scr_gettext("SCR_TEXT_3073") - global.msg[1] = scr_gettext("SCR_TEXT_3074") - global.msg[2] = scr_gettext("SCR_TEXT_3075") - global.msg[3] = scr_gettext("SCR_TEXT_3076") - global.msg[4] = scr_gettext("SCR_TEXT_3077") - global.msg[5] = scr_gettext("SCR_TEXT_3078") - global.msg[6] = scr_gettext("SCR_TEXT_3079") - global.msg[7] = scr_gettext("SCR_TEXT_3080") - global.msg[8] = scr_gettext("SCR_TEXT_3081") - global.msg[9] = scr_gettext("SCR_TEXT_3082") - global.msg[10] = scr_gettext("SCR_TEXT_3083") - global.msg[11] = scr_gettext("SCR_TEXT_3084") - global.msg[12] = scr_gettext("SCR_TEXT_3085") - global.msg[13] = scr_gettext("SCR_TEXT_3086") - break - case 623: - global.msg[0] = scr_gettext("SCR_TEXT_3104") - global.msg[1] = scr_gettext("SCR_TEXT_3105") - global.msg[2] = scr_gettext("SCR_TEXT_3106") - global.msg[3] = scr_gettext("SCR_TEXT_3107") - global.msg[4] = scr_gettext("SCR_TEXT_3108") - global.msg[5] = scr_gettext("SCR_TEXT_3109") - global.msg[6] = scr_gettext("SCR_TEXT_3110") - global.msg[7] = scr_gettext("SCR_TEXT_3111") - global.msg[8] = scr_gettext("SCR_TEXT_3112") - global.msg[9] = scr_gettext("SCR_TEXT_3113") - global.msg[10] = scr_gettext("SCR_TEXT_3114") - global.msg[11] = scr_gettext("SCR_TEXT_3115") - global.msg[12] = scr_gettext("SCR_TEXT_3116") - global.msg[13] = scr_gettext("SCR_TEXT_3117") - global.msg[14] = scr_gettext("SCR_TEXT_3118") - break - case 624: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3124") - global.msg[1] = scr_gettext("SCR_TEXT_3125") - global.msg[2] = scr_gettext("SCR_TEXT_3126") - global.msg[3] = scr_gettext("SCR_TEXT_3127") - global.msg[4] = scr_gettext("SCR_TEXT_3128") - global.msg[5] = scr_gettext("SCR_TEXT_3129") - global.msg[6] = scr_gettext("SCR_TEXT_3130") - global.msg[7] = scr_gettext("SCR_TEXT_3131") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3135") - global.msg[1] = scr_gettext("SCR_TEXT_3136") - global.msg[2] = scr_gettext("SCR_TEXT_3137") - global.msg[3] = scr_gettext("SCR_TEXT_3138") - global.msg[4] = scr_gettext("SCR_TEXT_3139") - global.msg[5] = scr_gettext("SCR_TEXT_3140") - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = scr_gettext("SCR_TEXT_3148") - global.msg[1] = scr_gettext("SCR_TEXT_3149") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3153") - if instance_exists(obj_undynefall) - global.msg[0] = scr_gettext("SCR_TEXT_3155") - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_3163") - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3171") - break - case 627: - global.msg[0] = scr_gettext("SCR_TEXT_3177") - global.msg[1] = scr_gettext("SCR_TEXT_3178") - break - case 628: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3184") - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3196") - break - case 629: - global.msg[0] = scr_gettext("SCR_TEXT_3201") - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3205") - global.msg[1] = scr_gettext("SCR_TEXT_3206") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_3210") - } - break - case 630: - global.msg[0] = scr_gettext("SCR_TEXT_3215") - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = scr_gettext("papyrus_armor_0") - armor2 = scr_gettext("papyrus_armor_0") - if (global.flag[75] == 4) - armor1 = scr_gettext("papyrus_armor_4") - if (global.flag[75] == 12) - armor1 = scr_gettext("papyrus_armor_12") - if (global.flag[75] == 15) - armor1 = scr_gettext("papyrus_armor_15") - if (global.flag[75] == 24) - armor1 = scr_gettext("papyrus_armor_24") - if (global.flag[77] == 4) - armor2 = scr_gettext("papyrus_armor_4") - if (global.flag[77] == 12) - armor2 = scr_gettext("papyrus_armor_12") - if (global.flag[77] == 15) - armor2 = scr_gettext("papyrus_armor_15") - if (global.flag[77] == 24) - armor2 = scr_gettext("papyrus_armor_24") - global.msg[0] = scr_gettext("SCR_TEXT_3238", armor1, armor2) - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3240", armor1, armor2) - global.msg[3] = scr_gettext("SCR_TEXT_3241", armor1, armor2) - global.msg[4] = scr_gettext("SCR_TEXT_3242", armor1, armor2) - global.msg[5] = scr_gettext("SCR_TEXT_3243", armor1, armor2) - global.msg[6] = scr_gettext("SCR_TEXT_3244", armor1, armor2) - global.msg[7] = scr_gettext("SCR_TEXT_3245", armor1, armor2) - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3250", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3251", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3252", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3253", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3254", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3255", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3256", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3257", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3258", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3259", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3260", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3261", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3262", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = scr_gettext("SCR_TEXT_3268", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3269", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3270", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3271", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3272", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3273", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3274", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3275", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3276", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3277", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3278", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3279", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3280", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3281", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3282", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3283", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3284", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3285", armor1, armor2) - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3291", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3292", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3293", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3294", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3295", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3296", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3297", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3298", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3299", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3300", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3301", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3302", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3303", armor1, armor2) - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = scr_gettext("SCR_TEXT_3309", armor1, armor2) - global.msg[8] = scr_gettext("SCR_TEXT_3310", armor1, armor2) - global.msg[9] = scr_gettext("SCR_TEXT_3311", armor1, armor2) - global.msg[10] = scr_gettext("SCR_TEXT_3312", armor1, armor2) - global.msg[11] = scr_gettext("SCR_TEXT_3313", armor1, armor2) - global.msg[12] = scr_gettext("SCR_TEXT_3314", armor1, armor2) - global.msg[13] = scr_gettext("SCR_TEXT_3315", armor1, armor2) - global.msg[14] = scr_gettext("SCR_TEXT_3316", armor1, armor2) - global.msg[15] = scr_gettext("SCR_TEXT_3317", armor1, armor2) - global.msg[16] = scr_gettext("SCR_TEXT_3318", armor1, armor2) - global.msg[17] = scr_gettext("SCR_TEXT_3319", armor1, armor2) - global.msg[18] = scr_gettext("SCR_TEXT_3320", armor1, armor2) - global.msg[19] = scr_gettext("SCR_TEXT_3321", armor1, armor2) - global.msg[20] = scr_gettext("SCR_TEXT_3322", armor1, armor2) - global.msg[21] = scr_gettext("SCR_TEXT_3323", armor1, armor2) - global.msg[22] = scr_gettext("SCR_TEXT_3324", armor1, armor2) - global.msg[23] = scr_gettext("SCR_TEXT_3325", armor1, armor2) - global.msg[24] = scr_gettext("SCR_TEXT_3326", armor1, armor2) - global.msg[25] = scr_gettext("SCR_TEXT_3327", armor1, armor2) - global.msg[26] = scr_gettext("SCR_TEXT_3328", armor1, armor2) - global.msg[27] = scr_gettext("SCR_TEXT_3329", armor1, armor2) - global.msg[28] = scr_gettext("SCR_TEXT_3330", armor1, armor2) - global.msg[29] = scr_gettext("SCR_TEXT_3331", armor1, armor2) - } - } - break - case 633: - global.msg[0] = scr_gettext("SCR_TEXT_3337") - scr_papface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_3339") - global.msg[3] = scr_gettext("SCR_TEXT_3340") - global.msg[4] = scr_gettext("SCR_TEXT_3341") - global.msg[5] = scr_gettext("SCR_TEXT_3342") - global.msg[6] = scr_gettext("SCR_TEXT_3343") - global.msg[7] = scr_gettext("SCR_TEXT_3344") - global.msg[8] = scr_gettext("SCR_TEXT_3345") - if (global.flag[88] < 3) - { - global.msg[5] = scr_gettext("SCR_TEXT_3348") - global.msg[6] = scr_gettext("SCR_TEXT_3349") - global.msg[7] = scr_gettext("SCR_TEXT_3350") - global.msg[8] = scr_gettext("SCR_TEXT_3351") - global.msg[9] = scr_gettext("SCR_TEXT_3352") - } - break - case 635: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 636: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 637: - global.msg[0] = scr_gettext("SCR_TEXT_3358") - global.msg[1] = scr_gettext("SCR_TEXT_3359") - break - case 638: - global.msg[0] = scr_gettext("SCR_TEXT_3363") - global.msg[1] = scr_gettext("SCR_TEXT_3364") - global.msg[2] = scr_gettext("SCR_TEXT_3365") - global.msg[3] = scr_gettext("SCR_TEXT_3366") - global.msg[4] = scr_gettext("SCR_TEXT_3367") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3370") - break - case 639: - global.msg[0] = scr_gettext("SCR_TEXT_3393") - global.msg[1] = scr_gettext("SCR_TEXT_3394") - break - case 640: - global.msg[0] = scr_gettext("SCR_TEXT_3398") - global.msg[1] = scr_gettext("SCR_TEXT_3399") - global.msg[2] = scr_gettext("SCR_TEXT_3400") - global.msg[3] = scr_gettext("SCR_TEXT_3401") - global.msg[4] = scr_gettext("SCR_TEXT_3402") - global.msg[5] = scr_gettext("SCR_TEXT_3403") - global.msg[6] = scr_gettext("SCR_TEXT_3404") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3407") - break - case 641: - global.msg[0] = scr_gettext("SCR_TEXT_3413") - global.msg[1] = scr_gettext("SCR_TEXT_3414") - break - case 642: - global.msg[0] = scr_gettext("SCR_TEXT_3418") - global.msg[1] = scr_gettext("SCR_TEXT_3419") - global.msg[2] = scr_gettext("SCR_TEXT_3420") - global.msg[3] = scr_gettext("SCR_TEXT_3421") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3424") - break - case 643: - global.msg[0] = scr_gettext("SCR_TEXT_3429") - global.msg[1] = scr_gettext("SCR_TEXT_3430") - break - case 644: - global.msg[0] = scr_gettext("SCR_TEXT_3434") - global.msg[1] = scr_gettext("SCR_TEXT_3435") - global.msg[2] = scr_gettext("SCR_TEXT_3436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3441") - break - case 645: - global.msg[0] = scr_gettext("SCR_TEXT_3446") - global.msg[1] = scr_gettext("SCR_TEXT_3447") - break - case 646: - global.msg[0] = scr_gettext("SCR_TEXT_3451") - global.msg[1] = scr_gettext("SCR_TEXT_3452") - global.msg[2] = scr_gettext("SCR_TEXT_3453") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3458") - break - case 647: - global.msg[0] = scr_gettext("SCR_TEXT_3463") - global.msg[1] = scr_gettext("SCR_TEXT_3464") - break - case 648: - global.msg[0] = scr_gettext("SCR_TEXT_3469") - global.msg[1] = scr_gettext("SCR_TEXT_3470") - global.msg[2] = scr_gettext("SCR_TEXT_3471") - global.msg[3] = scr_gettext("SCR_TEXT_3472") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3477") - break - case 660: - global.msg[0] = scr_gettext("SCR_TEXT_3482") - global.msg[1] = scr_gettext("SCR_TEXT_3483") - break - case 661: - global.msg[0] = scr_gettext("SCR_TEXT_3487") - global.msg[1] = scr_gettext("SCR_TEXT_3488") - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = scr_gettext("SCR_TEXT_3495") - global.msg[1] = scr_gettext("SCR_TEXT_3496") - global.msg[2] = scr_gettext("SCR_TEXT_3497") - global.msg[3] = scr_gettext("SCR_TEXT_3498") - global.msg[4] = scr_gettext("SCR_TEXT_3499") - break - case 667: - global.msg[0] = scr_gettext("SCR_TEXT_3503") - global.msg[1] = scr_gettext("SCR_TEXT_3504") - global.msg[2] = scr_gettext("SCR_TEXT_3505") - break - case 668: - global.msg[0] = scr_gettext("SCR_TEXT_3509") - global.msg[1] = scr_gettext("SCR_TEXT_3510") - break - case 669: - global.msg[0] = scr_gettext("SCR_TEXT_3514") - global.msg[1] = scr_gettext("SCR_TEXT_3515") - global.msg[2] = scr_gettext("SCR_TEXT_3516") - break - case 670: - global.msg[0] = scr_gettext("SCR_TEXT_3520") - break - case 671: - global.msg[0] = scr_gettext("SCR_TEXT_3524") - global.msg[1] = scr_gettext("SCR_TEXT_3525") - break - case 672: - global.msg[0] = scr_gettext("SCR_TEXT_3528") - break - case 673: - global.msg[0] = scr_gettext("SCR_TEXT_3531") - global.msg[1] = scr_gettext("SCR_TEXT_3532") - break - case 674: - global.msg[0] = scr_gettext("SCR_TEXT_3535") - global.msg[1] = scr_gettext("SCR_TEXT_3536") - global.msg[2] = scr_gettext("SCR_TEXT_3537") - global.msg[3] = scr_gettext("SCR_TEXT_3538") - global.msg[4] = scr_gettext("SCR_TEXT_3539") - global.msg[5] = scr_gettext("SCR_TEXT_3540") - global.msg[5] = scr_gettext("SCR_TEXT_3541") - global.msg[6] = scr_gettext("SCR_TEXT_3542") - break - case 680: - global.msg[0] = scr_gettext("SCR_TEXT_3548") - global.msg[1] = scr_gettext("SCR_TEXT_3549") - break - case 681: - global.msg[0] = scr_gettext("SCR_TEXT_3553") - global.msg[1] = scr_gettext("SCR_TEXT_3554") - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3559") - } - break - case 682: - global.msg[0] = scr_gettext("SCR_TEXT_3564") - global.msg[1] = scr_gettext("SCR_TEXT_3565") - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3571") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3584") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3591") - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = scr_gettext("SCR_TEXT_3604") - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = scr_gettext("SCR_TEXT_3612") - global.msg[1] = scr_gettext("SCR_TEXT_3613") - global.msg[2] = scr_gettext("SCR_TEXT_3614") - global.msg[3] = scr_gettext("SCR_TEXT_3615") - global.msg[4] = scr_gettext("SCR_TEXT_3616") - global.msg[5] = scr_gettext("SCR_TEXT_3617") - global.msg[6] = scr_gettext("SCR_TEXT_3618") - global.msg[7] = scr_gettext("SCR_TEXT_3619") - global.msg[8] = scr_gettext("SCR_TEXT_3620") - global.msg[9] = scr_gettext("SCR_TEXT_3621") - global.msg[10] = scr_gettext("SCR_TEXT_3622") - global.msg[11] = scr_gettext("SCR_TEXT_3623") - global.msg[12] = scr_gettext("SCR_TEXT_3624") - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_3630") - global.msg[1] = scr_gettext("SCR_TEXT_3631") - global.msg[2] = scr_gettext("SCR_TEXT_3632") - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = scr_gettext("SCR_TEXT_3638") - if (global.flag[380] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3641") - global.msg[1] = scr_gettext("SCR_TEXT_3642") - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_3653") - if (global.flag[381] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3656") - global.msg[1] = scr_gettext("SCR_TEXT_3657") - global.msg[2] = scr_gettext("SCR_TEXT_3658") - global.msg[3] = scr_gettext("SCR_TEXT_3659") - global.msg[4] = scr_gettext("SCR_TEXT_3660") - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3687") - if (global.flag[379] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3690") - global.msg[1] = scr_gettext("SCR_TEXT_3691") - } - if (global.flag[379] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3695") - global.msg[1] = scr_gettext("SCR_TEXT_3696") - global.msg[2] = scr_gettext("SCR_TEXT_3697") - } - if (global.flag[379] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_3701") - global.msg[1] = scr_gettext("SCR_TEXT_3702") - global.msg[2] = scr_gettext("SCR_TEXT_3703") - global.msg[3] = scr_gettext("SCR_TEXT_3704") - } - if (global.flag[379] == 3) - { - global.msg[0] = scr_gettext("SCR_TEXT_3708") - global.msg[1] = scr_gettext("SCR_TEXT_3709") - global.msg[2] = scr_gettext("SCR_TEXT_3710") - global.msg[3] = scr_gettext("SCR_TEXT_3711") - } - if (global.flag[379] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_3715") - global.msg[1] = scr_gettext("SCR_TEXT_3716") - global.msg[2] = scr_gettext("SCR_TEXT_3717") - global.msg[3] = scr_gettext("SCR_TEXT_3718") - global.msg[4] = scr_gettext("SCR_TEXT_3719") - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3725") - global.msg[1] = scr_gettext("SCR_TEXT_3726") - } - } - if (noroom == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3729") - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_3738") - break - case 690: - global.msg[0] = scr_gettext("SCR_TEXT_3743") - global.msg[1] = scr_gettext("SCR_TEXT_3744") - global.msg[2] = scr_gettext("SCR_TEXT_3745") - global.msg[3] = scr_gettext("SCR_TEXT_3746") - global.msg[4] = scr_gettext("SCR_TEXT_3747") - global.msg[5] = scr_gettext("SCR_TEXT_3748") - break - case 691: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3754") - global.msg[1] = scr_gettext("SCR_TEXT_3755") - global.msg[2] = scr_gettext("SCR_TEXT_3756") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3760") - global.msg[1] = scr_gettext("SCR_TEXT_3761") - global.msg[2] = scr_gettext("SCR_TEXT_3762") - } - global.msg[3] = scr_gettext("SCR_TEXT_3765") - global.msg[4] = scr_gettext("SCR_TEXT_3766") - global.msg[5] = scr_gettext("SCR_TEXT_3767") - global.msg[6] = scr_gettext("SCR_TEXT_3768") - global.msg[7] = scr_gettext("SCR_TEXT_3769") - global.msg[8] = scr_gettext("SCR_TEXT_3770") - global.msg[9] = scr_gettext("SCR_TEXT_3771") - global.msg[10] = scr_gettext("SCR_TEXT_3772") - global.msg[11] = scr_gettext("SCR_TEXT_3773") - global.msg[12] = scr_gettext("SCR_TEXT_3774") - global.msg[13] = scr_gettext("SCR_TEXT_3775") - global.msg[14] = scr_gettext("SCR_TEXT_3776") - global.msg[15] = scr_gettext("SCR_TEXT_3777") - global.msg[16] = scr_gettext("SCR_TEXT_3778") - global.msg[17] = scr_gettext("SCR_TEXT_3779") - global.msg[18] = scr_gettext("SCR_TEXT_3780") - global.msg[19] = scr_gettext("SCR_TEXT_3781") - global.msg[20] = scr_gettext("SCR_TEXT_3782") - global.msg[21] = scr_gettext("SCR_TEXT_3783") - break - case 692: - global.msg[0] = scr_gettext("SCR_TEXT_3787") - global.msg[1] = scr_gettext("SCR_TEXT_3788") - global.msg[2] = scr_gettext("SCR_TEXT_3789") - global.msg[3] = scr_gettext("SCR_TEXT_3790") - global.msg[4] = scr_gettext("SCR_TEXT_3791") - global.msg[5] = scr_gettext("SCR_TEXT_3792") - global.msg[6] = scr_gettext("SCR_TEXT_3793") - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3800") - global.msg[2] = scr_gettext("SCR_TEXT_3801") - global.msg[3] = scr_gettext("SCR_TEXT_3802") - global.msg[4] = scr_gettext("SCR_TEXT_3803") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3807") - global.msg[2] = scr_gettext("SCR_TEXT_3808") - global.msg[3] = scr_gettext("SCR_TEXT_3809") - } - break - case 694: - global.msg[0] = scr_gettext("SCR_TEXT_3814") - global.msg[1] = scr_gettext("SCR_TEXT_3815") - global.msg[2] = scr_gettext("SCR_TEXT_3816") - global.msg[3] = scr_gettext("SCR_TEXT_3817") - global.msg[4] = scr_gettext("SCR_TEXT_3818") - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_3825") - global.msg[2] = scr_gettext("SCR_TEXT_3826") - global.msg[3] = scr_gettext("SCR_TEXT_3827") - global.msg[4] = scr_gettext("SCR_TEXT_3828") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3832") - global.msg[2] = scr_gettext("SCR_TEXT_3833") - global.msg[3] = scr_gettext("SCR_TEXT_3834") - } - break - case 696: - global.msg[0] = scr_gettext("SCR_TEXT_3839") - global.msg[1] = scr_gettext("SCR_TEXT_3840") - global.msg[2] = scr_gettext("SCR_TEXT_3841") - break - case 697: - global.msg[0] = scr_gettext("SCR_TEXT_3845") - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = scr_gettext("SCR_TEXT_3859") - global.msg[1] = scr_gettext("SCR_TEXT_3860") - global.msg[2] = scr_gettext("SCR_TEXT_3861") - global.msg[3] = scr_gettext("SCR_TEXT_3862") - global.msg[4] = scr_gettext("SCR_TEXT_3863") - global.msg[5] = scr_gettext("SCR_TEXT_3864") - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3872") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_3878") - global.msg[2] = scr_gettext("SCR_TEXT_3879") - } - break - case 700: - global.msg[0] = scr_gettext("SCR_TEXT_3884") - global.msg[1] = scr_gettext("SCR_TEXT_3885") - global.msg[2] = scr_gettext("SCR_TEXT_3886") - global.msg[3] = scr_gettext("SCR_TEXT_3887") - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3895") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3901") - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_3910") - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_3916") - break - case 703: - global.msg[0] = scr_gettext("SCR_TEXT_3921") - global.msg[1] = scr_gettext("SCR_TEXT_3922") - global.msg[2] = scr_gettext("SCR_TEXT_3923") - global.msg[3] = scr_gettext("SCR_TEXT_3924") - global.msg[4] = scr_gettext("SCR_TEXT_3925") - global.msg[5] = scr_gettext("SCR_TEXT_3926") - break - case 704: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3932") - global.msg[1] = scr_gettext("SCR_TEXT_3933") - global.msg[2] = scr_gettext("SCR_TEXT_3934") - global.msg[3] = scr_gettext("SCR_TEXT_3935") - global.msg[4] = scr_gettext("SCR_TEXT_3936") - global.msg[5] = scr_gettext("SCR_TEXT_3937") - global.msg[6] = scr_gettext("SCR_TEXT_3938") - global.msg[7] = scr_gettext("SCR_TEXT_3939") - global.msg[8] = scr_gettext("SCR_TEXT_3940") - global.msg[9] = scr_gettext("SCR_TEXT_3941") - global.msg[10] = scr_gettext("SCR_TEXT_3942") - global.msg[11] = scr_gettext("SCR_TEXT_3943") - global.msg[12] = scr_gettext("SCR_TEXT_3944") - global.msg[13] = scr_gettext("SCR_TEXT_3945") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3951") - global.msg[1] = scr_gettext("SCR_TEXT_3952") - global.msg[2] = scr_gettext("SCR_TEXT_3953") - global.msg[3] = scr_gettext("SCR_TEXT_3954") - global.msg[4] = scr_gettext("SCR_TEXT_3955") - global.msg[5] = scr_gettext("SCR_TEXT_3956") - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_3963") - global.msg[1] = scr_gettext("SCR_TEXT_3964") - global.msg[2] = scr_gettext("SCR_TEXT_3965") - global.msg[3] = scr_gettext("SCR_TEXT_3966") - global.msg[4] = scr_gettext("SCR_TEXT_3967") - global.msg[5] = scr_gettext("SCR_TEXT_3968") - global.msg[6] = scr_gettext("SCR_TEXT_3969") - global.msg[7] = scr_gettext("SCR_TEXT_3970") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_3976") - global.msg[1] = scr_gettext("SCR_TEXT_3977") - global.msg[2] = scr_gettext("SCR_TEXT_3978") - global.msg[3] = scr_gettext("SCR_TEXT_3979") - global.msg[4] = scr_gettext("SCR_TEXT_3980") - global.msg[5] = scr_gettext("SCR_TEXT_3981") - global.msg[6] = scr_gettext("SCR_TEXT_3982") - global.msg[7] = scr_gettext("SCR_TEXT_3983") - global.msg[8] = scr_gettext("SCR_TEXT_3984") - global.msg[9] = scr_gettext("SCR_TEXT_3985") - global.msg[10] = scr_gettext("SCR_TEXT_3986") - global.msg[11] = scr_gettext("SCR_TEXT_3987") - global.msg[12] = scr_gettext("SCR_TEXT_3988") - global.msg[13] = scr_gettext("SCR_TEXT_3989") - global.msg[14] = scr_gettext("SCR_TEXT_3990") - global.msg[15] = scr_gettext("SCR_TEXT_3991") - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = scr_gettext("SCR_TEXT_3998") - global.msg[1] = scr_gettext("SCR_TEXT_3999") - break - case 707: - global.msg[0] = scr_gettext("SCR_TEXT_4003") - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4010") - global.msg[1] = scr_gettext("SCR_TEXT_4011") - } - break - case 708: - global.msg[0] = scr_gettext("SCR_TEXT_4016") - global.msg[1] = scr_gettext("SCR_TEXT_4017") - global.msg[2] = scr_gettext("SCR_TEXT_4018") - global.msg[3] = scr_gettext("SCR_TEXT_4019") - global.msg[4] = scr_gettext("SCR_TEXT_4020") - global.msg[5] = scr_gettext("SCR_TEXT_4021") - global.msg[6] = scr_gettext("SCR_TEXT_4022") - break - case 709: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4028") - global.msg[1] = scr_gettext("SCR_TEXT_4029") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4033") - break - case 710: - global.msg[0] = scr_gettext("SCR_TEXT_4038") - global.msg[1] = scr_gettext("SCR_TEXT_4039") - global.msg[2] = scr_gettext("SCR_TEXT_4041") - global.msg[3] = scr_gettext("SCR_TEXT_4042") - global.msg[4] = scr_gettext("SCR_TEXT_4043") - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = scr_gettext("SCR_TEXT_4050") - scr_undface(1, 6) - global.msg[2] = scr_gettext("SCR_TEXT_4052") - global.msg[3] = scr_gettext("SCR_TEXT_4053") - global.msg[4] = scr_gettext("SCR_TEXT_4054") - global.msg[5] = scr_gettext("SCR_TEXT_4055") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = scr_gettext("SCR_TEXT_4060") - scr_undface(1, 1) - global.msg[2] = scr_gettext("SCR_TEXT_4062") - global.msg[3] = scr_gettext("SCR_TEXT_4063") - global.msg[4] = scr_gettext("SCR_TEXT_4064") - } - break - case 712: - global.msg[0] = scr_gettext("SCR_TEXT_4071") - global.msg[1] = scr_gettext("SCR_TEXT_4072") - global.msg[2] = scr_gettext("SCR_TEXT_4073") - global.msg[3] = scr_gettext("SCR_TEXT_4074") - global.msg[4] = scr_gettext("SCR_TEXT_4075") - global.msg[5] = scr_gettext("SCR_TEXT_4076") - global.msg[6] = scr_gettext("SCR_TEXT_4077") - global.msg[7] = scr_gettext("SCR_TEXT_4078") - global.msg[8] = scr_gettext("SCR_TEXT_4079") - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = scr_gettext("SCR_TEXT_4086") - global.msg[1] = scr_gettext("SCR_TEXT_4087") - scr_undface(2, 6) - global.msg[3] = scr_gettext("SCR_TEXT_4089") - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = scr_gettext("SCR_TEXT_4094") - global.msg[1] = scr_gettext("SCR_TEXT_4095") - scr_undface(2, 9) - global.msg[3] = scr_gettext("SCR_TEXT_4097") - } - break - case 714: - global.msg[0] = scr_gettext("SCR_TEXT_4103") - global.msg[1] = scr_gettext("SCR_TEXT_4104") - global.msg[2] = scr_gettext("SCR_TEXT_4105") - global.msg[3] = scr_gettext("SCR_TEXT_4106") - global.msg[4] = scr_gettext("SCR_TEXT_4107") - break - case 715: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4113") - global.msg[1] = scr_gettext("SCR_TEXT_4114") - global.msg[2] = scr_gettext("SCR_TEXT_4115") - global.msg[3] = scr_gettext("SCR_TEXT_4116") - global.msg[4] = scr_gettext("SCR_TEXT_4117") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4121") - global.msg[1] = scr_gettext("SCR_TEXT_4122") - global.msg[2] = scr_gettext("SCR_TEXT_4123") - global.msg[3] = scr_gettext("SCR_TEXT_4124") - global.msg[4] = scr_gettext("SCR_TEXT_4125") - global.msg[5] = scr_gettext("SCR_TEXT_4126") - } - break - case 716: - global.msg[0] = scr_gettext("SCR_TEXT_4131") - global.msg[1] = scr_gettext("SCR_TEXT_4132") - break - case 717: - global.msg[0] = scr_gettext("SCR_TEXT_4136") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = scr_gettext("SCR_TEXT_4147") - global.msg[1] = scr_gettext("SCR_TEXT_4148") - global.msg[2] = scr_gettext("SCR_TEXT_4149") - global.msg[3] = scr_gettext("SCR_TEXT_4150") - global.msg[4] = scr_gettext("SCR_TEXT_4151") - global.msg[5] = scr_gettext("SCR_TEXT_4152") - break - case 721: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4159") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4165") - break - case 722: - global.msg[0] = scr_gettext("SCR_TEXT_4170") - global.msg[1] = scr_gettext("SCR_TEXT_4171") - global.msg[2] = scr_gettext("SCR_TEXT_4172") - global.msg[3] = scr_gettext("SCR_TEXT_4173") - break - case 723: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4179") - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4185") - break - case 724: - global.msg[0] = scr_gettext("SCR_TEXT_4191") - global.msg[1] = scr_gettext("SCR_TEXT_4192") - global.msg[2] = scr_gettext("SCR_TEXT_4193") - global.msg[3] = scr_gettext("SCR_TEXT_4194") - global.msg[4] = scr_gettext("SCR_TEXT_4195") - break - case 725: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4201") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4207") - break - case 726: - global.msg[0] = scr_gettext("SCR_TEXT_4214") - global.msg[1] = scr_gettext("SCR_TEXT_4215") - global.msg[2] = scr_gettext("SCR_TEXT_4216") - break - case 727: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4222") - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4228") - break - case 728: - global.msg[0] = scr_gettext("SCR_TEXT_4234") - global.msg[1] = scr_gettext("SCR_TEXT_4235") - global.msg[2] = scr_gettext("SCR_TEXT_4236") - global.msg[3] = scr_gettext("SCR_TEXT_4237") - global.msg[4] = scr_gettext("SCR_TEXT_4238") - global.msg[5] = scr_gettext("SCR_TEXT_4239") - global.msg[6] = scr_gettext("SCR_TEXT_4240") - global.msg[7] = scr_gettext("SCR_TEXT_4241") - global.msg[8] = scr_gettext("SCR_TEXT_4242") - break - case 729: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4248") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4254") - global.msg[1] = scr_gettext("SCR_TEXT_4255") - } - break - case 730: - global.msg[0] = scr_gettext("SCR_TEXT_4260") - global.msg[1] = scr_gettext("SCR_TEXT_4261") - global.msg[2] = scr_gettext("SCR_TEXT_4262") - global.msg[3] = scr_gettext("SCR_TEXT_4263") - break - case 731: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4270") - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4276") - break - case 732: - global.msg[0] = scr_gettext("SCR_TEXT_4282") - global.msg[1] = scr_gettext("SCR_TEXT_4283") - global.msg[2] = scr_gettext("SCR_TEXT_4284") - global.msg[3] = scr_gettext("SCR_TEXT_4285") - global.msg[4] = scr_gettext("SCR_TEXT_4286") - global.msg[5] = scr_gettext("SCR_TEXT_4287") - break - case 733: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4293") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4299") - break - case 734: - global.msg[0] = scr_gettext("SCR_TEXT_4304") - global.msg[1] = scr_gettext("SCR_TEXT_4305") - global.msg[2] = scr_gettext("SCR_TEXT_4306") - break - case 735: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4312") - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4318") - break - case 736: - global.msg[0] = scr_gettext("SCR_TEXT_4326") - global.msg[1] = scr_gettext("SCR_TEXT_4327") - global.msg[2] = scr_gettext("SCR_TEXT_4328") - global.msg[3] = scr_gettext("SCR_TEXT_4329") - global.msg[4] = scr_gettext("SCR_TEXT_4330") - break - case 737: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4336") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4342") - break - case 738: - global.msg[0] = scr_gettext("SCR_TEXT_4347") - global.msg[1] = scr_gettext("SCR_TEXT_4348") - global.msg[2] = scr_gettext("SCR_TEXT_4349") - global.msg[3] = scr_gettext("SCR_TEXT_4350") - break - case 739: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4356") - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4362") - break - case 740: - global.msg[0] = scr_gettext("SCR_TEXT_4369") - global.msg[1] = scr_gettext("SCR_TEXT_4370") - global.msg[2] = scr_gettext("SCR_TEXT_4371") - global.msg[3] = scr_gettext("SCR_TEXT_4372") - global.msg[4] = scr_gettext("SCR_TEXT_4373") - global.msg[5] = scr_gettext("SCR_TEXT_4374") - global.msg[6] = scr_gettext("SCR_TEXT_4375") - break - case 741: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4381") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4387") - break - case 742: - global.msg[0] = scr_gettext("SCR_TEXT_4392") - global.msg[1] = scr_gettext("SCR_TEXT_4393") - global.msg[2] = scr_gettext("SCR_TEXT_4394") - global.msg[3] = scr_gettext("SCR_TEXT_4395") - break - case 743: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4401") - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4407") - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4415") - global.msg[1] = scr_gettext("SCR_TEXT_4416") - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4433") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4434") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4436") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4439") - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = scr_gettext("SCR_TEXT_4447") - global.msg[1] = scr_gettext("SCR_TEXT_4448") - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4465") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4466") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4468") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4471") - break - case 748: - global.msg[0] = scr_gettext("SCR_TEXT_4477") - global.msg[1] = scr_gettext("SCR_TEXT_4478") - global.msg[2] = scr_gettext("SCR_TEXT_4479") - global.msg[3] = scr_gettext("SCR_TEXT_4480") - break - case 749: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4486") - global.msg[1] = scr_gettext("SCR_TEXT_4487") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4491") - global.msg[1] = scr_gettext("SCR_TEXT_4492") - global.msg[2] = scr_gettext("SCR_TEXT_4493") - global.msg[3] = scr_gettext("SCR_TEXT_4494") - } - break - case 750: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4501") - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4505") - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = scr_gettext("SCR_TEXT_4511") - global.msg[1] = scr_gettext("SCR_TEXT_4512") - global.msg[2] = scr_gettext("SCR_TEXT_4513") - break - case 752: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4519") - global.msg[1] = scr_gettext("SCR_TEXT_4520") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4524") - global.msg[1] = scr_gettext("SCR_TEXT_4525") - global.msg[2] = scr_gettext("SCR_TEXT_4526") - global.msg[2] = scr_gettext("SCR_TEXT_4527") - global.msg[3] = scr_gettext("SCR_TEXT_4528") - global.msg[4] = scr_gettext("SCR_TEXT_4529") - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = scr_gettext("SCR_TEXT_4535") - break - case 754: - global.msg[0] = scr_gettext("SCR_TEXT_4540") - global.msg[1] = scr_gettext("SCR_TEXT_4541") - global.msg[2] = scr_gettext("SCR_TEXT_4542") - break - case 755: - global.flag[409] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_4547") - break - case 756: - global.msg[0] = scr_gettext("SCR_TEXT_4551") - global.msg[1] = scr_gettext("SCR_TEXT_4552") - global.msg[2] = scr_gettext("SCR_TEXT_4553") - break - case 757: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4559") - global.msg[1] = scr_gettext("SCR_TEXT_4560") - global.msg[2] = scr_gettext("SCR_TEXT_4561") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4565") - break - case 758: - global.msg[0] = scr_gettext("SCR_TEXT_4571") - global.msg[1] = scr_gettext("SCR_TEXT_4572") - global.msg[2] = scr_gettext("SCR_TEXT_4573") - break - case 759: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_4579") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4583") - break - case 760: - global.msg[0] = scr_gettext("SCR_TEXT_4588") - global.msg[1] = scr_gettext("SCR_TEXT_4589") - global.msg[2] = scr_gettext("SCR_TEXT_4590") - if (global.flag[67] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4591") - break - case 761: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4597") - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4602") - break - case 762: - global.msg[0] = scr_gettext("SCR_TEXT_4609") - global.msg[1] = scr_gettext("SCR_TEXT_4610") - global.msg[2] = scr_gettext("SCR_TEXT_4611") - global.msg[3] = scr_gettext("SCR_TEXT_4612") - global.msg[4] = scr_gettext("SCR_TEXT_4613") - global.msg[5] = scr_gettext("SCR_TEXT_4614") - global.msg[6] = scr_gettext("SCR_TEXT_4615") - global.msg[7] = scr_gettext("SCR_TEXT_4616") - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4623") - global.msg[1] = scr_gettext("SCR_TEXT_4624") - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4630") - global.msg[1] = scr_gettext("SCR_TEXT_4631") - global.msg[2] = scr_gettext("SCR_TEXT_4632") - global.msg[3] = scr_gettext("SCR_TEXT_4633") - } - break - case 764: - global.msg[0] = scr_gettext("SCR_TEXT_4639") - global.msg[1] = scr_gettext("SCR_TEXT_4640") - global.msg[2] = scr_gettext("SCR_TEXT_4641") - global.msg[3] = scr_gettext("SCR_TEXT_4642") - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = scr_gettext("SCR_TEXT_4649") - global.msg[1] = scr_gettext("SCR_TEXT_4650") - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = scr_gettext("SCR_TEXT_4655") - global.msg[1] = scr_gettext("SCR_TEXT_4656") - } - break - case 770: - global.msg[0] = scr_gettext("SCR_TEXT_4662") - global.msg[1] = scr_gettext("SCR_TEXT_4663") - global.msg[2] = scr_gettext("SCR_TEXT_4664") - global.msg[3] = scr_gettext("SCR_TEXT_4665") - global.msg[4] = scr_gettext("SCR_TEXT_4666") - if (global.flag[460] > 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4669") - global.msg[1] = scr_gettext("SCR_TEXT_4670") - global.msg[2] = scr_gettext("SCR_TEXT_4671") - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4678") - if (room == room_fire_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4680") - if (room == room_water_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4682") - if (room == room_tundra_dock) - global.msg[0] = scr_gettext("SCR_TEXT_4684") - global.msg[1] = scr_gettext("SCR_TEXT_4686") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_4691") - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = scr_gettext("SCR_TEXT_4713") - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4720") - global.msg[1] = scr_gettext("SCR_TEXT_4721") - global.msg[2] = scr_gettext("SCR_TEXT_4722") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_4725") - break - case 781: - global.msg[0] = scr_gettext("SCR_TEXT_4729") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = scr_gettext("SCR_TEXT_4743") - global.msg[1] = scr_gettext("SCR_TEXT_4744") - global.msg[2] = scr_gettext("SCR_TEXT_4745") - break - case 783: - global.msg[0] = scr_gettext("SCR_TEXT_4749") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = scr_gettext("SCR_TEXT_4763") - if (global.flag[484] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4767") - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4772") - global.msg[1] = scr_gettext("SCR_TEXT_4773") - global.msg[2] = scr_gettext("SCR_TEXT_4774") - } - break - case 785: - global.msg[0] = scr_gettext("SCR_TEXT_4779") - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = scr_gettext("SCR_TEXT_4791") - if (global.flag[491] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4794") - global.msg[1] = scr_gettext("SCR_TEXT_4795") - global.msg[2] = scr_gettext("SCR_TEXT_4796") - } - break - case 787: - global.msg[0] = scr_gettext("SCR_TEXT_4801") - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = scr_gettext("SCR_TEXT_4816") - global.msg[1] = scr_gettext("SCR_TEXT_4817") - global.msg[2] = scr_gettext("SCR_TEXT_4818") - global.msg[3] = scr_gettext("SCR_TEXT_4819") - global.msg[4] = scr_gettext("SCR_TEXT_4820") - global.msg[5] = scr_gettext("SCR_TEXT_4821") - global.msg[6] = scr_gettext("SCR_TEXT_4822") - global.msg[7] = scr_gettext("SCR_TEXT_4823") - global.msg[8] = scr_gettext("SCR_TEXT_4824") - global.msg[9] = scr_gettext("SCR_TEXT_4825") - global.msg[10] = scr_gettext("SCR_TEXT_4826") - global.msg[11] = scr_gettext("SCR_TEXT_4827") - global.msg[12] = scr_gettext("SCR_TEXT_4828") - global.msg[13] = scr_gettext("SCR_TEXT_4829") - global.msg[14] = scr_gettext("SCR_TEXT_4830") - global.msg[15] = scr_gettext("SCR_TEXT_4831") - global.msg[16] = scr_gettext("SCR_TEXT_4832") - global.msg[17] = scr_gettext("SCR_TEXT_4833") - global.msg[18] = scr_gettext("SCR_TEXT_4834") - global.msg[19] = scr_gettext("SCR_TEXT_4835") - global.msg[20] = scr_gettext("SCR_TEXT_4836") - global.msg[21] = scr_gettext("SCR_TEXT_4837") - global.msg[22] = scr_gettext("SCR_TEXT_4838") - global.msg[23] = scr_gettext("SCR_TEXT_4839") - global.msg[24] = scr_gettext("SCR_TEXT_4840") - global.msg[25] = scr_gettext("SCR_TEXT_4841") - global.msg[26] = scr_gettext("SCR_TEXT_4842") - global.msg[27] = scr_gettext("SCR_TEXT_4843") - global.msg[28] = scr_gettext("SCR_TEXT_4844") - global.msg[29] = scr_gettext("SCR_TEXT_4845") - global.msg[30] = scr_gettext("SCR_TEXT_4846") - global.msg[31] = scr_gettext("SCR_TEXT_4847") - global.msg[32] = scr_gettext("SCR_TEXT_4848") - global.msg[33] = scr_gettext("SCR_TEXT_4849") - global.msg[34] = scr_gettext("SCR_TEXT_4850") - global.msg[35] = scr_gettext("SCR_TEXT_4851") - global.msg[36] = scr_gettext("SCR_TEXT_4852") - global.msg[37] = scr_gettext("SCR_TEXT_4853") - global.msg[38] = scr_gettext("SCR_TEXT_4855") - global.msg[39] = scr_gettext("SCR_TEXT_4856") - break - case 801: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_4862") - global.msg[1] = scr_gettext("SCR_TEXT_4863") - global.msg[2] = scr_gettext("SCR_TEXT_4864") - global.msg[3] = scr_gettext("SCR_TEXT_4865") - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_4869") - global.msg[1] = scr_gettext("SCR_TEXT_4870") - global.msg[2] = scr_gettext("SCR_TEXT_4871") - global.msg[3] = scr_gettext("SCR_TEXT_4872") - } - global.msg[4] = scr_gettext("SCR_TEXT_4875") - global.msg[5] = scr_gettext("SCR_TEXT_4876") - global.msg[6] = scr_gettext("SCR_TEXT_4877") - global.msg[7] = scr_gettext("SCR_TEXT_4878") - global.msg[8] = scr_gettext("SCR_TEXT_4879") - global.msg[9] = scr_gettext("SCR_TEXT_4880") - global.msg[10] = scr_gettext("SCR_TEXT_4881") - global.msg[11] = scr_gettext("SCR_TEXT_4882") - global.msg[12] = scr_gettext("SCR_TEXT_4883") - break - case 803: - global.msg[0] = scr_gettext("SCR_TEXT_4887") - global.msg[1] = scr_gettext("SCR_TEXT_4888") - global.msg[2] = scr_gettext("SCR_TEXT_4889") - global.msg[3] = scr_gettext("SCR_TEXT_4890") - global.msg[4] = scr_gettext("SCR_TEXT_4891") - global.msg[5] = scr_gettext("SCR_TEXT_4892") - global.msg[6] = scr_gettext("SCR_TEXT_4893") - global.msg[7] = scr_gettext("SCR_TEXT_4894") - global.msg[8] = scr_gettext("SCR_TEXT_4895") - global.msg[9] = scr_gettext("SCR_TEXT_4896") - global.msg[10] = scr_gettext("SCR_TEXT_4897") - global.msg[11] = scr_gettext("SCR_TEXT_4898") - global.msg[12] = scr_gettext("SCR_TEXT_4899") - global.msg[13] = scr_gettext("SCR_TEXT_4900") - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = scr_gettext("SCR_TEXT_4919") - global.msg[1] = scr_gettext("SCR_TEXT_4920") - global.msg[2] = scr_gettext("SCR_TEXT_4921") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_4923") - global.msg[5] = scr_gettext("SCR_TEXT_4924") - global.msg[6] = scr_gettext("SCR_TEXT_4925") - global.msg[7] = scr_gettext("SCR_TEXT_4926") - scr_papface(8, 0) - global.msg[9] = scr_gettext("SCR_TEXT_4928") - global.msg[10] = scr_gettext("SCR_TEXT_4929") - scr_undface(11, 9) - global.msg[12] = scr_gettext("SCR_TEXT_4931") - global.msg[13] = scr_gettext("SCR_TEXT_4932") - global.msg[14] = scr_gettext("SCR_TEXT_4933") - global.msg[15] = scr_gettext("SCR_TEXT_4934") - scr_asgface(16, 2) - global.msg[17] = scr_gettext("SCR_TEXT_4936") - global.msg[18] = scr_gettext("SCR_TEXT_4937") - scr_alface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_4939") - global.msg[21] = scr_gettext("SCR_TEXT_4940") - global.msg[22] = scr_gettext("SCR_TEXT_4941") - global.msg[23] = scr_gettext("SCR_TEXT_4942") - global.msg[24] = scr_gettext("SCR_TEXT_4943") - global.msg[25] = scr_gettext("SCR_TEXT_4944") - global.msg[26] = scr_gettext("SCR_TEXT_4945") - break - case 807: - scr_asgface(0, 2) - global.msg[1] = scr_gettext("SCR_TEXT_4950") - if (global.choice == 1) - global.msg[1] = scr_gettext("SCR_TEXT_4952") - global.msg[2] = scr_gettext("SCR_TEXT_4953") - global.msg[3] = scr_gettext("SCR_TEXT_4954") - scr_alface(4, 3) - global.msg[5] = scr_gettext("SCR_TEXT_4956") - global.msg[6] = scr_gettext("SCR_TEXT_4957") - global.msg[7] = scr_gettext("SCR_TEXT_4958") - global.msg[8] = scr_gettext("SCR_TEXT_4959") - global.msg[9] = scr_gettext("SCR_TEXT_4960") - global.msg[10] = scr_gettext("SCR_TEXT_4961") - scr_asgface(11, 1) - global.msg[12] = scr_gettext("SCR_TEXT_4963") - scr_undface(13, 9) - global.msg[14] = scr_gettext("SCR_TEXT_4965") - scr_asgface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_4967") - scr_alface(17, 5) - global.msg[18] = scr_gettext("SCR_TEXT_4969") - break - case 808: - global.msg[0] = scr_gettext("SCR_TEXT_4973") - global.msg[1] = scr_gettext("SCR_TEXT_4974") - global.msg[2] = scr_gettext("SCR_TEXT_4975") - global.msg[3] = scr_gettext("SCR_TEXT_4976") - global.msg[4] = scr_gettext("SCR_TEXT_4977") - global.msg[5] = scr_gettext("SCR_TEXT_4978") - global.msg[6] = scr_gettext("SCR_TEXT_4979") - break - case 809: - global.msg[0] = scr_gettext("SCR_TEXT_4983") - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = scr_gettext("SCR_TEXT_4987") - global.msg[2] = scr_gettext("SCR_TEXT_4988") - global.msg[3] = scr_gettext("SCR_TEXT_4989") - global.msg[4] = scr_gettext("SCR_TEXT_4990") - global.msg[5] = scr_gettext("SCR_TEXT_4991") - global.msg[6] = scr_gettext("SCR_TEXT_4992") - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = scr_gettext("SCR_TEXT_4998") - global.msg[2] = scr_gettext("SCR_TEXT_4999") - global.msg[3] = scr_gettext("SCR_TEXT_5000") - global.msg[4] = scr_gettext("SCR_TEXT_5001") - } - break - case 810: - global.msg[0] = scr_gettext("SCR_TEXT_5007") - global.msg[1] = scr_gettext("SCR_TEXT_5008") - global.msg[2] = scr_gettext("SCR_TEXT_5009") - global.msg[3] = scr_gettext("SCR_TEXT_5010") - global.msg[4] = scr_gettext("SCR_TEXT_5011") - global.msg[5] = scr_gettext("SCR_TEXT_5012") - global.msg[6] = scr_gettext("SCR_TEXT_5013") - global.msg[7] = scr_gettext("SCR_TEXT_5014") - global.msg[8] = scr_gettext("SCR_TEXT_5015") - break - case 811: - global.msg[0] = scr_gettext("SCR_TEXT_5019") - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5023") - global.msg[2] = scr_gettext("SCR_TEXT_5024") - global.msg[3] = scr_gettext("SCR_TEXT_5025") - global.msg[4] = scr_gettext("SCR_TEXT_5026") - global.msg[5] = scr_gettext("SCR_TEXT_5027") - global.msg[6] = scr_gettext("SCR_TEXT_5028") - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = scr_gettext("SCR_TEXT_5034") - global.msg[2] = scr_gettext("SCR_TEXT_5035") - scr_undface(3, 2) - global.msg[4] = scr_gettext("SCR_TEXT_5037") - scr_asgface(5, 2) - global.msg[6] = scr_gettext("SCR_TEXT_5039") - global.msg[7] = scr_gettext("SCR_TEXT_5040") - scr_undface(8, 6) - global.msg[9] = scr_gettext("SCR_TEXT_5042") - scr_alface(10, 9) - global.msg[11] = scr_gettext("SCR_TEXT_5044") - global.msg[12] = scr_gettext("SCR_TEXT_5045") - scr_undface(13, 2) - global.msg[14] = scr_gettext("SCR_TEXT_5047") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5049") - scr_undface(17, 9) - global.msg[18] = scr_gettext("SCR_TEXT_5051") - scr_sansface(19, 1) - global.msg[20] = scr_gettext("SCR_TEXT_5053") - scr_torface(21, 0) - global.msg[22] = scr_gettext("SCR_TEXT_5055") - scr_undface(23, 1) - global.msg[24] = scr_gettext("SCR_TEXT_5057") - scr_asgface(25, 0) - global.msg[26] = scr_gettext("SCR_TEXT_5059") - scr_undface(27, 6) - global.msg[28] = scr_gettext("SCR_TEXT_5061") - scr_torface(29, 1) - global.msg[30] = scr_gettext("SCR_TEXT_5063") - scr_asgface(31, 5) - global.msg[32] = scr_gettext("SCR_TEXT_5065") - scr_undface(33, 1) - global.msg[34] = scr_gettext("SCR_TEXT_5067") - } - break - case 812: - global.msg[0] = scr_gettext("SCR_TEXT_5073") - global.msg[1] = scr_gettext("SCR_TEXT_5074") - global.msg[2] = scr_gettext("SCR_TEXT_5075") - global.msg[3] = scr_gettext("SCR_TEXT_5076") - global.msg[4] = scr_gettext("SCR_TEXT_5077") - break - case 813: - global.msg[0] = scr_gettext("SCR_TEXT_5081") - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = scr_gettext("SCR_TEXT_5095") - scr_asgface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5097") - scr_alface(3, 3) - global.msg[4] = scr_gettext("SCR_TEXT_5099") - global.msg[5] = scr_gettext("SCR_TEXT_5100") - scr_undface(6, 1) - global.msg[7] = scr_gettext("SCR_TEXT_5102") - global.msg[8] = scr_gettext("SCR_TEXT_5103") - global.msg[9] = scr_gettext("SCR_TEXT_5104") - scr_papface(10, 0) - global.msg[11] = scr_gettext("SCR_TEXT_5106") - global.msg[12] = scr_gettext("SCR_TEXT_5107") - scr_sansface(13, 1) - global.msg[14] = scr_gettext("SCR_TEXT_5109") - scr_papface(15, 0) - global.msg[16] = scr_gettext("SCR_TEXT_5111") - global.msg[17] = scr_gettext("SCR_TEXT_5112") - scr_asgface(18, 0) - global.msg[19] = scr_gettext("SCR_TEXT_5114") - scr_torface(20, 0) - global.msg[21] = scr_gettext("SCR_TEXT_5116") - global.msg[22] = scr_gettext("SCR_TEXT_5117") - scr_asgface(23, 3) - global.msg[24] = scr_gettext("SCR_TEXT_5119") - global.msg[25] = scr_gettext("SCR_TEXT_5120") - global.msg[26] = scr_gettext("SCR_TEXT_5121") - global.msg[27] = scr_gettext("SCR_TEXT_5122") - global.msg[28] = scr_gettext("SCR_TEXT_5123") - global.msg[29] = scr_gettext("SCR_TEXT_5124") - global.msg[30] = scr_gettext("SCR_TEXT_5125") - global.msg[31] = scr_gettext("SCR_TEXT_5126") - global.msg[32] = scr_gettext("SCR_TEXT_5127") - global.msg[33] = scr_gettext("SCR_TEXT_5128") - break - case 815: - scr_papface(0, 0) - global.msg[1] = scr_gettext("SCR_TEXT_5133") - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5136") - global.msg[2] = scr_gettext("SCR_TEXT_5137") - global.msg[3] = scr_gettext("SCR_TEXT_5138") - global.msg[4] = scr_gettext("SCR_TEXT_5139") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5143") - global.msg[2] = scr_gettext("SCR_TEXT_5144") - global.msg[3] = scr_gettext("SCR_TEXT_5145") - global.msg[4] = scr_gettext("SCR_TEXT_5146") - } - break - case 820: - global.msg[0] = scr_gettext("SCR_TEXT_5151") - global.msg[1] = scr_gettext("SCR_TEXT_5152") - global.msg[2] = scr_gettext("SCR_TEXT_5153") - global.msg[3] = scr_gettext("SCR_TEXT_5154") - global.msg[4] = scr_gettext("SCR_TEXT_5155") - global.msg[5] = scr_gettext("SCR_TEXT_5156") - global.msg[6] = scr_gettext("SCR_TEXT_5157") - break - case 821: - global.msg[0] = scr_gettext("SCR_TEXT_5161") - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = scr_gettext("SCR_TEXT_5182") - global.msg[1] = scr_gettext("SCR_TEXT_5183") - global.msg[2] = scr_gettext("SCR_TEXT_5184") - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = scr_gettext("SCR_TEXT_5197") - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5206") - break - case 827: - global.msg[0] = scr_gettext("SCR_TEXT_5212") - global.msg[1] = scr_gettext("SCR_TEXT_5213") - global.msg[2] = scr_gettext("SCR_TEXT_5214") - break - case 828: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5220") - global.msg[1] = scr_gettext("SCR_TEXT_5221") - global.msg[2] = scr_gettext("SCR_TEXT_5222") - global.msg[3] = scr_gettext("SCR_TEXT_5223") - global.msg[4] = scr_gettext("SCR_TEXT_5224") - global.msg[5] = scr_gettext("SCR_TEXT_5225") - global.msg[6] = scr_gettext("SCR_TEXT_5226") - global.msg[7] = scr_gettext("SCR_TEXT_5227") - global.msg[8] = scr_gettext("SCR_TEXT_5228") - global.msg[9] = scr_gettext("SCR_TEXT_5229") - global.msg[10] = scr_gettext("SCR_TEXT_5230") - global.msg[11] = scr_gettext("SCR_TEXT_5231") - global.msg[12] = scr_gettext("SCR_TEXT_5232") - global.msg[13] = scr_gettext("SCR_TEXT_5233") - global.msg[14] = scr_gettext("SCR_TEXT_5234") - global.msg[15] = scr_gettext("SCR_TEXT_5235") - global.msg[16] = scr_gettext("SCR_TEXT_5236") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5240") - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = scr_gettext("SCR_TEXT_5250") - global.msg[1] = scr_gettext("SCR_TEXT_5251") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5255") - global.msg[1] = scr_gettext("SCR_TEXT_5256") - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5274") - if (afford == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5275") - } - if (noroom == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5277") - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5280") - break - case 831: - global.msg[0] = scr_gettext("SCR_TEXT_5285") - global.msg[1] = scr_gettext("SCR_TEXT_5286") - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - global.msg[2] = scr_gettext("SCR_TEXT_5290") - global.msg[3] = scr_gettext("SCR_TEXT_5291") - global.msg[4] = scr_gettext("SCR_TEXT_5292") - global.msg[5] = scr_gettext("SCR_TEXT_5293") - if (bs == 1) - global.msg[6] = scr_gettext("SCR_TEXT_5295") - else if (bs == 2) - global.msg[6] = scr_gettext("SCR_TEXT_5296") - else - global.msg[6] = scr_gettext("SCR_TEXT_5294") - global.msg[7] = scr_gettext("SCR_TEXT_5297") - break - case 832: - ossafe_ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ossafe_ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - else - global.flag[46] = 0 - global.msg[0] = scr_gettext("SCR_TEXT_5309") - global.msg[1] = scr_gettext("SCR_TEXT_5310") - global.msg[2] = scr_gettext("SCR_TEXT_5311") - global.msg[3] = scr_gettext("SCR_TEXT_5312") - global.msg[4] = scr_gettext("SCR_TEXT_5313") - global.msg[5] = scr_gettext("SCR_TEXT_5314") - global.msg[6] = scr_gettext("SCR_TEXT_5315") - global.msg[7] = scr_gettext("SCR_TEXT_5316") - global.msg[8] = scr_gettext("SCR_TEXT_5317") - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - else - global.flag[46] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5323") - global.msg[1] = scr_gettext("SCR_TEXT_5324") - global.msg[2] = scr_gettext("SCR_TEXT_5325") - global.msg[3] = scr_gettext("SCR_TEXT_5326") - ossafe_ini_open("undertale.ini") - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ossafe_savedata_save() - ossafe_ini_close() - } - break - case 833: - global.msg[0] = scr_gettext("SCR_TEXT_5337") - global.msg[1] = scr_gettext("SCR_TEXT_5338") - global.msg[2] = scr_gettext("SCR_TEXT_5339") - break - case 834: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5345") - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_5353") - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = scr_gettext("SCR_TEXT_5359") - global.msg[1] = scr_gettext("SCR_TEXT_5360") - global.msg[2] = scr_gettext("SCR_TEXT_5361") - global.msg[3] = scr_gettext("SCR_TEXT_5362") - global.msg[4] = scr_gettext("SCR_TEXT_5363") - global.msg[5] = scr_gettext("SCR_TEXT_5364") - global.msg[6] = scr_gettext("SCR_TEXT_5365") - global.msg[7] = scr_gettext("SCR_TEXT_5366") - global.msg[8] = scr_gettext("SCR_TEXT_5367") - global.msg[9] = scr_gettext("SCR_TEXT_5368") - global.msg[10] = scr_gettext("SCR_TEXT_5369") - global.msg[11] = scr_gettext("SCR_TEXT_5370") - global.msg[12] = scr_gettext("SCR_TEXT_5371") - global.msg[13] = scr_gettext("SCR_TEXT_5372") - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5379") - global.msg[2] = scr_gettext("SCR_TEXT_5380") - global.msg[3] = scr_gettext("SCR_TEXT_5381") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = scr_gettext("SCR_TEXT_5390") - global.msg[2] = scr_gettext("SCR_TEXT_5391") - global.msg[3] = scr_gettext("SCR_TEXT_5392") - global.msg[4] = scr_gettext("SCR_TEXT_5393") - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = scr_gettext("SCR_TEXT_5402") - scr_alface(1, 0) - global.msg[2] = scr_gettext("SCR_TEXT_5404") - global.msg[3] = scr_gettext("SCR_TEXT_5405") - global.msg[4] = scr_gettext("SCR_TEXT_5406") - global.msg[5] = scr_gettext("SCR_TEXT_5407") - global.msg[6] = scr_gettext("SCR_TEXT_5408") - global.msg[7] = scr_gettext("SCR_TEXT_5409") - global.msg[8] = scr_gettext("SCR_TEXT_5410") - global.msg[9] = scr_gettext("SCR_TEXT_5411") - global.msg[10] = scr_gettext("SCR_TEXT_5412") - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = scr_gettext("SCR_TEXT_5420") - global.msg[2] = scr_gettext("SCR_TEXT_5421") - global.msg[3] = scr_gettext("SCR_TEXT_5422") - global.msg[4] = scr_gettext("SCR_TEXT_5423") - global.msg[5] = scr_gettext("SCR_TEXT_5424") - global.msg[6] = scr_gettext("SCR_TEXT_5425") - global.msg[7] = scr_gettext("SCR_TEXT_5426") - global.msg[8] = scr_gettext("SCR_TEXT_5427") - global.msg[9] = scr_gettext("SCR_TEXT_5428") - global.msg[10] = scr_gettext("SCR_TEXT_5429") - global.msg[11] = scr_gettext("SCR_TEXT_5430") - global.msg[12] = scr_gettext("SCR_TEXT_5431") - global.msg[13] = scr_gettext("SCR_TEXT_5432") - global.msg[14] = scr_gettext("SCR_TEXT_5433") - global.msg[15] = scr_gettext("SCR_TEXT_5434") - global.msg[16] = scr_gettext("SCR_TEXT_5435") - global.msg[17] = scr_gettext("SCR_TEXT_5436") - global.msg[18] = scr_gettext("SCR_TEXT_5437") - global.msg[19] = scr_gettext("SCR_TEXT_5438") - global.msg[20] = scr_gettext("SCR_TEXT_5439") - global.msg[21] = scr_gettext("SCR_TEXT_5440") - } - if (global.choice == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_5445") - global.msg[2] = scr_gettext("SCR_TEXT_5446") - global.msg[3] = scr_gettext("SCR_TEXT_5447") - global.msg[4] = scr_gettext("SCR_TEXT_5448") - global.msg[5] = scr_gettext("SCR_TEXT_5449") - global.msg[6] = scr_gettext("SCR_TEXT_5450") - } - break - case 839: - global.msg[0] = scr_gettext("SCR_TEXT_5455") - global.msg[1] = scr_gettext("SCR_TEXT_5456") - global.msg[2] = scr_gettext("SCR_TEXT_5457") - global.msg[3] = scr_gettext("SCR_TEXT_5458") - global.msg[4] = scr_gettext("SCR_TEXT_5459") - global.msg[5] = scr_gettext("SCR_TEXT_5460") - global.msg[6] = scr_gettext("SCR_TEXT_5461") - global.msg[7] = scr_gettext("SCR_TEXT_5462") - global.msg[8] = scr_gettext("SCR_TEXT_5463") - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = scr_gettext("SCR_TEXT_5471") - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = scr_gettext("SCR_TEXT_5477") - } - break - case 845: - global.msg[0] = scr_gettext("SCR_TEXT_5485") - global.msg[1] = scr_gettext("SCR_TEXT_5486") - global.msg[2] = scr_gettext("SCR_TEXT_5487") - break - case 846: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5493") - global.msg[1] = scr_gettext("SCR_TEXT_5494") - global.msg[2] = scr_gettext("SCR_TEXT_5495") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5499") - break - case 847: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5506") - else - global.msg[0] = scr_gettext("SCR_TEXT_5510") - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = scr_gettext("SCR_TEXT_5517") - global.msg[1] = scr_gettext("SCR_TEXT_5518") - global.msg[2] = scr_gettext("SCR_TEXT_5519") - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5527") - global.msg[1] = scr_gettext("SCR_TEXT_5528") - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5533") - global.msg[1] = scr_gettext("SCR_TEXT_5534") - } - break - case 853: - global.msg[0] = scr_gettext("SCR_TEXT_5541") - global.msg[1] = scr_gettext("SCR_TEXT_5542") - global.msg[2] = scr_gettext("SCR_TEXT_5543") - break - case 854: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5550") - global.msg[1] = scr_gettext("SCR_TEXT_5551") - global.msg[2] = scr_gettext("SCR_TEXT_5552") - global.msg[3] = scr_gettext("SCR_TEXT_5553") - global.msg[4] = scr_gettext("SCR_TEXT_5554") - global.msg[5] = scr_gettext("SCR_TEXT_5555") - global.msg[6] = scr_gettext("SCR_TEXT_5556") - global.msg[7] = scr_gettext("SCR_TEXT_5557") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5561") - break - case 860: - global.msg[0] = scr_gettext("SCR_TEXT_5566") - if (global.flag[262] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5569") - global.msg[1] = scr_gettext("SCR_TEXT_5570") - global.msg[2] = scr_gettext("SCR_TEXT_5571") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5575") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5581") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5585") - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5598") - global.msg[1] = scr_gettext("SCR_TEXT_5599") - global.msg[2] = scr_gettext("SCR_TEXT_5600") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5604") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5609") - break - case 862: - global.msg[0] = scr_gettext("SCR_TEXT_5614") - if (global.flag[263] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5617") - global.msg[1] = scr_gettext("SCR_TEXT_5618") - global.msg[2] = scr_gettext("SCR_TEXT_5619") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5623") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5628") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5632") - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5646") - global.msg[1] = scr_gettext("SCR_TEXT_5647") - global.msg[2] = scr_gettext("SCR_TEXT_5648") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5652") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5657") - break - case 864: - global.msg[0] = scr_gettext("SCR_TEXT_5662") - global.msg[1] = scr_gettext("SCR_TEXT_5663") - global.msg[2] = scr_gettext("SCR_TEXT_5664") - global.msg[3] = scr_gettext("SCR_TEXT_5665") - if (global.flag[7] == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5669") - break - case 865: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5676") - global.msg[1] = scr_gettext("SCR_TEXT_5677") - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = scr_gettext("SCR_TEXT_5705") - global.msg[1] = scr_gettext("SCR_TEXT_5706") - global.msg[2] = scr_gettext("SCR_TEXT_5707") - global.msg[3] = scr_gettext("SCR_TEXT_5708") - global.msg[4] = scr_gettext("SCR_TEXT_5709") - global.msg[5] = scr_gettext("SCR_TEXT_5710") - global.msg[6] = scr_gettext("SCR_TEXT_5711") - global.msg[7] = scr_gettext("SCR_TEXT_5712") - global.msg[8] = scr_gettext("SCR_TEXT_5713") - global.msg[9] = scr_gettext("SCR_TEXT_5714") - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5720") - global.msg[1] = scr_gettext("SCR_TEXT_5721") - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = scr_gettext("SCR_TEXT_5727") - global.msg[1] = scr_gettext("SCR_TEXT_5728") - global.msg[2] = scr_gettext("SCR_TEXT_5729") - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = scr_gettext("SCR_TEXT_5736") - global.msg[1] = scr_gettext("SCR_TEXT_5737") - global.msg[2] = scr_gettext("SCR_TEXT_5738") - if (noroom == 1) - global.msg[3] = scr_gettext("SCR_TEXT_5743") - else - global.msg[3] = scr_gettext("SCR_TEXT_5747") - } - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_5755") - break - case 866: - global.msg[0] = scr_gettext("SCR_TEXT_5761") - global.msg[1] = scr_gettext("SCR_TEXT_5762") - global.msg[2] = scr_gettext("SCR_TEXT_5763") - global.msg[3] = scr_gettext("SCR_TEXT_5764") - if (global.flag[267] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_5768") - global.msg[1] = scr_gettext("SCR_TEXT_5769") - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = scr_gettext("SCR_TEXT_5774") - global.msg[1] = scr_gettext("SCR_TEXT_5775") - global.msg[2] = scr_gettext("SCR_TEXT_5776") - global.msg[3] = scr_gettext("SCR_TEXT_5777") - global.msg[4] = scr_gettext("SCR_TEXT_5778") - global.msg[5] = scr_gettext("SCR_TEXT_5779") - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = scr_gettext("SCR_TEXT_5791") - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5797") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_5802") - break - case 870: - global.msg[0] = scr_gettext("SCR_TEXT_5807") - global.msg[1] = scr_gettext("SCR_TEXT_5808") - global.msg[2] = scr_gettext("SCR_TEXT_5809") - global.msg[3] = scr_gettext("SCR_TEXT_5810") - global.msg[4] = scr_gettext("SCR_TEXT_5811") - global.msg[5] = scr_gettext("SCR_TEXT_5812") - global.msg[6] = scr_gettext("SCR_TEXT_5813") - break - case 871: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5819") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5823") - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = scr_gettext("SCR_TEXT_5829") - global.msg[1] = scr_gettext("SCR_TEXT_5830") - global.msg[2] = scr_gettext("SCR_TEXT_5831") - global.msg[3] = scr_gettext("SCR_TEXT_5832") - global.msg[4] = scr_gettext("SCR_TEXT_5833") - global.msg[5] = scr_gettext("SCR_TEXT_5834") - global.msg[6] = scr_gettext("SCR_TEXT_5835") - global.msg[7] = scr_gettext("SCR_TEXT_5836") - break - case 889: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5842") - else - global.msg[0] = scr_gettext("SCR_TEXT_5846") - break - case 890: - global.msg[0] = scr_gettext("SCR_TEXT_5851") - global.msg[1] = scr_gettext("SCR_TEXT_5852") - global.msg[2] = scr_gettext("SCR_TEXT_5853") - global.msg[3] = scr_gettext("SCR_TEXT_5854") - global.msg[4] = scr_gettext("SCR_TEXT_5855") - global.msg[5] = scr_gettext("SCR_TEXT_5856") - global.msg[6] = scr_gettext("SCR_TEXT_5857") - break - case 891: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5863") - global.msg[1] = scr_gettext("SCR_TEXT_5864") - global.msg[2] = scr_gettext("SCR_TEXT_5865") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5869") - global.msg[1] = scr_gettext("SCR_TEXT_5870") - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_5877") - global.msg[1] = scr_gettext("SCR_TEXT_5878") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5882") - global.msg[1] = scr_gettext("SCR_TEXT_5883") - } - break - case 900: - global.msg[0] = scr_gettext("SCR_TEXT_5888") - global.msg[1] = scr_gettext("SCR_TEXT_5889") - global.msg[2] = scr_gettext("SCR_TEXT_5890") - global.msg[3] = scr_gettext("SCR_TEXT_5891") - break - case 901: - if (global.choice == 0) - global.msg[0] = scr_gettext("SCR_TEXT_5897") - else - { - global.msg[0] = scr_gettext("SCR_TEXT_5901") - global.msg[1] = scr_gettext("SCR_TEXT_5902") - global.msg[2] = scr_gettext("SCR_TEXT_5903") - } - break - case 950: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5913") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5914") - global.msg[2] = " " - if (global.flag[295] >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - if (global.flag[295] == 2 && global.flag[294] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5924") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5925") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[3] = " " - global.flag[295] = 3 - } - if (global.flag[295] == 3 && global.flag[294] == 5) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5933") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[2] = " " - global.flag[295] = 4 - } - if (global.flag[295] == 4 && global.flag[294] == 10) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5941") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5942") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_5943") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_5944") - global.msg[4] = scr_gettext("SCR_TEXT_dogshrine_5919", string(global.flag[292]), string(global.flag[293])) - global.msg[5] = " " - global.flag[295] = 5 - } - if (global.flag[295] >= 6) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5954") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5955") - if (global.flag[7] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5958") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5959") - } - } - break - case 951: - if (doak == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5970") - if (global.choice == 0) - { - if (global.flag[292] >= global.flag[293]) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5977") - if (global.gold <= 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5982") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5983") - } - if (global.flag[292] < global.flag[293]) - { - if (global.gold >= 1) - { - snd_play(snd_item) - global.gold -= 1 - global.flag[292] += 1 - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5993") - if (global.flag[295] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_5997") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_5998") - } - if (global.flag[292] >= global.flag[293]) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6003") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6004") - global.flag[294] += 1 - trophy_unlock(("donate_" + string(global.flag[294]))) - } - } - } - if (global.flag[295] == 0) - global.flag[295] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6015") - doak = 1 - } - break - case 952: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6024") - global.msg[1] = " " - break - case 953: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6031") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6032") - global.flag[296] = 1 - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6037") - break - case 955: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6045") - global.msg[1] = scr_gettext("SCR_TEXT_dogshrine_6046") - global.msg[2] = scr_gettext("SCR_TEXT_dogshrine_6047") - global.msg[3] = scr_gettext("SCR_TEXT_dogshrine_6048") - global.msg[4] = " " - break - case 956: - p = caster_get_pitch(global.currentsong) - p2 = (p + 0.1) - if (p2 >= 1.5) - p2 = 1.5 - if (global.choice == 0) - { - caster_set_pitch(global.currentsong, p2) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6059") - } - if (global.choice == 1) - { - if (p == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6065") - else - { - caster_set_pitch(global.currentsong, 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6070") - } - } - break - case 960: - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6076", string(global.flag[292])) - global.msg[1] = " " - break - case 961: - if (doak == 0) - { - if (global.choice == 0) - { - if (global.flag[292] < 350) - { - if (global.gold >= 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6095") - global.flag[292] += 1 - if (global.flag[292] >= 2) - trophy_unlock("donate_1") - if (global.flag[292] >= 6) - trophy_unlock("donate_2") - if (global.flag[292] >= 12) - trophy_unlock("donate_3") - if (global.flag[292] >= 20) - trophy_unlock("donate_4") - if (global.flag[292] >= 30) - trophy_unlock("donate_5") - if (global.flag[292] >= 43) - trophy_unlock("donate_6") - if (global.flag[292] >= 59) - trophy_unlock("donate_7") - if (global.flag[292] >= 78) - trophy_unlock("donate_8") - if (global.flag[292] >= 100) - trophy_unlock("donate_9") - if (global.flag[292] >= 125) - trophy_unlock("donate_10") - if (global.flag[292] >= 155) - trophy_unlock("donate_11") - if (global.flag[292] >= 190) - trophy_unlock("donate_12") - if (global.flag[292] >= 230) - trophy_unlock("donate_13") - if (global.flag[292] >= 280) - trophy_unlock("donate_14") - if (global.flag[292] >= 350) - trophy_unlock("donate_15") - global.gold -= 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6101") - } - else - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6106") - } - if (global.choice == 1) - global.msg[0] = scr_gettext("SCR_TEXT_dogshrine_6112") - doak = 1 - } - break - case 965: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_2") - global.msg[1] = scr_gettext("SCR_TEXT_mewmew_3") - global.msg[2] = " " - if (global.tempvalue[14] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_6") - with (obj_mewmew_npc) - con = 1 - } - break - case 966: - if (global.choice == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_4") - with (obj_mewmew_npc) - con = 1 - } - else - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_5") - break - case 1001: - global.msg[0] = scr_gettext("SCR_TEXT_5937") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = scr_gettext("SCR_TEXT_5948") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = scr_gettext("SCR_TEXT_5959") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = scr_gettext("SCR_TEXT_5970") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = scr_gettext("SCR_TEXT_5981") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = scr_gettext("SCR_TEXT_5991") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = scr_gettext("SCR_TEXT_6001") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = scr_gettext("SCR_TEXT_6011") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = scr_gettext("SCR_TEXT_6021") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = scr_gettext("SCR_TEXT_6031") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = scr_gettext("SCR_TEXT_6041") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = scr_gettext("SCR_TEXT_6051") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = scr_gettext("SCR_TEXT_6061") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = scr_gettext("SCR_TEXT_6071") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = scr_gettext("SCR_TEXT_6081") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = scr_gettext("SCR_TEXT_6091") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = scr_gettext("SCR_TEXT_6101") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6114") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6124") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = scr_gettext("SCR_TEXT_6135") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = scr_gettext("SCR_TEXT_6145") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = scr_gettext("SCR_TEXT_6155") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = scr_gettext("SCR_TEXT_6165") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = scr_gettext("SCR_TEXT_6175") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = scr_gettext("SCR_TEXT_6185") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = scr_gettext("SCR_TEXT_6196") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = scr_gettext("SCR_TEXT_6206") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6221") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6234") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_6244") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = scr_gettext("SCR_TEXT_6259") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = scr_gettext("SCR_TEXT_6269") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = scr_gettext("SCR_TEXT_6279") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = scr_gettext("SCR_TEXT_6289") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = scr_gettext("SCR_TEXT_6300") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = scr_gettext("SCR_TEXT_6313") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = scr_gettext("SCR_TEXT_6323") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = scr_gettext("SCR_TEXT_6333") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = scr_gettext("SCR_TEXT_6343") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = scr_gettext("SCR_TEXT_6353") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = scr_gettext("SCR_TEXT_6363") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = scr_gettext("SCR_TEXT_6374", string(global.flag[382])) - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = scr_gettext("SCR_TEXT_6384") - if (global.flag[385] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6387") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = scr_gettext("SCR_TEXT_6398") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = scr_gettext("SCR_TEXT_6408") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = scr_gettext("SCR_TEXT_6418") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = scr_gettext("SCR_TEXT_6428") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = scr_gettext("SCR_TEXT_6438") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = scr_gettext("SCR_TEXT_6449") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = scr_gettext("SCR_TEXT_6460") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = scr_gettext("SCR_TEXT_6470") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = scr_gettext("SCR_TEXT_6480") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = scr_gettext("SCR_TEXT_6490") - if (global.flag[424] > 0) - global.msg[0] = scr_gettext("SCR_TEXT_6493") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = scr_gettext("SCR_TEXT_6504") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = scr_gettext("SCR_TEXT_6514") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = scr_gettext("SCR_TEXT_6524") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = scr_gettext("SCR_TEXT_6534") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = scr_gettext("SCR_TEXT_6544") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = scr_gettext("SCR_TEXT_6554") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6565") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = scr_gettext("SCR_TEXT_6579") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = scr_gettext("SCR_TEXT_6589") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = scr_gettext("SCR_TEXT_6599") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = scr_gettext("SCR_TEXT_6609") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = scr_gettext("SCR_TEXT_6619") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = scr_gettext("SCR_TEXT_6629") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = scr_gettext("SCR_TEXT_6639") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = scr_gettext("SCR_TEXT_6649") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = scr_gettext("SCR_TEXT_6659") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = scr_gettext("SCR_TEXT_6669") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = scr_gettext("SCR_TEXT_6679") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = scr_gettext("SCR_TEXT_6689") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = scr_gettext("SCR_TEXT_6699") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = scr_gettext("SCR_TEXT_6709") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = scr_gettext("SCR_TEXT_6720") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = scr_gettext("SCR_TEXT_6731") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = scr_gettext("SCR_TEXT_6741") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = scr_gettext("SCR_TEXT_6751") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = scr_gettext("SCR_TEXT_6761") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1077: - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_0") - if instance_exists(obj_mewmew_boss) - { - if (obj_mewmew_boss.true_battle >= 1) - global.msg[0] = scr_gettext("SCR_TEXT_mewmew_1") - } - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = scr_gettext("SCR_TEXT_6772") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = scr_gettext("SCR_TEXT_6783") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = scr_gettext("SCR_TEXT_6793") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = scr_gettext("SCR_TEXT_6804") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = scr_gettext("SCR_TEXT_6814") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = scr_gettext("SCR_TEXT_6825") - else - global.msg[0] = scr_gettext("SCR_TEXT_6826") - if (global.flag[506] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6828") - else - global.msg[0] += scr_gettext("SCR_TEXT_6829") - if (global.flag[507] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6831") - else - global.msg[0] += scr_gettext("SCR_TEXT_6832") - if (global.flag[508] == 0) - global.msg[0] += scr_gettext("SCR_TEXT_6834") - else - global.msg[0] += scr_gettext("SCR_TEXT_6835") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = scr_gettext("SCR_TEXT_6848") - if (global.flag[501] == 3) - global.msg[0] = scr_gettext("SCR_TEXT_6849") - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = scr_gettext("SCR_TEXT_6868") - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = scr_gettext("SCR_TEXT_6876") - global.msg[2] = scr_gettext("SCR_TEXT_6877") - global.msg[3] = scr_gettext("SCR_TEXT_6878") - global.msg[4] = scr_gettext("SCR_TEXT_6879") - global.msg[5] = scr_gettext("SCR_TEXT_6880") - global.msg[6] = scr_gettext("SCR_TEXT_6881") - global.msg[7] = scr_gettext("SCR_TEXT_6882") - } - if (global.flag[40] == 2) - { - global.msg[1] = scr_gettext("SCR_TEXT_6886") - global.msg[2] = scr_gettext("SCR_TEXT_6887") - global.msg[3] = scr_gettext("SCR_TEXT_6888") - global.msg[4] = scr_gettext("SCR_TEXT_6889") - global.msg[5] = scr_gettext("SCR_TEXT_6890") - global.msg[6] = scr_gettext("SCR_TEXT_6891") - global.msg[7] = scr_gettext("SCR_TEXT_6892") - } - if (global.flag[40] == 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6896") - global.msg[2] = scr_gettext("SCR_TEXT_6897") - global.msg[3] = scr_gettext("SCR_TEXT_6898") - global.msg[4] = scr_gettext("SCR_TEXT_6899") - global.msg[5] = scr_gettext("SCR_TEXT_6900") - global.msg[6] = scr_gettext("SCR_TEXT_6901") - global.msg[7] = scr_gettext("SCR_TEXT_6902") - global.msg[8] = scr_gettext("SCR_TEXT_6903") - global.msg[9] = scr_gettext("SCR_TEXT_6904") - global.msg[10] = scr_gettext("SCR_TEXT_6905") - } - if (global.flag[40] > 3) - { - global.msg[1] = scr_gettext("SCR_TEXT_6909") - global.msg[2] = scr_gettext("SCR_TEXT_6910") - global.msg[3] = scr_gettext("SCR_TEXT_6911") - global.msg[4] = scr_gettext("SCR_TEXT_6912") - global.msg[5] = scr_gettext("SCR_TEXT_6913") - global.msg[6] = scr_gettext("SCR_TEXT_6914") - global.msg[7] = scr_gettext("SCR_TEXT_6915") - } - break - case 1502: - global.msg[0] = scr_gettext("SCR_TEXT_6920") - global.msg[1] = scr_gettext("SCR_TEXT_6921") - global.msg[2] = scr_gettext("SCR_TEXT_6922") - global.msg[3] = scr_gettext("SCR_TEXT_6923") - global.msg[4] = scr_gettext("SCR_TEXT_6924") - global.msg[5] = scr_gettext("SCR_TEXT_6925") - global.msg[6] = scr_gettext("SCR_TEXT_6926") - global.msg[7] = scr_gettext("SCR_TEXT_6927") - break - case 1503: - global.msg[0] = scr_gettext("SCR_TEXT_6931") - global.msg[1] = scr_gettext("SCR_TEXT_6932") - global.msg[2] = scr_gettext("SCR_TEXT_6933") - global.msg[3] = scr_gettext("SCR_TEXT_6934") - global.msg[4] = scr_gettext("SCR_TEXT_6935") - global.msg[5] = scr_gettext("SCR_TEXT_6936") - global.msg[6] = scr_gettext("SCR_TEXT_6937") - global.msg[7] = scr_gettext("SCR_TEXT_6938") - break - case 1504: - global.flag[42] = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6943") - global.msg[1] = scr_gettext("SCR_TEXT_6944") - global.msg[2] = scr_gettext("SCR_TEXT_6945") - global.msg[3] = scr_gettext("SCR_TEXT_6946") - global.msg[4] = scr_gettext("SCR_TEXT_6947") - global.msg[5] = scr_gettext("SCR_TEXT_6948") - global.msg[6] = scr_gettext("SCR_TEXT_6949") - global.msg[7] = scr_gettext("SCR_TEXT_6950") - global.msg[8] = scr_gettext("SCR_TEXT_6951") - global.msg[9] = scr_gettext("SCR_TEXT_6952") - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_6963") - global.msg[1] = scr_gettext("SCR_TEXT_6964") - global.msg[2] = scr_gettext("SCR_TEXT_6965") - global.msg[3] = scr_gettext("SCR_TEXT_6966") - global.msg[4] = scr_gettext("SCR_TEXT_6967") - global.msg[5] = scr_gettext("SCR_TEXT_6968") - global.msg[6] = scr_gettext("SCR_TEXT_6969") - global.msg[7] = scr_gettext("SCR_TEXT_6970") - } - if (global.flag[41] == 2) - { - global.msg[0] = scr_gettext("SCR_TEXT_6974") - global.msg[1] = scr_gettext("SCR_TEXT_6975") - global.msg[2] = scr_gettext("SCR_TEXT_6976") - global.msg[3] = scr_gettext("SCR_TEXT_6977") - global.msg[4] = scr_gettext("SCR_TEXT_6978") - global.msg[5] = scr_gettext("SCR_TEXT_6979") - if (global.flag[42] == 1) - { - global.msg[3] = scr_gettext("SCR_TEXT_6982") - global.msg[4] = scr_gettext("SCR_TEXT_6983") - global.msg[5] = scr_gettext("SCR_TEXT_6984") - global.msg[6] = scr_gettext("SCR_TEXT_6985") - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = scr_gettext("SCR_TEXT_6994") - global.msg[1] = scr_gettext("SCR_TEXT_6995") - global.msg[2] = scr_gettext("SCR_TEXT_6996") - } - else - { - global.msg[0] = scr_gettext("SCR_TEXT_7000") - global.msg[1] = scr_gettext("SCR_TEXT_7001") - global.msg[2] = scr_gettext("SCR_TEXT_7002") - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = scr_gettext("SCR_TEXT_7007") - global.msg[1] = scr_gettext("SCR_TEXT_7008") - global.msg[2] = scr_gettext("SCR_TEXT_7009") - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = scr_gettext("SCR_TEXT_7016") - global.msg[1] = scr_gettext("SCR_TEXT_7017") - global.msg[2] = scr_gettext("SCR_TEXT_7018") - global.msg[3] = scr_gettext("SCR_TEXT_7019") - global.msg[4] = scr_gettext("SCR_TEXT_7020") - global.msg[5] = scr_gettext("SCR_TEXT_7021") - break - case 1508: - global.msg[0] = scr_gettext("SCR_TEXT_7025") - global.msg[1] = scr_gettext("SCR_TEXT_7026") - global.msg[2] = scr_gettext("SCR_TEXT_7027") - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = scr_gettext("SCR_TEXT_7040") - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = scr_gettext("SCR_TEXT_7052") - break - case 2001: - global.msg[0] = scr_gettext("SCR_TEXT_306") - global.msg[1] = scr_gettext("SCR_TEXT_307") - break - case 2002: - global.faceplate = 1 - global.msg[0] = scr_gettext("SCR_TEXT_6965") - global.msg[1] = scr_gettext("SCR_TEXT_6966") - global.msg[2] = scr_gettext("SCR_TEXT_6967") - global.msg[3] = (scr_gettext("SCR_TEXT_6968") + "%") - break - case 3002: - global.msg[0] = scr_gettext("SCR_TEXT_7079") - global.msg[1] = scr_gettext("SCR_TEXT_7080") - break - case 3003: - global.msg[0] = scr_gettext("SCR_TEXT_7084") - global.msg[1] = scr_gettext("SCR_TEXT_7085") - break - case 3004: - global.msg[0] = scr_gettext("SCR_TEXT_7089") - global.msg[1] = scr_gettext("SCR_TEXT_7090") - break - case 3005: - global.msg[0] = scr_gettext("SCR_TEXT_7094") - global.msg[1] = scr_gettext("SCR_TEXT_7095") - break - case 3006: - global.msg[0] = scr_gettext("SCR_TEXT_7099") - global.msg[1] = scr_gettext("SCR_TEXT_7100") - break - case 3007: - global.msg[0] = scr_gettext("SCR_TEXT_7104") - global.msg[1] = scr_gettext("SCR_TEXT_7105") - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_get_colour_element.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_get_colour_element.gml deleted file mode 100644 index e65c0a569..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_get_colour_element.gml +++ /dev/null @@ -1,55 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __nearestdepth = -15000; -var __farthestdepth = 15999; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __colstring = "Compatibility_Colour"; -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__colstring, __layername) > 0) - { - __layerid = __layerlist[__i]; - - break; - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(-1, false, false, -1, 0, 0, true, true,1,1, true, 0, 0, $0, 1); - __result[0] = __newback[0]; - __result[1] = __newback[1]; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_get_element.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_get_element.gml deleted file mode 100644 index bd067ef6b..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_get_element.gml +++ /dev/null @@ -1,84 +0,0 @@ -var __bind = argument0; - -var __result; -__result[0] = -1; -__result[1] = -1; -__result[2] = -1; - - -// Look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __i; - -var __layerid = -1; -var __isforeground = false; - -// Try and find the appropriate background in the list of layers -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = true; - - break; - } - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - - if (__slot == __bind) - { - __layerid = __layerlist[__i]; - __isforeground = false; - - break; - } - } -} - -if (__layerid != -1) -{ - // We have a winner! - // Get id of background element on this layer - var __els = layer_get_all_elements(__layerid); - var __elslength = array_length_1d(__els); - for(__i = 0; __i < __elslength; __i++) - { - if (layer_get_element_type(__els[__i]) == layerelementtype_background) - { - __result[0] = __els[__i]; - __result[1] = __layerid; - __result[2] = __isforeground; - } - } -} -else -{ - // Need to construct a new layer with a new background - var __newback = __background_set_element(__bind, false, false, -1, 0, 0, true, true, 1, 1, false, 0, 0, $ffffff, 1) - __result[0] = __newback[0]; - __result[1] = __newback[1]; - __result[2] = false; -} - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_set_element.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_set_element.gml deleted file mode 100644 index 469f740c1..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script___background_set_element.gml +++ /dev/null @@ -1,188 +0,0 @@ -// NOTE: this script will only work properly if you're using the standard depth range (-16000 to 16000) -var __bind = argument0; -var __vis = argument1; -var __fore = argument2; -var __back = argument3; -var __x = argument4; -var __y = argument5; -var __htiled = argument6; -var __vtiled = argument7; -var __xscale = argument8; -var __yscale = argument9; -var __stretch = argument10; -var __hspeed = argument11; -var __vspeed = argument12; -var __blend = argument13; -var __alpha = argument14; - -//var __nearestdepth = -15000; -//var __farthestdepth = 15999; -var __nearestdepth = 1000000000; -var __farthestdepth = -1000000000; -var __depthinc = 100; - -var __result; -__result[0] = -1; -__result[1] = -1; - - -// Now look at the existing layers in the room to see if we have any foregrounds or backgrounds -var __fgstring = "Compatibility_Foreground_"; -var __bgstring = "Compatibility_Background_"; -var __colstring = "Compatibility_Colour"; -var __fglen = string_length(__fgstring); -var __bglen = string_length(__bgstring); -var __layerlist = layer_get_all(); -var __layerlistlength = array_length_1d(__layerlist); -var __collayer = -1; -var __slots; -var __isforeground; -var __i; -for(__i = 0; __i < 8; __i++) -{ - __slots[__i] = -1; - __isforeground[__i] = false; -} - - -for(__i = 0; __i < __layerlistlength; __i++) -{ - var __layername = layer_get_name(__layerlist[__i]); - if (string_pos(__fgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __fglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = true; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__bgstring, __layername) > 0) - { - var __slotchr = string_char_at(__layername, __bglen + 1); - if (__slotchr == "") - continue; - - var __slot = real( __slotchr ); - __slots[__slot] = __layerlist[__i]; - - __isforeground[__slot] = false; - - // Could check the contents of this layer to see if it has a single background element on it but that's probably overkill - } - else if (string_pos(__colstring, __layername) > 0) - { - // Make sure colour is as deep as it can be - __collayer = __layerlist[__i]; - layer_depth(__layerlist[__i], __farthestdepth); - } - else - { - var __currdepth = layer_get_depth(__layerlist[__i]); - - if (__currdepth < __nearestdepth) - __nearestdepth = __currdepth; - - if (__currdepth > __farthestdepth) - __farthestdepth = __currdepth; - } -} - -// Reassign depths -__farthestdepth += __depthinc + 1000; // add some margin for the background layers -__nearestdepth -= __depthinc; - -//__farthestdepth = max(__farthestdepth, 15999); -//__nearestdepth = min(__nearestdepth, -15000); -__farthestdepth = max(__farthestdepth, 2147483600); -__nearestdepth = min(__nearestdepth, -2147482000); - -for(__i = 0; __i < 8; __i++) -{ - if (__slots[__i] != -1) - { - var __depth = 0; - if (__isforeground[__i] == true) - { - __depth = __nearestdepth - (__i * __depthinc); - } - else - { - __depth = (__farthestdepth - __depthinc) - (__slot * __depthinc); - } - - layer_depth(__slots[__i], __depth); - } -} - -if (__collayer != -1) -{ - layer_depth(__collayer, __farthestdepth); -} - - -// Construct our layer name and depth -var __layername; -var __layerdepth; -if (__bind == -1) -{ - // This is the background colour layer - __layername = __colstring; - __layerdepth = __farthestdepth; -} -else -{ - if (__fore == true) - { - __layername = __fgstring + string(__bind); - __layerdepth = __nearestdepth - (__bind * __depthinc); - } - else - { - __layername = __bgstring + string(__bind); - __layerdepth = (__farthestdepth - __depthinc) - (__bind * __depthinc); // reserve 16000 for imported colour - } -} - -// If we already have a background in this slot, nuke it -var __layerid; -if (__bind == -1) -{ - __layerid = __collayer; -} -else -{ - __layerid = __slots[__bind]; -} - -if (__layerid != -1) -{ - layer_destroy(__layerid); -} -__layerid = layer_create(__layerdepth, __layername); - -// Set our layer properties -layer_x(__layerid, __x); -layer_y(__layerid, __y); -layer_hspeed(__layerid, __hspeed); -layer_vspeed(__layerid, __vspeed); - -// Construct our new background element -var __backel = layer_background_create(__layerid, __back); -layer_background_visible(__backel, __vis); -layer_background_htiled(__backel, __htiled); -layer_background_vtiled(__backel, __vtiled); -layer_background_xscale(__backel, __xscale); -layer_background_yscale(__backel, __yscale); -layer_background_stretch(__backel, __stretch); -layer_background_blend(__backel, __blend); -layer_background_alpha(__backel, __alpha); - -__result[0] = __backel; -__result[1] = __layerid; - -return __result; \ No newline at end of file diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_joystick_pov.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_joystick_pov.gml deleted file mode 100644 index 6c8efecf4..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_joystick_pov.gml +++ /dev/null @@ -1,7 +0,0 @@ -var jid = __joystick_2_gamepad(argument0) -var mask = 0 -mask |= (gamepad_button_value(jid, gp_padu) > 0 ? 1 : 0) -mask |= (gamepad_button_value(jid, gp_padr) > 0 ? 2 : 0) -mask |= (gamepad_button_value(jid, gp_padd) > 0 ? 4 : 0) -mask |= (gamepad_button_value(jid, gp_padl) > 0 ? 8 : 0) -return global.__jstick_povangle[mask]; diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_ossafe_file_text_open_read.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_ossafe_file_text_open_read.gml deleted file mode 100644 index 5baecfc3f..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_ossafe_file_text_open_read.gml +++ /dev/null @@ -1,43 +0,0 @@ -var lines; -if (global.osflavor <= 2) - return file_text_open_read(argument0); -else -{ - var name = string_lower(argument0) - var file = ds_map_find_value(global.savedata, name) - if is_undefined(file) - return undefined; - var data = file - var num_lines = 0 - while (string_byte_length(data) > 0) - { - var newline_pos = string_pos(chr($0A), data) - if (newline_pos > 0) - { - var nextline_pos = (newline_pos + 1) - if (newline_pos > 1 && string_char_at(data, (newline_pos - 1)) == chr($0D)) - newline_pos-- - if (newline_pos > 1) - var line = substr(data, 1, (newline_pos - 1)) - else - line = "" - if (nextline_pos <= strlen(data)) - data = substr(data, nextline_pos) - else - data = "" - } - else - { - line = data - data = "" - } - lines[num_lines++] = line - } - handle = ds_map_create() - ds_map_set(handle, "is_write", 0) - ds_map_set(handle, "text", lines) - ds_map_set(handle, "num_lines", num_lines) - ds_map_set(handle, "line", 0) - ds_map_set(handle, "line_read", 0) - return handle; -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_draw_name_curs.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_draw_name_curs.gml deleted file mode 100644 index f76acbdc9..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_draw_name_curs.gml +++ /dev/null @@ -1,23 +0,0 @@ -var xx = argument0 -var yy = argument1 -if (global.language == "ja") -{ - var use_font = fnt_ja_curs - yy += 3 -} -else -{ - use_font = fnt_curs - for (var i = 1; i < strlen(global.charname); i++) - { - if (ord(string_char_at(global.charname, i)) >= 12288) - { - use_font = 12 - yy += 3 - break - } - } -} -draw_set_font(use_font) -draw_text(xx, yy, string_hash_to_newline(global.charname)) -return string_width(string_hash_to_newline(global.charname)); diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_draw_screen_border.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_draw_screen_border.gml deleted file mode 100644 index ddd3cc787..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_draw_screen_border.gml +++ /dev/null @@ -1,259 +0,0 @@ -var overlay; -var border_id = argument0 -draw_enable_alphablend(0) -if (border_id == 1) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_line_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_line_544, 0, 0) -} -if (border_id == 2) -{ - var fade_time = 60 - if instance_exists(obj_stalkerflowey) - { - global.screen_border_state += (1 / fade_time) - if (global.screen_border_state > 1) - global.screen_border_state = 1 - } - else - { - global.screen_border_state -= (1 / fade_time) - if (global.screen_border_state < 0) - global.screen_border_state = 0 - } - var idle_min = 300000 - var idle_time = 0 - if (obj_time.idle && current_time >= (obj_time.idle_time + idle_min)) - idle_time = (current_time - (obj_time.idle_time + idle_min)) - var idle_frame = (floor((idle_time / 100)) % 3) - var base = -4 - for (var i = 0; i < 9; i++) - { - overlay[i, 0] = -4 - overlay[i, 1] = spr_undertaletitle - overlay[i, 2] = spr_undertaletitle - } - if (os_type == os_ps4 || os_type == os_switch_beta) - { - base = bg_border_sepia_1080 - overlay[0, 1] = spr_blconbelow - overlay[0, 2] = spr_truechara_laugh - overlay[1, 1] = spr_superbone - overlay[1, 2] = buttonL_nx_zr - overlay[2, 1] = spr_barktry_ja - overlay[2, 2] = spr_finalfroggit - overlay[3, 1] = spr_undertaletitle - overlay[3, 2] = spr_undynex_example - overlay[4, 1] = spr_vegetoid - overlay[4, 2] = spr_blconbelow - overlay[5, 1] = spr_bookshelf - overlay[5, 2] = spr_undertaletitle - overlay[6, 1] = spr_forcefield_right_middle - overlay[6, 2] = spr_alphyshelper_embarrass - overlay[7, 1] = spr_chipdoor_chippart - overlay[7, 2] = spr_gb_npc - overlay[8, 1] = spr_undynea_ut - overlay[8, 2] = spr_uppbutton - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_1080_1a - overlay[1, 0] = bg_border_sepia_1080_2a - overlay[2, 0] = bg_border_sepia_1080_3a - overlay[3, 0] = bg_border_sepia_1080_4a - overlay[4, 0] = bg_border_sepia_1080_5a - overlay[5, 0] = bg_border_sepia_1080_6a - overlay[6, 0] = bg_border_sepia_1080_7a - overlay[7, 0] = bg_border_sepia_1080_8a - overlay[8, 0] = bg_border_sepia_1080_9a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_1080_1b - overlay[1, 0] = bg_border_sepia_1080_2b - overlay[2, 0] = bg_border_sepia_1080_3b - overlay[3, 0] = bg_border_sepia_1080_4b - overlay[4, 0] = bg_border_sepia_1080_5b - overlay[5, 0] = bg_border_sepia_1080_6b - overlay[6, 0] = bg_border_sepia_1080_7b - overlay[7, 0] = bg_border_sepia_1080_8b - overlay[8, 0] = bg_border_sepia_1080_9b - } - if (global.screen_border_state > 0) - overlay1 = 2839 - } - else if (os_type == os_psvita) - { - base = bg_border_sepia_544 - overlay[0, 1] = spr_talkbt - overlay[0, 2] = spr_undyneb_face3 - overlay[1, 1] = spr_heartorange - overlay[1, 2] = spr_wizard_orbhurt - overlay[2, 1] = spr_undertaletitle - overlay[2, 2] = spr_oolbone_ja - overlay[3, 1] = button_ps4_l3 - overlay[3, 2] = spr_undertaletitle - overlay[4, 1] = buttonL_nx_zl - overlay[4, 2] = spr_whimsunhurt - overlay[5, 1] = buttonL_vita_triangle - overlay[5, 2] = spr_vulkinface5 - if (idle_frame == 1) - { - overlay[0, 0] = bg_border_sepia_544_1a - overlay[1, 0] = bg_border_sepia_544_2a - overlay[2, 0] = bg_border_sepia_544_3a - overlay[3, 0] = bg_border_sepia_544_4a - overlay[4, 0] = bg_border_sepia_544_5a - overlay[5, 0] = bg_border_sepia_544_6a - } - else if (idle_frame == 2) - { - overlay[0, 0] = bg_border_sepia_544_1b - overlay[1, 0] = bg_border_sepia_544_2b - overlay[2, 0] = bg_border_sepia_544_3b - overlay[3, 0] = bg_border_sepia_544_4b - overlay[4, 0] = bg_border_sepia_544_5b - overlay[5, 0] = bg_border_sepia_544_6b - } - if (global.screen_border_state > 0) - overlay1 = 2853 - } - if (base != -4) - { - scr_draw_background_ps4(base, 0, 0) - if (overlay[0, 0] != -4) - { - if (global.screen_border_state > 0) - { - draw_enable_alphablend(1) - draw_set_alpha((global.screen_border_state * 0.5)) - } - scr_draw_background_ps4(overlay[0, 0], overlay[0, 1], overlay[0, 2]) - if (global.screen_border_state > 0) - { - draw_set_alpha(1) - draw_enable_alphablend(0) - } - } - for (i = 1; i < 9; i++) - { - if (overlay[i, 0] != -4) - scr_draw_background_ps4(overlay[i, 0], overlay[i, 1], overlay[i, 2]) - } - } -} -if (border_id == 3) -{ - var room_id = global.currentroom - if ((room_id >= 4 && room_id <= 43) || (room >= room_introstory && room <= room_intromenu) || (room >= room_settings && room <= room_controltest)) - border_id = 4 - if ((room_id >= 44 && room_id <= 81) || room_id == 311 || (room_id >= 265 && room_id <= 266)) - border_id = 5 - if ((room_id >= 82 && room_id <= 136) || room_id == 312 || room_id == 315) - border_id = 6 - if ((room_id >= 137 && room_id <= 215) || room_id == 313 || room_id == 314 || (room_id >= 242 && room_id <= 243)) - border_id = 7 - if (room_id >= 216 && room_id <= 240) - border_id = 8 - if (room_id >= 244 && room_id <= 263) - border_id = 9 - if (room_id == 136 || room_id == 213 || room_id == 215 || room_id == 242 || room_id == 243 || room_id == 316 || room_id == 335 || room_id == 336 || room_id == 337) - border_id = 3.5 - if (global.flag[479] == 0 && (room_id == 244 || room_id == 245)) - border_id = 3.5 - if (border_id != global.screen_border_state) - { - if (global.screen_border_state != 0) - { - if (global.screen_border_dynamic_fade_id == border_id) - global.screen_border_dynamic_fade_level = (1 - global.screen_border_dynamic_fade_level) - else - global.screen_border_dynamic_fade_level = 1 - global.screen_border_dynamic_fade_id = global.screen_border_state - } - global.screen_border_state = border_id - } - if (global.screen_border_dynamic_fade_level > 0) - { - fade_time = 30 - global.screen_border_dynamic_fade_level -= (1 / fade_time) - if (global.screen_border_dynamic_fade_level > 0) - { - scr_draw_screen_border(global.screen_border_dynamic_fade_id) - draw_set_alpha((1 - global.screen_border_dynamic_fade_level)) - } - else - { - global.screen_border_dynamic_fade_id = 0 - global.screen_border_dynamic_fade_level = 0 - } - } -} -if (border_id == 3.5) -{ - draw_set_color(c_black) - ossafe_fill_rectangle(0, 0, (window_get_width() - 1), (window_get_height() - 1)) - draw_set_color(c_white) -} -if (border_id == 4) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_ruins_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_ruins_544, 0, 0) -} -if (border_id == 5) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_tundra_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_tundra_544, 0, 0) -} -if (border_id == 6) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_water1_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_water1_544, 0, 0) -} -if (border_id == 7) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_fire_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_fire_544, 0, 0) -} -if (border_id == 8) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_castle_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_castle_544, 0, 0) -} -if (border_id == 9) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_truelab_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_truelab_544, 0, 0) -} -if (border_id == 10) -{ - if (os_type == os_ps4 || os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_rad_1080, 0, 0) - if (os_type == os_psvita) - draw_background(bg_border_rad_544, 0, 0) -} -if (border_id == 11) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_anime_1080, 0, 0) -} -if (border_id == 12) -{ - if (os_type == os_switch_beta) - scr_draw_background_ps4(bg_border_dog_1080, 0, 0) -} -draw_set_alpha(1) -draw_enable_alphablend(1) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemdesc.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemdesc.gml deleted file mode 100644 index 30f82a28b..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemdesc.gml +++ /dev/null @@ -1,8 +0,0 @@ -global.msg[0] = scr_gettext("scr_itemdesc_2") -for (var i = 0; true; i++) -{ - var desc = scr_gettext(((("item_desc_" + string(argument0)) + "_") + string(i))) - if (string_length(desc) == 0) - break - global.msg[i] = desc -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 4c986d2f8..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,39 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -ossafe_ini_open("undertale.ini") -var bc = ini_read_real("General", "BC", 0) -if (bc < 4) -{ - bc++ - ini_write_real("General", "BC", bc) - ossafe_ini_close() - ossafe_savedata_save() -} -else - ossafe_ini_close() -if (bc >= 1) - trophy_unlock("item_1") -if (bc >= 2) - trophy_unlock("item_2") -if (bc >= 3) - trophy_unlock("item_3") -if (bc >= 4) - trophy_unlock("item_4") -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemuseb.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemuseb.gml deleted file mode 100644 index 44fee9151..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_itemuseb.gml +++ /dev/null @@ -1,938 +0,0 @@ -global.msg[0] = scr_gettext(("item_use_" + string(argument1))) -switch argument1 -{ - case 0: - break - case 1: - if (global.seriousbattle == 0) - { - randomtext = round(random(15)) - if (randomtext <= 2) - global.msg[0] += scr_gettext("item_use_1a") - if (randomtext == 15) - global.msg[0] += scr_gettext("item_use_1b") - } - script_execute(scr_recoitem, 10) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 2: - if (global.seriousbattle == 1) - global.msg[0] = scr_gettext("item_use_2_serious") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 3: - if instance_exists(obj_dogeparent) - { - if instance_exists(obj_lesserdoge) - { - if (obj_lesserdoge.mercymod < 60) - obj_lesserdoge.mercymod = 102 - } - else - obj_dogeparent.mercymod = 102 - if (instance_exists(obj_mandog) || instance_exists(obj_womandog)) - { - if (scr_monstersum() == 1) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge1"), 0, 0) - obj_dogeparent.mercymod = -9999 - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3_doge2"), 0, 0) - } - else - { - if instance_exists(obj_greatdog) - obj_dogeparent.mercymod = 250 - script_execute(scr_writetext, 0, scr_gettext("item_use_3_greatdog"), 0, 0) - } - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - } - else if (instance_exists(obj_papyrusboss) || instance_exists(obj_wizard) || instance_exists(obj_mettatonex)) - { - if instance_exists(obj_papyrusboss) - script_execute(scr_writetext, 0, scr_gettext("item_use_3_papyrus"), 0, 0) - if instance_exists(obj_wizard) - { - script_execute(scr_writetext, 0, scr_gettext("item_use_3_madjick"), 0, 0) - obj_wizard.mercymod = 300 - } - if instance_exists(obj_mettatonex) - { - with (obj_ratingsmaster) - { - curtype = 7 - event_user(0) - } - script_execute(scr_writetext, 0, scr_gettext("item_use_3_mettaton"), 0, 0) - } - } - else - script_execute(scr_writetext, 0, scr_gettext("item_use_3"), 0, 0) - break - case 4: - snd_play(snd_power) - if (global.seriousbattle == 0) - global.msg[0] += scr_gettext("item_use_4a") - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 5: - script_execute(scr_recoitem, 1) - instance_create(0, 0, obj_foodsound) - script_execute(scr_itemshift, argument0, 0) - break - case 6: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 8) - script_execute(scr_itemshift, argument0, 0) - break - case 7: - if (global.seriousbattle == 0) - { - if (global.inbattle == 1) - { - randomtext = ceil(random(10)) - if (randomtext > 9) - global.msg[0] = scr_gettext("item_use_7a") - } - } - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 12) - script_execute(scr_itemshift, argument0, 0) - break - case 8: - if (global.seriousbattle == 0) - { - randomtext = round(random(10)) - if (randomtext > 8) - global.msg[0] += scr_gettext("item_use_8a") - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 5) - script_execute(scr_itemshift, argument0, 0) - break - case 9: - foodsounder = instance_create(0, 0, obj_foodsound) - if (global.seriousbattle == 0) - { - with (foodsounder) - soundtype = 2 - } - script_execute(scr_recoitem, 16) - script_execute(scr_itemshift, argument0, 0) - break - case 10: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 24) - script_execute(scr_itemshift, argument0, 0) - if instance_exists(obj_spiderb) - { - with (obj_spiderb) - event_user(6) - } - break - case 11: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < global.maxhp) - global.hp = global.maxhp - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_11") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_11"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 12: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 13: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 14: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 15: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 16: - if (room == room_tundra6A) - global.flag[56] = 4 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 45) - script_execute(scr_itemshift, argument0, 0) - break - case 17: - randomtext = floor(random(8)) - if (randomtext == 0) - global.msg[0] = scr_gettext("item_use_17a") - if (randomtext == 1) - global.msg[0] = scr_gettext("item_use_17b") - if (randomtext == 2) - global.msg[0] = scr_gettext("item_use_17c") - if (randomtext == 3) - global.msg[0] = scr_gettext("item_use_17d") - if (randomtext == 4) - global.msg[0] = scr_gettext("item_use_17e") - if (randomtext == 5) - global.msg[0] = scr_gettext("item_use_17f") - if (randomtext == 6) - global.msg[0] = scr_gettext("item_use_17g") - if (randomtext == 7) - global.msg[0] = scr_gettext("item_use_17h") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - script_execute(scr_itemshift, argument0, 0) - break - case 18: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 28) - script_execute(scr_itemshift, argument0, 0) - break - case 19: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - global.item[argument0] = 20 - break - case 20: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 11) - script_execute(scr_itemshift, argument0, 0) - break - case 21: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 22) - script_execute(scr_itemshift, argument0, 0) - break - case 22: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 2) - script_execute(scr_itemshift, argument0, 0) - break - case 23: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 34) - script_execute(scr_itemshift, argument0, 0) - break - case 24: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 25: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 26: - if (global.inbattle == 0) - { - d = instance_create(x, y, obj_imageview) - d.sprite_index = scr_getsprite(spr_punchcard) - global.interact = 1 - } - else - { - if (global.weapon == 14) - { - snd_play(snd_tearcard) - add = 6 - if (global.at > 18) - add = 5 - if (global.at > 23) - add = 4 - if (global.at > 26) - add = 3 - if (global.at > 28) - add = 2 - global.at += add - global.msg[1] = scr_gettext("item_use_26a", string(add)) - global.flag[78] = 1 - } - else - global.msg[1] = scr_gettext("item_use_26b") - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - } - break - case 27: - script_execute(scr_writetext, 0, "x", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - script_execute(scr_itemshift, argument0, 0) - break - case 28: - healamt = 1 - dogsad = floor(random(4)) - if (dogsad == 0) - { - global.msg[0] += scr_gettext("item_use_28a") - healamt = 30 - } - if (dogsad == 1) - { - global.msg[0] += scr_gettext("item_use_28b") - healamt = 10 - } - if (dogsad == 2) - { - global.msg[0] += scr_gettext("item_use_28c") - healamt = 2 - } - if (dogsad == 3) - { - global.msg[0] += scr_gettext("item_use_28d") - healamt = 999 - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogresidue - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, healamt) - script_execute(scr_itemshift, argument0, 0) - break - case 29: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 30: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 31: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 32: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 33: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 34: - if (global.item[7] == 0) - global.msg[1] = scr_gettext("item_use_29a") - else - global.msg[1] = scr_gettext("item_use_29b") - global.msg[2] = scr_gettext("item_use_29c") - global.msg[3] = scr_gettext("item_use_29d") - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_item - grt.sound2 = snd_dogresidue - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - for (i = 0; i < 8; i += 1) - { - rr = (floor(random(7)) + 28) - if (global.item[i] == 0) - global.item[i] = rr - } - break - case 35: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 36: - if (global.inbattle == 0) - { - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 15) - } - if (global.inbattle == 1) - { - if (global.seriousbattle == 1) - { - global.msg[0] = scr_gettext("item_use_36a") - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 90) - } - else - nood = instance_create(0, 0, obj_instantnoodleitem) - } - script_execute(scr_itemshift, argument0, 0) - break - case 37: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 18) - script_execute(scr_itemshift, argument0, 0) - break - case 38: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_dogsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - script_execute(scr_recoitem, 20) - script_execute(scr_itemshift, argument0, 0) - break - case 39: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - if (global.seriousbattle == 0) - grt.sound2 = snd_catsalad - if (global.seriousbattle == 1) - grt.sound2 = snd_heal_c - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 21) - script_execute(scr_itemshift, argument0, 0) - break - case 40: - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_sparkle1 - grt.alarm[1] = 10 - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_40_mettaton") - with (obj_ratingsmaster) - { - curtype = 10 - event_user(0) - } - } - script_execute(scr_recoitem, 27) - script_execute(scr_itemshift, argument0, 0) - break - case 41: - if (global.inbattle == 1) - { - if (global.sp < 8) - { - global.sp += 1 - if instance_exists(obj_spiderb) - global.msg[0] += scr_gettext("item_use_41_nospeed") - else - global.msg[0] += scr_gettext("item_use_41_speed") - } - } - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_speedup - grt.alarm[1] = 10 - script_execute(scr_recoitem, 10) - script_execute(scr_itemshift, argument0, 0) - break - case 42: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_42_mettaton") - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 14) - script_execute(scr_itemshift, argument0, 0) - break - case 43: - if (global.seriousbattle == 0) - { - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hero - grt.alarm[1] = 10 - } - else - grt = instance_create(0, 0, obj_foodsound) - if (global.inbattle == 1) - { - if (global.at < 150) - global.at += 4 - global.msg[0] += scr_gettext("item_use_43_attack") - } - if instance_exists(obj_ratingsmaster) - { - with (obj_ratingsmaster) - { - curtype = 9 - event_user(0) - } - } - script_execute(scr_recoitem, 40) - script_execute(scr_itemshift, argument0, 0) - break - case 44: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 45: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 46: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 47: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 48: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 49: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 50: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 51: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 52: - scr_weaponeq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 53: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 54: - global.hp -= 1 - grt = instance_create(0, 0, obj_soundcombo) - grt.sound1 = snd_swallow - grt.sound2 = snd_hurt1 - grt.alarm[1] = 10 - if (global.hp <= 2) - { - grt.sound2 = snd_power - global.hp = global.maxhp - global.msg[0] = scr_gettext("item_use_54_heal") - } - script_execute(scr_writetext, 0, "x", 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 55: - if (global.flag[503] == 1) - global.msg[0] = scr_gettext("item_use_55_short") - global.flag[503] = 1 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 56: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 57: - if (!instance_exists(obj_undyne_friendc)) - { - global.msg[0] = scr_gettext("item_use_56") - global.msg[1] = scr_gettext("item_use_56a") - if (room == room_fire_prelab) - global.msg[0] = scr_gettext("item_use_56_prelab") - script_execute(scr_writetext, 0, "x", 0, 0) - } - else - { - global.faceemotion = 1 - global.msg[0] = scr_gettext("item_use_56_undyne") - script_execute(scr_writetext, 0, "x", 5, 37) - } - break - case 58: - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 13) - script_execute(scr_itemshift, argument0, 0) - break - case 59: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_59_mettaton") - with (obj_ratingsmaster) - { - curtype = 8 - event_user(0) - } - } - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 17) - script_execute(scr_itemshift, argument0, 0) - break - case 60: - if (room == room_icecave1) - { - global.msg[0] = scr_gettext("item_use_60_fail1") - global.msg[1] = scr_gettext("item_use_60_fail2") - global.msg[2] = scr_gettext("item_use_60_fail3") - } - if instance_exists(obj_mettatonex) - global.msg[0] = scr_gettext("item_use_60_mettaton") - if instance_exists(obj_blookhouses) - { - global.msg[0] = scr_gettext("item_use_60_open1") - global.msg[1] = scr_gettext("item_use_60_open2") - global.flag[433] = 1 - snd_play(snd_item) - with (obj_blookhouses) - event_user(1) - script_execute(scr_itemshift, argument0, 0) - } - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 61: - if instance_exists(obj_ratingsmaster) - { - global.msg[0] = scr_gettext("item_use_61_mettaton") - with (obj_ratingsmaster) - { - curtype = 13 - event_user(0) - } - } - grt = instance_create(0, 0, obj_foodsound) - grt.alarm[1] = 10 - script_execute(scr_recoitem, 60) - script_execute(scr_itemshift, argument0, 0) - break - case 62: - if (global.seriousbattle == 0) - global.msg[0] = scr_gettext("item_use_62a") - if instance_exists(obj_endogeny) - obj_endogeny.mercymod = 999999 - instance_create(0, 0, obj_foodsound) - script_execute(scr_recoitem, 65) - script_execute(scr_itemshift, argument0, 0) - break - case 63: - instance_create(0, 0, obj_foodsound) - spec_p = 0 - if (global.hp < (global.maxhp - 1)) - global.hp = (global.maxhp - 1) - if instance_exists(obj_asgoreb) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_asgore1") - global.msg[2] = scr_gettext("item_use_11_asgore2") - with (obj_asgoreb) - { - global.monsteratk[myself] -= 1 - global.monsterdef[myself] -= 5 - } - } - if instance_exists(obj_ripoff_toriel) - { - spec_p = 1 - global.msg[1] = scr_gettext("item_use_11_toriel") - with (obj_monsterparent) - totalmercy += 3 - } - if (spec_p == 0) - script_execute(scr_writetext, 0, (scr_gettext("item_use_63") + "%"), 0, 0) - if (spec_p == 1) - script_execute(scr_writetext, 0, scr_gettext("item_use_63"), 0, 0) - script_execute(scr_itemshift, argument0, 0) - break - case 64: - scr_armoreq(argument0, argument1) - snd_play(snd_item) - script_execute(scr_writetext, 0, "x", 0, 0) - break - case 201: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1501, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 202: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1502, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 203: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1503, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 204: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1504, "x", 0, 0) - script_execute(scr_phoneshift, argument0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 205: - if (global.flag[37] == 1) - scr_writetext(1508, "x", 0, 0) - else if (global.plot < 19.9) - { - if (global.plot > 18 && room == room_torhouse2) - { - snd_play(snd_phone) - script_execute(scr_writetext, 1507, "x", 0, 0) - } - else - { - snd_play(snd_phone) - if (global.flag[41] == 1) - script_execute(scr_phoneshift, argument0, 0) - script_execute(scr_writetext, 1505, "x", 0, 0) - } - } - else - { - snd_play(snd_phone) - script_execute(scr_writetext, 1506, "x", 0, 0) - } - break - case 206: - scr_phone_moveup(argument0, argument1) - snd_play(snd_phone) - if (global.flag[7] == 0) - script_execute(scr_writetext, 1506, "x", 0, 0) - if (global.flag[7] == 1) - script_execute(scr_writetext, 1515, "x", 0, 0) - break - case 210: - scr_phone_moveup(argument0, argument1) - script_execute(scr_writetext, 1510, "x", 0, 0) - break - case 220: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 0 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break - case 221: - if (room != room_water_dogroom) - { - snd_play(snd_dimbox) - scr_phone_moveup(argument0, argument1) - ii = instance_create(0, 0, obj_itemswapper) - ii.spec = 1 - ii.boxtype = 1 - } - else - script_execute(scr_writetext, 1520, "x", 0, 0) - break -} - diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_loadcredits.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_loadcredits.gml deleted file mode 100644 index 69fc16d1e..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_loadcredits.gml +++ /dev/null @@ -1,901 +0,0 @@ -var credamt = 0 -if (global.osflavor <= 2) -{ - var credits_path = (working_directory + "credits.txt") - var credfile = file_text_open_read(credits_path) - while (!file_text_eof(credfile)) - { - var thiscred = file_text_read_string(credfile) - if (thiscred == "%%%") - break - creditname[credamt++] = thiscred - file_text_readln(credfile) - } - file_text_close(credfile) -} -else -{ - creditname[credamt++] = "Tom Dickinson" - creditname[credamt++] = "Gigi D.G." - creditname[credamt++] = "pinetone" - creditname[credamt++] = "Rich" - creditname[credamt++] = "Sarah Katz" - creditname[credamt++] = "Heidi Mandelin" - creditname[credamt++] = "Michael Driscoll" - creditname[credamt++] = "Magnolia Porter" - creditname[credamt++] = "Paul Starr" - creditname[credamt++] = "Lindsey Dawn" - creditname[credamt++] = "ipgd" - creditname[credamt++] = "Tim Stowell" - creditname[credamt++] = "Celene Talbain" - creditname[credamt++] = "Homer Turgeon" - creditname[credamt++] = "VickyBit" - creditname[credamt++] = "Trysta" - creditname[credamt++] = "poetfox" - creditname[credamt++] = "Noah Hipster Champoux" - creditname[credamt++] = "Evan" - creditname[credamt++] = "Bethany D" - creditname[credamt++] = "Joss Turner" - creditname[credamt++] = "Cammie" - creditname[credamt++] = "blurds" - creditname[credamt++] = "Joel MacFadyen" - creditname[credamt++] = "ZyvilinShmo" - creditname[credamt++] = "MESeele" - creditname[credamt++] = "Tara Levin" - creditname[credamt++] = "Misty De Meo" - creditname[credamt++] = "Cherie Heiberg" - creditname[credamt++] = "Meles Badger" - creditname[credamt++] = "Stephen Hammack" - creditname[credamt++] = "Dan Rodgers" - creditname[credamt++] = "Jessica Campanella" - creditname[credamt++] = "Holly Boismaison" - creditname[credamt++] = "rasira venrir" - creditname[credamt++] = "Jenkins" - creditname[credamt++] = "Andrew" - creditname[credamt++] = "Sam Kennedy" - creditname[credamt++] = "Anthony Bulldis" - creditname[credamt++] = "HoneyNoahh" - creditname[credamt++] = "Iscariot" - creditname[credamt++] = "Ashley Bernard" - creditname[credamt++] = "Megan MacLennan" - creditname[credamt++] = "Malefact" - creditname[credamt++] = "Allison Wilder" - creditname[credamt++] = "Nicole Devine" - creditname[credamt++] = "Marcus Perrin" - creditname[credamt++] = "Lan-Anh Nguyen" - creditname[credamt++] = "Lewis Johnson" - creditname[credamt++] = "Jon Renish" - creditname[credamt++] = "Jason Withrow" - creditname[credamt++] = "Adam Saulis" - creditname[credamt++] = "Kellen Haney" - creditname[credamt++] = "Stephanie Flynn" - creditname[credamt++] = "ikks" - creditname[credamt++] = "Adam C. Hartling" - creditname[credamt++] = "Abbey Northcutt" - creditname[credamt++] = "Yuan Mori" - creditname[credamt++] = "bitmap" - creditname[credamt++] = "Alex 'Shinkada' Weiss" - creditname[credamt++] = "Aaron Goodier" - creditname[credamt++] = "Josh Meier" - creditname[credamt++] = "Eric Berg" - creditname[credamt++] = "Joni Kittaka" - creditname[credamt++] = "Taylor Gregory" - creditname[credamt++] = "Christina Skyles" - creditname[credamt++] = "Thomas Castiglione" - creditname[credamt++] = "Skulryk" - creditname[credamt++] = "Madolyn Covill" - creditname[credamt++] = "David Kinne" - creditname[credamt++] = "Laurence D." - creditname[credamt++] = "Helen George Mclean" - creditname[credamt++] = "Common_Sense" - creditname[credamt++] = "Jui-Ting Victor Hsu" - creditname[credamt++] = "Caitlyn C." - creditname[credamt++] = "falmith" - creditname[credamt++] = "Peter" - creditname[credamt++] = "Matt Starsoneck" - creditname[credamt++] = "hgemyd" - creditname[credamt++] = "FUJITA" - creditname[credamt++] = "Chris" - creditname[credamt++] = "Sam & Jetz" - creditname[credamt++] = "Beth A Lawhead" - creditname[credamt++] = "David Ewen" - creditname[credamt++] = "Kulu" - creditname[credamt++] = "Snorri S." - creditname[credamt++] = "UnLondon" - creditname[credamt++] = "Mary Marquardt" - creditname[credamt++] = "Anthony Thrun" - creditname[credamt++] = "Brian Lee" - creditname[credamt++] = "Christopher Stringari" - creditname[credamt++] = "Saiai" - creditname[credamt++] = "belbeeno" - creditname[credamt++] = "tinaun" - creditname[credamt++] = "Gisele Jobateh" - creditname[credamt++] = "Max Ponoroff" - creditname[credamt++] = "Abhilash Sarhadi" - creditname[credamt++] = "NamelessPFG" - creditname[credamt++] = "Mark Khai Vinh Tran" - creditname[credamt++] = "lupusdraconis" - creditname[credamt++] = "Joshua Van Der Sluys" - creditname[credamt++] = "Kiuxi" - creditname[credamt++] = "Nich Maragos" - creditname[credamt++] = "Joshua Franklin" - creditname[credamt++] = "Michael Barfuss" - creditname[credamt++] = "Mikker" - creditname[credamt++] = "Michael James Orton" - creditname[credamt++] = "sinisterandroid" - creditname[credamt++] = "clairvoire" - creditname[credamt++] = "Ali Khan" - creditname[credamt++] = "Ashleigh Ellis" - creditname[credamt++] = "Paul Tayloe" - creditname[credamt++] = "[NAME REDACTED]" - creditname[credamt++] = "fuzzytipsy" - creditname[credamt++] = "Jesse Knowles" - creditname[credamt++] = "Jeremy Vigil" - creditname[credamt++] = "conceptofzero" - creditname[credamt++] = "Albruna" - creditname[credamt++] = "Brett P." - creditname[credamt++] = "Cirr" - creditname[credamt++] = "Tailszefox" - creditname[credamt++] = "Jamie Jellybean" - creditname[credamt++] = "litemagic" - creditname[credamt++] = "Shaimaa Kandil" - creditname[credamt++] = "Aatmaja Pandya" - creditname[credamt++] = "TheMajinZenki" - creditname[credamt++] = "John Ogden" - creditname[credamt++] = "Linnet" - creditname[credamt++] = "Matthew Wright" - creditname[credamt++] = "Zack Jenkins" - creditname[credamt++] = "Mizakido" - creditname[credamt++] = "Jacob Bang" - creditname[credamt++] = "Morbi" - creditname[credamt++] = "Ryan Phelan" - creditname[credamt++] = "Benjamin Roush" - creditname[credamt++] = "elementnumber46" - creditname[credamt++] = "Steven Dirks" - creditname[credamt++] = "Bill King" - creditname[credamt++] = "Juan Miguel Exposito" - creditname[credamt++] = "Emily Kilbourn" - creditname[credamt++] = "Luca Frigerio" - creditname[credamt++] = "Chenille" - creditname[credamt++] = "Clare Jones" - creditname[credamt++] = "Daniel Lin" - creditname[credamt++] = "Emily Elliott" - creditname[credamt++] = "Kinko Kitty" - creditname[credamt++] = "Elementoid" - creditname[credamt++] = "blueskybleu" - creditname[credamt++] = "Rebekah Holder" - creditname[credamt++] = "Emily Kidney" - creditname[credamt++] = "Steven Benson" - creditname[credamt++] = "Westin Grube" - creditname[credamt++] = "JNH" - creditname[credamt++] = "Bob Thulfram" - creditname[credamt++] = "Drake Himmel" - creditname[credamt++] = "Jacquerel" - creditname[credamt++] = "Leo Garcia" - creditname[credamt++] = "Eric" - creditname[credamt++] = "Tyler Merta" - creditname[credamt++] = "Nidoking" - creditname[credamt++] = "Thomas Knies" - creditname[credamt++] = "alexander gross" - creditname[credamt++] = "Julian" - creditname[credamt++] = "Tom Casacoli" - creditname[credamt++] = "Daniel Whitcomb" - creditname[credamt++] = "Cameron McClure" - creditname[credamt++] = "D C" - creditname[credamt++] = "Shanti Elliot" - creditname[credamt++] = "Lindsey Dohse" - creditname[credamt++] = "Asharaxx" - creditname[credamt++] = "Ryusui" - creditname[credamt++] = "Iguana Baritone" - creditname[credamt++] = "Shelby Cragg" - creditname[credamt++] = "Greer" - creditname[credamt++] = "Michael Crow" - creditname[credamt++] = "Andrew \"Southrop\" Li" - creditname[credamt++] = "Bec" - creditname[credamt++] = "Sara Massoud" - creditname[credamt++] = "Mark" - creditname[credamt++] = "lucaaa" - creditname[credamt++] = "Justin" - creditname[credamt++] = "Luke Stebbing" - creditname[credamt++] = "Ozymandias J. Llewellyn x3" - creditname[credamt++] = "Andrew Neufeld" - creditname[credamt++] = "aaron corff" - creditname[credamt++] = "Griffin Donohue" - creditname[credamt++] = "Vanessah Howard" - creditname[credamt++] = "Michael Todhunter" - creditname[credamt++] = "Angel Lorenzana" - creditname[credamt++] = "BlueLucine" - creditname[credamt++] = "Brian Jaworski" - creditname[credamt++] = "Edward Davyduck" - creditname[credamt++] = "Adina" - creditname[credamt++] = "Daniel O'Rourke" - creditname[credamt++] = "IdleDice" - creditname[credamt++] = "TallTale" - creditname[credamt++] = "Marc" - creditname[credamt++] = "Leora San Miguel" - creditname[credamt++] = "Sam Mancuso" - creditname[credamt++] = "Joseph Michael Hanna" - creditname[credamt++] = "Nearby Night" - creditname[credamt++] = "Jake Lindsey" - creditname[credamt++] = "John Spiers" - creditname[credamt++] = "The_Mailman" - creditname[credamt++] = "Robert Remmers" - creditname[credamt++] = "Richard Hough" - creditname[credamt++] = "Chris McLernon" - creditname[credamt++] = "Gadgetprop" - creditname[credamt++] = "Craig Fotheringham" - creditname[credamt++] = "W. Tyler" - creditname[credamt++] = "Tyler Kassten" - creditname[credamt++] = "Crettert" - creditname[credamt++] = "saturnineCarrier" - creditname[credamt++] = "Kevin Grasso" - creditname[credamt++] = "Raive" - creditname[credamt++] = "Nathaniel Shannon" - creditname[credamt++] = "GameFreakerZero" - creditname[credamt++] = "William Manning" - creditname[credamt++] = "Bradley Synnett" - creditname[credamt++] = "Matoos" - creditname[credamt++] = "Michael McCann" - creditname[credamt++] = "Daniel" - creditname[credamt++] = "Nezumi" - creditname[credamt++] = "Sol_Racht" - creditname[credamt++] = "Matthew Frieling" - creditname[credamt++] = "Matt Pappadopoli" - creditname[credamt++] = "Sara \"Svenna\" Ventura" - creditname[credamt++] = "Daniel A. Johnson" - creditname[credamt++] = "Rachel Moody" - creditname[credamt++] = "Ken Laird" - creditname[credamt++] = "Sarkazein" - creditname[credamt++] = "Roisin Cowans" - creditname[credamt++] = "Ross Ashley" - creditname[credamt++] = "Michelle Smith" - creditname[credamt++] = "Nikita Dudnik" - creditname[credamt++] = "Brandon Evans" - creditname[credamt++] = "Cubesona" - creditname[credamt++] = "Ross Williams" - creditname[credamt++] = "Steven Wallace" - creditname[credamt++] = "Gwion Hamblin" - creditname[credamt++] = "Ben Evans" - creditname[credamt++] = "Ryunney" - creditname[credamt++] = "Sean S Barber" - creditname[credamt++] = "Samantha Ludwig" - creditname[credamt++] = "Johnathan Fisico" - creditname[credamt++] = "Spartyblb" - creditname[credamt++] = "Scott Johnson" - creditname[credamt++] = "David Gilbert" - creditname[credamt++] = "Sebastian Browne" - creditname[credamt++] = "Crafall" - creditname[credamt++] = "Jonathon Hickey" - creditname[credamt++] = "Ian Clark" - creditname[credamt++] = "Alexis" - creditname[credamt++] = "Zhong Thai" - creditname[credamt++] = "James Klingler" - creditname[credamt++] = "Sean Chiplock" - creditname[credamt++] = "Hannah C" - creditname[credamt++] = "Scott Whipkey" - creditname[credamt++] = "Brian Allred" - creditname[credamt++] = "Tollymain" - creditname[credamt++] = "Michael Amirault" - creditname[credamt++] = "Rik Nicol" - creditname[credamt++] = "Anthony L." - creditname[credamt++] = "YggiDee" - creditname[credamt++] = "Ryunosuke" - creditname[credamt++] = "Aidan Schwarz" - creditname[credamt++] = "Mathew Hunter" - creditname[credamt++] = "Alexander Privee" - creditname[credamt++] = "Adam T Wilk" - creditname[credamt++] = "Steven White" - creditname[credamt++] = "Isaac Haugen" - creditname[credamt++] = "Sean \"Ariamaki\" Riedinger" - creditname[credamt++] = "Michael Mudokon" - creditname[credamt++] = "Rogelio" - creditname[credamt++] = "Yoshoshishu" - creditname[credamt++] = "Caitlin" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Dmitriy Aleksandrovich Sadikov" - creditname[credamt++] = "Steven Heydt" - creditname[credamt++] = "mwchase" - creditname[credamt++] = "Enok Moe" - creditname[credamt++] = "Alex B." - creditname[credamt++] = "SamWibatt" - creditname[credamt++] = "Daniel Kelly" - creditname[credamt++] = "Gino Tote" - creditname[credamt++] = "Chris Zito" - creditname[credamt++] = "Daniel Turner" - creditname[credamt++] = "Katlynn Balderstone" - creditname[credamt++] = "spoonshiro" - creditname[credamt++] = "Andrew Muellerleile" - creditname[credamt++] = "Nir Aviv" - creditname[credamt++] = "starwyvern" - creditname[credamt++] = "Danzig!" - creditname[credamt++] = "Daniel Hinman" - creditname[credamt++] = "Nick Perry" - creditname[credamt++] = "Triggernometry" - creditname[credamt++] = "Mark Jessey" - creditname[credamt++] = "Charles Cole" - creditname[credamt++] = "Zero!" - creditname[credamt++] = "FrankieSmileShow" - creditname[credamt++] = "Sheldon Whalley" - creditname[credamt++] = "Grigoriy Kovalenko" - creditname[credamt++] = "ZuZuBe" - creditname[credamt++] = "Noelemahc" - creditname[credamt++] = "picassowary" - creditname[credamt++] = "Kevin Robertson" - creditname[credamt++] = "Dark Star" - creditname[credamt++] = "kg" - creditname[credamt++] = "knaji" - creditname[credamt++] = "Robert Schultz" - creditname[credamt++] = "chaosprime" - creditname[credamt++] = "Jarod Crockett" - creditname[credamt++] = "Shea True" - creditname[credamt++] = "XainZero (Ian)" - creditname[credamt++] = "Sophia" - creditname[credamt++] = "mary borsellino" - creditname[credamt++] = "NatSquid" - creditname[credamt++] = "Conal Chan" - creditname[credamt++] = "Jake Kaplan" - creditname[credamt++] = "Brian" - creditname[credamt++] = "Zobot257" - creditname[credamt++] = "Christopher Woodside" - creditname[credamt++] = "Stephen DeCubellis" - creditname[credamt++] = "Nigel Nelson" - creditname[credamt++] = "Kelly L. Hoins" - creditname[credamt++] = "Anthony Daniels" - creditname[credamt++] = "Alex Ladzinski" - creditname[credamt++] = "Matthew Myers" - creditname[credamt++] = "RH" - creditname[credamt++] = "Stephen Keating" - creditname[credamt++] = "Lawrence Kern" - creditname[credamt++] = "Budi S" - creditname[credamt++] = "Detour" - creditname[credamt++] = "eLe" - creditname[credamt++] = "Justin S" - creditname[credamt++] = "Eric Kramer" - creditname[credamt++] = "Kassie" - creditname[credamt++] = "MJ Lee" - creditname[credamt++] = "Erica" - creditname[credamt++] = "Joshua Keaton" - creditname[credamt++] = "bugmeetrock" - creditname[credamt++] = "Rigrot" - creditname[credamt++] = "Sam Parwar" - creditname[credamt++] = "Mark Grandstaff" - creditname[credamt++] = "MirMir" - creditname[credamt++] = "Abigail Fox" - creditname[credamt++] = "Phyllis Douglas" - creditname[credamt++] = "Bernard Rebours" - creditname[credamt++] = "PF Anderson" - creditname[credamt++] = "Micah Jones" - creditname[credamt++] = "grace genter" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Ian Matthew Michael Burg" - creditname[credamt++] = "EmbryonJen" - creditname[credamt++] = "N Weismuller" - creditname[credamt++] = "Nick McVroom-Amoakohene" - creditname[credamt++] = "adam debany" - creditname[credamt++] = "Bridget Rog" - creditname[credamt++] = "Darren Sampson" - creditname[credamt++] = "Stephen" - creditname[credamt++] = "Patrick Ellis" - creditname[credamt++] = "Doofus" - creditname[credamt++] = "Demyx" - creditname[credamt++] = "V. Ventura" - creditname[credamt++] = "Stephen Petraeus" - creditname[credamt++] = "Zack Corcoran" - creditname[credamt++] = "Jc Edualino" - creditname[credamt++] = "Bjorn Schenke" - creditname[credamt++] = "Zorak" - creditname[credamt++] = "Professor Icepick" - creditname[credamt++] = "Michael Lekon" - creditname[credamt++] = "Martin Coxall" - creditname[credamt++] = "Abby Lusk" - creditname[credamt++] = "Josh Bailey" - creditname[credamt++] = "Yaiba Saya" - creditname[credamt++] = "Matthew" - creditname[credamt++] = "Benjamin \"BenaSPACE\" McQueen" - creditname[credamt++] = "J. A. Salazar" - creditname[credamt++] = "Omni Desol" - creditname[credamt++] = "Stephen Celis" - creditname[credamt++] = "Zhe Zhou" - creditname[credamt++] = "Jon South" - creditname[credamt++] = "Jessica H." - creditname[credamt++] = "Pedro T." - creditname[credamt++] = "Sarah Jensen" - creditname[credamt++] = "Aaron" - creditname[credamt++] = "Lorenzo Canales" - creditname[credamt++] = "Sekojo" - creditname[credamt++] = "Evan Carter" - creditname[credamt++] = "Kralec" - creditname[credamt++] = "Christian Hopwood" - creditname[credamt++] = "Kenneth Sloane" - creditname[credamt++] = "ascasc" - creditname[credamt++] = "Jonathan Fu" - creditname[credamt++] = "Charles" - creditname[credamt++] = "leif olofsson" - creditname[credamt++] = "Dan Henry Langgaard" - creditname[credamt++] = "Ean L. Roth" - creditname[credamt++] = "Corban Andrew Coffman" - creditname[credamt++] = "James E Richmond" - creditname[credamt++] = "Ketchupface" - creditname[credamt++] = "SA,ren MoskjA|r Lauridsen" - creditname[credamt++] = "Christopher Jose" - creditname[credamt++] = "Russell Deitch" - creditname[credamt++] = "Toby Fox" - creditname[credamt++] = "Chris B." - creditname[credamt++] = "OatmealRaisin" - creditname[credamt++] = "Edlyn \"Xisuu\" Si" - creditname[credamt++] = "Mark" - creditname[credamt++] = "Nikolaj Lyhne" - creditname[credamt++] = "Thorvald Natvig" - creditname[credamt++] = "William McKinley" - creditname[credamt++] = "Chris Marten" - creditname[credamt++] = "Mark Keating" - creditname[credamt++] = "Steve Johnson" - creditname[credamt++] = "Sean Gaddis" - creditname[credamt++] = "Matthew Lane" - creditname[credamt++] = "Jack Sharples" - creditname[credamt++] = "Kinetic Gibbon" - creditname[credamt++] = "Chris Bernardi" - creditname[credamt++] = "Jeff Bartus" - creditname[credamt++] = "Lee Tantral" - creditname[credamt++] = "duibucbuc" - creditname[credamt++] = "Jeremy Swanson" - creditname[credamt++] = "Lily Sears" - creditname[credamt++] = "clintdaley" - creditname[credamt++] = "Dave Burkett" - creditname[credamt++] = "Justin Moor" - creditname[credamt++] = "Cei Reid" - creditname[credamt++] = "M B" - creditname[credamt++] = "JWagner" - creditname[credamt++] = "Jonathan \"ChessboardMan\" Barrett" - creditname[credamt++] = "Paul Emile Gerard" - creditname[credamt++] = "Gunnar Hogberg" - creditname[credamt++] = "Adam Rajski" - creditname[credamt++] = "Bliss Provo" - creditname[credamt++] = "Charles \"Chip Champion\" Rogers III" - creditname[credamt++] = "Vivian W." - creditname[credamt++] = "Gregory Johnson" - creditname[credamt++] = "Zachary \"ZarroTsu\" Baillie" - creditname[credamt++] = "Bongi Chirunga" - creditname[credamt++] = "Marcus" - creditname[credamt++] = "Lauran Parise" - creditname[credamt++] = "Kevin T McAllister" - creditname[credamt++] = "Kevin Ramsay" - creditname[credamt++] = "Cody Guthrie" - creditname[credamt++] = "Erik Johnson" - creditname[credamt++] = "Amelia Li" - creditname[credamt++] = "Togglesworlh" - creditname[credamt++] = "Will \"Radnar\" Kilgore" - creditname[credamt++] = "Wright Johnson" - creditname[credamt++] = "Nicholas Cuccherini" - creditname[credamt++] = "Daniel Mauterer" - creditname[credamt++] = "Richard" - creditname[credamt++] = "Austin Szabo" - creditname[credamt++] = "Stephanie Rainey" - creditname[credamt++] = "Brandon Garlock" - creditname[credamt++] = "Glen Than" - creditname[credamt++] = "Nathaniel Tabit" - creditname[credamt++] = "Elias Thompson" - creditname[credamt++] = "David Wagner" - creditname[credamt++] = "Thomas Cain" - creditname[credamt++] = "Jaymark108" - creditname[credamt++] = "Irregular" - creditname[credamt++] = "Christian Walde" - creditname[credamt++] = "Luca Hibbard-Curto" - creditname[credamt++] = "Alexis Carpenter" - creditname[credamt++] = "Kevin Portland" - creditname[credamt++] = "BIGlittleBot" - creditname[credamt++] = "droqen" - creditname[credamt++] = "Matthew Robert Shanahan" - creditname[credamt++] = "Matthew Dobbins" - creditname[credamt++] = "Christopher J. Barnes" - creditname[credamt++] = "Arlin" - creditname[credamt++] = "Michael Bosmeny" - creditname[credamt++] = "Nick Pereira" - creditname[credamt++] = "Erin Tucker" - creditname[credamt++] = "Eddie Anzore" - creditname[credamt++] = "Christopher Grant" - creditname[credamt++] = "Giordano Caputi" - creditname[credamt++] = "Gerard Remy" - creditname[credamt++] = "Pascal De Lisio" - creditname[credamt++] = "Manny" - creditname[credamt++] = "Brian Mathews" - creditname[credamt++] = "Jonathan Catbus" - creditname[credamt++] = "Per Kristian Brastad" - creditname[credamt++] = "Christopher David Wilson" - creditname[credamt++] = "CrisisSDK" - creditname[credamt++] = "John Michel" - creditname[credamt++] = "Darkk the Dragon" - creditname[credamt++] = "Eduardo Ruiz" - creditname[credamt++] = "Donna Johnson" - creditname[credamt++] = "Gletschen" - creditname[credamt++] = "Tiara Lieber" - creditname[credamt++] = "Kalt" - creditname[credamt++] = "Hannah" - creditname[credamt++] = "Chris Backhuus" - creditname[credamt++] = "Sketcherism" - creditname[credamt++] = "Denzel Jackson Ewing" - creditname[credamt++] = "Xiagu" - creditname[credamt++] = "Stephanie Shofner" - creditname[credamt++] = "mitchbee" - creditname[credamt++] = "Draconaes" - creditname[credamt++] = "Martin \"AT\" Stewart" - creditname[credamt++] = "Tom" - creditname[credamt++] = "John W. Bruce" - creditname[credamt++] = "Andrew Welch" - creditname[credamt++] = "Nephera" - creditname[credamt++] = "Van den Bosch Tim" - creditname[credamt++] = "Ross Mallinson" - creditname[credamt++] = "Naomi Liew" - creditname[credamt++] = "Bugmaster" - creditname[credamt++] = "Joseph Tate" - creditname[credamt++] = "Tim Sweeney" - creditname[credamt++] = "Plaid" - creditname[credamt++] = "Sean Loftus" - creditname[credamt++] = "Liz H" - creditname[credamt++] = "Jean-Luc Portelli" - creditname[credamt++] = "Joel Bourassa" - creditname[credamt++] = "Zabuni" - creditname[credamt++] = "Mike Drobnack" - creditname[credamt++] = "Ree" - creditname[credamt++] = "Fweiss" - creditname[credamt++] = "Fleon Labs" - creditname[credamt++] = "Herr Foxley" - creditname[credamt++] = "Anthony Bailey" - creditname[credamt++] = "Jon" - creditname[credamt++] = "Kazerad" - creditname[credamt++] = "A Strange Yolk" - creditname[credamt++] = "Dylan Lacey" - creditname[credamt++] = "Taylor Haar" - creditname[credamt++] = "Jose Nieves" - creditname[credamt++] = "Edward Damon" - creditname[credamt++] = "Ben P" - creditname[credamt++] = "Pan" - creditname[credamt++] = "Torbjorn" - creditname[credamt++] = "James Carlisle Holder" - creditname[credamt++] = "James Johnson" - creditname[credamt++] = "Lyric Chavez" - creditname[credamt++] = "Matthew Winter" - creditname[credamt++] = "Pat Lapierre" - creditname[credamt++] = "Robert Schiewe" - creditname[credamt++] = "Dave Billington" - creditname[credamt++] = "Jessica Witt" - creditname[credamt++] = "Richard Ginter" - creditname[credamt++] = "Curtis A. Eves \"TehLazyOne\"" - creditname[credamt++] = "Nathan" - creditname[credamt++] = "Andre Lawton" - creditname[credamt++] = "Shay" - creditname[credamt++] = "Lucinda Diaz" - creditname[credamt++] = "Lawrence Leclercq" - creditname[credamt++] = "Geight" - creditname[credamt++] = "Primalmatrix" - creditname[credamt++] = "David Tersegno" - creditname[credamt++] = "Togeyosh" - creditname[credamt++] = "Magnus H." - creditname[credamt++] = "sarf" - creditname[credamt++] = "Michael Gazaway" - creditname[credamt++] = "SeanJBell" - creditname[credamt++] = "Mara Seaborne" - creditname[credamt++] = "chloe" - creditname[credamt++] = "David Funk" - creditname[credamt++] = "Wolfbender" - creditname[credamt++] = "Gabriel de Souza Vieira Batista" - creditname[credamt++] = "Ben Dunmore" - creditname[credamt++] = "Aori Radidjiu" - creditname[credamt++] = "Sascha Kolewa" - creditname[credamt++] = "Zeny Di" - creditname[credamt++] = "Anthony Garcia" - creditname[credamt++] = "JD Larson" - creditname[credamt++] = "Alex Korth" - creditname[credamt++] = "Mijichu" - creditname[credamt++] = "Noel" - creditname[credamt++] = "HC" - creditname[credamt++] = "Ilma Raupp" - creditname[credamt++] = "Daniel Roller" - creditname[credamt++] = "Jesse Whyte" - creditname[credamt++] = "Trevor" - creditname[credamt++] = "Craig Crosier" - creditname[credamt++] = "Klokwurk" - creditname[credamt++] = "Christian" - creditname[credamt++] = "jack" - creditname[credamt++] = "fallintosanity" - creditname[credamt++] = "Shauna" - creditname[credamt++] = "wrincewind" - creditname[credamt++] = "Syl" - creditname[credamt++] = "Anthony Hanson" - creditname[credamt++] = "PolyCement" - creditname[credamt++] = "Snakealiciouz" - creditname[credamt++] = "William So" - creditname[credamt++] = "CubicPhantom" - creditname[credamt++] = "KT Coope" - creditname[credamt++] = "Michael Ong" - creditname[credamt++] = "Mezzo" - creditname[credamt++] = "Skandranon" - creditname[credamt++] = "Sean Ritzo" - creditname[credamt++] = "NJinasena" - creditname[credamt++] = "LakotaWolf" - creditname[credamt++] = "Sofia Winterbourne" - creditname[credamt++] = "Christopher Sin" - creditname[credamt++] = "Half-Assured" - creditname[credamt++] = "Alessandro Arena-DeRosa" - creditname[credamt++] = "Julien" - creditname[credamt++] = "Sleepy Waters" - creditname[credamt++] = "Kasran" - creditname[credamt++] = "Michael D'Andrea" - creditname[credamt++] = "Lauren Smith" - creditname[credamt++] = "Luke \"Association\" Fox" - creditname[credamt++] = "Alex Bergquist" - creditname[credamt++] = "David Wilson" - creditname[credamt++] = "Galit A." - creditname[credamt++] = "Jonathan Whyte" - creditname[credamt++] = "CptSparky" - creditname[credamt++] = "Michael Hellenbrecht" - creditname[credamt++] = "smack" - creditname[credamt++] = "William Boseth Harding" - creditname[credamt++] = "AImler" - creditname[credamt++] = "Mads Johansen" - creditname[credamt++] = "Petter S. Fossum" - creditname[credamt++] = "Robbie Schoeppner" - creditname[credamt++] = "CloudySky" - creditname[credamt++] = "Joseph Golding" - creditname[credamt++] = "Taime Pschirrer" - creditname[credamt++] = "Espen Arntzen" - creditname[credamt++] = "Bryne Oliver" - creditname[credamt++] = "Desmond Molly Jones" - creditname[credamt++] = "Josh Breitbart" - creditname[credamt++] = "Sean O'F" - creditname[credamt++] = "Dakk Passerida" - creditname[credamt++] = "annoyed" - creditname[credamt++] = "W. Kyle Korth" - creditname[credamt++] = "Jesse Murphy" - creditname[credamt++] = "Kenneth Cuyugan" - creditname[credamt++] = "Zaos" - creditname[credamt++] = "Kyle Fox" - creditname[credamt++] = "James Harrod" - creditname[credamt++] = "Michelle" - creditname[credamt++] = "Grandy Peace" - creditname[credamt++] = "Sergio" - creditname[credamt++] = "Richard Van Tassel" - creditname[credamt++] = "shmorky" - creditname[credamt++] = "Richard Whittaker" - creditname[credamt++] = "Zaine Otter" - creditname[credamt++] = "Tman" - creditname[credamt++] = "A Swarm of Bees" - creditname[credamt++] = "Melissa Valen" - creditname[credamt++] = "em" - creditname[credamt++] = "Edna Rouse (DiscoKittie)" - creditname[credamt++] = "Robbie Van de Motter" - creditname[credamt++] = "Kieran Perreau" - creditname[credamt++] = "Alissa Lyon" - creditname[credamt++] = "Jacob Niles" - creditname[credamt++] = "Sillipenda" - creditname[credamt++] = "Takkun" - creditname[credamt++] = "ketwyld" - creditname[credamt++] = "Carl Salbacka" - creditname[credamt++] = "Bryan Novak" - creditname[credamt++] = "Dynamite Man.EXE" - creditname[credamt++] = "Jason Frizzell" - creditname[credamt++] = "Eric P. Kurniawan" - creditname[credamt++] = "Matt Trepal" - creditname[credamt++] = "nexas777" - creditname[credamt++] = "Jason and Kai Wodicka" - creditname[credamt++] = "YP Lim" - creditname[credamt++] = "PureQuestion" - creditname[credamt++] = "Anthony Baussard" - creditname[credamt++] = "Jason Siu" - creditname[credamt++] = "Malcolm Brown" - creditname[credamt++] = "Steven Seyler" - creditname[credamt++] = "David Ellis" - creditname[credamt++] = "Jesse Lambrecht" - creditname[credamt++] = "Donald King" - creditname[credamt++] = "Scott Janicek" - creditname[credamt++] = "Alexandra Falk" - creditname[credamt++] = "Alexandre Cleret de Langavant" - creditname[credamt++] = "Ralphael Krios" - creditname[credamt++] = "Shawn Y. Lee" - creditname[credamt++] = "Annie Freeman" - creditname[credamt++] = "Shane" - creditname[credamt++] = "Kevin" - creditname[credamt++] = "Lauren Weisel" - creditname[credamt++] = "Jonathan Summerton" - creditname[credamt++] = "Samantha Garcia" - creditname[credamt++] = "Jonny Torres" - creditname[credamt++] = "Ephraim Vraspir" - creditname[credamt++] = "Liam Jones" - creditname[credamt++] = "Yves Verbeck" - creditname[credamt++] = "Danny Baggett" - creditname[credamt++] = "Keegan J. Trenerry" - creditname[credamt++] = "Eric Kimball" - creditname[credamt++] = "Ruderabbit" - creditname[credamt++] = "Evan Copeland" - creditname[credamt++] = "Autumn Gaffney" - creditname[credamt++] = "SwordFire" - creditname[credamt++] = "Spencer Arndt" - creditname[credamt++] = "Imani Mercedes Brown" - creditname[credamt++] = "Michael Duralia" - creditname[credamt++] = "Jennifer Maddux" - creditname[credamt++] = "VenomChaos" - creditname[credamt++] = "Melibe" - creditname[credamt++] = "Brandon Barker" - creditname[credamt++] = "Matt" - creditname[credamt++] = "ZepysGirl" - creditname[credamt++] = "Zachary Cooper" - creditname[credamt++] = "J M Bondzeleske" - creditname[credamt++] = "William Bolger" - creditname[credamt++] = "Kimberly Hartman" - creditname[credamt++] = "Joe Cardwell" - creditname[credamt++] = "Justin Kang" - creditname[credamt++] = "Paul Hedges" - creditname[credamt++] = "Jacob Hapner" - creditname[credamt++] = "Jonathan Caridia" - creditname[credamt++] = "Ahna" - creditname[credamt++] = "Julian Quirion" - creditname[credamt++] = "Tay-Tay Dixon" - creditname[credamt++] = "Tatiana Yamamura" - creditname[credamt++] = "Edmund Currie" - creditname[credamt++] = "Kastorr" - creditname[credamt++] = "Linaru" - creditname[credamt++] = "Nicholas Bybee" - creditname[credamt++] = "Henry Branscombe" - creditname[credamt++] = "Will Raus" - creditname[credamt++] = "Bertrand Guerin-Williams" - creditname[credamt++] = "Alexander I Hthiy" - creditname[credamt++] = "K Stephens" - creditname[credamt++] = "Jess" - creditname[credamt++] = "Jacob Koch" - creditname[credamt++] = "Zero DragonLord" - creditname[credamt++] = "David Rey" - creditname[credamt++] = "Dan" - creditname[credamt++] = "Nathan Goldman" - creditname[credamt++] = "Ryan Seney" - creditname[credamt++] = "ky blotky" - creditname[credamt++] = "Tev Kaber" - creditname[credamt++] = "Ran Brown" - creditname[credamt++] = "Ahmed Al-Qassar" - creditname[credamt++] = "Tamara Baum" - creditname[credamt++] = "Yuriy Shchebetin" - creditname[credamt++] = "Joshua Bourgeois" - creditname[credamt++] = "Robert Blaylock" - creditname[credamt++] = "Elaine Bonner" - creditname[credamt++] = "Brianna" - creditname[credamt++] = "Egon L." - creditname[credamt++] = "Callum Atchison" - creditname[credamt++] = "Xan" - creditname[credamt++] = "Harold Abnabit" - creditname[credamt++] = "Jeffrey Blair" - creditname[credamt++] = "John Su" - creditname[credamt++] = "Riff Conner" - creditname[credamt++] = "jenica" - creditname[credamt++] = "Melanie Gaughran" - creditname[credamt++] = "Ryan Patrick Bell" - creditname[credamt++] = "Chris Gile" - creditname[credamt++] = "Kevin Robinson" - creditname[credamt++] = "Spindrift" - creditname[credamt++] = "Andres Velasco y Coll" - creditname[credamt++] = "Rory Fraga" - creditname[credamt++] = "Peter Dean" - creditname[credamt++] = "Jack Raines" - creditname[credamt++] = "Sam Dempster" - creditname[credamt++] = "Konstantin Goreley" - creditname[credamt++] = "Christian Rogers" - creditname[credamt++] = "Greliz" - creditname[credamt++] = "Demond Rogers" - creditname[credamt++] = "divineDerivative" - creditname[credamt++] = "KT Jayne" - creditname[credamt++] = "Derek Rose" - creditname[credamt++] = "Mike McGinn" - creditname[credamt++] = "Ashley Davis" - creditname[credamt++] = "Ken Jackson" - creditname[credamt++] = "Leonardo Millan" - creditname[credamt++] = "Kyle Pinheiro" - creditname[credamt++] = "EXPotemkin" - creditname[credamt++] = "Dorian Stanton" - creditname[credamt++] = "Molly Hayden" - creditname[credamt++] = "Kevin Clark" - creditname[credamt++] = "Christopher Wilson" - creditname[credamt++] = "Ryan Curtis" - creditname[credamt++] = "Sophia Volpi" - creditname[credamt++] = "Ted Anderson" - creditname[credamt++] = "Adam Salek" - creditname[credamt++] = "Joe Cotnoir" - creditname[credamt++] = "Kaeti V." - creditname[credamt++] = "Natasha and Richard" - creditname[credamt++] = "Olivia" - creditname[credamt++] = "PJ Trauger" - creditname[credamt++] = "Mewscaper" - creditname[credamt++] = "nowmai" - creditname[credamt++] = "Alp Aziz Torun" - creditname[credamt++] = "Mark Snyder" - creditname[credamt++] = "Cole W" - creditname[credamt++] = "Kevin Huang" - creditname[credamt++] = "Sharon Isabelle Simmonds" - creditname[credamt++] = "Elyse Waite" - creditname[credamt++] = "Kenneth Stephens" - creditname[credamt++] = "TheDougem" - creditname[credamt++] = "Henry W Schubert" - creditname[credamt++] = "Steven Hopkins" - creditname[credamt++] = "Dustin Williams" - creditname[credamt++] = "Alex Rhodes" - creditname[credamt++] = "a series of birds" - creditname[credamt++] = "Erin H" - creditname[credamt++] = "Kjorteo Kalante" - creditname[credamt++] = "Tom Robinson" - creditname[credamt++] = "Travis Prow" - creditname[credamt++] = "mythago" - creditname[credamt++] = "V.S." - creditname[credamt++] = "Devon Mullane" - creditname[credamt++] = "Sir Jordi" - creditname[credamt++] = "elendia" - creditname[credamt++] = "Adam Chapdelaine" - creditname[credamt++] = "Aaron Bragg" - creditname[credamt++] = "Nicholas Muscles Del Guercio" - creditname[credamt++] = "Jason Schwab" - creditname[credamt++] = "Jordan Gernsbacher" - creditname[credamt++] = "Ville Hahtonen" - creditname[credamt++] = "Gene" - creditname[credamt++] = "Jacques_Cousteau" - creditname[credamt++] = "Nicole LaChance" - creditname[credamt++] = "AbdulAziz Al-Kaboor" - creditname[credamt++] = "Xkeeper" - creditname[credamt++] = "Chantal DeAngelo" - creditname[credamt++] = "Jade Stoughton" - creditname[credamt++] = "Hanni Brosh" - creditname[credamt++] = "Mark Stiegemeier" - creditname[credamt++] = "Stephen Wesley Shannon" - creditname[credamt++] = "Eric Boot" - creditname[credamt++] = "Denise" - creditname[credamt++] = "Maria Annichia Riolo" - creditname[credamt++] = "Joshua Duray" - creditname[credamt++] = "Gibbs Moore" - creditname[credamt++] = "Aaron Kaluszka" - creditname[credamt++] = "Tyler Roser" - creditname[credamt++] = "Cody H. Billie" - creditname[credamt++] = "Jeffrey Harris" - creditname[credamt++] = "Hunter Billie" - creditname[credamt++] = "Havana Lapin" - creditname[credamt++] = "Charly Suess" - creditname[credamt++] = "Travis Arnold" - creditname[credamt++] = "Amy Chang" - creditname[credamt++] = "Jeff Taylor" - creditname[credamt++] = "shaunkendall" - creditname[credamt++] = "Casey" - creditname[credamt++] = "Jesse" - creditname[credamt++] = "Nick Tiner" - creditname[credamt++] = "Stephen Shrum" - creditname[credamt++] = "Nikolas San Lucas" - creditname[credamt++] = "Chad Bruce" - creditname[credamt++] = "Kamil Knapczyk" - creditname[credamt++] = "Elise Ranero" - creditname[credamt++] = "Nargleflex" - creditname[credamt++] = "Valerie" - creditname[credamt++] = "Manuela Saenz" - creditname[credamt++] = "Larein" - creditname[credamt++] = "Alicia Garcia" - creditname[credamt++] = "Rollinstein" - creditname[credamt++] = "Joshua Winick" - creditname[credamt++] = "Jack & Jenna Murphy" - creditname[credamt++] = "Matthew Smith" - creditname[credamt++] = "Alexis Royce" - creditname[credamt++] = "kthxcat" - creditname[credamt++] = "KC Green" - creditname[credamt++] = "Jeremy Ogden Bazzini-Ellis" - creditname[credamt++] = "Shion" - creditname[credamt++] = "Jessie Rai" - creditname[credamt++] = "Briana Ganzhorn" - creditname[credamt++] = "Brent" - creditname[credamt++] = "Luke Parkinson" - creditname[credamt++] = "Kafzeil" - creditname[credamt++] = "Colin J. MacDougall" - creditname[credamt++] = "Claire" - creditname[credamt++] = "Braxton Harris" - creditname[credamt++] = "Summerwine Games" - creditname[credamt++] = "Alexander S." - creditname[credamt++] = "Ahmed Almutawa" - creditname[credamt++] = "Michelle Czajkowski" - creditname[credamt++] = "Mike Reid" - creditname[credamt++] = "Samael the Butterdragon" - creditname[credamt++] = "James Roach" - creditname[credamt++] = "Luna and DC" - creditname[credamt++] = "Chess" -} -creditname[credamt++] = "%%%" -return credamt; diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_namingscreen.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_namingscreen.gml deleted file mode 100644 index 910c48cca..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_namingscreen.gml +++ /dev/null @@ -1,616 +0,0 @@ -var lines; -draw_set_color(c_white) -scr_setfont(fnt_maintext) -if (naming == 4) -{ - global.charname = charname - instance_create(0, 0, obj_whitefader) - caster_free(-3) - alerm = 0 - naming = 5 - cy = caster_load("music/cymbal.ogg") - caster_play(cy, 0.8, 0.95) -} -if (naming == 5) -{ - alerm += 1 - if (q < 120) - q += 1 - var xx = (name_x - (q / 3)) - if (global.language == "ja") - { - var kana_count = 0 - for (var i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - if (alerm > 179) - { - instance_create(0, 0, obj_persistentfader) - if (truereset > 0) - { - ossafe_ini_open("undertale.ini") - sk = ini_read_real("reset", "s_key", 0) - var Won = ini_read_real("General", "Won", 0) - var CP = ini_read_real("General", "CP", 0) - var CH = ini_read_real("General", "CH", 0) - ossafe_ini_close() - if ossafe_file_exists("undertale.ini") - ossafe_file_delete("undertale.ini") - ossafe_ini_open("undertale.ini") - ini_write_real("reset", "reset", 1) - if (sk != 0) - ini_write_real("reset", "s_key", sk) - if (Won != 0) - ini_write_real("General", "BW", Won) - if (CP != 0) - ini_write_real("General", "BP", CP) - if (CH != 0) - ini_write_real("General", "BH", CH) - ossafe_ini_close() - } - caster_free(cy) - global.flag[5] = (floor(random(100)) + 1) - ossafe_ini_open("undertale.ini") - ini_write_real("General", "fun", global.flag[5]) - ossafe_ini_close() - ossafe_savedata_save() - with (obj_time) - time = 0 - if scr_hardmodename(charname) - global.flag[6] = 1 - room_goto_next() - } -} -if (naming == 2) -{ - if (charname == "") - { - spec_m = scr_gettext("name_entry_missing") - allow = 0 - } - else if scr_hardmodename(charname) - { - spec_m = scr_gettext("name_entry_hardmode") - allow = 1 - } - else if (hasname == 1 && truereset == 0 && (!scr_hardmodename(global.charname))) - { - spec_m = scr_gettext("name_entry_already") - allow = 1 - } - else - scr_namingscreen_check(charname) - var confirm = (control_check_pressed(0) && selected2 >= 0) - if confirm - { - if allow - { - if (selected2 == 1 && string_length(charname) > 0) - naming = 4 - } - if (selected2 == 0) - { - if (hasname == 1 && truereset == 0) - naming = 3 - else - naming = 1 - } - return; - } - draw_set_color(c_white) - if (q < 120) - q += 1 - xx = (name_x - (q / 3)) - if (global.language == "ja") - { - kana_count = 0 - for (i = 0; i < strlen(charname); i++) - { - if (ord(string_char_at(charname, i)) >= 12288) - kana_count++ - } - if (kana_count > 1) - xx -= ((kana_count - 1) * (q / 10)) - } - draw_text_transformed((xx + random((r * 2))), (((q / 2) + name_y) + random((r * 2))), string_hash_to_newline(charname), (1 + (q / 50)), (1 + (q / 50)), random_ranger((((-r) * q) / 60), ((r * q) / 60))) - draw_text(90, 30, string_hash_to_newline(spec_m)) - draw_set_color(c_white) - if allow - { - if (selected2 == 0) - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("no")) - draw_set_color(c_white) - if (selected2 == 1) - draw_set_color(c_yellow) - scr_drawtext_centered(240, 200, scr_gettext("yes")) - } - else - { - draw_set_color(c_yellow) - scr_drawtext_centered(80, 200, scr_gettext("name_entry_goback")) - draw_set_color(c_white) - } - if allow - { - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected2 == 1) - selected2 = 0 - else - selected2 = 1 - } - } -} -if (naming == 1) -{ - q = 0 - r = 0.5 - for (var row = 0; row < rows; row++) - { - var yy = ymap[row] - for (var col = 0; col < cols; col++) - { - xx = xmap[col] - if (selected_row == row && selected_col == col) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text((xx + random(r)), (yy + random(r)), string_hash_to_newline(charmap[row, col])) - } - } - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 0) - draw_set_color(c_yellow) - var menu_text0 = scr_gettext("name_entry_quit") - draw_text(menu_x0, menu_y, string_hash_to_newline(menu_text0)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 1) - draw_set_color(c_yellow) - var menu_text1 = scr_gettext("name_entry_backspace") - draw_text(menu_x1, menu_y, string_hash_to_newline(menu_text1)) - draw_set_color(c_white) - if (selected_row == -1 && selected_col == 2) - draw_set_color(c_yellow) - var menu_text2 = scr_gettext("name_entry_done") - draw_text(menu_x2, menu_y, string_hash_to_newline(menu_text2)) - if (global.language == "ja") - { - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 0) - draw_set_color(c_yellow) - var charset_text0 = "ひらがな" - draw_text(charset_x0, charset_y, string_hash_to_newline(charset_text0)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 1) - draw_set_color(c_yellow) - var charset_text1 = "カタカナ" - draw_text(charset_x1, charset_y, string_hash_to_newline(charset_text1)) - draw_set_color(c_white) - if (selected_row == -2 && selected_col == 2) - draw_set_color(c_yellow) - var charset_text2 = "アルファベット" - draw_text(charset_x2, charset_y, string_hash_to_newline(charset_text2)) - } - var old_col = selected_col - do - { - if keyboard_check_pressed(vk_right) - { - selected_col++ - if (selected_row == -1) - { - if (selected_col > 2) - selected_col = 0 - } - else if (selected_col >= cols) - { - if (selected_row == (rows - 1)) - { - selected_col = old_col - break - } - else - { - selected_col = 0 - selected_row++ - } - } - } - if keyboard_check_pressed(vk_left) - { - selected_col-- - if (selected_col < 0) - { - if (selected_row == 0) - selected_col = 0 - else if (selected_row > 0) - { - selected_col = (cols - 1) - selected_row-- - } - else - selected_col = 2 - } - } - if keyboard_check_pressed(vk_down) - { - if (selected_row == -1) - { - selected_row = 0 - xx = menu_x0 - if (selected_col == 1) - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - var best = 0 - var bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - var diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - else - { - selected_row++ - if (selected_row >= rows) - { - if (global.language == "ja") - { - selected_row = -2 - xx = xmap[selected_col] - if (xx >= (charset_x2 - 10)) - selected_col = 2 - else if (xx >= (charset_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - else - { - selected_row = -1 - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - if keyboard_check_pressed(vk_up) - { - if (selected_row == -2) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = charset_x1 - if (selected_col == 2) - xx = charset_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else if (global.language != "ja" && selected_row == -1) - { - selected_row = (rows - 1) - if (selected_col > 0) - { - xx = menu_x1 - if (selected_col == 2) - xx = menu_x2 - best = 0 - bestdiff = abs((xmap[0] - xx)) - for (i = 1; i < cols; i++) - { - diff = abs((xmap[i] - xx)) - if (diff < bestdiff) - { - best = i - bestdiff = diff - } - } - selected_col = best - } - } - else - { - selected_row-- - if (selected_row == -1) - { - xx = xmap[selected_col] - if (xx >= (menu_x2 - 10)) - selected_col = 2 - else if (xx >= (menu_x1 - 10)) - selected_col = 1 - else - selected_col = 0 - } - } - } - } - until (selected_col < 0 || selected_row < 0 || string_length(charmap[selected_row, selected_col]) > 0); - bks_f = 0 - confirm = control_check_pressed(0) - if confirm - { - if (selected_row == -1) - { - if (selected_col == 0) - naming = 3 - if (selected_col == 1) - bks_f = 1 - if (selected_col == 2) - { - if (string_length(charname) > 0) - { - naming = 2 - selected2 = 0 - } - } - control_clear(0) - } - else if (selected_row == -2) - { - selected_charmap = (1 + selected_col) - if (selected_charmap == 1) - { - rows = hiragana_rows - cols = hiragana_cols - xmap = hiragana_x - ymap = hiragana_y - charmap = hiragana_charmap - } - else if (selected_charmap == 2) - { - rows = katakana_rows - cols = katakana_cols - xmap = katakana_x - ymap = katakana_y - charmap = katakana_charmap - } - else - { - rows = ja_ascii_rows - cols = ja_ascii_cols - xmap = ja_ascii_x - ymap = ja_ascii_y - charmap = ja_ascii_charmap - } - } - else - { - if (string_length(charname) == 6) - charname = string_delete(charname, 6, 1) - charname += charmap[selected_row, selected_col] - } - } - if (control_check_pressed(1) || bks_f == 1) - { - s = string_length(charname) - if (s > 0) - charname = string_delete(charname, s, 1) - control_clear(1) - } - draw_set_color(c_white) - draw_text(name_x, name_y, string_hash_to_newline(charname)) - scr_drawtext_centered(160, title_y, scr_gettext("name_entry_title")) -} -if (naming == 3) -{ - iniread = ossafe_ini_open("undertale.ini") - if (ini_section_exists("General") && hasname == 1) - { - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 0 - if (seconds < 10) - seconds = ("0" + string(seconds)) - var roomname = scr_roomname(roome) - var lvtext = scr_gettext("save_menu_lv", string(love)) - var timetext = scr_gettext("save_menu_time", string(minutes), string(seconds)) - var namesize = string_width(string_hash_to_newline(substr(name, 1, 6))) - var lvsize = string_width(string_hash_to_newline(lvtext)) - var timesize = string_width(string_hash_to_newline(timetext)) - var x_center = 160 - var lvpos = round((((x_center + (namesize / 2)) - (timesize / 2)) - (lvsize / 2))) - var namepos = 70 - var timepos = 250 - if (global.language == "ja") - { - namepos -= 6 - timepos += 6 - } - draw_text(namepos, 62, string_hash_to_newline(name)) - draw_text(lvpos, 62, string_hash_to_newline(lvtext)) - draw_text((timepos - timesize), 62, string_hash_to_newline(timetext)) - if (global.language == "ja") - scr_drawtext_centered(x_center, 80, roomname) - else - draw_text(namepos, 80, string_hash_to_newline(roomname)) - if (selected3 == 0) - draw_set_color(c_yellow) - var continue_text = scr_gettext("load_menu_continue") - draw_text(continue_x, 105, string_hash_to_newline(continue_text)) - draw_set_color(c_white) - draw_set_color(c_white) - if (selected3 == 2) - draw_set_color(c_yellow) - scr_drawtext_centered(160, 125, scr_gettext("settings_name")) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - if (truereset == 0) - var reset_text = scr_gettext("load_menu_reset") - else - reset_text = scr_gettext("load_menu_truereset") - draw_text(reset_x, 105, string_hash_to_newline(reset_text)) - if (keyboard_check_pressed(vk_right) || keyboard_check_pressed(vk_left)) - { - if (selected3 == 0) - selected3 = 1 - else if (selected3 == 1) - selected3 = 0 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0 || selected3 == 1) - selected3 = 2 - keyboard_clear(vk_down) - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 2) - selected3 = 0 - keyboard_clear(vk_down) - } - var action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - caster_free(-3) - if (ossafe_file_exists("file0") == 0) - room_goto_next() - else - script_execute(scr_load) - } - if (action == 1) - { - if (hasname == 0 || scr_hardmodename(global.charname) || truereset > 0) - naming = 1 - else - { - charname = global.charname - naming = 2 - alerm = 0 - r = 0.5 - q = 0 - } - control_clear(0) - } - if (action == 2) - { - caster_free(-3) - room_goto(room_settings) - } - } - else - { - draw_set_color(c_silver) - draw_text(85, 20, string_hash_to_newline(scr_gettext("instructions_title"))) - if (global.osflavor >= 4) - { - scr_drawtext_icons(85, 50, "\\*Z") - draw_text(115, 50, string_hash_to_newline(scr_gettext("instructions_confirm_label"))) - scr_drawtext_icons(85, 70, "\\*X") - draw_text(115, 70, string_hash_to_newline(scr_gettext("instructions_cancel_label"))) - scr_drawtext_icons(85, 90, "\\*C") - draw_text(115, 90, string_hash_to_newline(scr_gettext("instructions_menu_label"))) - draw_text(86, 130, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - lines[0] = "confirm" - lines[1] = "cancel" - lines[2] = "menu" - lines[3] = "fullscreen" - lines[4] = "quit" - var num_lines = 5 - if (global.language == "ja") - { - var label_x = 0 - for (i = 0; i < num_lines; i++) - { - var key = scr_gettext((("instructions_" + lines[i]) + "_key")) - draw_text(50, (45 + (i * 18)), string_hash_to_newline(key)) - xx = ((50 + string_width(string_hash_to_newline(key))) + 20) - if (xx > label_x) - label_x = xx - } - for (i = 0; i < num_lines; i++) - { - var label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(label_x, (45 + (i * 18)), string_hash_to_newline(label)) - } - draw_text(50, 145, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - else - { - for (i = 0; i < num_lines; i++) - { - key = scr_gettext((("instructions_" + lines[i]) + "_key")) - label = scr_gettext((("instructions_" + lines[i]) + "_label")) - draw_text(85, (50 + (i * 18)), string_hash_to_newline(((key + " - ") + label))) - } - draw_text(85, 140, string_hash_to_newline(scr_gettext("instructions_hp0"))) - } - } - xx = 85 - if (global.language == "ja") - xx = 84 - yy = 160 - if (global.osflavor <= 2) - yy += 12 - draw_set_color(c_white) - if (selected3 == 0) - draw_set_color(c_yellow) - draw_text(xx, yy, string_hash_to_newline(scr_gettext("instructions_begin"))) - if keyboard_check_pressed(vk_down) - { - if (selected3 == 0) - selected3 = 1 - } - if keyboard_check_pressed(vk_up) - { - if (selected3 == 1) - selected3 = 0 - } - var yy2 = (yy + 20) - draw_set_color(c_white) - if (selected3 == 1) - draw_set_color(c_yellow) - draw_text(xx, yy2, string_hash_to_newline(scr_gettext("settings_name"))) - action = -1 - if control_check_pressed(0) - action = selected3 - if (action == 0) - { - naming = 1 - control_clear(1) - } - if (action == 1) - { - caster_free(-3) - room_goto(room_settings) - } - } -} diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 7b8e98e21..000000000 --- a/UndertaleModTool/Corrections/cf8f7e3858bfbc46478cc155b78fb170/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename, 300) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml deleted file mode 100644 index 7865cee5e..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_OBJ_INSTAWRITER_Draw_0.gml +++ /dev/null @@ -1,103 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - n += 2 - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "P") - script_execute(SCR_TEXTSETUP, 4, 255, x, y, (x + 150), 43, 4, 94, 10) - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - } - if (global.inbattle == 1) - halt = 5 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_OBJ_WRITER_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_OBJ_WRITER_Draw_0.gml deleted file mode 100644 index fdeb5a41d..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_OBJ_WRITER_Draw_0.gml +++ /dev/null @@ -1,255 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "L") - mycolor = $FDC00E - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "z") - { - sym = real(string_char_at(originalstring, (n + 2))) - sym_s = spr_infinitysign - if (sym == 4) - sym_s = spr_infinitysign - if (sym == 4) - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - if (myfont == fnt_comicsans) - { - if (myletter == "w") - myx += 2 - if (myletter == "m") - myx += 2 - if (myletter == "i") - myx -= 2 - if (myletter == "l") - myx -= 2 - if (myletter == "s") - myx -= 1 - if (myletter == "j") - myx -= 1 - } - if (myfont == fnt_papyrus) - { - if (myletter == "D") - myx += 1 - if (myletter == "Q") - myx += 3 - if (myletter == "M") - myx += 1 - if (myletter == "L") - myx -= 1 - if (myletter == "K") - myx -= 1 - if (myletter == "C") - myx += 1 - if (myletter == ".") - myx -= 3 - if (myletter == "!") - myx -= 3 - if (myletter == "O" || myletter == "W") - myx += 2 - if (myletter == "I") - myx -= 6 - if (myletter == "T") - myx -= 1 - if (myletter == "P") - myx -= 2 - if (myletter == "R") - myx -= 2 - if (myletter == "A") - myx += 1 - if (myletter == "H") - myx += 1 - if (myletter == "B") - myx += 1 - if (myletter == "G") - myx += 1 - if (myletter == "F") - myx -= 1 - if (myletter == "?") - myx -= 3 - if (myletter == "'") - myx -= 6 - if (myletter == "J") - myx -= 1 - } - n += nskip -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_flowey_writer_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_flowey_writer_Draw_0.gml deleted file mode 100644 index aa57ccad5..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_flowey_writer_Draw_0.gml +++ /dev/null @@ -1,181 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "f") - global.typer = 9 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else if (global.typer == 70 || global.typer == 71 || global.typer == 74 || global.typer == 75 || global.typer == 76 || global.typer == 77) - draw_text_transformed((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter, 2, 2, 0) - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - n += nskip -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_gyftrot_Step_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_gyftrot_Step_0.gml deleted file mode 100644 index 887cbbc9b..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_gyftrot_Step_0.gml +++ /dev/null @@ -1,298 +0,0 @@ -if (global.mnfight == 3) - attacked = 0 -if (alarm[5] > 0) -{ - if (global.monster[0] == true) - { - if (global.monsterinstance[0].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[0].alarm[5] - } - if (global.monster[1] == true) - { - if (global.monsterinstance[1].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[1].alarm[5] - } - if (global.monster[2] == true) - { - if (global.monsterinstance[2].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[2].alarm[5] - } -} -if (global.mnfight == 1) -{ - if (talked == 0) - { - alarm[5] = 110 - alarm[6] = 1 - talked = 1 - global.heard = 0 - } -} -if keyboard_multicheck_pressed(13) -{ - if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) - alarm[5] = 2 -} -if (global.hurtanim[myself] == 1) -{ - shudder = 16 - alarm[3] = global.damagetimer - global.hurtanim[myself] = 3 -} -if (global.hurtanim[myself] == 2) -{ - global.monsterhp[myself] -= takedamage - with (dmgwriter) - alarm[2] = 15 - if (global.monsterhp[myself] >= 1) - { - mypart1 = instance_create(x, y, part1) - mypart2 = instance_create(x, y, part2) - global.hurtanim[myself] = 0 - image_index = 0 - global.myfight = 0 - global.mnfight = 1 - } - else - { - global.myfight = 0 - global.mnfight = 1 - killed = 1 - instance_destroy() - } -} -if (global.hurtanim[myself] == 5) -{ - global.damage = 0 - instance_create(((x + (sprite_width / 2)) - 48), (y - 24), obj_dmgwriter) - with (obj_dmgwriter) - alarm[2] = 30 - global.myfight = 0 - global.mnfight = 1 - global.hurtanim[myself] = 0 -} -if (global.mnfight == 2) -{ - if (attacked == 0) - { - pop = scr_monstersum() - if instance_exists(obj_jerry) - { - if (obj_jerry.ditch == 0) - pop -= 1 - } - global.turntimer = 120 - if (mercymod > 90) - global.turntimer = -2 - global.firingrate = 5 - if (global.hardmode == 1) - global.firingrate = 3 - if (pop == 3) - global.firingrate = global.firingrate * 2.4 - if (pop == 2) - global.firingrate = global.firingrate * 1.7 - if (mycommand >= 0 && mycommand <= 60) - { - gen = instance_create(x, y, obj_gyftgen) - gen.bullettype = 1 - } - else - { - gen = instance_create(x, y, obj_giftgen) - gen.bullettype = 0 - } - gen.myself = myself - if (mycommand >= 0) - global.msg[0] = "* Gyftrot laments its lack of& hands." - if (mycommand >= 25) - global.msg[0] = "* Gyftrot eyes you with& suspicion." - if (mycommand >= 40) - global.msg[0] = "* Gyftrot distrusts your& youthful demeanor." - if (mycommand >= 60) - global.msg[0] = "* Ah^1, the scent of fresh& pine needles." - if (mycommand >= 80) - global.msg[0] = "* Gyftrot tries vainly to& remove its decorations." - if (giftgiven == 1) - global.msg[0] = "* Gyftrot pretends to refuse& your gift." - if (giftgiven == 2) - global.msg[0] = "* Gyftrot politely accepts& your gift." - if (googly == 1) - global.msg[0] = "* Gyftrot stumbles blindly." - if (itemgone == 1 || itemgone == 2) - global.msg[0] = "* Gyftrot is slightly less& irritated." - if (itemgone == 3) - global.msg[0] = "* Gyftrot's problems have& been taken away." - if (betray == 1) - global.msg[0] = "* Gyftrot looks disappointed." - if (global.monsterhp[myself] < 30) - global.msg[0] = "* Gyftrot's antlers tremble." - attacked = 1 - } -} -if (global.myfight == 2) -{ - if (whatiheard != -1) - { - if (global.heard == 0) - { - if (whatiheard == 0) - { - global.msc = 0 - global.msg[0] = (((("* GYFTROT " + string(global.monsteratk[myself])) + " ATK ") + string(global.monsterdef[myself])) + ' DEF&* Some teens "decorated" it as& a prank./^') - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - if (whatiheard == 1) - { - global.msc = 0 - if (itemgone < 3) - { - if (gift[itemgone] == 0) - global.msg[0] = "* You remove the striped cane& that says " + chr(34) + "I use this tiny& cane to walk" + chr(34) + " on it./^" - if (gift[itemgone] == 1) - global.msg[0] = "* You remove the box of& non-dog-related raisins./^" - if (gift[itemgone] == 2) - global.msg[0] = "* You remove the lenticular& bookmark of a smug teen& winking./^" - if (gift[itemgone] == 3) - global.msg[0] = "* You remove the barbed wire& made of pipe cleaners./^" - if (gift[itemgone] == 4) - global.msg[0] = "* You remove a childhood& photograph of Snowdrake and& his parent./^" - if (gift[itemgone] == 5) - global.msg[0] = "* You remove a small^1, confused& dog./^" - if (gift[itemgone] == 6) - global.msg[0] = "* You remove a stocking filled& with chicken nuggets./^" - if (gift[itemgone] == 7) - global.msg[0] = "* You remove the shirt that says& 'I'm with stupid' and points& inward./^" - } - if (itemgone == 3) - { - global.msg[0] = "* You try to undecorate...?/^" - mercymod = 180 - } - if (googly == 1) - global.msg[0] = "* You remove the googly eyes./^" - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - if (googly == 1) - { - googly = 0 - ung = 1 - with (mypart5) - instance_destroy() - } - else if (itemgone < 3) - { - if (itemgone == 2) - { - with (mypart8) - instance_destroy() - itemgone = 3 - } - if (itemgone == 1) - { - with (mypart4) - instance_destroy() - itemgone = 2 - } - if (itemgone == 0) - { - with (mypart3) - instance_destroy() - itemgone = 1 - } - } - if (mercymod < 150) - { - if (itemgone > 0 && mercymod < 100) - mercymod = 10 - if (itemgone > 2) - { - mercymod = 160 - global.flag[138] = 1 - } - } - } - if (whatiheard == 3) - { - global.msc = 0 - if (googly == 0) - { - global.msg[0] = "* You add some googly eyes& you found on the ground./^" - googly = 1 - mypart5 = instance_create(x, y, part3) - mypart5.gift = 8 - } - else - global.msg[0] = "* You can't improve on& perfection./^" - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - if (whatiheard == 4) - { - global.msc = 0 - if (giftgiven == 0 && googly == 0 && itemgone > 0 && betray == 0) - { - mypart6 = instance_create(x, y, part3) - mypart6.gift = 9 - if (global.gold == 0) - { - global.msg[0] = "* You give the cheapest gift& of all..^1.&* Friendship./^" - giftgiven = 2 - mercymod = 140 - global.goldreward[myself] += 50 - } - if (global.gold > 0) - { - if (global.gold >= 35) - { - global.msg[0] = "* You give 35 G because& you can't think of an& appropriate gift./^" - global.gold -= 35 - } - else - { - global.gold = 0 - global.msg[0] = "* You give your remaining& money because you can't& think of a better gift./^" - } - giftgiven = 1 - mercymod = 140 - } - } - else - { - if (googly == 1 || betray == 1 || itemgone == 0) - global.msg[0] = "* Gyftrot refuses your gift./^" - if (giftgiven == 1) - global.msg[0] = "* Hey now^1.&* You aren't made of money./^" - if (giftgiven == 2) - global.msg[0] = "* Hey now^1.&* You aren't made of friendship./^" - } - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - } - global.heard = 1 - } -} -if (global.myfight == 4) -{ - if (global.mercyuse == 0) - { - script_execute(scr_mercystandard) - if (mercy < 0) - instance_destroy() - } -} -if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) -{ - script_execute(scr_mercystandard) - if (mercy < 0) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 9a5ea7df7..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,398 +0,0 @@ -buffer -= 1 -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if keyboard_multicheck_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ini_close() - room_goto(room_intromenu) -} -draw_set_color(c_white) -draw_set_font(fnt_maintext) -if (weather != 3) - draw_text_transformed(100, 10, "JOYSTICK CONFIG", 2, 2, 0) -else - draw_text_transformed(10, 10, "JOYSTICK CONFIG", 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, "EXIT") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = "CONFIRM - [Z + ENTER] ::" - if (i == 2) - itext = "CANCEL - [X + SHIFT] ::" - if (i == 3) - itext = "MENU - [C + CTRL] ::" - draw_text(20, (60 + (i * 15)), itext) - draw_set_color(c_white) -} -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 75, 245, 90, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 75, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 90, 245, 105, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 90, "(PUSH BUTTON)") - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 90, global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 105, 245, 120, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 105, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 105, global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, "ANALOG SENSITIVITY:") -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense -= global.analog_sense_sense - if keyboard_check(vk_left) - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text_transformed(20, 150, "ANALOG SENSITIVITY SENSITIVITY:", 0.6, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense_sense -= 0.01 - if keyboard_check(vk_left) - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, "DIR CHOICE:") -if (global.joy_dir == 0) - draw_text(100, 170, "NORMAL") -if (global.joy_dir == 1) - draw_text(100, 170, "ANALOG ONLY") -if (global.joy_dir == 2) - draw_text(100, 170, "POV ONLY") -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, 185, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, 185, "RESET TO DEFAULT") -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = "SPAGHETTI..." - else - r_line = "RESETTED..." - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 200, "CONTROL TEST") -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "cold outside#but stay warm#inside of you", 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "spring time#back to school", 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "try to withstand#the sun's life-#giving rays", 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "sweep a leaf#sweep away a#troubles", 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - draw_rectangle((168 - rectile), -10, -1, 250, false) - draw_set_color(c_black) - draw_rectangle((152 + rectile), -10, 330, 250, false) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 7b8438b88..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = "PET?" - if (gg == 1) - global.msg[0] = "PAT?" - if (gg == 2) - global.msg[0] = "POT?" - global.msg[1] = "%%%" - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_overworldcontroller_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_overworldcontroller_Draw_0.gml deleted file mode 100644 index 22357d594..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_overworldcontroller_Draw_0.gml +++ /dev/null @@ -1,507 +0,0 @@ -buffer += 1 -if (global.interact == 5) -{ - currentmenu = global.menuno - if (global.menuno < 6) - currentspot = global.menucoord[global.menuno] - xx = view_xview[view_current] - yy = (view_yview[view_current] + 10) - moveyy = yy - if (obj_mainchara.y > (yy + 120)) - moveyy += 135 - if (global.menuno != 4) - { - draw_set_color(c_white) - draw_rectangle((16 + xx), (16 + moveyy), (86 + xx), (70 + moveyy), false) - draw_rectangle((16 + xx), (74 + yy), (86 + xx), (147 + yy), false) - if (global.menuno == 1 || global.menuno == 5 || global.menuno == 6) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (196 + yy), false) - if (global.menuno == 2) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (224 + yy), false) - if (global.menuno == 3) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (150 + yy), false) - if (global.menuno == 7) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (216 + yy), false) - draw_set_color(c_black) - draw_rectangle((19 + xx), (19 + moveyy), (83 + xx), (67 + moveyy), false) - draw_rectangle((19 + xx), (77 + yy), (83 + xx), (144 + yy), false) - if (global.menuno == 1 || global.menuno == 5 || global.menuno == 6) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (193 + yy), false) - if (global.menuno == 2) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (221 + yy), false) - if (global.menuno == 3) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (147 + yy), false) - if (global.menuno == 7) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (213 + yy), false) - draw_set_color(c_white) - draw_set_font(fnt_small) - draw_text((23 + xx), (49 + moveyy), ((("HP " + string(global.hp)) + "/") + string(global.maxhp))) - draw_text((23 + xx), (40 + moveyy), ("LV " + string(global.lv))) - draw_text((23 + xx), (58 + moveyy), ("G " + string(global.gold))) - draw_set_font(fnt_maintext) - draw_text((23 + xx), (20 + moveyy), global.charname) - if (global.menuchoice[0] == 1) - draw_text((42 + xx), (84 + yy), "ITEM") - if (global.menuchoice[1] == 1) - draw_text((42 + xx), (102 + yy), "STAT") - if (global.menuchoice[2] == 1) - draw_text((42 + xx), (120 + yy), "CELL") - if (global.menuno == 1 || global.menuno == 5) - { - for (i = 0; i < 8; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.itemname[i]) - draw_text((116 + xx), (170 + yy), "USE") - draw_text(((116 + xx) + 48), (170 + yy), "INFO") - draw_text(((116 + xx) + 105), (170 + yy), "DROP") - } - } - if (global.menuno == 3) - { - for (i = 0; i < 7; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.phonename[i]) - } - if (global.menuno == 6) - { - scr_itemname() - for (i = 0; i < 8; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.itemname[i]) - } - if (global.menuno == 7) - { - scr_storagename(300) - for (i = 0; i < 10; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.itemname[i]) - } - if (global.menuno == 2) - { - draw_text((108 + xx), (32 + yy), (('"' + global.charname) + '"')) - draw_text((108 + xx), (62 + yy), ("LV " + string(global.lv))) - draw_text((108 + xx), (78 + yy), ((("HP " + string(global.hp)) + " / ") + string(global.maxhp))) - draw_text((108 + xx), (110 + yy), (((("AT " + string((global.at - 10))) + " (") + string(global.wstrength)) + ")")) - draw_text((108 + xx), (126 + yy), (((("DF " + string((global.df - 10))) + " (") + string(global.adef)) + ")")) - weaponname = " " - armorname = " " - if (global.weapon == 3) - weaponname = "Stick" - if (global.weapon == 13) - weaponname = "Toy Knife" - if (global.weapon == 14) - weaponname = "Tough Glove" - if (global.weapon == 25) - weaponname = "Ballet Shoes" - if (global.weapon == 45) - weaponname = "Torn Notebook" - if (global.weapon == 47) - weaponname = "Burnt Pan" - if (global.weapon == 49) - weaponname = "Empty Gun" - if (global.weapon == 51) - weaponname = "Worn Dagger" - if (global.weapon == 52) - weaponname = "Real Knife" - if (global.armor == 4) - armorname = "Bandage" - if (global.armor == 12) - armorname = "Faded Ribbon" - if (global.armor == 15) - armorname = "Manly Bandanna" - if (global.armor == 24) - armorname = "Old Tutu" - if (global.armor == 44) - armorname = "Clouded Glasses" - if (global.armor == 46) - armorname = "Stained Apron" - if (global.armor == 48) - armorname = "Cowboy Hat" - if (global.armor == 50) - armorname = "Heart Locket" - if (global.armor == 53) - armorname = "The Locket" - if (global.armor == 64) - armorname = "Temmie Armor" - draw_text((108 + xx), (156 + yy), ("WEAPON: " + weaponname)) - draw_text((108 + xx), (172 + yy), ("ARMOR: " + armorname)) - draw_text((108 + xx), (192 + yy), ("GOLD: " + string(global.gold))) - if (global.kills > 20) - draw_text((192 + xx), (192 + yy), ("KILLS: " + string(global.kills))) - if (string_length(global.charname) >= 7) - draw_text((192 + xx), (32 + yy), "Easy to#change,#huh?") - draw_text((192 + xx), (110 + yy), ("EXP: " + string(global.xp))) - if (global.lv == 1) - nextlevel = (10 - global.xp) - if (global.lv == 2) - nextlevel = (30 - global.xp) - if (global.lv == 3) - nextlevel = (70 - global.xp) - if (global.lv == 4) - nextlevel = (120 - global.xp) - if (global.lv == 5) - nextlevel = (200 - global.xp) - if (global.lv == 6) - nextlevel = (300 - global.xp) - if (global.lv == 7) - nextlevel = (500 - global.xp) - if (global.lv == 8) - nextlevel = (800 - global.xp) - if (global.lv == 9) - nextlevel = (1200 - global.xp) - if (global.lv == 10) - nextlevel = (1700 - global.xp) - if (global.lv == 11) - nextlevel = (2500 - global.xp) - if (global.lv == 12) - nextlevel = (3500 - global.xp) - if (global.lv == 13) - nextlevel = (5000 - global.xp) - if (global.lv == 14) - nextlevel = (7000 - global.xp) - if (global.lv == 15) - nextlevel = (10000 - global.xp) - if (global.lv == 16) - nextlevel = (15000 - global.xp) - if (global.lv == 17) - nextlevel = (25000 - global.xp) - if (global.lv == 18) - nextlevel = (50000 - global.xp) - if (global.lv == 19) - nextlevel = (99999 - global.xp) - if (global.lv >= 20) - nextlevel = 0 - draw_text((192 + xx), (126 + yy), ("NEXT: " + string(nextlevel))) - } - if (global.menuno == 4) - { - iniread = ini_open("undertale.ini") - name = ini_read_string("General", "Name", "EMPTY") - love = ini_read_real("General", "Love", 0) - time = ini_read_real("General", "Time", 1) - kills = ini_read_real("General", "Kills", 0) - roome = ini_read_real("General", "Room", 0) - ini_close() - draw_set_font(fnt_maintext) - draw_set_color(c_white) - draw_rectangle((54 + xx), (49 + yy), (265 + xx), (135 + yy), false) - draw_set_color(c_black) - draw_rectangle((57 + xx), (52 + yy), (262 + xx), (132 + yy), false) - draw_set_color(c_white) - if (global.menucoord[4] == 2) - draw_set_color(c_yellow) - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 59 - if (seconds < 10) - seconds = ("0" + string(seconds)) - script_execute(scr_roomname, roome) - draw_text((70 + xx), (60 + yy), name) - draw_text((140 + xx), (60 + yy), ("LV " + string(love))) - draw_text((210 + xx), (60 + yy), ((string(minutes) + ":") + string(seconds))) - draw_text((70 + xx), (80 + yy), roomname) - if (global.menucoord[4] == 0) - draw_sprite(spr_heartsmall, 0, (xx + 71), (yy + 113)) - if (global.menucoord[4] == 1) - draw_sprite(spr_heartsmall, 0, (xx + 161), (yy + 113)) - if (global.menucoord[4] < 2) - { - draw_text((xx + 85), (yy + 110), "Save") - draw_text((xx + 175), (yy + 110), "Return") - } - else - { - draw_text((xx + 85), (yy + 110), "File saved.") - if keyboard_multicheck_pressed(13) - { - global.menuno = -1 - global.interact = 0 - global.menucoord[4] = 0 - keyboard_clear(vk_return) - } - } - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.menucoord[4] < 2) - { - if (global.menucoord[4] == 1) - global.menucoord[4] = 0 - else - global.menucoord[4] = 1 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - } - if (keyboard_multicheck_pressed(13) && global.menucoord[4] == 0) - { - snd_play(snd_save) - script_execute(scr_save) - global.menucoord[4] = 2 - keyboard_clear(vk_return) - } - if (keyboard_multicheck_pressed(13) && global.menucoord[4] == 1) - { - global.menuno = -1 - global.interact = 0 - global.menucoord[4] = 0 - keyboard_clear(vk_return) - } - if keyboard_multicheck_pressed(16) - { - global.menuno = -1 - global.interact = 0 - global.menucoord[4] = 0 - keyboard_clear(vk_shift) - } - } - if (global.menuno == 0) - draw_sprite(spr_heartsmall, 0, (28 + xx), ((88 + yy) + (18 * global.menucoord[0]))) - if (global.menuno == 1) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[1]))) - if (global.menuno == 3) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[3]))) - if (global.menuno == 6) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[6]))) - if (global.menuno == 7) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[7]))) - if (global.menuno == 5) - { - if (global.menucoord[5] == 0) - draw_sprite(spr_heartsmall, 0, ((104 + xx) + (45 * global.menucoord[5])), (174 + yy)) - if (global.menucoord[5] == 1) - draw_sprite(spr_heartsmall, 0, ((104 + xx) + ((45 * global.menucoord[5]) + 3)), (174 + yy)) - if (global.menucoord[5] == 2) - draw_sprite(spr_heartsmall, 0, ((104 + xx) + ((45 * global.menucoord[5]) + 15)), (174 + yy)) - } - if keyboard_multicheck_pressed(13) - { - if (global.menuno == 5) - { - if (global.menucoord[5] == 0) - { - global.menuno = 9 - script_execute(scr_itemuseb, global.menucoord[1], global.item[global.menucoord[1]]) - } - if (global.menucoord[5] == 1) - { - global.menuno = 9 - script_execute(scr_itemdesc, global.item[global.menucoord[1]]) - script_execute(scr_writetext, 0, "x", 0, 0) - } - if (global.menucoord[5] == 2) - { - global.menuno = 9 - dontthrow = 0 - if (global.item[global.menucoord[1]] != 23 && global.item[global.menucoord[1]] != 27 && global.item[global.menucoord[1]] != 54 && global.item[global.menucoord[1]] != 56 && global.item[global.menucoord[1]] != 57) - script_execute(scr_writetext, 12, "x", 0, 0) - else - { - if (global.item[global.menucoord[1]] == 23) - script_execute(scr_writetext, 23, "x", 0, 0) - if (global.item[global.menucoord[1]] == 27) - { - script_execute(scr_writetext, 0, "* (You put the dog on the& ground.)/%%", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - } - if (global.item[global.menucoord[1]] == 54) - { - script_execute(scr_writetext, 0, "* (You threw the Bad Memory& away.^1)&* (But it came back.)/%%", 0, 0) - dontthrow = 1 - } - if (global.item[global.menucoord[1]] == 56) - { - if (!instance_exists(obj_undyne_friendc)) - { - script_execute(scr_writetext, 0, "* (Despite what seems like& common sense^1, you threw& away the letter.)/%%", 0, 0) - global.flag[494] = 1 - } - else - { - global.faceemotion = 1 - script_execute(scr_writetext, 0, "* Hey^1! Don't throw that& away^1! Just deliver it!/%%", 5, 37) - dontthrow = 1 - } - } - if (global.item[global.menucoord[1]] == 57) - { - script_execute(scr_writetext, 0, "* (The letter is too powerful to& throw away.^1)&* (It gets the better of you.)/%%", 0, 0) - dontthrow = 1 - } - } - if (dontthrow == 0) - script_execute(scr_itemshift, global.menucoord[1], 0) - } - } - if (global.menuno == 3) - { - global.menuno = 9 - script_execute(scr_itemuseb, global.menucoord[3], global.phone[global.menucoord[3]]) - } - if (global.menuno == 6) - { - global.menuno = 9 - script_execute(scr_storageget, global.item[global.menucoord[6]], 300) - if (noroom == 0) - { - script_execute(scr_writetext, 16, "x", 0, 0) - script_execute(scr_itemshift, global.menucoord[6], 0) - } - else - script_execute(scr_writetext, 19, "x", 0, 0) - } - if (global.menuno == 7) - { - global.menuno = 9 - script_execute(scr_itemget, global.flag[(global.menucoord[7] + 300)]) - if (noroom == 0) - { - script_execute(scr_writetext, 17, "x", 0, 0) - script_execute(scr_storageshift, global.menucoord[7], 0, 300) - } - else - script_execute(scr_writetext, 18, "x", 0, 0) - } - if (global.menuno == 1) - { - global.menuno = 5 - global.menucoord[5] = 0 - } - if (global.menuno == 0) - global.menuno += (global.menucoord[0] + 1) - if (global.menuno == 3) - { - script_execute(scr_phonename) - global.menucoord[3] = 0 - } - if (global.menuno == 1) - { - if (global.item[0] != 0) - { - global.menucoord[1] = 0 - script_execute(scr_itemname) - } - else - global.menuno = 0 - } - } - if keyboard_check_pressed(vk_up) - { - if (global.menuno == 0) - { - if (global.menucoord[0] != 0) - global.menucoord[0] -= 1 - } - if (global.menuno == 1) - { - if (global.menucoord[1] != 0) - global.menucoord[1] -= 1 - } - if (global.menuno == 3) - { - if (global.menucoord[3] != 0) - global.menucoord[3] -= 1 - } - if (global.menuno == 6) - { - if (global.menucoord[6] != 0) - global.menucoord[6] -= 1 - } - if (global.menuno == 7) - { - if (global.menucoord[7] != 0) - global.menucoord[7] -= 1 - } - } - if keyboard_check_pressed(vk_down) - { - if (global.menuno == 0) - { - if (global.menucoord[0] != 2) - { - if (global.menuchoice[(global.menucoord[0] + 1)] != 0) - global.menucoord[0] += 1 - } - } - if (global.menuno == 1) - { - if (global.menucoord[1] != 7) - { - if (global.item[(global.menucoord[1] + 1)] != 0) - global.menucoord[1] += 1 - } - } - if (global.menuno == 3) - { - if (global.menucoord[3] != 7) - { - if (global.phone[(global.menucoord[3] + 1)] != 0) - global.menucoord[3] += 1 - } - } - if (global.menuno == 6) - { - if (global.menucoord[6] != 7) - { - if (global.item[(global.menucoord[6] + 1)] != 0) - global.menucoord[6] += 1 - } - } - if (global.menuno == 7) - { - if (global.menucoord[7] != 9) - { - if (global.flag[(global.menucoord[7] + 301)] != 0) - global.menucoord[7] += 1 - } - } - } - if (keyboard_multicheck_pressed(16) && buffer >= 0) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - } - else if (global.menuno <= 3) - global.menuno = 0 - if (global.menuno == 5) - global.menuno = 1 - } - if keyboard_check_pressed(vk_right) - { - if (global.menuno == 5) - { - if (global.menucoord[5] != 2) - global.menucoord[5] += 1 - } - } - if keyboard_check_pressed(vk_left) - { - if (global.menuno == 5) - { - if (global.menucoord[5] != 0) - global.menucoord[5] -= 1 - } - } - if keyboard_multicheck_pressed(17) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - } - } - if (currentmenu < global.menuno && global.menuno != 9) - snd_play(snd_select) - else if (global.menuno >= 0 && global.menuno < 6) - { - if (currentspot != global.menucoord[global.menuno]) - snd_play(snd_squeak) - } -} -if (global.menuno == 9 && instance_exists(obj_dialoguer) == 0) -{ - global.menuno = -1 - global.interact = 0 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_papyrusboss_Step_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_papyrusboss_Step_0.gml deleted file mode 100644 index 7681fda13..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_papyrusboss_Step_0.gml +++ /dev/null @@ -1,1150 +0,0 @@ -if (global.mnfight == 3) - attacked = 0 -if (alarm[5] > 0) -{ - if (global.monster[0] == true) - { - if (global.monsterinstance[0].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[0].alarm[5] - } - if (global.monster[1] == true) - { - if (global.monsterinstance[1].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[1].alarm[5] - } - if (global.monster[2] == true) - { - if (global.monsterinstance[2].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[2].alarm[5] - } -} -if (global.mnfight == 1) -{ - if (talked == 0) - { - alarm[5] = 320 - alarm[6] = 2 - talked = 1 - global.heard = 0 - } -} -if (keyboard_multicheck_pressed(13) && talkify == 0) -{ - if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) - alarm[5] = 2 -} -if (talkify == 1 && instance_exists(OBJ_WRITER) == 0) -{ - alarm[5] = -2 - with (blconwd) - instance_destroy() - with (blcon) - instance_destroy() - talkify = 0 - talked = 0 - whatiheard = -1 - global.mnfight = 2 -} -if (global.hurtanim[myself] == 1) -{ - shudder = 16 - alarm[3] = global.damagetimer - global.hurtanim[myself] = 3 -} -if (global.hurtanim[myself] == 2) -{ - global.monsterhp[myself] -= takedamage - with (dmgwriter) - alarm[2] = 15 - if (global.monsterhp[myself] >= 1) - { - mypart1 = instance_create(x, y, part1) - global.hurtanim[myself] = 0 - image_index = 0 - global.myfight = 0 - global.mnfight = 1 - } - else - { - global.myfight = 0 - global.mnfight = 99 - killed = 1 - event_user(3) - } -} -if (global.hurtanim[myself] == 5) -{ - global.damage = 0 - instance_create(((x + (sprite_width / 2)) - 48), (y - 24), obj_dmgwriter) - with (obj_dmgwriter) - alarm[2] = 30 - global.myfight = 0 - global.mnfight = 1 - global.hurtanim[myself] = 0 -} -if (global.mnfight == 2) -{ - if (attacked == 0) - { - global.turntimer = 4 - global.firingrate = 15 - if (truefight == 0 && mycommand >= 0) - { - global.turntimer = 140 - if (murder == 1) - global.turntimer = 2 - global.border = 5 - bz = round(random(20)) - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - (20 + bz)), blt_sizebone) - with (gen) - hspeed = -3 - bz = round(random(20)) - gen = instance_create((global.idealborder[1] + 90), (global.idealborder[3] - (20 + bz)), blt_sizebone) - with (gen) - hspeed = -3 - bz = round(random(20)) - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - (20 + bz)), blt_sizebone) - with (gen) - hspeed = -3 - } - if (truefight == 1) - obj_heart.sprite_index = spr_heartblue - if (truefight == 1 && fighto == 15) - { - dontcancel = 4 - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - global.turntimer = 1300 - global.border = 5 - k = (global.idealborder[1] + 1900) - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 160), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 210), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 360), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 540), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 540), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[0] - 640), (global.idealborder[3] - 50), blt_topbone) - gen.hspeed = 4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 50), blt_topbone) - gen.hspeed = -4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 740), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 740), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 890), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 890), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 1090), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1120), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1150), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[0] - 1340), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[0] - 1370), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[0] - 1400), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 2000), (global.idealborder[3] - 40), blt_scootdog) - gen.hspeed = -5 - gen = instance_create((global.idealborder[1] + 2240), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_cbone - gen = instance_create((global.idealborder[1] + 2280), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_oolbone - gen = instance_create((global.idealborder[1] + 2500), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_dbone - gen = instance_create((global.idealborder[1] + 2540), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_udebone - gen = instance_create((global.idealborder[1] + 2220), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -4 - gen.sprite_index = spr_skatebone - gen = instance_create((k + 10), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 70), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 130), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 190), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 250), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 310), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 370), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 430), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 490), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 550), (global.idealborder[3] - 240), blt_superbone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 970), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -1 - fighto = 16 - } - if (truefight == 1 && fighto == 14 && xfight > 3) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - fighto = 15 - xfight = 0 - dontcancel = 1 - global.border = 50 - instance_create(global.idealborder[1], (global.idealborder[3] - 40), blt_tobydogbone) - alarm[7] = 80 - } - if (truefight == 1 && fighto == 14) - { - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - xfight += 1 - if (mycommand < 20) - { - global.turntimer = 210 - global.border = 5 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 90), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 120), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 150), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 180), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 210), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 240), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 680), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 720), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 800), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 840), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 880), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 920), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - } - if (mycommand >= 20 && mycommand < 40) - { - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 90), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 250), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 330), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 410), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 490), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 570), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 1150), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -8 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 1230), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -8 - gen.blue = 0 - } - if (mycommand >= 40) - fighto = (floor(random(11)) + 2) - } - if (truefight == 1 && fighto == 13) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 220 - global.border = 5 - gen = instance_create((global.idealborder[1] + 20), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 100), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 240), (global.idealborder[3] - 10), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 270), (global.idealborder[3] - 10), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 300), (global.idealborder[3] - 10), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 580), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 580), (global.idealborder[3] - 60), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 40 - } - if (truefight == 1 && fighto == 12) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 87), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 114), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 141), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 168), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 195), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 222), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 600), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 680), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 720), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 800), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 840), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - } - if (truefight == 1 && fighto == 11) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 250 - global.border = 5 - gen = instance_create((global.idealborder[1] + 60), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 140), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 220), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 300), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 380), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 540), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 620), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 1250), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -7 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 1330), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -7 - gen.blue = 0 - } - if (truefight == 1 && fighto == 10) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 230 - global.border = 5 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 80), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 80), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 100), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 100), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 280), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 280), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 295), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 295), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 600), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 620), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - blt_topbone.speed = 4.2 - blt_sizebone.speed = 4.2 - } - if (truefight == 1 && fighto == 9) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 355 - global.border = 5 - gen = instance_create((global.idealborder[1] + 60), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 220), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 220), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 500), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 500), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 70), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 780), (global.idealborder[3] - 10), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 780), (global.idealborder[3] - 50), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 990), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 990), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1130), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -20 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1130), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -20 - gen.oscmax = 30 - blt_topbone.speed = 4.2 - blt_sizebone.speed = 4.2 - } - if (truefight == 1 && fighto == 8) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 230 - global.border = 5 - gen = instance_create((global.idealborder[1] + 40), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - 70), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 310), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 310), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 610), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 610), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = -4 - blt_topbone.speed = 4.4 - blt_sizebone.speed = 4.4 - } - if (truefight == 1 && fighto == 7) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 150 - global.border = 5 - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 110), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 210), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 110), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 210), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 310), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - if (xfight > 0) - blt_sizebone.speed = 4.4 - else - { - blt_sizebone.speed = 4 - global.turntimer = 150 - } - } - if (truefight == 1 && fighto == 6) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 110), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 210), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 110), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 210), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = -2 - } - if (truefight == 1 && fighto == 5) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 330 - global.border = 5 - gen = instance_create((global.idealborder[1] + 40), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 70), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 100), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 130), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 160), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 190), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 300), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 330), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 390), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 700), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 730), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 790), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 820), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 850), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 970), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 1000), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 1030), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 1060), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - } - if (truefight == 1 && fighto == 4) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 240 - global.border = 5 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 170), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 170), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 190), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 190), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 320), (global.idealborder[3] - 90), blt_sizebone) - gen.hspeed = 4 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 480), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 700), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 700), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 700), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 700), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - } - if (truefight == 1 && fighto == 3) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 150 - global.border = 5 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 140), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 260), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 280), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 300), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 320), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 340), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 360), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 380), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 400), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - if (xfight > 0) - { - with (blt_sizebone) - speed = 4.5 - } - } - if (truefight == 1 && fighto == 2) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 240 - global.border = 5 - gen = instance_create((global.idealborder[0] - 30), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3.5 - gen = instance_create((global.idealborder[0] - 160), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3.5 - gen = instance_create((global.idealborder[0] - 290), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3.5 - gen = instance_create((global.idealborder[0] - 390), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = 3.5 - gen.blue = 1 - if (xfight > 0) - blt_sizebone.speed = 4 - gen = instance_create((global.idealborder[1] + 1120), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6 - } - if (truefight == 1 && fighto == 1) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 220 - global.border = 5 - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3 - gen = instance_create((global.idealborder[0] - 80), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = 3 - gen = instance_create((global.idealborder[0] - 230), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 390), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 490), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 580), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = 4 - if (xfight > 0) - blt_sizebone.speed = 4.5 - } - if (truefight == 1 && fighto == 0) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 300 - global.border = 5 - gen = instance_create((global.idealborder[1] + 20), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 150), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 280), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 410), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 390), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 510), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 630), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - } - if (truefight == 1 && fighto == -1) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - obj_heart.sprite_index = spr_heartblue - } - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[1] + 30), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 200), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 370), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -3 - } - if (mycommand == -1) - { - global.border = 5 - global.turntimer = 300 - gen = instance_create(x, y, obj_blueattackgen) - } - if instance_exists(gen) - gen.myself = myself - hearthp = global.hp - if (mycommand >= 0) - global.msg[0] = "* Papyrus is preparing a bone& attack." - if (mycommand > 15) - global.msg[0] = "* Papyrus prepares a non-bone& attack then spends a minute& fixing his mistake." - if (mycommand >= 20) - global.msg[0] = "* Papyrus is cackling." - if (mycommand >= 30) - global.msg[0] = "* Papyrus whispers " + chr(34) + "Nyeh heh& heh!" + chr(34) + "" - if (mycommand >= 40) - global.msg[0] = "* Papyrus is rattling his bones." - if (mycommand >= 60) - global.msg[0] = "* Papyrus is trying hard to play& it cool." - if (mycommand >= 80) - global.msg[0] = "* Papyrus is considering his& options." - if (mycommand >= 90) - global.msg[0] = "* Smells like bones." - if (mycommand >= 97) - global.msg[0] = "* Papyrus remembered a bad joke& Sans told and is frowning." - if (global.flag[66] == 1) - flirt2 += 1 - if (flirt2 > 0 && flirt2 < 11) - { - if (flirt2 == 1) - global.msg[0] = "* Papyrus is thinking about& what to wear for his date." - if (flirt2 == 2) - global.msg[0] = "* Papyrus is thinking about& what to cook for his date." - if (flirt2 == 3) - global.msg[0] = "* Papyrus dabs some Bone& Cologne behind his ear." - if (flirt2 == 4) - global.msg[0] = "* Papyrus dabs marinara sauce& behind his ear." - if (flirt2 == 5) - global.msg[0] = "* Papyrus dabs MTT-Brand Bishie& Cream behind his ear." - if (flirt2 == 6) - global.msg[0] = "* Papyrus dabs MTT-Brand Anime& Powder behind his ear." - if (flirt2 == 7) - global.msg[0] = "* Papyrus dabs MTT-Brand Cute& Juice behind his ear." - if (flirt2 == 8) - global.msg[0] = "* Papyrus dabs MTT-Brand& Attraction Slime behind his& ear." - if (flirt2 == 9) - global.msg[0] = "* Papyrus dabs MTT-Brand& Beauty Yogurt behind his& ear." - if (flirt2 == 10) - global.msg[0] = "* Papyrus realizes he doesn't& have ears." - if (flirt2 == 11) - global.msg[0] = "* Papyrus has lumps of weird-& smelling ointment on his& head." - } - if (global.monsterhp[myself] < 100) - global.msg[0] = "* Papyrus is at the edge of& defeat." - if (mercymod >= 8000) - global.msg[0] = "* Papyrus is sparing you." - if (murder == 1) - global.msg[0] = "* Papyrus is sparing you." - attacked = 1 - if (xfight > 0) - fighto = 14 - } - if (global.turntimer < 3 && dontcancel == 0) - { - hearthp2 = global.hp - obj_heart.vspeed = 0 - obj_heart.jumpstage = 0 - global.turntimer = -1 - global.mnfight = 3 - obj_heart.movement = 0 - } - if (global.turntimer < 3 && dontcancel == 4) - { - alarm[8] = 2 - dontcancel = 5 - } -} -if (global.myfight == 2) -{ - if (whatiheard != -1) - { - if (global.heard == 0) - { - if (whatiheard == 0) - { - global.msc = 0 - global.msg[0] = (((("* PAPYRUS " + string(global.monsteratk[myself])) + " ATK ") + string(global.monsterdef[myself])) + ' DEF&* He likes to say:& "Nyeh heh heh!"/^') - if (murder == 1) - global.msg[0] = "* PAPYRUS 5 ATK 5 DEF&* Forgettable./^" - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - if (whatiheard == 1) - { - global.msc = 0 - with (OBJ_WRITER) - instance_destroy() - if (insult <= 2 && truefight == 0) - { - global.msg[0] = " HOW SELFLESS.../" - global.msg[1] = " YOU WANT ME TO& FEEL BETTER& ABOUT FIGHTING& YOU.../%%" - if (insult == 1) - global.msg[0] = " THERE'S NO NEED& TO LIE TO& YOURSELF!!!/%%" - if (insult > 1) - global.msg[0] = " DON'T...!/%%" - if (insult <= 2) - { - insult += 1 - flirto = 2 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - } - else - { - global.msc = 0 - global.msg[0] = "* You INSULT^1, but to no avail^1.&* Seems ACTing won't escalate& this battle.../^" - if (truefight > 0) - global.msg[0] = "* Papyrus is too busy FIGHTing& to accept your insult./^" - with (OBJ_WRITER) - halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - } - if (whatiheard == 3) - { - hotcha += 1 - with (OBJ_WRITER) - halt = 3 - if (hotcha <= 2 && truefight == 0) - { - global.msg[0] = " WHAT!^1?& FL-FLIRTING!?/" - global.msg[1] = "\X SO YOU FINALLY& REVEAL YOUR\R & ULTIMATE FEELINGS\X!/" - global.msg[2] = " W-WELL^1!& I'M A SKELETON& WITH VERY HIGH& STANDARDS!!!/%%" - flirto = 1 - if (hotcha == 2) - { - global.msg[0] = " OH NO!!!/%%" - flirto = 2 - } - if (hotcha > 2) - { - flirto = 0 - whatiheard = 3 - global.myfight = 0 - global.mnfight = 1 - } - else - { - global.flag[66] = 1 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - } - else - { - global.msc = 0 - global.msg[0] = "* You FLIRT^1, but to no avail^1.&* Seems ACTing won't escalate& this battle.../^" - if (truefight > 0) - global.msg[0] = "* Papyrus is too busy FIGHTing& to flirt back./^" - with (OBJ_WRITER) - halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - } - if (whatiheard == 6) - { - with (OBJ_WRITER) - instance_destroy() - global.msg[0] = " OH NO!!^1! YOU'RE& MEETING ALL MY& STANDARDS!!!/" - global.msg[1] = " I GUESS THIS MEANS& I HAVE TO GO ON A& DATE WITH YOU...?/%%" - flirto = 2 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - global.heard = 1 - if (whatiheard == 7) - { - with (OBJ_WRITER) - instance_destroy() - global.msg[0] = " OH NO!!^1!& THAT HUMILITY..^1.& IT REMINDS ME OF,/" - global.msg[1] = " MYSELF!!!/" - global.msg[2] = " YOU'RE MEETING ALL& MY STANDARDS!!!/%%" - flirto = 2 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - } - } -} -if (global.myfight == 4) -{ - if (global.mercyuse == 0) - { - script_execute(scr_mercystandard) - if (mercy < 0) - event_user(2) - } -} -if (flirto > 0) -{ - if (instance_exists(OBJ_WRITER) == 0) - { - if (flirto == 1) - { - global.msc = 0 - global.typer = 1 - global.myfight = 3 - global.bmenuno = 6 - global.msg[0] = " I can I have zero& make redeeming& spaghetti qualities\C" - with (OBJ_WRITER) - halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_INSTAWRITER) - with (iii) - halt = 0 - with (sblcon) - instance_destroy() - } - if (flirto == 2) - { - global.myfight = 0 - global.mnfight = 1 - stalk = 1 - } - flirto = 0 - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_readable_room1_Alarm_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_readable_room1_Alarm_0.gml deleted file mode 100644 index 6726a977b..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_readable_room1_Alarm_0.gml +++ /dev/null @@ -1,472 +0,0 @@ -myinteract = 3 -global.msc = 0 -global.typer = 5 -global.facechoice = 0 -global.faceemotion = 0 -global.msg[0] = "%%" -if (room == room_ruins2) - global.msg[0] = "* Only the fearless may proceed.&* Brave ones, foolish ones.&* Both walk not the middle road./%%" -if (room == room_ruins3) - global.msg[0] = "* Stay on the path./%%" -if (room == room_ruins5) - global.msg[0] = "* The western room is the& eastern room's blueprint./%%" -if (room == room_ruins9) - global.msg[0] = "* Three out of four grey rocks& recommend you push them./%%" -if (room == room_ruins13) - global.msg[0] = "* (There's an ant-sized frog in& a crack in the wall...^1)&* (It waves at you.)/%%" -if (room == room_ruins14) - global.msg[0] = "* There is just one switch./%%" -if (room == room_ruins15A) - global.msg[0] = "* The far door is not an exit^1.&* It simply marks a rotation& in perspective./%%" -if (room == room_ruins15B) - global.msg[0] = "* If you can read this^1,& press the blue switch./%%" -if (room == room_ruins15C) - global.msg[0] = "* If you can read this^1,& press the red switch./%%" -if (room == room_ruins15D) - global.msg[0] = "* If you can read this^1,& press the green switch./%%" -if (room == room_torhouse1) - global.msg[0] = "* These books are worn...&* They must have been read& many times./%%" -if (room == room_asghouse1) -{ - global.msg[0] = "* (There's an old calendar from& the end of 201X.^1)&* (A date is circled on it.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (The date I came here.)/%%" -} -if (room == room_torhouse2) - global.msg[0] = "* The ends of the tools have& been filed down to& make them safer./%%" -if (room == room_asghouse2) - global.msg[0] = "* Seems like gardening tools./%%" -if (room == room_asrielroom) - global.msg[0] = "* Look at these cool toys^2!&* They don't interest you& at all./%%" -if (room == room_asrielroom_final) - global.msg[0] = "* (Dusty toys.)/%%" -if (room == room_castle_finalshoehorn) - global.msg[0] = "* Throne Room/%%" -if (room == room_castle_coffins2) -{ - global.msg[0] = "* (It's a coffin.^1)&* (There's a name engraved on& it.)/" - global.msg[1] = (('* ("' + global.charname) + '.")/') - global.msg[2] = "* (It's empty.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (The coffin is empty...?)/" - global.msg[1] = "* (You didn't notice before^1,& but there's something like...)/" - global.msg[2] = "* (... mummy wrappings at the& bottom of it.)/%%" - } - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (It's as comfortable as it& looks.)/%%" -} -if (room == room_torielroom) -{ - global.msc = 524 - if (x > 192) - { - global.msc = 0 - global.msg[0] = "* You peek inside..^2.&* Scandalous!/" - global.msg[1] = "* It's TORIEL's sock& collection./%%" - if (read > 0) - global.msg[0] = "* You can't stop looking& at the socks./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (You came all the way& back here to look at& Toriel's socks.)/" - global.msg[1] = "* (You have great priorities& in life.)/%%" - } - } -} -if (room == room_asgoreroom) -{ - global.msg[0] = "* It's a clothes drawer^1.&* There are robes^1, button-up& shirts.../" - global.msg[1] = "* ... and a pink^1, hand-knit& sweater that says& " + chr(34) + "Mr. Dad Guy." + chr(34) + "/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* Still has that sweater./%%" - if (y > 120) - global.msg[0] = "* (It's just a chair.)/%%" -} -if (room == room_castle_throneroom) - global.msg[0] = "* (It's a throne.)/%%" -if (room == room_torhouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_asghouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_kitchen) - global.msg[0] = "* For some reason^1, there& is a brand-name chocolate& bar in the fridge./%%" -if (room == room_kitchen_final) -{ - global.msg[0] = "* (The fridge is full of& unopened containers of& snails.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* No chocolate./%%" -} -if (room == room_tundra1) - global.msg[0] = "* ...!^1?&* There's a camera hidden& in the bushes./%%" -if (room == room_tundra8A) - global.msg[0] = "* (His.)/%%" -if (room == room_tundra_snowpuzz) -{ - if (global.plot <= 48) - global.msg[0] = "* There's a switch hidden& in the snow^1.&* Click!/%%" - if (global.plot > 48) - global.msg[0] = "* The switch is stuck now./%%" - if (global.flag[64] == 0) - global.flag[64] = 1 - if (global.plot <= 48) - global.plot = 49 - if (scr_murderlv() >= 3) - global.msg[0] = "* There's a switch here^1.&* It's been depressed with& vines./%%" -} -if (room == room_tundra_lesserdog) - global.msg[0] = "* On the floor inside is& a box of pomeraisins./%%" -if (room == 9999999) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are super crap./" - global.msg[2] = "* When monsters die^1, their& bodies turn into dust./" - global.msg[3] = "* One time this kid at my school& went missing for a week and& everyone thought he was dead.../" - global.msg[4] = "* But then he came back!!!/" - global.msg[5] = "* Turns out he was visiting his& girlfriend in Hotland and& and didn't tell anyone!/" - global.msg[6] = "* To be scientific^1, it sucks& that no one ever knows& if anyone's dead or alive./" - global.msg[7] = "* So yeah^1, what do we do at& funerals^1, anyway?/" - global.msg[8] = "* Professionally speaking:/" - global.msg[9] = "* DUH!!!/" - global.msg[10] = "* We pour the dust on whatever& that person liked./" - global.msg[11] = "* Then they will live on..^1.& ... in that object...& ... symbolically.../" - global.msg[12] = "* Uhhh^1, did I reach the page& minimum yet^1?&* I'm kinda sick of writing./%%" -} -if (room == room_tundra_library) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are cool as heck./" - global.msg[2] = "* When monsters get old and& kick the bucket^1, they turn& into dust./" - global.msg[3] = "* At funerals^1, we take that& dust and spread it on that& person's favorite thing./" - global.msg[4] = "* Then their essence will live& on in that thing.../" - global.msg[5] = "* Uhhh^1, am I at the page& minimum yet^1?&* I'm kinda sick of writing this./%%" -} -if (room == room_tundra_inn) -{ - global.msg[0] = "\W* Mom says that sleeping& can recover your health& \Yabove your maximum HP\W./" - global.msg[1] = "* ... what's maximum HP?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* Mom says that we can& go to the surface world& now!/" - global.msg[1] = "* ... what's so great about& that^1, anyway^1?&* I don't wanna move./%%" - } - if (scr_murderlv() >= 7) - global.msg[0] = "* (It's merely a decoy.)/%%" -} -if (room == room_water12) -{ - global.msg[0] = "* " + chr(34) + "The power to take their& SOULs." + chr(34) + "/" - global.msg[1] = "* " + chr(34) + "This is the power that& the humans feared." + chr(34) + "/%%" -} -if (room == room_water7) -{ - global.msg[0] = "* (Ancient writing covers the& walls..^1. you can just make& out the words.)/" - global.msg[1] = "* " + chr(34) + "The War of Humans and& Monsters." + chr(34) + "/%%" -} -if (room == room_water14) - global.msg[0] = "* The northern room hides a& great treasure./%%" -if (room == room_water15) -{ - global.msg[0] = "* Hurt, beaten, and fearful for& our lives, we surrendered& to the humans./" - global.msg[1] = "* Seven of their greatest& magicians sealed us underground& with a magic spell./" - global.msg[2] = "* Anything can enter through the& seal, but only beings with a& powerful SOUL can leave./%%" -} -if (room == room_water19) -{ - global.msg[0] = "* However...&* There is a prophecy./" - global.msg[1] = "* The Angel...&* The One Who Has Seen The& Surface.../" - global.msg[2] = "* They will return.&* And the underground will go& empty./%%" -} -if (room == room_water_nicecream) - global.msg[0] = "* The ancient glyphs have been& painted over with a list of& 21 different flavors./%%" -if (room == room_water_prebird) - global.msg[0] = "* Achoo^1!&* Tried to catch a bug^1, but& I just caught a cold.../%%" -if (room == room_water_preundyne) -{ - global.msg[0] = "* The humans, afraid of our& power^1, declared war on us./" - global.msg[1] = "* They attacked suddenly, and& without mercy./%%" -} -if (room == room_water17) - global.msg[0] = "* Without candles or magic to& guide them Home^1, the monsters& used crystals to navigate./%%" -if (room == room_water20) -{ - if instance_exists(obj_monsterkidtrigger7) - obj_monsterkidtrigger7.con = 80 - cantalk = 0 -} -if (room == room_fire_lab1) -{ - global.msg[0] = "* (It's beat-up figurine& of a female human with& cat ears.)/%%" - if (global.plot < 126 && scr_murderlv() < 12) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" -} -if (room == room_fire_lab2) - global.msg[0] = "* (Scientific books.^1)&* (They seem very dusty.)/%%" -if (room == room_fire_cookingshow) -{ - global.msg[0] = "* (It's a fridge.^1)&* (It's strangely warm.)/%%" - if (global.plot < 134) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" - if instance_exists(obj_mettaton_npc) - { - global.typer = 27 - global.msg[0] = "* MILK^1? EGGS^1? IN THE FRIDGE?/" - global.msg[1] = "* NO WAY^1, DARLING^1!&* THEY'D GET COLD!!!/%%" - } - if (global.plot == 134) - { - snd_play(snd_phone) - global.typer = 5 - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* Um^1, is it really& a good idea to be& getting a snack?/" - global.msg[3] = "\E8* Well^1, I guess I& really shouldn't& judge you.../" - global.msg[4] = "\E0* After all^1, I'm the& one eating potato& chips in my PJs!/" - global.msg[5] = "\E5* Uhhh^1, I mean..^1.&* H-hey^1, go over to& the right!/%%" - if (specialread > 0) - { - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* H-hey^1!&* Head over to the& right!/%%" - } - specialread += 1 - } -} -if (room == room_water_undynehouse) -{ - global.typer = 37 - global.facechoice = 5 - global.faceemotion = 4 - global.msc = 0 - if (x > 180) - { - global.msg[0] = "* I hate cold food./" - global.msg[1] = "\E0* So Alphys fixed up& my fridge so it& heats up food instead!/" - global.msg[2] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - if (read > 0) - global.msg[0] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - } - else - { - global.faceemotion = 0 - global.msg[0] = "* This oven is some& top-of-the-line& MTT thing./" - global.msg[1] = "\E4* But^1, y'know^1, as much& as technology& advances.../" - global.msg[2] = "\E0* Nothing beats food& home-cooked with& fire magic./%%" - } -} -if (room == room_fire_spidershop) -{ - global.msg[0] = "* (It looks like some sort of& powerful bracelet...)/" - global.msg[1] = "* (Wait.^1)&* (It's just a croissant...)/%%" -} -if (room == room_fire_hotelfront_2) - global.msg[0] = "* (It's just a regular wall.)/%%" -if (room == room_fire_core_branch) - global.msg[0] = "* (East...)&* (The End.)/%%" -if (room == room_fire_core_left) - global.msg[0] = "* (Solve this puzzle,& and The End will open.)/%%" -if (room == room_fire_core_top) - global.msg[0] = "* (Traverse the northern& room^1, and The End will& open.)/%%" -if (room == room_fire_core_right) -{ - global.msg[0] = "* (I cannot fight.)&* (I cannot think.)/" - global.msg[1] = "* (But^1, with patience^1,& I will make my way& through.)/%%" -} -if (room == room_fire_core_center) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_treasureleft) - global.msg[0] = "* (Why not relax and have& a nice snack?)/%%" -if (room == room_fire_core_treasureright) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_metttest) -{ - global.msg[0] = "* (It's completely trashed.^1)&* (There's no way it could& ever be repaired.)/%%" - if (global.flag[425] == 0) - global.msg[0] = "* (It's out of batteries.)/%%" -} -if (room == room_truelab_hall1) -{ - global.msg[0] = "* ENTRY NUMBER 1/" - global.msg[1] = "* This is it..^1.&* Time to do what the King& has asked me to do./" - global.msg[2] = "* I will create the power to& free us all./" - global.msg[3] = "* I will unleash the power of& the SOUL./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hub) -{ - global.msg[0] = "* POWER ROOM/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall2) -{ - global.msg[0] = "* ENTRY NUMBER 6/" - global.msg[1] = "* ASGORE asked everyone& outside the city for monsters& that had " + chr(34) + "fallen down." + chr(34) + "/" - global.msg[2] = "* Their bodies came in today./" - global.msg[3] = "* They're still comatose..^1.&* And soon^1, they'll all& turn into dust./" - global.msg[4] = "* But what happens if I& inject " + chr(34) + "determination" + chr(34) + " into& them?/" - global.msg[5] = "* If their SOULS persist& after they perish^1, then.../" - global.msg[6] = "* Freedom might be closer& than we all thought./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_operatingroom) -{ - global.msg[0] = "* ENTRY NUMBER 9/" - global.msg[1] = "* things aren't going well./" - global.msg[2] = "* none of the bodies have& turned into dust^1, so I& can't get the SOULs./" - global.msg[3] = "* i told the families that& i would give them the& dust back for the funerals./" - global.msg[4] = "* people are starting to& ask me what's happening./" - global.msg[5] = "* what do i do?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_prebed) -{ - global.msg[0] = "* ENTRY NUMBER 12/" - global.msg[1] = "* nothing is happening^1.&* i don't know what to do./" - global.msg[2] = "* i'll just keep injecting& everything with& " + chr(34) + "determination." + chr(34) + "/" - global.msg[3] = "* i want this to work./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_bedroom) -{ - global.msg[0] = "* ENTRY NUMBER 14/" - global.msg[1] = "* Everyone that had fallen& down.../" - global.msg[2] = "* ... has woken up./" - global.msg[3] = "* They're all walking around& and talking like nothing& is wrong./" - global.msg[4] = "* I thought they were& goners...?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_mirror) -{ - global.msg[0] = "* ENTRY NUMBER 7/" - global.msg[1] = "* We'll need a vessel to& wield the monster SOULs& when the time comes./" - global.msg[2] = "* After all^1, a monster& cannot absorb the SOULs& of other monsters./" - global.msg[3] = "* Just as a human cannot& absorb a human SOUL.../" - global.msg[4] = "* So then.../" - global.msg[5] = "* What about something that's& neither human nor monster?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall3) -{ - global.msg[0] = "* ENTRY NUMBER 15/" - global.msg[1] = "* Seems like this research& was a dead end.../" - global.msg[2] = "* But at least we got a& happy ending out of it...?/" - global.msg[3] = "* I sent the SOULS and the& vessel back to ASGORE./" - global.msg[4] = "* And I called all of the& families and told them& everyone's alive./" - global.msg[5] = "* I'll send everyone back& tomorrow. :) /%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* ENTRY NUMBER 17/" - global.msg[1] = "* monsters' physical forms& can't handle " + chr(34) + "determination" + chr(34) + "& like humans' can./" - global.msg[2] = "* with too much determination^1,& our bodies begin to break& down./" - global.msg[3] = "* everyone's melted together.../%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* DT EXTRACTION MACHINE&* STATUS: INACTIVE/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_tv) -{ - global.msg[0] = "* ENTRY NUMBER 4/" - global.msg[1] = "* I've been researching humans& to see if I can find any& info about their SOULS./" - global.msg[2] = "* I ended up snooping around& the castle...&* And found these weird tapes./" - global.msg[3] = "* I don't feel like ASGORE's& watched them.../" - global.msg[4] = "* I don't think he should./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_fan) - global.msc = 780 -if (room == room_truelab_cooler) -{ - global.msg[0] = "* ENTRY NUMBER 19/" - global.msg[1] = "* the families keep calling& me to ask when everyone& is coming home./" - global.msg[2] = "* what am i supposed to say?/" - global.msg[3] = "* i don't even answer the& phone anymore./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" - if (global.flag[490] == 0) - global.msg[0] = "* (It's too dark to see near& the walls.)/%%" -} -if (room == room_truelab_prepower) -{ - global.msg[0] = "* (Seems to be turned off.)/%%" - if (global.flag[485] == 1) - { - global.msg[0] = "* ENTRY NUMBER 8/" - global.msg[1] = "* I've chosen a candidate./" - global.msg[2] = "* I haven't told ASGORE yet^1,& because I want to surprise& him with it.../" - global.msg[3] = "* In the center of his& garden^1, there's something& special./" - global.msg[4] = "* The first golden flower^1,& that grew before all the& others./" - global.msg[5] = "* The flower from the outside& world./" - global.msg[6] = "* It appeared just before& the queen left./" - global.msg[7] = "* I wonder.../" - global.msg[8] = "* What happens when something& without a SOUL gains& the will to live?/%%" - } -} -if (room == room_truelab_elevatorinside) - global.msg[0] = "* (None of the buttons work.^1)&* (It seems to have lost power.)/%%" -if (room == room_castle_elevatorout) - global.msg[0] = "* (The door is jammed shut& with vines.)/%%" -if (room == room_truelab_castle_elevator) - global.msg[0] = "* (Seems like another elevator& has lost its power.)/%%" -if (room == room_tundra_grillby) - global.msg[0] = "* (The jukebox is broken.)/%%" -if (room == room_water_blookyard) - global.msg[0] = "* (It's locked.)/%%" -if (room == room_tundra_sansroom) - global.msg[0] = "* (It's a worn mattress.^1)&* (The sheets are bunched up in a& weird^1, creasy ball.)/%%" -if (room == room_tundra_sansbasement) -{ - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (He looks happy.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (... and^1, one photo of you& standing with Sans and all& your friends.)/" - global.msg[3] = "* (He looks happy.)/%%" - } -} -if (room == room_fire_pacing) -{ - global.msg[0] = "* (It's a poster for Mettaton's& latest stage performance.)/" - global.msg[1] = "* (A tragic tale of two star-& crossed lovers^1, kept apart& by the tides of fate...)/" - global.msg[2] = "* (Looks like it's almost time& for the performance.)/%%" -} -if (room == room_fire_hoteldoors) - global.msg[0] = "* (It's locked from the inside.)/%%" -if (room == room_fire_hotellobby) -{ - global.msg[0] = "* (There's an inscription on& this fountain.)/" - global.msg[1] = "* Royal Memorial Fountain&* Built 201X&* (Mettaton Added Last Week)/%%" -} -if (room == room_fire_restaurant) -{ - global.msg[0] = "* (It's a Wall of Fame full of& quotes and photos from visiting& celebrities.)/" - global.msg[1] = "* " + chr(34) + "The food is to die for!^1" + chr(34) + "&* " + chr(34) + "Gorgeous style and fragrance!^1" + chr(34) + "&* " + chr(34) + "My face tastes beautiful!" + chr(34) + "/" - global.msg[2] = "* (... these are all Mettaton.)/%%" -} -if (room == room_fire_hotelbed) -{ - global.msg[0] = "* (It's a lamp.^1)&* (There's no lightswitch.)/" - global.msg[1] = "* (It says that stars make& their own light...)/%%" -} -if (room == room_water_temvillage) - global.msg[0] = "* (Rich history of Tem.)/%%" -read += 1 -if (cantalk == 1) - mydialoguer = instance_create(0, 0, obj_dialoguer) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index d03c73c02..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - draw_set_font(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, "Exit") - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if keyboard_check_pressed(vk_return) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - draw_set_font(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (keyboard_check_pressed(vk_return) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_truechara_Step_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_truechara_Step_0.gml deleted file mode 100644 index 0b3663c04..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_truechara_Step_0.gml +++ /dev/null @@ -1,192 +0,0 @@ -if (con == 1) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Greetings./" - global.msg[1] = (("I^2 am " + global.charname) + "./%%") - instance_create(220, 320, OBJ_WRITER) - con = 2 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - caster_loop(ch_sfx1, 1, 1) - con = 3 - alarm[4] = 60 -} -if (con == 4) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Thank you./" - global.msg[1] = "Your power awakened&me from death./" - global.msg[2] = 'My "human soul."/' - global.msg[3] = 'My "determination."/' - global.msg[4] = "They were not mine^1,&but YOURS./" - global.msg[5] = "At first^1, I&was so confused./" - global.msg[6] = "Our plan had failed^1,&hadn't it?/" - global.msg[7] = "Why was I brought&back to life?/" - global.msg[8] = ".../" - global.msg[9] = "You./" - global.msg[10] = "With your guidance./" - global.msg[11] = "I realized the purpose&of my reincarnation./" - global.msg[12] = "Power./" - global.msg[13] = "Together^1, we eradicated&the enemy and became&strong./" - global.msg[14] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[15] = "Every time a number&increases^1, that&feeling.../" - global.msg[16] = "That's me./" - global.msg[17] = (('"' + global.charname) + '."/') - global.msg[18] = "Now./" - global.msg[19] = "Now, we have reached&the absolute./" - global.msg[20] = "There is nothing&left for us here./" - global.msg[21] = "Let us erase this&pointless world^1, and&move on to the next./%%" - if file_exists("system_information_963") - { - global.msg[0] = (('"' + global.charname) + '."/') - global.msg[1] = "The demon that comes&when people call&its name./" - global.msg[2] = "It doesn't matter when./" - global.msg[3] = "It doesn't matter where./" - global.msg[4] = "Time after time,&I will appear./" - global.msg[5] = "And, with your help./" - global.msg[6] = "We will eradicate the&enemy and become&strong./" - global.msg[7] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[8] = "Every time a number&increases^1, that&feeling.../" - global.msg[9] = "That's me./" - global.msg[10] = (('"' + global.charname) + '."/') - global.msg[11] = ".../" - global.msg[12] = "But./" - global.msg[13] = "You and I are not&the same^1, are we?/" - global.msg[14] = "This SOUL resonates&with a strange&feeling./" - global.msg[15] = "There is a reason&you continue to&recreate this world./" - global.msg[16] = "There is a reason&you continue to&destroy it./" - global.msg[17] = "You./" - global.msg[18] = "You are wracked with&a perverted&sentimentality./" - global.msg[19] = "Hmm./" - global.msg[20] = "I cannot understand&these feelings&any more./" - global.msg[21] = "Despite this./" - global.msg[22] = "I feel obligated to&suggest./" - global.msg[23] = "Should you choose to&create this world&once more./" - global.msg[24] = "Another path would&be better suited./" - global.msg[25] = "Now, partner./" - global.msg[26] = "Let us send this&world back into the&abyss./%%" - } - instance_create(150, 320, OBJ_WRITER) - con = 5 -} -if (con == 5 && instance_exists(OBJ_WRITER) == 0) -{ - con = 6 - alarm[4] = 30 -} -if (con == 7) -{ - con = 8 - choicer = 1 -} -if (con == 20) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Right^1. You are a&great partner./" - global.msg[1] = "We'll be together&forever^1, won't we?/%%" - con = 22 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 22 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - sprite_index = spr_truechara_weird -} -if (con == 22 && instance_exists(OBJ_WRITER) == 0) - con = 60 -if (con == 30) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "No...?/" - global.msg[1] = "Hmm.../" - global.msg[2] = "How curious./" - global.msg[3] = "You must have&misunderstood./" - global.msg[4] = "SINCE WHEN WERE YOU&THE ONE IN CONTROL?/%%" - if file_exists("system_information_963") - { - global.msg[0] = "No...?/" - global.msg[1] = "Hmm...&This feeling you have./" - global.msg[2] = "This is what I&spoke of./" - global.msg[3] = "Unfortunately,®arding this.../" - global.msg[4] = "YOU MADE YOUR CHOICE&LONG AGO./%%" - } - con = 31 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 31 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 4) - sprite_index = spr_truechara_weird -} -if (con == 31 && instance_exists(OBJ_WRITER) == 0) - con = 40 -if (con == 40) -{ - caster_stop(-3) - caster_play(ch_sfx2, 1, 0.95) - sprite_index = spr_truechara_laugh - image_speed = 0.5 - con = 41 - flashred = 1 - alarm[4] = 120 - wx = 0 - wy = 0 - if (global.osflavor == 1) - { - window_set_fullscreen(false) - window_set_caption(" ") - window_center() - wx = window_get_x() - wy = window_get_y() - } -} -if (con == 41) -{ - x = (((room_width / 2) + random(4)) - random(4)) - y = (((room_height / 2) + random(4)) - random(4)) - image_xscale += 0.08 - image_yscale += 0.08 - if (global.osflavor == 1) - window_set_position(((wx + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4))), ((wy + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4)))) -} -if (con == 42) -{ - con = 60 - if (global.osflavor == 1) - window_center() - flashred = 0 -} -if (con == 60) -{ - caster_free(-3) - snd_play(snd_laz) - image_speed = 0 - image_index = 0 - sprite_index = spr_strike - image_xscale = 5 - image_yscale = 5 - y = ((room_height / 2) - (sprite_height / 2)) - x = ((room_width / 2) - (sprite_width / 2)) - image_speed = 0.1 - con = 61 -} -if (con == 61) -{ - if (image_index >= 5.5) - { - visible = false - con = 62 - alarm[4] = 40 - } -} -if (con == 63) -{ - snd_play(snd_damage) - instance_create(0, 0, obj_gameshake) - con = 64 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index f424d711c..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = string("0") - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 061b9f3b9..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6407 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = " " - adder = "\W " - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y " - if (global.flag[22] == 2) - adder = "\p " - } - global.msg[0] = adder - global.msg[0] += (" * " + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += " A" - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += " B" - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += " C" - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = " " - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y " - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p " - } - } - global.msg[0] += " * Spare" - if (global.mercy == 0) - global.msg[0] += "& \W * Flee" - break - case 9: - global.msg[0] = ((" * " + global.itemnameb[0]) + " ") - if (global.item[1] != 0) - global.msg[0] += ("* " + global.itemnameb[1]) - global.msg[0] += " &" - if (global.item[2] != 0) - global.msg[0] += ((" * " + global.itemnameb[2]) + " ") - if (global.item[3] != 0) - global.msg[0] += ("* " + global.itemnameb[3]) - global.msg[0] += " & PAGE 1" - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = ((" * " + global.itemnameb[4]) + " ") - if (global.item[5] != 0) - global.msg[0] += ("* " + global.itemnameb[5]) - global.msg[0] += " &" - if (global.item[6] != 0) - global.msg[0] += ((" * " + global.itemnameb[6]) + " ") - if (global.item[7] != 0) - global.msg[0] += ("* " + global.itemnameb[7]) - global.msg[0] += " & PAGE 2" - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += (("* You recovered " + string(global.item[8])) + " HP!/%") - else - global.msg[0] += "* Your HP was maxed out./%" - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = (("* You bid a quiet farewell& to the " + global.itemname[global.menucoord[1]]) + ".") - if (i == 1) - global.msg[0] = (("* You put the " + global.itemname[global.menucoord[1]]) + "& on the ground and gave it a& little pat.") - if (i == 2) - global.msg[0] = (("* You threw the " + global.itemname[global.menucoord[1]]) + "& on the ground like the piece& of trash it is.") - if (i == 3) - global.msg[0] = (("* You abandoned the & " + global.itemname[global.menucoord[1]]) + ".") - if (i > 3) - global.msg[0] = (("* The " + global.itemname[global.menucoord[1]]) + " was& thrown away.") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = " * I'm outta here." - if (i == 2) - global.msg[0] = " * I've got better to do." - if (i > 3) - global.msg[0] = " * Escaped..." - if (i == 3) - global.msg[0] = " * Don't slow me down." - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = ((((" * Ran away with " + string(global.xpreward[3])) + " EXP& and ") + string(global.goldreward[3])) + " GOLD.") - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = "* (The shadow of the ruins& looms above^1, filling you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins7) - { - global.msg[0] = "* (Playfully crinkling through& the leaves fills you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins12A) - { - global.msg[0] = "* (Knowing the mouse might one& day leave its hole and& get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_ruins19) - global.msg[0] = "* (Seeing such a cute^1, tidy& house in the RUINS gives& you determination.)/%%" - if (global.flag[202] >= 20) - global.msg[0] = "* Determination./%%" - if (room == room_tundra1) - global.msg[0] = "* (The cold atmosphere of a& new land... it fills you& with determination.)/%%" - if (room == room_tundra3) - global.msg[0] = "* (The convenience of that& lamp still fills you& with determination.)/%%" - if (room == room_tundra_spaghetti) - { - global.msg[0] = "* (Knowing the mouse might one& day find a way to heat& up the spaghetti...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = "* (Knowing that dog will& never give up trying to& make the perfect snowdog...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - if (global.flag[55] == 1) - { - global.msg[0] = "* (Snow can always be broken& down and rebuilt into& something more useful.)/" - global.msg[1] = "* (This simple fact fills& you with determination.)/%%" - } - } - if (room == room_tundra_town) - global.msg[0] = "* (The sight of such a friendly& town fills you with& determination.)/%%" - if (room == room_water2) - global.msg[0] = "* (The sound of rushing water& fills you with& determination.)/%%" - if (room == room_water4) - global.msg[0] = "* (A feeling of dread hangs& over you...^1)&* (But you stay determined.)/%%" - if (room == room_water_savepoint1) - { - global.msg[0] = "* (Knowing the mouse might one& day extract the cheese from& the mystical crystal...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_preundyne) - { - global.msg[0] = "* (The sound of muffled rain& on the cavetop...)/" - if (global.flag[86] == 1) - global.msg[0] = "* (The serene sound of a& distant music box...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_trashzone2) - global.msg[0] = "* (The feeling of your socks& squishing as you step& gives you determination.)/%%" - if (room == room_water_trashsavepoint) - { - global.msg[0] = "* (The waterfall here seems& to flow from the& ceiling of the cavern...)/" - global.msg[1] = "* (Occasionally^1, a piece of& trash will flow& through...)/" - global.msg[2] = "* (... and fall into the& bottomless abyss below.)/" - global.msg[3] = "* (Viewing this endless& cycle of worthless& garbage...)/" - global.msg[4] = "* (It fills you with& determination.)/%%" - if (global.flag[91] == 1) - global.msg[0] = "* (Partaking in worthless& garbage fills you& with determination.)/%%" - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = "* (You feel a calming& tranquility^1. You're filled& with determination...)/%%" - if (room == room_water_temvillage) - global.msg[0] = "* (You feel..^1. something.)&* (You're filled with& detemmienation.)/%%" - if (room == room_water_undynefinal) - { - global.msg[0] = "* (The wind is howling^1.&* You're filled with& determination...)/%%" - if (global.flag[99] > 0) - global.msg[0] = "* (The howling wind is& now a breeze^1. This gives& you determination...)/%%" - if (global.flag[350] == 1) - global.msg[0] = "* (The wind has stopped^1.&* You're filled with& determination...)/%%" - } - if (room == room_fire_prelab) - { - global.msg[0] = "* (Seeing such a strange& laboratory in a place like& this...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire6) - global.msg[0] = "* (The wooshing sound of steam& and cogs..^1. it fills you& with determination.)/%%" - if (room == room_fire_savepoint1) - { - global.msg[0] = "* (An ominous structure looms& in the distance...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_mewmew2) - { - global.msg[0] = "* (Knowing the mouse might one& day hack the computerized& safe and get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_fire_hotelfront_1) - global.msg[0] = "* (A huge structure lies north.^1)&* (You're filled with& determination.)/%%" - if (room == room_fire_hotellobby) - global.msg[0] = "* (The relaxing atmosphere& of this hotel..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_branch) - global.msg[0] = "* (The air is filled with& the smell of ozone..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_premett) - { - global.msg[0] = "* (Behind this door must be& the elevator to the King's& castle.)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_savepoint2) - { - global.msg[0] = "* (The smell of cobwebs fills& the air...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& put away.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& tossed inside recklessly.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& placed thoughtfully inside.") - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& grabbed impatiently.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out and held like a& small puppy.") - global.msg[0] += "/%" - break - case 18: - global.msg[0] = "* You can't carry any more./%%" - break - case 19: - global.msg[0] = "* The box is full./%%" - break - case 23: - global.msg[0] = "* You leave the Quiche on the& ground and tell it you'll& be right back./%%" - break - case 30: - global.msg[0] = "* Use the box?& & Yes No \C " - global.msg[1] = " " - global.msg[2] = " " - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = " %%" - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = "* You have no items^1.&* You put a little time into& the box./%%" - if (gx == 1) - global.msg[0] = "* You have no items^1.&* You put a little effort& into the box./%%" - if (gx == 2) - global.msg[0] = "* You have no items^1.&* You put a little feeling& into the box./%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 200: - global.msg[0] = "\W* Howdy^2!&* I'm\Y FLOWEY\W.^2 &* \YFLOWEY\W the \YFLOWER\W!/" - global.msg[1] = "* Hmmm.../" - global.msg[2] = "* You're new to the& UNDERGROUND^2, aren'tcha?/" - global.msg[3] = "* Golly^1, you must be& so confused./" - global.msg[4] = "* Someone ought to teach& you how things work& around here!/" - global.msg[5] = "* I guess little old me& will have to do./" - global.msg[6] = "* Ready^2?&* Here we go!/%%" - break - case 201: - global.msg[0] = "\E2* This way./%%" - global.msg[1] = "%%%" - break - case 202: - global.msg[0] = "\E2* Welcome to your new& home^1, innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of the& RUINS./%%" - break - case 203: - global.msg[0] = "\E2* The RUINS are full of& puzzles./" - global.msg[1] = "* Ancient fusions between & diversions and doorkeys./" - global.msg[2] = "* One must solve them& to move from room to& room./" - global.msg[3] = "* Please adjust yourself to the sight of them./%" - break - case 204: - global.msg[0] = "\E2* To make progress here,^1 & you will need to trigger& several switches./" - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./%" - if (global.flag[6] == 1) - { - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./" - global.msg[2] = "* ... eh^1?&* It seems that the& labelling has worn away./" - global.msg[3] = "* Oh dear./" - global.msg[4] = "* This might be far more& challenging than I& anticipated.../%%" - } - break - case 205: - global.msg[0] = "\E2* The first switch is over& on the wall./%" - break - case 206: - global.msg[0] = "\E1* Do you need some help..^1?&* Press the switch on the wall./" - global.msg[1] = "\E0* Come on^1, you can do it!/%" - break - case 207: - global.msg[0] = "\E2* Go on^1, press the switch& on the left./%" - if (global.flag[6] == 1) - global.msg[0] = "\E2* I believe it was& the switch on the& left./%" - break - case 208: - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/" - global.msg[1] = "\E0* Press the switch that I& labelled for you./%" - if (global.flag[6] == 1) - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/%%" - break - case 209: - global.msg[0] = "\E1* You are very curious,^1 & are you not?/" - global.msg[1] = "\E1* Please understand.^2 & \E0I only want the best& for you./%" - break - case 210: - global.msg[0] = "\E0* Splendid!^2 &* I am proud of you,^1 & little one./" - global.msg[1] = "* Let us move to the& next room./%" - break - case 211: - global.msg[0] = "\E1* As a human living in& the UNDERGROUND,^1 & monsters may attack you./" - global.msg[1] = "\E2* You will need to be& prepared for this& situation./" - global.msg[2] = "\E0* However, worry not!^2 &* The process is simple./" - global.msg[3] = "\E2* When you encounter a & monster,^1 you will enter& a FIGHT./" - global.msg[4] = "* While you are in a& FIGHT^1, strike up a& friendly conversation./" - global.msg[5] = "\E2* Stall for time.& I will come to resolve& the conflict./" - global.msg[6] = "\E2* Practice talking to& the dummy./%" - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = "\E1* Ahh,^1 the dummies are& not for fighting!^2 &* They are for talking!/" - global.msg[1] = "* We do not want to hurt& anybody, do we...?^2 \E0 &* Come now./%" - } - if (global.flag[10] == 1) - global.msg[0] = "\E0* Ah,^1 very good!^2 &* You are very good./%" - if (global.flag[11] == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E1* ... you ran away.../" - global.msg[2] = "\E0* Truthfully^1, that was& not a poor choice./" - global.msg[3] = "\E0* It is better to& avoid conflict& whenever possible./" - global.msg[4] = "\E1* That..^1. however^1, is& only a dummy^2.&* It cannot harm you./" - global.msg[5] = "\E1* It is made of cotton^1.&* It has no desire& for revenge.../" - global.msg[6] = "\E0* Nevermind^2.&* Stay close to me and& I will keep you safe./%" - } - if (global.flag[13] == 1) - { - global.msg[0] = "\E3* ^1.^1.^1./" - global.msg[1] = "\E4* ^1.^1.^1./" - global.msg[2] = "\E0* The next room awaits./%" - } - break - case 213: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E2 &* I do not think the dummy& will be bothered./%" - break - case 214: - global.msg[0] = "\E0* Do you need some& ideas for conversation& topics?/" - global.msg[1] = "* Well^1, I often start with& a simple 'how do you& do...'/" - global.msg[2] = "* You could ask them about& their favorite books.../" - global.msg[3] = "* Jokes can be useful for& 'breaking the ice.'/" - global.msg[4] = "* Listen to this one.../" - global.msg[5] = "* What did the skeleton& tile his roof with?/" - global.msg[6] = "* ... SHIN-gles!/" - global.msg[7] = "\E1* .../" - global.msg[8] = "\E0* Well^1, I thought it& was amusing./%" - break - case 215: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E0 &* The dummy will not& be bothered./%" - break - case 216: - global.msg[0] = "\E1* There is another puzzle& in this room.../" - global.msg[1] = "\E0* I wonder if you can& solve it?/%" - break - case 217: - global.msg[0] = "\E1* This is the puzzle^1,& but.../" - global.msg[1] = "\E0* Here^1, take my hand& for a moment./%" - break - case 218: - global.msg[0] = "\E1* Puzzles seem a little& too dangerous for& now./%" - break - case 219: - global.msg[0] = ".../%" - break - case 220: - global.msg[0] = "\E2* Greetings,^1 my child^2.&* Do not worry^1, I did& not leave you./" - global.msg[1] = "\E0* I was merely behind this& pillar the whole time./" - global.msg[2] = "* Thank you for trusting& me./" - global.msg[3] = "\E2* However^1, there was an& important reason for& this exercise./" - global.msg[4] = "* ... to test your& independence./" - global.msg[5] = "\E1* I must attend to some& business^1, and you must& stay alone for a while./" - global.msg[6] = "\E0* Please remain here^2.&*\E1 It's dangerous to& explore by yourself./" - global.msg[7] = "\E0* I have an idea^2.&* I will give you a& CELL PHONE./" - global.msg[8] = "* If you have a need for& anything^1, just call./" - global.msg[9] = "\E1* Be good^1, alright?/%" - break - case 221: - global.msg[0] = "\E0* You have done& excellently thus& far^1, my child./" - global.msg[1] = "\E2* However... I have a& difficult request to ask& of you./" - global.msg[2] = "* .../" - global.msg[3] = "* I would like you to walk& to the end of the room& by yourself./" - global.msg[4] = "\E1* Forgive me for this./%" - break - case 222: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?& Cinnamon Bscotch \C" - global.msg[5] = " " - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ini_close() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - global.msg[0] = "* Oh^1, I see.&* Thank you very much!/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* Click.../%%" - global.msg[5] = "* /" - break - case 224: - global.msg[0] = "* It's a fishing rod affixed& to the ground.../" - global.msg[1] = "* Reel it in?& & Yes No \C " - global.msg[2] = " " - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = "* All that's attached to& the end is a photo of a& weird-looking monster.../" - global.msg[1] = "* (Call Me!& Here's my number!)/" - global.msg[2] = "* You decide not to call./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* All that's attached to& the end is a note./" - global.msg[1] = "* (Nevermind^1, guys!)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* You leave it alone./%%" - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = "* I shouldn't have given myself& away so easily.../%%" - if (global.flag[56] == 4) - { - global.msg[0] = "* Did you just...&* Consume the part of me& I had given you?/" - global.msg[1] = "* In front of my very eyes!?/" - global.msg[2] = "* I have no words for you..^1.&* Begone!/%%" - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = "* Thank you for taking care& of me.../%%" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = "* Huh^1? Again...?/" - global.msg[1] = "* I'm sorry..^1. if I give you& any more^1, there will be& nothing left of me./" - global.msg[2] = "* I suppose it is true^1.&* Travelling beyond our limits& is but a fantasy./" - global.msg[3] = "* It's no different for& anyone else./" - global.msg[4] = "* All of monsterkind& are doomed to stay& underground^1, forever.../%%" - } - } - if (global.flag[56] == 1) - { - global.msg[0] = "* How am I doing^1?&* By " + chr(34) + "I" + chr(34) + " I mean the piece& of me I gave you.../" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = "* Huh^1? You lost it...^1?&* ... I suppose I can give& you another piece.../" - scr_itemget(16) - if (noroom == 1) - global.msg[2] = "* You don't have any room^1?&* OK..^1. I understand I am not& a priority for you^1, then./%%" - else - { - global.msg[2] = "* Please be careful this& time./" - global.msg[3] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = "* Hello^1.&* I am a snowman./" - global.msg[1] = "* I want to see the world..^1.&* But I cannot move./" - global.msg[2] = "* If you would be so kind^1,& traveller^1, please.../" - global.msg[3] = "* Take a piece of me and& bring it very far away.& Yes No \C " - global.msg[4] = " " - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = "* It seems you do not& have enough room for me./%%" - else - { - global.msg[0] = "* Thank you... good luck!/" - global.msg[1] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* I see^1.&* Good journey^1, then./%%" - break - case 228: - global.msg[0] = "SANS!!^1!&THAT DIDN'T DO&ANYTHING!/" - if (global.flag[254] == 0) - global.msg[0] = "SANS!!^1!&THEY DIDN'T EVEN&LOOK AT IT!/" - scr_sansface(1, 0) - global.msg[2] = "* whoops./" - global.msg[3] = "* i knew i should have& used today's crossword& instead./" - scr_papface(4, 1) - global.msg[5] = "WHAT!^1?&CROSSWORD!?/" - global.msg[6] = "I CAN'T BELIEVE&YOU SAID THAT!!/" - global.msg[7] = "IN MY OPINION.../" - global.msg[8] = "\E3JUNIOR JUMBLE&IS EASILY THE&HARDEST./" - scr_sansface(9, 0) - global.msg[10] = "* what^1? really^1, dude^1?&* that easy-peasy word& scramble?/" - global.msg[11] = "\E1* that's for baby bones./" - scr_papface(12, 3) - global.msg[13] = "UN^1. BELIEVABLE./" - global.msg[14] = "\E0HUMAN!!^1!&SOLVE THIS DISPUTE!/" - global.msg[15] = "\TS \F0 \E0 \T0 %" - global.msg[16] = "* (Which is harder?)& & Jumble Crossword \C " - global.msg[17] = " " - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = "HA^1! HA^1! YES!/" - global.msg[2] = "HUMANS MUST BE&VERY INTELLIGENT!/" - global.msg[3] = "IF THEY ALSO FIND&JUNIOR JUMBLE&SO DIFFICULT!/" - global.msg[4] = "NYEH^1! HEH^1! HEH HEH!/%%" - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = "YOU TWO ARE WEIRD!/" - global.msg[2] = "\E3CROSSWORDS ARE SO&EASY./" - global.msg[3] = "IT'S THE SAME&SOLUTION EVERY&TIME./" - global.msg[4] = "\E0I JUST FILL ALL&THE BOXES IN WITH&THE LETTER " + chr(34) + "Z" + chr(34) + ".../" - global.msg[5] = "BECAUSE EVERY TIME&I LOOK AT A&CROSSWORD.../" - global.msg[6] = "ALL I CAN DO IS&SNORE!!!/" - global.msg[7] = "NYEH HEH HEH!!!/%%" - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here you go^1!&* Have a super-duper day^1!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1?&* You don't have enough& money.../" - global.msg[1] = "* I wish I could make& Nice Cream for free.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Out in the middle of& the woods.../%%" - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hey^1, you have an umbrella^1,& just like my cart.../" - global.msg[1] = "* Such solidarity^1!&* I have no choice but to& give you a deal!/" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Umbrella solidarity!^1?&* I guess I have to give& you a deal.../" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - } - if (itemcount > 2) - { - global.msg[0] = "* Hey^1!&* You have 3 Punch Cards!/" - global.msg[1] = "* How about redeeming them& for some Nice Cream!?/" - global.msg[2] = "* It's free!& & Yes No \C" - global.msg[3] = " " - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Super^1! Here you go^1!&* Your Card's in the box!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1? No money^1?&* Sorry^1, I can't give it to& you for free./%%" - if (global.flag[85] == 1) - global.msg[0] = "* Huh^1? You can't afford it& even with the discount^1?&* I.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = "* Here^1! A free Nice Cream^1!&* (You lost 3 cards and got& a Nice Cream.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Hidden in the depths of a& watery cavern.../%%" - } - break - case 235: - global.msg[0] = "* i've been thinking& about selling treats& too./" - global.msg[1] = "* want some fried snow^1?&* it's just 5G.& Buy No\C" - global.msg[2] = " " - break - case 236: - if (global.choice == 0) - { - global.msg[0] = "* did i say 5G^1?&* i meant 50G^1.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* i should charge way& more than than that./%%" - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = "* really^1?&* how about 5000G?& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* that's still too low./%%" - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = "* 50000G^1.&* that's my final offer.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* i have to pay for& the raw materials& somehow./%%" - break - case 239: - if (global.choice == 0) - { - global.msg[0] = "* what^1?&* you don't have the& money?/" - global.msg[1] = "* hey^1, that's okay./" - global.msg[2] = "\E1* i don't have any snow./%%" - if (global.gold >= 50000) - { - global.msg[0] = "* wow^1, that's a lot& of cash./" - global.msg[1] = "\E3* that's why i'm sorry& to say.../" - global.msg[2] = "\E3* i can't sell you& this fried snow./" - global.msg[3] = "\E2* it's got too much& sentimental value./%%" - } - } - if (global.choice == 1) - global.msg[0] = "* don't you know a& good deal when you& hear one?/%%" - break - case 240: - global.msg[0] = "WHAT!^1?&HOW DID YOU&AVOID MY TRAP?/" - global.msg[1] = "\E3AND^1, MORE&IMPORTANTLY.../" - global.msg[2] = "\E0IS THERE ANY&LEFT FOR ME???/" - global.msg[3] = "\TS \F0 \E0 \T0 %" - global.msg[4] = "* (What do you tell Papyrus& about his spaghetti?)& Ate it Left it \C " - global.msg[5] = " " - break - case 241: - scr_papface(0, 0) - global.msg[1] = "REALLY!?/" - if (global.choice == 0) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "NO ONE'S EVER&ENJOYED MY&COOKING BEFORE.../" - global.msg[4] = "\E0WELL THEN!!/" - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "YOU RESISTED THE&FLAVOR OF MY&HOMECOOKED PASTA.../" - global.msg[4] = "JUST SO YOU&COULD SHARE&IT WITH ME???/" - global.flag[62] = 2 - } - global.msg[5] = "\E0FRET NOT HUMAN^1!&I^1, MASTER CHEF&PAPYRUS.../" - global.msg[6] = "WILL MAKE YOU ALL&THE PASTA YOU&COULD EVER WANT!/" - global.msg[7] = "HEH HEH HEH HEH&HEH HEH NYEH!/%%" - break - case 243: - global.msg[0] = "HEY!/" - global.msg[1] = "IT'S THE HUMAN!/" - global.msg[2] = "\E0YOU'RE GONNA&LOVE THIS&PUZZLE!/" - global.msg[3] = "IT WAS MADE&BY THE GREAT&DR. ALPHYS!/" - global.msg[4] = "YOU SEE&THESE TILES&!?/" - global.msg[5] = "ONCE I THROW&THIS SWITCH.../" - global.msg[6] = "THEY WILL&BEGIN TO&CHANGE COLOR!/" - global.msg[7] = "EACH COLOR HAS&A DIFFERENT&FUNCTION!/" - global.msg[8] = "RED TILES ARE&IMPASSABLE!/" - global.msg[9] = "YOU CANNOT&WALK ON THEM!/" - global.msg[10] = "YELLOW TILES&ARE ELECTRIC!/" - global.msg[11] = "THEY WILL&ELECTROCUTE&YOU!/" - global.msg[12] = "GREEN TILES&ARE ALARM&TILES!/" - global.msg[13] = "IF YOU STEP&ON THEM.../" - global.msg[14] = "YOU WILL HAVE&TO FIGHT A&MONSTER!!/" - global.msg[15] = "ORANGE TILES&ARE ORANGE-&SCENTED./" - global.msg[16] = "THEY WILL MAKE&YOU SMELL&DELICIOUS!/" - global.msg[17] = "BLUE TILES ARE&WATER TILES./" - global.msg[18] = "SWIM THROUGH&IF YOU LIKE^1,&BUT.../" - global.msg[19] = "IF YOU SMELL&LIKE ORANGES!/" - global.msg[20] = "THE PIRAHNAS&WILL BITE&YOU./" - global.msg[21] = "ALSO^1, IF A&BLUE TILE IS&NEXT TO A,/" - global.msg[22] = "YELLOW TILE^1,&THE WATER WILL&ALSO ZAP YOU!/" - global.msg[23] = "PURPLE TILES&ARE SLIPPERY!/" - global.msg[24] = "YOU WILL SLIDE&TO THE NEXT&TILE!/" - global.msg[25] = "HOWEVER^1, THE&SLIPPERY&SOAP.../" - global.msg[26] = "SMELLS LIKE&LEMONS!!/" - global.msg[27] = "WHICH PIRAHNAS&DO NOT LIKE!/" - global.msg[28] = "PURPLE AND&BLUE ARE OK!/" - global.msg[29] = "FINALLY^1,&PINK TILES./" - global.msg[30] = "THEY DON'T DO&ANYTHING./" - global.msg[31] = "STEP ON THEM&ALL YOU LIKE./" - global.msg[32] = "HOW WAS THAT!^1?&UNDERSTAND???/" - global.msg[33] = "\TS \F0 \E0 \T0 %" - global.msg[34] = "* (Understand the explanation?)& & Of course No \C " - global.msg[35] = " " - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "OKAY..^1.&I GUESS I'LL&REPEAT MYSELF.../" - global.msg[2] = "\E0RED TILES ARE&IMPASSABLE./" - global.msg[3] = "YELLOW TILES ARE&ELECTRIC AND&DANGEROUS./" - global.msg[4] = "BLUE TILES MAKE&YOU FIGHT A&MONSTER./" - global.msg[5] = "GREEN TILES ARE&WATER TILES./" - global.msg[6] = "ORANGE TILES ARE&ORANGE SCENTED./" - global.msg[7] = "IF YOU STEP ON&ORANGE^1, DON'T STEP&ON GREEN./" - global.msg[8] = "\E3BROWN TILES ARE.../" - global.msg[9] = "\E1WAIT!!^1!&THERE ARE NO&BROWN TILES.../" - global.msg[10] = "\E0PURPLE TILES&SMELL LIKE&LEMONS.../" - global.msg[11] = "\E3WHY DON'T THE&YELLOW ONES&SMELL LEMONY?/" - global.msg[12] = "\E3UMM.../" - global.msg[13] = "\E1WAIT!^1!&DID I MIX UP&GREEN AND BLUE!?/" - global.msg[14] = "THE BLUE ONES&ARE WATER ONES!/" - global.msg[15] = "\E3PINK TILES.../" - global.msg[16] = "I DON'T..^1.&REMEMBER???/" - global.msg[17] = "\E1WAIT!!!/" - global.msg[18] = "\E3THOSE ONES DON'T&DO ANYTHING./" - global.msg[19] = "\E0OKAY^1!&DO YOU UNDERSTAND&BETTER NOW!?/" - global.msg[20] = "\TS \F0 \E0 \T0 %" - global.msg[21] = "* (Understand the explanation?)& & Yes Even less \C " - global.msg[22] = " " - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "........../" - global.msg[2] = "OK^1, YOU KNOW&WHAT???/" - global.msg[3] = "HOW ABOUT..^1.&YOU JUST.../" - global.msg[4] = "DO THIS PUZZLE..^1.&ON YOUR OWN.../" - global.msg[5] = "I'LL LEAVE THE&INSTRUCTIONS.../" - global.msg[6] = "JUST READ THEM./" - global.msg[7] = "THEN WHEN YOU&UNDERSTAND IT.../" - global.msg[8] = "YOU CAN THROW&THE SWITCH./" - global.msg[9] = "AND DO IT AT&YOUR OWN PACE./" - global.msg[10] = "GOOD LUCK./" - global.msg[11] = "NYEH..^1.&HEH..^1.&HEH!/%%" - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = "* (There's a lone quiche& sitting underneath& this bench.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* It's just a bench./%%" - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Abandoned& Quiche.)/%%" - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = "* (You're carrying too much.)/" - global.msg[1] = "* (You aren't ready for the& responsibility.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* (The quiche was left all& alone...)/%%" - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = "* (There's a tutu lying on& the ground here.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Old Tutu.)/%%" - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = (("* (The box contains " + card) + " cards.)/") - if (global.flag[80] > 2) - global.msg[0] = (("* (Two bugs in the box are& playing a " + card) + "-card game.)/") - if (global.flag[80] > 4) - global.msg[0] = (("* (There's a smiley face made& of " + card) + " cards in the box.)/") - if (global.flag[80] > 6) - global.msg[0] = (("* (A house made of " + card) + " cards& sits in the box.)/") - if (global.flag[80] > 12) - global.msg[0] = "* (The box is overstuffed with& cards.)/" - global.msg[1] = "* (Take a card?)& & Take Leave \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's a box for storing Punch& Cards^1.)&* (It's empty right now.)/%%" - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = "* (You got a Punch Card.)/%%" - if (global.flag[80] > 2) - global.msg[0] = "* (All games must end one day.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 4) - global.msg[0] = "* (Happiness is fleeting.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 6) - global.msg[0] = "* (The house collapses.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 12) - global.msg[0] = "* (You got a Punch Card.)/%%" - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = "* (It's a pair of ballet shoes.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Ballet Shoes.)/%%" - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 254: - global.msg[0] = "* (This little bird wants to& carry you across.)/" - global.msg[1] = "* (Accept the bird's offer?)& & Get ride No \C " - global.msg[2] = " " - if (global.flag[85] == 1) - global.msg[0] = "* (Umbrellas and birds...^1)&* (A bad combination.)/%%" - break - case 255: - global.msg[0] = " %%" - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = "* (It's a legendary artifact.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The artifact is gone.)/%%" - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = "* (This will never happen.)/%%" - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - if (noroom == 2) - global.msg[0] = "* (You're carrying too many& dogs.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/" - global.msg[1] = "* (Take a package of noodles?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/%%" - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Instant Noodles.)/%%" - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* (You decide to stay healthy.)/%%" - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = "* (There's a frypan lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Burnt Pan.)/%%" - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = "* (There's an apron lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Stained Apron.)/%%" - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = "* (There's a Glamburger inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Glamburger.)/%%" - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = "* (There's 100G inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = "* (You got 100G.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = "* (There's a worn dagger& inside the box.)/" - else - global.msg[0] = "* (Knife inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Worn Dagger.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got the Real Knife.)/%%" - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = "* (There's a heart-shaped& locket inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Heart-shaped& Locket.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got The Locket.)/%%" - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 272: - global.msg[0] = "* (The box is empty.)/%%" - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = "* Hello...&* Would you like some& Nice Cream...?/" - global.msg[1] = "* It's the frozen treat...&* That warms your heart./" - global.msg[2] = "* Now only 12G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[250] >= 1) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1.&* It's the frozen treat^1.&* That warms your heart./" - global.msg[2] = "* Now just 12G.& & Yes No \C" - global.msg[3] = " " - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here^1.&* (You got the Nice Cream.)/%%" - if (afford == 0) - global.msg[0] = "* You don't have enough& money.../%%" - } - if (noroom == 1) - global.msg[0] = "* Drop something./%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* Life..^1. is suffering./%%" - } - break - case 500: - global.msg[0] = "* (Golden flowers.^1)&* (They must have& broken your fall.)/%%" - global.msg[1] = "%%%" - break - case 501: - global.msg[0] = "* " + chr(34) + "Press [Z] to read signs!" + chr(34) + "/%%" - break - case 502: - global.msg[0] = "* Just a regular old pillar./%%" - break - case 503: - global.msg[0] = "* Please don't step on the& leaves./%%" - break - case 504: - global.msg[0] = "* Didn't you read the sign& downstairs?/%%" - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* WHOA there^1, pardner^2!&* Who said you could push& me around?/" - global.msg[1] = "* HMM^2?&* So you're ASKIN' me to& move over?/" - global.msg[2] = "* Okay^1, just for you^1,& pumpkin./%%" - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You want me to move some& more?/" - global.msg[1] = "* Alrighty^1, how's this?/%%" - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* That was the wrong direction?/" - global.msg[1] = "* Okay^1, think I got it./%%" - } - if (conversation == 9) - global.msg[0] = "* Was that helpful?/%%" - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You wanted me to STAY there?/" - global.msg[1] = "* You're giving me a real& workout./%%" - } - } - else - { - global.msg[0] = "* Aren't things easier when& you just ask?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* The exit's open^1?&* Guess I better roll out.../" - global.msg[1] = "* Hey^1, y'mind giving me a& push^1, pumpkin?/%%" - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = "*'Take one.'&* Take a candy?& Yes No \C" - if (global.flag[34] == 0) - global.msg[0] = "* It says 'take one.'&* Take a piece of candy?& Yes No \C" - } - else - global.msg[0] = "* Look at what you've done./%%" - global.msg[1] = " " - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = "* You took a piece of candy.&* (Press [C] to open the menu.)/%%" - if (global.flag[34] == 2) - global.msg[0] = "* You took more candy^1.&* How disgusting../%%" - if (global.flag[34] == 3) - global.msg[0] = "* You take another piece.&* You feel like the& scum of the earth.../%%" - if (global.flag[34] == 4) - global.msg[0] = "* You took too much too fast.&* The candy spills onto& the floor./%%" - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = "* In this hellish world^1, you& can only take 3 pieces& of candy.../%%" - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - } - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 510: - global.msg[0] = "* zzzzzzzzzzzzzzz..^1.&* zzzzzzzzzzzzzz.../" - global.msg[1] = "* zzzzzzzzzz..^1.&* (are they gone yet^1)&* zzzzzzzzzzzzzzz.../" - global.msg[2] = "* (This ghost keeps saying 'z'& out loud repeatedly^1,& pretending to sleep.)/" - global.msg[3] = "* Move it with force?& & Yes No \C" - global.msg[4] = " " - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = "* It says 'Take them all.'&* Take a candy?& Yes No \C" - global.msg[1] = " " - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = "* You took a piece.&* Boy^1, that's heavy./%%" - if (haveit == 1) - global.msg[0] = "* You can't carry more.&* It's just too heavy./%%" - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 7G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 18G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = "* You found a Faded Ribbon./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = "* Nothing happened./%%" - if (global.choice == 1) - global.msg[0] = "%%" - if (global.flag[43] > 25) - global.msg[0] = "* You're making the switches& uncomfortable with all& this attention./%%" - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = "* You hear a clicking sound./%%" - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = "* You found the Toy Knife./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = "* It's TORIEL's diary.&* Read the circled passage?& Yes No \C" - global.msg[1] = " " - break - case 525: - if (global.choice == 0) - { - global.msg[0] = "* You read the passage.../" - global.msg[1] = "* " + chr(34) + "Why did the skeleton want& a friend?" + chr(34) + "/" - global.msg[2] = "" + chr(34) + "* Because she was feeling& BONELY..." + chr(34) + "/" - global.msg[3] = "* The rest of the page is& filled with jokes of& a similar caliber./%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& butterscotch-cinnamon& pie./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& snail pie.../%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - break - case 527: - global.msg[0] = "* Hello there^1,& little one!/" - global.msg[1] = "* The pie has not& cooled down yet./" - global.msg[2] = "* Perhaps you should& take a nap.& Yes No \C " - global.msg[3] = " " - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = "* Sweet dreams./%%" - else - { - global.msg[0] = "\E1* You'd rather stay& up and chat with& me^1, then?/" - if (global.flag[103] > 0) - global.msg[0] = "* Up already^1, I see?/" - global.msg[1] = "\E0* Um^1, I want you to know& how glad I am to& have someone here./" - global.msg[2] = "* There are so many& old books I want& to share./" - global.msg[3] = "* I want to show you& my favorite bug-& hunting spot./" - global.msg[4] = "* I've also prepared& a curriculum for& your education./" - global.msg[5] = "* This may come as& a surprise to you.../" - global.msg[6] = "* But I have always& wanted to be a& teacher./" - global.msg[7] = "\E1* ... actually^1, perhaps& that isn't very& surprising./" - global.msg[8] = "\E5* STILL./" - global.msg[9] = "\E0* I am glad to have& you living here./" - global.msg[10] = "\E1* Oh^1, did you& want something?/" - global.msg[11] = "* What is it?& When can& Nothing I go home?\C " - global.msg[12] = " " - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = "* Well^1, talk to me& again if you& need anything./%%" - else - { - global.msg[0] = "\E1* What^1?&* This..^1. this IS your& home now./" - global.msg[1] = "* Um..^1. would you like& to hear about this& book I am reading?/" - if (global.choice == -1) - { - global.msg[0] = "\E0* Oh^1, hello!/" - global.msg[1] = "* Did you want to& hear about the& book I am reading?/" - } - global.msg[2] = "\E0* It is called& " + chr(34) + "72 Uses for Snails." + chr(34) + "/" - global.msg[3] = "* How about it?& How to exit& Sure the RUINS\C " - global.msg[4] = " " - } - break - case 530: - global.plot = 19.3 - global.msg[0] = "* Here is an exciting& snail fact./" - if (global.choice == 1) - global.msg[0] = "\E1* Um^1.^1.^1.&*\E0 How about an exciting& snail fact?/" - global.msg[1] = "\E2* Did you know& that snails.../" - r = round(random(3)) - if (r == 0) - global.msg[2] = "\E0* Have a chainsaw-like& tongue called a& radula?/" - if (r == 1) - global.msg[2] = "\E0* Sometimes flip their& digestive systems& as they mature?/" - if (r == 2) - global.msg[2] = "\E0* Make terrible& shoelaces?/" - if (r == 3) - global.msg[2] = "\E0* Talk^2. Really^2. Slowly^2?&* Just kidding^1, snails& don't talk./" - global.msg[3] = "\E0* Interesting.& How to exit& Yeah the RUINS\C " - global.msg[4] = " " - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = "* Well^1, bother me& if you need anything& else./%%" - else - { - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something^1.&* Stay here./%%" - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = "\E0* What is it?& How to exit& Nothing the RUINS\C " - } - global.msg[1] = " " - break - case 532: - if (global.choice == 0) - global.msg[0] = "* If you need anything^1,& just ask./%%" - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something.&* Stay here./%%." - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = " " - break - case 540: - global.msg[0] = "\E2NYOO HOO HOO.../" - global.msg[1] = "I CAN'T EVEN&STOP SOMEONE AS&WEAK AS YOU.../" - global.msg[2] = "UNDYNE'S GOING TO&BE DISAPPOINTED&IN ME./" - global.msg[3] = "I'LL NEVER JOIN THE&ROYAL GUARD..^1.&AND.../" - global.msg[4] = "MY FRIEND QUANTITY&WILL REMAIN&STAGNANT!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (What should you say?)& Let's be What a& friends loser\C" - global.msg[7] = " " - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = "\E0WOWIE!^1!&YOU DID IT!!!/" - global.msg[1] = "YOU DIDN'T DO A&VIOLENCE!!!/" - global.msg[2] = "\E5TO BE HONEST^1,&I WAS A LITTLE&AFRAID.../" - global.msg[3] = "\E0BUT YOU'RE ALREADY&BECOMING A GREAT&PERSON!/" - global.msg[4] = "\E7I'M SO PROUD I&COULD CRY!!!/" - global.msg[5] = "\E3... WAIT^1, WASN'T I&SUPPOSED TO&CAPTURE YOU...?/" - global.msg[6] = "\E0WELL^1, FORGET IT!/" - global.msg[7] = "I JUST WANT YOU&TO BE THE BEST&PERSON YOU CAN BE./" - global.msg[8] = "SO LET'S LET&BYBONES BE&BYBONES./" - global.msg[9] = "I'LL EVEN TELL YOU&HOW TO LEAVE THE&UNDERGROUND!/" - global.msg[10] = "JUST KEEP GOING&EAST!/" - global.msg[11] = "EVENTUALLY YOU'LL&REACH THE KING'S&CASTLE./" - global.msg[12] = "THEN YOU CAN&LEAVE!/%%" - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "REALLY!^1?&YOU WANT TO BE&FRIENDS^1, WITH ME???/" - global.msg[2] = "WELL THEN.../" - global.msg[3] = "\E0I GUESS..^1./" - global.msg[4] = "I GUESS&I CAN MAKE AN&ALLOWANCE FOR YOU!/" - global.msg[5] = " %" - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "HUH^1?&WHY WOULD YOU.../" - global.msg[2] = "BERATE YOURSELF&SO LOUDLY???/" - global.msg[3] = "IS IT BECAUSE.../" - global.msg[4] = "\E3YOU DON'T THINK&YOU'RE GOOD ENOUGH&TO BE MY FRIEND?/" - global.msg[5] = "\E0NO!!^1!&YOU'RE GREAT!!^1!&I'LL BE YOUR FRIEND!/" - } - if (global.flag[66] == 1) - { - global.msg[6] = "WOWIE!^1!&WE HAVEN'T EVEN HAD&OUR FIRST DATE.../" - global.msg[7] = "AND I'VE ALREADY&MANAGED TO HIT&THE FRIEND ZONE!!!/" - global.msg[8] = "WHO KNEW THAT&ALL I NEEDED TO&MAKE PALS.../" - } - else - { - global.msg[6] = "WOW!!!/" - global.msg[7] = "I HAVE FRIENDS!!!/" - global.msg[8] = "AND WHO KNEW THAT&ALL I NEEDED TO&MAKE THEM.../" - } - global.msg[9] = "WAS TO GIVE PEOPLE&AWFUL PUZZLES AND&THEN FIGHT THEM??/" - global.msg[10] = "YOU TAUGHT ME A&LOT^1, HUMAN./" - global.msg[11] = "I HEREBY GRANT&YOU PERMISSION&TO PASS THROUGH!/" - global.msg[12] = "AND I'LL GIVE&YOU DIRECTIONS&TO THE SURFACE./" - global.msg[13] = "CONTINUE FORWARD&UNTIL YOU REACH THE&END OF THE CAVERN./" - global.msg[14] = "\WTHEN..^1. WHEN YOU&REACH THE CAPITAL^1,&CROSS \YTHE BARRIER\W./" - global.msg[15] = "THAT'S THE MAGICAL&SEAL TRAPPING US&ALL UNDERGROUND./" - global.msg[16] = "ANYTHING CAN ENTER&THROUGH IT^1, BUT&NOTHING CAN EXIT.../" - global.msg[17] = "... EXCEPT SOMEONE&WITH A POWERFUL&SOUL./" - global.msg[18] = "... LIKE YOU!!!/" - global.msg[19] = "THAT'S WHY THE&KING WANTS TO&ACQUIRE A HUMAN./" - global.msg[20] = "HE WANTS TO OPEN&THE BARRIER WITH&SOUL POWER./" - global.msg[21] = "THEN US MONSTERS&CAN RETURN TO&THE SURFACE!/%%" - break - case 544: - global.msg[0] = "YOU'RE BACK AGAIN?!?!/" - global.msg[1] = "I FINALLY REALIZE&THE TRUE REASON WHY./" - global.msg[2] = "YOU.../" - global.msg[3] = "JUST MISS SEEING MY&FACE SO MUCH.../" - global.msg[4] = "I'M NOT SURE I&CAN FIGHT SOMEONE&WHO FEELS THIS WAY./" - global.msg[5] = "BUT MOSTLY..^1. I'M GETTING&REALLY TIRED OF&CAPTURING YOU!/" - global.msg[6] = "SO..^1.&WHAT DO YOU SAY?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* (Fight Papyrus?)& & Yes No\C" - global.msg[8] = " " - break - case 545: - global.msg[0] = "\TP %" - if (global.choice == 0) - { - global.msg[1] = "OKAY.../" - global.msg[2] = "I GUESS./" - global.msg[3] = "IF YOU WANT ME TO&CAPTURE YOU./" - global.msg[4] = "I'LL TRY AGAIN!!!/%%" - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = "... OKAY.../" - global.msg[2] = "I GUESS I'LL ACCEPT&MY FAILURE.../%%" - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = "* Welcome to Snowed Inn^1!&* Snowdin's premier hotel!/" - global.msg[1] = "* One night is 80G.& & Stay Leave\C" - if (global.flag[72] == 2) - { - global.msg[0] = "* Back again^1?&* Well^1, stay as long as you& like./" - global.msg[1] = "* How about it?& & Stay Leave\C" - } - global.msg[2] = " " - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = "* What^1?&* No^1, you can't get a& second key!" - if (global.flag[7] == 1) - { - global.msg[0] = "* Hello^1!&* Sorry^1, no time for a& nap.../" - global.msg[1] = "* Snowed Inn is shutting& down so we can all go& to the surface./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Oh^1, there you are^1.&* I was worrying about& you!/" - global.msg[1] = "* Things are going to be OK^1,& you hear?/" - global.msg[2] = "* We're all going to the& surface world soon.../" - global.msg[3] = "* There's bound to be a& place you can stay there!/%%" - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = "Error./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = "* ... You don't even have 80G?/" - global.msg[1] = "* Oh^1! You poor thing^1.&* I can only imagine what& you've been through./" - global.msg[2] = "* One of the rooms upstairs& is empty^1./" - global.msg[3] = "* You can sleep there for& free^1, okay?/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = "* You aren't carrying enough& money./%%" - } - else - global.msg[0] = "* Well^1, feel free to come& back any time./%%" - break - case 549: - global.msg[0] = "* (Look through the telescope?)& & Yes No\C" - global.msg[1] = " " - break - case 550: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = "* i'm thinking about& getting into the& telescope business./" - global.msg[1] = "* it's normally 50000G& to use this premium& telescope.../" - global.msg[2] = "* but..^1.&*\E1 since i know you^1,& you can use it for free./" - global.msg[3] = "\E2* howzabout it?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Use the telescope?)& & Yes No\C" - } - else - { - global.msg[0] = "* huh^1?&* you aren't satisfied?/" - global.msg[1] = "\E1* don't worry./" - global.msg[2] = "\E2* i'll give you a& full refund./%%" - } - global.msg[6] = " " - break - case 552: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = "* well^1, come back& whenever you want./%%" - } - break - case 553: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - global.flag[75] = global.armor - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "\E3HOW DID I GET THIS&NUMBER...?/" - global.msg[4] = "\E0IT WAS EASY!!!/" - global.msg[5] = "\E0I JUST DIALED EVERYNUMBER SEQUENTIALLYUNTIL I GOT YOURS!!!/" - global.msg[6] = "NYEH HEH HEH HEH!!/" - global.msg[7] = "\E2SO..^1.&WHAT ARE YOU&WEARING...?/" - global.msg[8] = "\E3I'M..^1.&ASKING FOR A&FRIEND./" - global.msg[9] = (("\E0SHE THOUGHT SHE&SAW YOU WEARING A&" + armor) + "./") - global.msg[10] = (("\E3IS THAT TRUE^1?&ARE YOU WEARING A&" + armor) + "?/") - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* (What will you say?)& & Yes No\C" - global.msg[13] = " " - break - case 554: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = (("SO YOU ARE WEARING&A " + armor) + ".../") - global.msg[2] = "GOT IT!!^1!&WINK WINK!!!/" - global.msg[3] = "HAVE A NICE DAY!/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - } - else - { - global.flag[76] = 1 - global.msg[1] = (("SO YOU AREN'T&WEARING A&" + armor) + ".../") - global.msg[2] = "GOT IT!/" - global.msg[3] = "YOU'RE MY FRIEND^1,&SO I TRUST YOU&100-PERCENT./" - global.msg[4] = "HAVE A NICE DAY!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - break - case 556: - global.msg[0] = "* (There's an empty pie tin& inside the stove.)/%%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "\E0MY BROTHER ALWAYS&GOES OUT TO EAT^1.&BUT.../" - global.msg[2] = "\E3RECENTLY^1, HE TRIED&'BAKING' SOMETHING./" - global.msg[3] = "IT WAS LIKE..^1.&A QUICHE./" - global.msg[4] = "BUT FILLED WITH A&SUGARY^1, NON-EGG&SUBSTANCE./" - global.msg[5] = "\E0HOW ABSURD!/%%" - } - break - case 557: - global.msg[0] = "* (It's a joke book.)/" - global.msg[1] = "* (Take a look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 558: - if (global.choice == 0) - { - global.msg[0] = "* (Inside the joke book was& a quantum physics book.)/" - global.msg[1] = "* (You look inside...)/" - global.msg[2] = "* (Inside the quantum physics& book was another joke& book.)/" - global.msg[3] = "* (You look inside...)/" - global.msg[4] = "* (There's another quantum& physics book...)/" - global.msg[5] = "* (You decide to stop.)/%%" - } - else - global.msg[0] = " %%" - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THAT'S MY ROOM^1!/" - global.msg[2] = "IF YOU'VE&FINISHED LOOKING&AROUND.../" - global.msg[3] = "WE COULD GO IN&AND.../" - global.msg[4] = "" + chr(34) + "HANG-OUT" + chr(34) + " LIKE&A PAIR OF VERY&COOL FRIENDS?/" - if (global.flag[66] == 1) - global.msg[4] = "\E3DO WHATEVER&PEOPLE DO WHEN&THEY DATE???/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Go inside?)& & Yes No\C" - global.msg[7] = " %" - } - else - { - global.msg[0] = "* (It's the door to& Papyrus's room.)/" - global.msg[1] = "* (It's covered in many& labels...)/" - global.msg[2] = "\TP %" - global.msg[3] = "* (NO GIRLS ALLOWED!)/" - global.msg[4] = "* (NO BOYS ALLOWED!)/" - global.msg[5] = "* (PAPYRUS ALLOWED.)/%%" - } - break - case 560: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THERE ARE NO&SKELETONS INSIDE&MY CLOSET!!!/" - global.msg[2] = "\E3EXCEPT ME&SOMETIMES./" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Look in the closet?)& & Yes No\C" - global.msg[5] = " " - } - else - { - global.msg[0] = "* (Look in the closet?)& & Yes No\C" - global.msg[1] = " " - } - break - case 562: - if (global.choice == 0) - global.msg[0] = "* (Clothes are hung up& neatly inside.)/%%" - else - { - global.msg[0] = " %%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "IT'S OK TO BE&INTIMIDATED BY&MY FASHION SENSE./%%" - } - } - break - case 563: - global.msg[0] = "\E3SO^1, UM.../" - global.msg[1] = "\E3IF YOU'VE SEEN&EVERYTHING.../" - global.msg[2] = "\E2DO YOU WANT TO&START HANGING OUT?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the hangouts?)& & Yes No\C" - global.msg[5] = " " - if (global.flag[66] == 1) - { - global.msg[2] = "\E2DO YOU WANT TO&START THE DATE?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the date?)& & Yes No\C" - global.msg[5] = " " - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = "\E0OKAY!!^1!&DATING START!!!/%%" - if (global.flag[66] == 0) - global.msg[1] = "\E0OKAY!!^1!&LET'S HANG TEN!!/%%" - } - else - { - scr_papface(0, 2) - global.msg[1] = "\E2TAKE YOUR TIME..^1.&I'LL WAIT FOR&YOU./%%" - } - break - case 565: - global.msg[0] = "* (This mailbox is labelled& " + chr(34) + "PAPYRUS" + chr(34) + ".)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 566: - if (global.choice == 0) - global.msg[0] = "* (It's empty.)/%%" - else - global.msg[0] = "* (You realize that would& probably be illegal.)/%%" - break - case 567: - global.msg[0] = "* what^1?&* haven't you seen a guy& with two jobs before?/" - global.msg[1] = "\E1* fortunately^1, two jobs& means twice as many& legally-required breaks./" - global.msg[2] = "\E0* i'm going to grillby's.&* wanna come?& Yeah I'm busy \C" - global.msg[3] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - if (scr_murderlv() >= 7) - { - global.msg[0] = "\E2* hey^1, looks like you're& really turning yourself& around./" - global.msg[1] = "\E0* how about i treat you& to lunch at grillby's?/" - global.msg[2] = "\E1* ... when everyone you& scared away comes& back^1, i mean./%%" - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = "* well^1, if you insist..^1.&* i'll pry myself away& from my work.../%%" - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* OK^1. have fun./%%" - break - case 570: - global.msg[0] = "\E1* whoops^1, watch where& you sit down./" - global.msg[1] = "* sometimes weirdos put& whoopee cushions on& the seats./" - global.msg[2] = "\E0* anyway^1, let's order./" - global.msg[3] = "* whaddya want...?& & Fries Burger\C" - global.msg[4] = " " - break - case 571: - global.msg[0] = "* ok^1, coming right up./%%" - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& fries./%%" - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& burg./%%" - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = "* so^1, what do you& think.../" - global.msg[1] = "* of my brother?& & Cool Uncool\C" - global.msg[2] = " " - break - case 573: - if (global.choice == 0) - { - global.msg[0] = "* of course he's cool./" - global.msg[1] = "\E1* you'd be cool too& if you wore that& outfit every day./" - global.msg[2] = "\E0* he'd only take that& thing off if he& absolutely had to./" - global.msg[3] = "* oh well^1.&* at least he washes& it./" - global.msg[4] = "\E1* and by that i mean& he wears it in& the shower./%%" - } - else - { - global.msg[0] = "* hey^1, pal./" - global.msg[1] = "\E1* sarcasm isn't funny^1,& okay?/" - global.msg[2] = "\E0* my brother's a real& star./" - global.msg[3] = "* he's the person who& pushed me to get& this sentry job./" - global.msg[4] = "* maybe it's a little& strange^1, but& sometimes.../" - global.msg[5] = "* ... it's nice to have& someone call you out& on being lazy./" - global.msg[6] = "\E1* even though nothing& could be further& from the truth./%%" - } - break - case 574: - global.msg[0] = "* here comes the grub./" - global.msg[1] = "* want some ketchup^1?& & Yes No \C" - global.msg[2] = " " - break - case 575: - if (global.choice == 0) - global.msg[0] = "\E2* bone appetit./%%" - else - { - global.msg[0] = "\E2* more for me./%%" - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = "\W* have you ever heard& of a \Ytalking flower\W?& Yes No \C" - global.msg[1] = " " - break - case 577: - if (global.choice == 0) - global.msg[0] = "\E1* so you know all& about it./" - if (global.choice == 1) - global.msg[0] = "\E1* i'll tell you^1, then./" - global.msg[1] = "\W*\E0 the \Becho flower\W./" - global.msg[2] = "* they're all over the& marsh./" - global.msg[3] = "* say something to them^1,& and they'll repeat it& over and over.../" - global.msg[4] = "* what about it?/" - global.msg[5] = "* well^1, papyrus told& me something interesting& the other day./" - global.msg[6] = "* sometimes^1, when no& one else is around.../" - global.msg[7] = "* a flower appears and& whispers things to& him./" - global.msg[8] = "* flattery..^1.&* advice..^1.&* encouragement.../" - global.msg[9] = "* ... predictions./" - global.msg[10] = "* weird^1, huh?/" - global.msg[11] = "* someone must be using& an echo flower to& play a trick on him./" - global.msg[12] = "* keep an eye out^1, ok?/" - global.msg[13] = "* thanks./%%" - break - case 578: - global.msg[0] = "\E1* oh^1, by the way.../" - global.msg[1] = "\E0* i'm flat broke^1.&* can you foot the& bill?/" - global.msg[2] = "* it's just 10000G.& & Yes No \C" - global.msg[3] = " " - break - case 579: - global.msg[0] = " %%" - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = "* My mind is running wild^1!&* I haven't felt like this& in a long time.../%%" - if (global.flag[84] == 5) - global.msg[0] = "* Please leave./%%" - if (global.flag[84] < 2) - { - global.msg[0] = "* You..^1.&* You came from outside^1,& didn't you?/" - global.msg[1] = "* People like you are so& rare.../" - global.msg[2] = "* Please^1!* Stranger!/" - global.msg[3] = "* Tell me about outside...?& & Yes No\C" - global.msg[4] = " " - } - if (global.flag[84] == 2) - global.msg[0] = "* Well^1, what are you& waiting for?/%%" - if (global.flag[84] == 3) - { - global.msg[0] = "* Oh^1!&* You're back!/" - global.msg[1] = "* How's the room?& & Different Same\C" - global.msg[2] = " " - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = "* Huh^1?&* " + chr(34) + "SURFACE" + chr(34) + "^1?&* What do you mean?/" - global.msg[1] = "* I just meant outside this& room./" - global.msg[2] = "* If you haven't noticed^1, my& mycelium have bound me& to the ground./" - global.msg[3] = "* Please^1!&* Stranger!/" - global.msg[4] = "* I'll make this simple./" - global.msg[5] = "* I've spent my whole life& in the same spot^1,& in the same room./" - global.msg[6] = "* But I've long wondered& what lies inside the& room to the right./" - global.msg[7] = "* Long I've fantasized& about entering^1, and& changing my scenery.../" - global.msg[8] = "* No..^1.&* Changing my LIFE!/" - global.msg[9] = "* Please^1.&* Go and tell me what's& inside./%%" - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* Is everyone out there& like you^1?&* How terrible./%%" - } - else - { - if (global.choice == 0) - { - global.msg[0] = "* Oh^1, that's a relief^1!/" - global.msg[1] = "* That's all I need to& continue my fantasies^1.&* Thank you^1, stranger./%%" - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = "* So it's the same./" - global.msg[1] = "* The same.../" - global.msg[2] = "* Same.../" - global.msg[3] = "* .../" - global.msg[4] = "* OK./%%" - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = "* (Take an umbrella?)& & Take one Do not\C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (Return the umbrella?)& & Put back Do not\C" - global.msg[1] = " " - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You took an umbrella.)/%%" - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = " %%" - } - else if (global.choice == 0) - { - global.msg[0] = "* (You returned the umbrella.)/%%" - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 585: - global.msg[0] = "* (It's a statue^1.)&* (The structures at its& feet seem dry.)/%%" - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = "* (Put the umbrella on the& statue?)& Yes Do not\C" - global.msg[1] = " " - } - if (global.flag[86] == 1) - global.msg[0] = "* (The music continues^1, and& doesn't stop.)/%%" - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You place the umbrella& atop the statue.)/" - global.msg[1] = "* (Inside the statue^1, a music& box begins to play...)/%%" - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 587: - global.msg[0] = "* (It's a rusty old& fridge.)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 588: - if (global.choice == 0) - { - global.msg[0] = "* (You open the fridge.^1)&* (The air fills with a& rotten stench.)/" - global.msg[1] = "* (All the food inside here& spoiled long ago.)/%%" - } - else - global.msg[0] = " %%" - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = "* error/%%" - if (global.flag[108] > 2) - global.msg[0] = "* (The cooler is empty.)/%%" - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = "* (Take a space food bar& from the cooler?)& Yes No \C" - global.msg[1] = " " - } - if (global.flag[108] == 0) - { - global.msg[0] = "* (It's a cooler^1.&* It has no brand^1, and& shows no signs of wear...)/" - global.msg[1] = "* (Inside are a couple& of freeze-dried space& food bars.)/" - global.msg[2] = "* (Take one?)& & Yes No \C" - global.msg[3] = " " - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = "* (You got the Astronaut Food.)/%%" - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* %%" - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = "* (Seems like a regular& training dummy.)/" - global.msg[1] = "* (Do you want to beat it& up?)& Yes No \C" - global.msg[2] = " " - } - else - global.msg[0] = "* (You've had enough of& the dummy.)/%%" - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = "* (You tap the dummy with& your fist.)/" - global.msg[1] = "* (You feel bad.)/%%" - } - if (global.lv > 1) - { - global.msg[0] = "* (You hit the dummy& lightly.)/" - global.msg[1] = "* (You don't feel like& you learned anything.)/%%" - } - if (global.lv > 4) - { - global.msg[0] = "* (You sock the dummy.)/" - global.msg[1] = "* (Who cares?)/%%" - } - if (global.lv > 7) - { - global.msg[0] = "* (You punch the dummy at& full force.)/" - global.msg[1] = "* (Feels good.)/%%" - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = "* (You stare into each& other's eyes for a& moment...)/%%" - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = "* (It's a horse stable.)/" - global.msg[1] = "* (Do you want to go& inside?)& Yes No \C" - global.msg[2] = " " - break - case 594: - if (global.choice == 0) - { - global.msg[0] = "* (You jostle the door.)&* (It's locked.)/" - global.msg[1] = "* (Suddenly^1, from inside& the [redacted], you hear a&/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 1) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* (Spooktunes are dead.)/%%" - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 608: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 2) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 610: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 3) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 612: - global.msg[0] = "* (Look inside the fridge?)& & Open it No\C" - global.msg[1] = " " - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = "* (There's a lonely sandwich& inside.)/%%" - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = "* (It's empty.)/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 615: - global.msg[0] = "* this is a ghost sandwich.../" - global.msg[1] = "* do you want to try it...& & Yes No\C" - global.msg[2] = " " - break - case 616: - if (global.choice == 0) - { - global.msg[0] = "* (You attempt to bite& into the ghost sandwich.)/" - global.msg[1] = "* (You phase right through& it...)/" - global.msg[2] = "* oh.../" - global.msg[3] = "* nevermind.../%%" - } - if (global.choice == 1) - global.msg[0] = "* oh.....................& ....................& ................./%%" - break - case 617: - global.msg[0] = "* after a great meal i like& to lie on the ground and& feel like garbage.../" - global.msg[1] = "* it's a family tradition.../" - global.msg[2] = "* do you want..^1.&* ... to join me...& Yes No\C" - global.msg[3] = " " - break - case 618: - if (global.choice == 0) - global.msg[0] = "* okay..^1.&* follow my lead.../%%" - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = "* oh.....................& ....................& ................./%%" - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = "* do you want to play a game^1?&* it's called thundersnail./" - global.msg[1] = "* the snails will race^1, and if& the yellow snail wins^1, you& win./" - global.msg[2] = "* it's 10G to play.& & Play No\C" - global.msg[3] = " " - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = "* um..^1.&* you don't have any money?/" - global.msg[1] = "* n-no^1, you can still play^1,& don't worry about it.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = "* um..^1. that's less than 10G./" - global.msg[1] = "* but since you're my only& real customer^1, i guess i'll& just take what you have.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[1] = "* ready?/%%" - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* oh.........../%%" - break - case 621: - global.msg[0] = "* .../" - global.msg[1] = "* Seven./" - global.msg[2] = "* Seven human souls./" - global.msg[3] = "* With the power of seven& human souls^1, our king.../" - global.msg[4] = "\W* \YKing \RASGORE \YDreemurr\W.../" - global.msg[5] = "* ... will become a god./" - global.msg[6] = "\W* With that power^1, \RASGORE\W & can finally shatter the& barrier./" - global.msg[7] = "* He will finally take the& surface back from humanity.../" - global.msg[8] = "* And give them back the& suffering and pain that& we have endured./" - global.msg[9] = "* .../" - global.msg[10] = "* Understand^1, human?/" - global.msg[11] = "* This is your only chance& at redemption./" - global.msg[12] = "* Give up your soul.../" - global.msg[13] = "* Or I'll tear it from& your body./%%" - break - case 622: - if (global.choice == 0) - { - global.msg[0] = "* That spark in your eyes.../" - global.msg[1] = "* You're really eager to& die^1, aren't you?/%%" - } - if (global.choice == 1) - global.msg[0] = "* .../%%" - break - case 623: - global.msg[0] = "* Yo^1, I know I'm not supposed& to be here^1, but.../" - global.msg[1] = "* I wanna ask you something./" - global.msg[2] = "* .../" - global.msg[3] = "* Man^1, I've never had to ask& anyone this before.../" - global.msg[4] = "* Umm.../" - global.msg[5] = "* Yo..^1. You're human^1, right?&* Haha./" - global.msg[6] = "* Man^1! I knew it!/" - global.msg[7] = "* ... well^1, I know it now^1,& I mean.../" - global.msg[8] = "* Undyne told me^1, um^1, " + chr(34) + "stay& away from that human." + chr(34) + "/" - global.msg[9] = "* So^1, like^1, ummm.../" - global.msg[10] = "* I guess that makes us enemies& or something./" - global.msg[11] = "* But I kinda stink at that^1,& haha./" - global.msg[12] = "* Yo^1, say something mean so& I can hate you?/" - global.msg[13] = "* Please? & & Yes No \C" - global.msg[14] = " " - break - case 624: - if (global.choice == 0) - { - global.msg[0] = "* Huh...?/" - global.msg[1] = "* Yo^1, that's your idea of& something mean?/" - global.msg[2] = "* My sister says that to me& ALL THE TIME!/" - global.msg[3] = "* Guess I have to do it^1, haha./" - global.msg[4] = "* Yo^1, I..^1. I hate your guts./" - global.msg[5] = "* .../" - global.msg[6] = "* Man^1, I..^1. I'm such a turd./" - global.msg[7] = "* I'm..^1. I'm gonna go home& now./%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Yo^1, what^1?&* So I have to do it?/" - global.msg[1] = "* Here goes nothing.../" - global.msg[2] = "* Yo^1, I..^1. I hate your guts./" - global.msg[3] = "* .../" - global.msg[4] = "* Man^1, I..^1. I'm such a turd./" - global.msg[5] = "* I'm..^1. I'm gonna go home& now./%%" - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = "* (It's a water cooler.)&* (Take a cup of water?)& Yes No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There's no more water left& in the cooler.)/%%" - if instance_exists(obj_undynefall) - global.msg[0] = "* (Sadistically^1, you've poured& out all the water right in& front of Undyne's eyes.)/%%" - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = "* (You take a cup of water.)/%%" - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 627: - global.msg[0] = "* (Get rid of the water?)& & Yes No \C" - global.msg[1] = " " - break - case 628: - if (global.choice == 0) - { - global.msg[0] = "* (You pour the water on& the ground next to the& water cooler.)/%%" - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 629: - global.msg[0] = "* A rousing error./%%" - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = "* (Give Undyne the water?)& & Yes No \C" - global.msg[1] = " " - } - else - global.msg[0] = "* (She looks dry...)/%%" - } - break - case 630: - global.msg[0] = " %%" - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = "BEPIS." - armor2 = "BEPIS." - if (global.flag[75] == 4) - armor1 = "GROSS BANDAGE" - if (global.flag[75] == 12) - armor1 = "FADED RIBBON" - if (global.flag[75] == 15) - armor1 = "BANDANNA" - if (global.flag[75] == 24) - armor1 = "DUSTY TUTU" - if (global.flag[77] == 4) - armor2 = "GROSS BANDAGE" - if (global.flag[77] == 12) - armor2 = "FADED RIBBON" - if (global.flag[77] == 15) - armor2 = "BANDANNA" - if (global.flag[77] == 24) - armor2 = "DUSTY TUTU" - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "REMEMBER WHEN&I ASKED YOU&ABOUT CLOTHES?/" - global.msg[4] = "\E3WELL^1, THE FRIEND&WHO WANTED TO&KNOW.../" - global.msg[5] = "\E0HER OPINION OF&YOU IS VERY.../" - global.msg[6] = "\E3MURDERY./" - global.msg[7] = "\E0ERROR!!^1!&SEE YOU LATER!/%%" - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I TOLD HER WHAT&YOU TOLD ME&YOU WERE WEARING!/" - global.msg[10] = (("A " + armor1) + "!/") - global.msg[11] = "BECAUSE I KNEW^1,&OF COURSE.../" - global.msg[12] = "\E3AFTER SUCH A&SUSPICIOUS&QUESTION.../" - global.msg[13] = "\E0YOU WOULD&OBVIOUSLY CHANGE&YOUR CLOTHES!/" - global.msg[14] = "YOU'RE SUCH A&SMART COOKIE!/" - global.msg[15] = "THIS WAY YOU'RE&SAFE AND I&DIDN'T LIE!!!/" - global.msg[16] = "NO BETRAYAL&ANYWHERE!!!/" - global.msg[17] = "BEING FRIENDS&WITH EVERYONE&IS EASY!!!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = "\E3I AM NOT A&CRUEL PERSON./" - global.msg[10] = "\E0I STRIVE TO BE&COMFORTING AND&PLEASANT./" - global.msg[11] = "PAPYRUS!&HE SMELLS LIKE&THE MOON./" - global.msg[12] = "SO, BECAUSE OF&MY INHERENT&GOODNESS.../" - global.msg[13] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[14] = "\E3EVEN THOUGH YOU&TOLD ME YOU&WERE!/" - global.msg[15] = "INSTEAD^1, I MADE&SOMETHING UP!/" - global.msg[16] = "I TOLD HER YOU&WERE WEARING.../" - global.msg[17] = (("\E0A " + armor2) + "./") - global.msg[18] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[19] = (("I KNOW YOU WOULD&NEVER EVER WEAR&A " + armor2) + "./") - global.msg[20] = "\E0BUT YOUR SAFETY&IS MORE IMPORTANT&THAN FASHION./" - global.msg[21] = "\E3DANG!/" - global.msg[22] = "I JUST WANT TO&BE FRIENDS WITH&EVERYONE.../" - global.msg[23] = "\TS \F0 \T0 %" - global.msg[24] = "* Click.../%%" - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "\E3PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = (("\WY\E0OU SAID YOU WERE\Y &NOT WEARING A&" + armor1) + "\W./") - global.msg[10] = "\E3SO OF COURSE&I ACTUALLY&TOLD HER.../" - global.msg[11] = (("\E0YOU WERE&INDEED WEARING&A " + armor1) + "!/") - global.msg[12] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[13] = (("BUT SINCE YOU&AREN'T WEARING&A " + armor1) + "./") - global.msg[14] = "\E0SHE SURELY&WON'T ATTACK&YOU!/" - global.msg[15] = "NOW YOU ARE&SAFE AND SOUND./" - global.msg[16] = "\E2WOWIE..^1.&THIS IS HARD./" - global.msg[17] = "I JUST WANT TO&BE EVERYBODY'S&FRIEND!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I KNEW WHEN&YOU SAID:/" - global.msg[10] = (('\E3"I AM NOT&WEARING A&' + armor1) + '."/') - global.msg[11] = "\E0IT WAS REALLY&A SECRET CODE!/" - global.msg[12] = "\E3YOU REALLY&MEANT.../" - global.msg[13] = (('\E0"I ACTUALLY AM&WEARING&A ' + armor1) + '!"/') - global.msg[14] = "YOU WERE TRYING&TO PROTECT&YOURSELF.../" - global.msg[15] = "WHILE MAKING IT&SO I DIDN'T&HAVE TO LIE!/" - global.msg[16] = "I PICKED UP ON&THIS, AND FOLLOWED&YOUR PLAN./" - global.msg[17] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[18] = "IN FACT I TOOK&IT ONE STEP&FURTHER!/" - global.msg[19] = "\E3I TOLD HER YOU&WERE PROBABLY.../" - global.msg[20] = (("\E0WEARING A&" + armor2) + "!/") - global.msg[21] = "\E3OF COURSE, YOU&WOULD NEVER&WEAR THAT./" - global.msg[22] = "\E0BUT THAT'S THE&POINT!/" - global.msg[23] = "SHE WON'T&RECOGNIZE YOU&NOW!/" - global.msg[24] = "AND I DIDN'T&HAVE TO BETRAY&EITHER OF YOU!/" - global.msg[25] = "SINCE I JUST&TOLD HER WHAT&YOU SAID!/" - global.msg[26] = "WOWIE^1!&YOU'RE SUCH A&SMART COOKIE!/" - global.msg[27] = "I REALLY CAN&BE FRIENDS WITH&EVERYONE!!!/" - global.msg[28] = "\TS \F0 \T0 %" - global.msg[29] = "* Click.../%%" - } - } - break - case 633: - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HEY^1!&WHAT'S UP!?/" - global.msg[3] = "I WAS JUST&THINKING.../" - global.msg[4] = "YOU^1, ME^1, AND&UNDYNE SHOULD ALL&HANG OUT SOMETIME!/" - global.msg[5] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE&LATER!/" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - if (global.flag[88] < 3) - { - global.msg[5] = "AFTER YOU HANG&OUT WITH ME.../" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE!/" - global.msg[7] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - } - break - case 635: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 636: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 637: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 638: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 639: - global.msg[0] = "* (It's a book labelled& Monster History Part 7.)& Read it Do not\C" - global.msg[1] = " " - break - case 640: - global.msg[0] = "* When a human dies^1, its& soul remains stable& outside the body./" - global.msg[1] = "* Meanwhile^1, a monster's soul& disappears near-instantly& upon death./" - global.msg[2] = "* This allows monsters to& absorb the souls of& humans.../" - global.msg[3] = "* While it is extremely& difficult for humans to& absorb a monster's soul./" - global.msg[4] = "* This is why they feared us./" - global.msg[5] = "* Though monsters are weak^1,& with enough human souls.../" - global.msg[6] = "* They could easily destroy& all of mankind./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 641: - global.msg[0] = "* (It's a book labelled& Monster History Part 8.)& Read it Do not\C" - global.msg[1] = " " - break - case 642: - global.msg[0] = "* There is one exception& to the aforementioned& rules:/" - global.msg[1] = "* A certain type of monster^1,& the " + chr(34) + "boss" + chr(34) + " monster./" - global.msg[2] = "* Due to its life cycle^1, it& possesses an incredibly& strong soul for a monster./" - global.msg[3] = "* This soul can remain& stable after death^1, if& only for a few moments./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 643: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 644: - global.msg[0] = "* (You look inside a book.)/" - global.msg[1] = "* (It's a comic of a giant& robot fighting a beautiful& alien princess.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 645: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 646: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (Two scantily-clad chefs are& flinging energy pancakes& at each other.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 647: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 648: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (A hideous android is running& to school with toast in& its mouth.)/" - global.msg[2] = "* (Seems like it's late.)/" - global.msg[3] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 660: - global.msg[0] = "* (There's a piano here.^1)&* (Play it?)& Yes No\C" - global.msg[1] = " " - break - case 661: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = "See that heart^1? &That is your SOUL^1,&the very culmination&of your being!/" - global.msg[1] = "Your SOUL starts off&weak^1, but can grow&strong if you gain&a lot of LV./" - global.msg[2] = "What's LV stand for^1?&Why^1, LOVE^1, of course!/" - global.msg[3] = "You want some&LOVE, don't you?/" - global.msg[4] = "Don't worry,&I'll share some&with you!/%" - break - case 667: - global.msg[0] = "Down here^1, LOVE is&shared through..^1./" - global.msg[1] = "Little white..^2.\E1 &" + chr(34) + "friendliness&pellets." + chr(34) + "/" - global.msg[2] = "\E2Are you ready\E0?/%" - break - case 668: - global.msg[0] = "Move around^1!&Get as many as&you can^2!%%%" - global.msg[1] = "%%%" - break - case 669: - global.msg[0] = "You idiot./" - global.msg[1] = "In this world^1, it's&kill or BE killed./" - global.msg[2] = "Why would ANYONE pass&up an opportunity&like this!?/%" - break - case 670: - global.msg[0] = "Die./%" - break - case 671: - global.msg[0] = "Hey buddy^1,&you missed them./" - global.msg[1] = "Let's try again^1,&okay?/%" - break - case 672: - global.msg[0] = "Is this a joke^2?&Are you braindead^2?&RUN^2. INTO^2. THE^2.&BULLETS!!!" - break - case 673: - global.msg[0] = "You know what's&going on here^1,&don't you?/" - global.msg[1] = "You just wanted to&see me suffer./%" - break - case 674: - global.msg[0] = "\E1What a terrible&creature^1, torturing&such a poor^1,&innocent youth.../" - global.msg[1] = "\E2Ah, do not be&afraid^1, my child./" - global.msg[2] = "\XI am \BTORIEL\X,&caretaker of&the \RRUINS\X./" - global.msg[3] = "I pass through this&place every day to&see if anyone has&fallen down./" - global.msg[4] = "You are the first&human to come here&in a long time./" - global.msg[5] = "I will do my best&to ensure your&protection during&your time here./%%" - global.msg[5] = "\E2Come^2!&I will guide you&through the&catacombs./%%" - global.msg[6] = "%%%" - break - case 680: - global.msg[0] = "* Three gold for the ferry.& & Yes No\C" - global.msg[1] = " " - break - case 681: - global.msg[0] = "* Later^1, then./%%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = "* Hop on!/%%" - } - break - case 682: - global.msg[0] = "* (It's a switch.)& & Press it Don't\C" - global.msg[1] = " " - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were deactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were reactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "\E1* Um.../" - global.msg[3] = "\E0* I noticed you've been& kind of quiet.../" - global.msg[4] = "\W*\E8 Are you w-worried& about meeting \RASGORE\W...?/" - global.msg[5] = "\E2* .../" - global.msg[6] = "\E0* W-well^1, don't worry^1,& okay?/" - global.msg[7] = "\E7* Th-the king is a& really nice guy.../" - global.msg[8] = "\E0* I'm sure you can& talk to him^1, and.../" - global.msg[9] = "* W-with your human& soul^1, you can pass& through the barrier!/" - global.msg[10] = "* S-so no worrying^1, OK^1?&* J-just forget about it& and smile./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* Click.../%%" - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = "* hey buddy^1, what's up^1?&* wanna buy a hot dog?/" - global.msg[1] = "* it's only 30G.& & Yes No \C" - global.msg[2] = " " - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = "* here^1.&* have fun./%%" - if (global.flag[380] == 1) - { - global.msg[0] = "* here's another hot& dog./" - global.msg[1] = "* it's on the house^1.&* well^1, no^1.&* it's on you./%%" - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = "* sorry^1, thirty is& the limit on& head-dogs./%%" - if (global.flag[381] == 0) - { - global.msg[0] = "\TS*^1 \Tsi'll be 'frank' with& you./" - global.msg[1] = "* as much as i like& putting hot dogs& on your head.../" - global.msg[2] = "* thirty is just& an excessive number./" - global.msg[3] = "* twenty-nine^1, now& that's fine^1, but& thirty.../" - global.msg[4] = "* does it look like& my arms can reach& that high?/%%" - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = "* thanks, kid^1.&* here's your hot dog./%%" - if (global.flag[379] == 0) - { - global.msg[0] = "* thanks, kid^1.&* here's your 'dog./" - global.msg[1] = "* yeah^1. 'dog^1.&* apostrophe-dog^1.&* it's short for hot-dog./%%" - } - if (global.flag[379] == 1) - { - global.msg[0] = "* another h'dog^1?&* here you go.../" - global.msg[1] = "* whoops^1, i'm actually& out of hot dogs./" - global.msg[2] = "* here^1, you can have& a hot cat instead./%%" - } - if (global.flag[379] == 2) - { - global.msg[0] = "* another dog^1, coming& right up.../" - global.msg[1] = "* ... you really like& hot animals^1, don't& you?/" - global.msg[2] = "* hey^1, i'm not judging./" - global.msg[3] = "* i'd be out of a job& without folks like you./%%" - } - if (global.flag[379] == 3) - { - global.msg[0] = "* cool^1.&* here's that ''dog./" - global.msg[1] = "* apostrophe-apostrophe& dog./" - global.msg[2] = "* it's short for& apostrophe-dog./" - global.msg[3] = "* which is^1, in turn^1,& short for.../%%" - } - if (global.flag[379] == 4) - { - global.msg[0] = "* another one^1?&* okay./" - global.msg[1] = "* careful^1.&* if you eat& too many hot dogs.../" - global.msg[2] = "* you'll probably get& huge like me./" - global.msg[3] = "* huge as in super-& popular^1, i mean./" - global.msg[4] = "* i'm practically& a hot-dog tycoon now./%%" - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = "* whoops^1, you don't have& enough cash./" - global.msg[1] = "* you should get a job^1.&* i've heard being a& sentry pays well./%%" - } - } - if (noroom == 1) - { - global.msg[0] = "* you're holding too much^1.&* ... guess i'll just put& it on your head./%%" - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* yeah^1, you've gotta& save your money for& college and spiders./%%" - break - case 690: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* L-looks like you& beat him!/" - global.msg[3] = "\E0* Y-you did a really& great job out there./" - global.msg[4] = " & All thanks& to you ... \C" - global.msg[5] = " " - break - case 691: - if (global.choice == 0) - { - global.msg[0] = "\E3* What^1?&* Oh no^1, I mean.../" - global.msg[1] = "\E4* You were the one& doing everything cool!/" - global.msg[2] = "\E0* I just wrote some& silly programs for& your phone./" - } - if (global.choice == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E2* .../" - global.msg[2] = "\E1* .../" - } - global.msg[3] = "\E2* .../" - global.msg[4] = "\E4* ... umm^1, h-hey^1, this& might sound strange^1,& but.../" - global.msg[5] = "\E6* ... c-can I tell& you something?/" - global.msg[6] = "\E9* .../" - global.msg[7] = "\E4* B-before I met you^1,& I d-didn't really.../" - global.msg[8] = "\E9* I didn't really& like myself very& much./" - global.msg[9] = "* For a long time^1,& I f-felt like a& total screw-up./" - global.msg[10] = "\E9* L-like I couldn't& do a-anything& w-without.../" - global.msg[11] = "\E9* W-without ending up& letting everyone& down./" - global.msg[12] = "\E3* B-but...!/" - global.msg[13] = "\E4* Guiding you has& made me feel.../" - global.msg[14] = "\E9* A lot better about& myself./" - global.msg[15] = "\E0* So... thanks for& letting me help& you./" - global.msg[16] = "\E9* .../" - global.msg[17] = "\E4* Uhhh^1, anyway^1, we're& almost to the CORE./" - global.msg[18] = "\E0* It's just past& MTT Resort./" - global.msg[19] = "\E6* Come on^1!&* Let's finish this!/%%" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* Click.../%%" - break - case 692: - global.msg[0] = "\E0EUREKA!!!/" - global.msg[1] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[2] = "\E3YOU SEEM LIKE&YOU'RE HAVING&FUN^1, THOUGH.../" - global.msg[3] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[6] = " " - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 694: - global.msg[0] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[1] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[4] = " " - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 696: - global.msg[0] = "* (There's a switch on the& trunk of this tree.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - break - case 697: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = "OHO^1!&THE HUMAN ARRIVES!/" - global.msg[1] = "ARE YOU READY TO&HANG OUT WITH&UNDYNE?/" - global.msg[2] = "I HAVE A PLAN&TO MAKE YOU TWO&GREAT FRIENDS!/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Will you hang out?)& & Yes No\C" - global.msg[5] = " " - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = "HMMM..^1.&STILL GETTING&READY?/" - global.msg[2] = "\E0TAKE YOUR TIME!/%%" - } - break - case 700: - global.msg[0] = "OKAY^1!&ALL READIED-UP&TO HANG OUT!?/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* (Will you hang out?)& & Yes No\C" - global.msg[3] = " " - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 703: - global.msg[0] = "\E4* .../" - global.msg[1] = "\E5* So why are YOU& here?/" - global.msg[2] = "\E4* To rub your victory& in my face?/" - global.msg[3] = "\E4* To humiliate me& even further?/" - global.msg[4] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[5] = " " - break - case 704: - if (global.choice == 0) - { - global.msg[0] = "\E2* Oh-ho-ho-ho./" - global.msg[1] = "\E1* Well^1, I've got news& for you^1, BRAT./" - global.msg[2] = "\E2* You're on MY& battlefield now./" - global.msg[3] = "\E3* And you AREN'T& going to& humiliate me./" - global.msg[4] = "\E3* I'll TELL you& what's going to& happen./" - global.msg[5] = "\E0* We're going to& hang out./" - global.msg[6] = "\E2* We're going to& have a good& time./" - global.msg[7] = "\M1* We're going to& become " + chr(34) + "friends." + chr(34) + "/" - global.msg[8] = "\E3* You'll become so& enamored with me.../" - global.msg[9] = "\E1* YOU'LL be the one& feeling humiliated& for your actions!/" - global.msg[10] = "\E6* Fuhuhuhuhu!!/" - global.msg[11] = "\M2* It's the perfect& revenge!!!/" - global.msg[12] = "\E1* Err.../" - global.msg[13] = "\E9* Why don't you& have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\E4* Then why are you& here?/" - global.msg[1] = "\E1* ...!/" - global.msg[2] = "\E2* Wait^1, I get it./" - global.msg[3] = "\E3* You think that I'm& gonna be friends& with you^1, huh?/" - global.msg[4] = "* Right???& NEVER & Yes with you\C" - global.msg[5] = " " - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = "\E6* Really^1?&* How delightful!^1!&* I accept!/" - global.msg[1] = "* Let's all frolick& in the fields& of friendship!/" - global.msg[2] = "\E2* ...NOT!/" - global.msg[3] = "\E2* Why would I EVER& be friends with& YOU!?/" - global.msg[4] = "\E3* If you weren't my& houseguest^1, I'd beat& you up right now!/" - global.msg[5] = "\E0* You're the enemy& of everyone's hopes& and dreams!/" - global.msg[6] = "\E1* I WILL NEVER& BE YOUR FRIEND./" - global.msg[7] = "\E3* Now get out of& my house!/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = "\E1* WHAT?/" - global.msg[1] = "\E4* First you parade& into my house^1,& then you INSULT me?/" - global.msg[2] = "\E2* You little BRAT^1!&* I have half a& mind to.../" - global.msg[3] = "\E1* .../" - global.msg[4] = "\E3* Wait./" - global.msg[5] = "\E2* I'll prove you& WRONG./" - global.msg[6] = "\E3* We ARE going to& be friends./" - global.msg[7] = "\E1* In fact.../" - global.msg[8] = "\E3* We./" - global.msg[9] = "\M1* Are going to be& BESTIES./" - global.msg[10] = "* I'll make you like& me so much.../" - global.msg[11] = "\E1* Your WHOLE LIFE& will revolve around& me!!/" - global.msg[12] = "\M2* It's the perfect& revenge!!!/" - global.msg[13] = "\E6* FUHUHUHUHU!!!/" - global.msg[14] = "\E1* Err.../" - global.msg[15] = "\E9* Now^1, why don't& you have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = "* (Sit down and progress?)& & Yes No\C" - global.msg[1] = " " - break - case 707: - global.msg[0] = " %%" - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = " %%" - global.msg[1] = " %%" - } - break - case 708: - global.msg[0] = "* That sugar's for& the tea./" - global.msg[1] = "\E2* I'm not gonna give& you a cup of& sugar!/" - global.msg[2] = "\E6* What do I look& like^1, the ice-cream& woman?/" - global.msg[3] = "\E2* Do human ice-cream& women TERRORIZE HUMANITY& with ENERGY SPEARS?/" - global.msg[4] = "\E3* Are their ice-cream& songs a PRELUDE TO& DESTRUCTION?/" - global.msg[5] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[6] = " " - break - case 709: - if (global.choice == 0) - { - global.msg[0] = "\E1* ... what^1?&* REALLY?/" - global.msg[1] = "\E6* That rules!!!/%%" - } - if (global.choice == 1) - global.msg[0] = "\E3* That's what I& thought./%%" - break - case 710: - global.msg[0] = "* Envision these& vegetables as your& greatest enemy!/" - global.msg[1] = "\E2* Now!^1!&* Pound them to dust& with your fists!!/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (How will you pound?)& & Strong Wimpy\C" - global.msg[4] = " " - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = "* (You punch the vegetables& at full force^1.&* You knock over a tomato.)/" - scr_undface(1, 6) - global.msg[2] = "* YEAH^1!&* YEAH!/" - global.msg[3] = "\E1* Our hearts are& uniting against these& healthy ingredients!/" - global.msg[4] = "\M2* NOW IT'S MY TURN!/" - global.msg[5] = "* NGAHHH!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = "* (You pet the vegetables& in an affectionate& manner.)/" - scr_undface(1, 1) - global.msg[2] = "* OH MY GOD!!^1!&* STOP PETTING THE& ENEMY!!!/" - global.msg[3] = "\M2* I'll show you& how it's done!/" - global.msg[4] = "* NGAHHH!/%%" - } - break - case 712: - global.msg[0] = "* ... we add the& noodles!/" - global.msg[1] = "\E0* Homemade noodles& are the best!/" - global.msg[2] = "\E6* BUT I JUST BUY& STORE-BRAND!/" - global.msg[3] = "\M2* THEY'RE THE& CHEAPEST!!!/" - global.msg[4] = "\E1* NGAHHHHHHHHH& HHHHHHHHHH!!!/" - global.msg[5] = "\E9* Uhh^1, just put them& in the pot./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "\M0* (How will you put them in?)& & Fiercely Careful\C" - global.msg[8] = " " - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = "* (You throw everything into& the pot as hard as you can^1,& including the box.)/" - global.msg[1] = "* (It clanks against the& empty bottom.)/" - scr_undface(2, 6) - global.msg[3] = "\M2* YEAH!!^1!&* I'M INTO IT!!!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = "* (You place the noodles& in one at a time.)/" - global.msg[1] = "* (They clank against the& empty bottom.)/" - scr_undface(2, 9) - global.msg[3] = "* Nice???/%%" - } - break - case 714: - global.msg[0] = "\E0* Humans suck^1, but& their history..^1.&* Kinda rules./" - global.msg[1] = "\E2* Case in point^1:&* This giant sword!/" - global.msg[2] = "\E0* Historically^1, humans& wielded swords up& to 10x their size./" - global.msg[3] = "\E1* RIGHT?& & True False\C" - global.msg[4] = " " - break - case 715: - if (global.choice == 0) - { - global.msg[0] = "\E6* Heh^1, I knew it!/" - global.msg[1] = "\E2* When I first heard& that^1, I immediately& wanted one!/" - global.msg[2] = "\E0* So me and Alphys& built a giant& sword together./" - global.msg[3] = "\E0* She figured out all& the specs herself.../" - global.msg[4] = "\E6* She's smart^1, huh!?/%%" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* Pfft^1!&* You liar!/" - global.msg[1] = "\E3* I've READ Alphys's& human history book& collection!/" - global.msg[2] = "\E3* I know all about& your giant swords.../" - global.msg[3] = "\E3* Your colossal^1,& alien-fighting& robots.../" - global.msg[4] = "* Your supernatural& princesses.../" - global.msg[5] = "\E6* Heh^1! There's no& way you're gonna& fool me!!!/%%" - } - break - case 716: - global.msg[0] = "* (Look inside the bone drawer?)& & Yes No\C" - global.msg[1] = " " - break - case 717: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = "\M5* WHAT A SENSATIONAL OPPORTUNITY& FOR A STORY!/" - global.msg[1] = "\M3* I CAN SEE THE HEADLINE NOW:/" - global.msg[2] = "\M4* " + chr(34) + "A DOG EXISTS SOMEWHERE." + chr(34) + "/" - global.msg[3] = "\M2* FRANKLY^1, I'M BLOWN AWAY./" - global.msg[4] = "* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 721: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 722: - global.msg[0] = "\M5* THIS DOG..^1.&* STILL EXISTS!/" - global.msg[1] = "* THIS STORY..^1.&* JUST KEEPS GETTING& BETTER AND BETTER!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 723: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 724: - global.msg[0] = "\M5* OH MY!!!!/" - global.msg[1] = "\M2* ... IT'S A COMPLETELY& NONDESCRIPT GLASS OF WATER./" - global.msg[2] = "\M4* BUT ANYTHING CAN MAKE& A GREAT STORY WITH ENOUGH& SPIN!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 725: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 726: - global.msg[0] = "\M3* I'M HONORED TO BE IN THE& PRESENCE OF SUCH A HUGE& LUKEWARM WATER FAN^1, FOLKS!/" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 727: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 728: - global.msg[0] = "\M5* OH NO!!^1!&* THAT MOVIE SCRIPT!!^1!&* HOW'D??^1? THAT GET THERE???/" - global.msg[1] = "\M4* IT'S A SUPER-JUICY SNEAK& PREVIEW OF MY LATEST& GUARANTEED-NOT-TO-BOMB FILM:/" - global.msg[2] = "\M6* METTATON THE MOVIE XXVIII..^1.& STARRING METTATON!/" - global.msg[3] = "\M1* I'VE HEARD THAT LIKE THE& OTHER FILMS.../" - global.msg[4] = "\M1* IT CONSISTS MOSTLY OF A SINGLE& FOUR-HOUR SHOT OF ROSE PETALS& SHOWERING ON MY RECLINING BODY./" - global.msg[5] = "\M5* OOH!!^1!&* BUT THAT'S!!^1!&* NOT CONFIRMED!!/" - global.msg[6] = "\M5* YOU WOULDN'T (COUGH) SPOIL MY& MOVIE FOR EVERYONE WITH A& PROMOTIONAL STORY^1, WOULD YOU?/" - global.msg[7] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[8] = " " - break - case 729: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\M5* PHEW!!^1! THAT WAS CLOSE!^1!&* YOU ALMOST GAVE ME A BUNCH& OF FREE ADVERTISEMENT!!/%%" - global.msg[1] = "\M2 %%" - } - break - case 730: - global.msg[0] = "\M3* OH^1!&* YOU'RE BACK!/" - global.msg[1] = "\M6* THAT'S RIGHT^1, FOLKS^1!&* IT SEEMS NO ONE CAN RESIST& THE ALLURE OF MY NEW FILM!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 731: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 732: - global.msg[0] = "\M4* BASKETBALL'S A BLAST^1, ISN'T IT^1,& DARLING?/" - global.msg[1] = "\M1* TOO BAD YOU CAN'T PLAY WITH& THESE BALLS./" - global.msg[2] = "\M4* THEY'RE MTT-BRAND FASHION& BASKETBALLS^1.&* FOR WEARING^1, NOT PLAYING./" - global.msg[3] = "\M6* YOU CAN'T GET RICH AND FAMOUS& LIKE MOI WITHOUT BEAUTIFYING& A FEW ORBS./" - global.msg[4] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 733: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 734: - global.msg[0] = "* IT SEEMS OUR REPORTER IS DRAWN& TO SPORTS LIKE MOTHS TO A& FLAMING BASKETBALL HOOP./" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 735: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 736: - global.msg[0] = "\M5* OH MY^1! IT'S A PRESENT^1!&* AND IT'S ADDRESSED TO YOU^1,& DARLING!/" - global.msg[1] = "\M6* AREN'T YOU JUST BURSTING& WITH EXCITEMENT?/" - global.msg[2] = "\M5* WHAT COULD BE INSIDE^1?&* WELL^1, NO TIME LIKE THE& " + chr(34) + "PRESENT" + chr(34) + " TO FIND OUT!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 737: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 738: - global.msg[0] = "\M4* READY FOR YOUR..^1.&* PRESENTATION?/" - global.msg[1] = "\M4* (... LET'S CUT THAT ONE IN& POST.)/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 739: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 740: - global.msg[0] = "\M5* OOH LA LA^1!&* THIS VIDEO GAME YOU FOUND..^1.&* IS DYNAMITE!!!/" - global.msg[1] = "\M4* THOUGH I DON'T MAKE AN& APPEARANCE IN IT UNTIL& THREE-FOURTHS IN./" - global.msg[2] = "\M3* BUT I LIKE THAT./" - global.msg[3] = "\M6* APPEARING FROM THE HEAVENS LIKE& MANNA^1, SLAKING THE AUDIENCE'S& HUNGER FOR GORGEOUS ROBOTS.../" - global.msg[4] = "\M5* OOH^1!&* THAT'S METTATON!/" - global.msg[5] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[6] = " " - break - case 741: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 742: - global.msg[0] = "* AH^1, YOU UNDERSTAND./" - global.msg[1] = "* THIS IS A GAME WHERE YOU& SHOULD CHECK EVERYTHING& TWICE./" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 743: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Cider for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Donut for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 748: - global.msg[0] = "* Ribbit^1, ribbit.&* (I have heard you are quite& merciful^1, for a human...)/" - global.msg[1] = "\W* (Surely you know by now a& monster wears a \YYELLOW\W name& when you can \YSPARE\W it.)/" - global.msg[2] = "* (What do you think of that?)& Very It's& Helpful Bad\C" - global.msg[3] = " " - break - case 749: - if (global.choice == 0) - { - global.msg[0] = "* (It is rather helpful.^1)&* (Remember^1, sparing is just& saying you won't fight.)/" - global.msg[1] = "* (Maybe one day^1, you'll& have to do it even if& their name isn't yellow.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Really^1? Then^1, I'll tell all& of my friends to tell& their friends' friends...)/" - global.msg[1] = "* (Never use yellow names.)&* (How about that?)/" - global.msg[2] = " Keep No more& Yellow Yellow& Names Names\C" - global.msg[3] = " " - } - break - case 750: - if (global.choice == 0) - global.msg[0] = "* (OK^1, they will still& use yellow names.)/%%" - if (global.choice == 1) - { - global.msg[0] = "* (OK^1, I will let them& know not to use yellow& names.)/%%" - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = "* Ribbit^1, ribbit^1.&* (How are you doing without& yellow names?)/" - global.msg[1] = " Bring & It's Them& great Back\C" - global.msg[2] = " " - break - case 752: - if (global.choice == 0) - { - global.msg[0] = "* (Glad to hear it.^1)&* (Though^1, I do not know why& you dislike yellow.)/" - global.msg[1] = "* (You had better hope you do& not encounter a banana-themed& monster.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Huh^1? It's rather inconvenient& that you changed your mind& like this.)/" - global.msg[1] = "* (Since I told everyone& not to use yellow names^1,& everyone threw theirs out.)/" - global.msg[2] = "* (This is really troubling...^1)&* (Hmmm...)/" - global.msg[2] = "\W* (Well^1, last year it was& fashionable to have \ppink\W & names.)/" - global.msg[3] = "* (I think everyone still& has those in their closets& somewhere...)/" - global.msg[4] = "* (I'll ask everyone to look.^1)&* (But this is the last time!)/%%" - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = "* Ribbit^1, ribbit...&* (I hope you're satisfied.)/%%" - break - case 754: - global.msg[0] = "* \YNAPSTABLOOK22 has sent you& a friend request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 755: - global.flag[409] = 1 - global.msg[0] = "* (It seems to have already& rejected itself...)/%%" - break - case 756: - global.msg[0] = "* \YMETTATON has sent you a& Mortal Enemy request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 757: - if (global.choice == 0) - { - global.msg[0] = "* Congratulations^1!&* You are now Mortal Enemies& with Mettaton./" - global.msg[1] = "* \YCOOLSKELETON95\W has posted& a comment on this change./" - global.msg[2] = "* CONGRATULATIONS^1, YOU TWO^1!&* WISH YOU A LONG AND& HORRIBLE RIVALRY./%%" - } - if (global.choice == 1) - global.msg[0] = "* You rejected the request./%%" - break - case 758: - global.msg[0] = "* \YMETTATON has sent you an& invitation to " + chr(34) + "Die." + chr(34) + "\W /" - global.msg[1] = "* RSVP?& & Respond Ignore\C" - global.msg[2] = " " - break - case 759: - if (global.choice == 0) - global.msg[0] = "* Bepis valley Granola Bars/%%" - if (global.choice == 1) - global.msg[0] = "* Bepis valley Granola Bars/%%" - break - case 760: - global.msg[0] = "* hey^1.&* i heard you're going& to the core./" - global.msg[1] = "\E0* how about grabbing some& dinner with me first?& Yeah I'm busy \C" - global.msg[2] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - break - case 761: - if (global.choice == 0) - { - global.msg[0] = "* great^1, thanks for& treating me./%%" - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* well^1, have fun in& there./%%" - break - case 762: - global.msg[0] = "* This is the barrier./" - global.msg[1] = "* This is what keeps& us all trapped& underground./" - global.msg[2] = "* .../" - global.msg[3] = "* If.../" - global.msg[4] = "* If by chance you& have any unfinished& business.../" - global.msg[5] = "* Please do what you& must./" - global.msg[6] = " & & Continue Go Back\C" - global.msg[7] = " " - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Anything you want to& do is important& enough./" - global.msg[2] = "* Even something as small& as reading a book^1,& or taking a walk.../" - global.msg[3] = "* Please take your time./%%" - } - break - case 764: - global.msg[0] = "* Oh..^1.&* Back so soon?/" - global.msg[1] = "* How are you feeling?/" - global.msg[2] = " & & Ready Go Back\C" - global.msg[3] = " " - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Do what you have to./%%" - } - break - case 770: - global.msg[0] = "* Tra la la^1.&* I am the riverman./" - global.msg[1] = "* Or am I the riverwoman...^1?&* It doesn't really matter./" - global.msg[2] = "* I love to ride in my boat^1.&* Would you care to join me?/" - global.msg[3] = "* (Ride in the boat?)& & Yes No\C" - global.msg[4] = " " - if (global.flag[460] > 0) - { - global.msg[0] = "* Tra la la^1.&* Care for a ride?/" - global.msg[1] = "* (Ride in the boat?)& & Yes No\C" - global.msg[2] = " " - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = "* Where will we go today?& & Error Error\C" - if (room == room_fire_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Waterfall\C" - if (room == room_water_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Hotland\C" - if (room == room_tundra_dock) - global.msg[0] = "* Where will we go today?& & Waterfall Hotland\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* Then perhaps another time^1.&* Or perhaps not^1.&* It doesn't really matter./%%" - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = "* Then we're off.../%%" - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = "* (There's a switch on the& wall.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = "* (The switch doesn't do& anything.)/%%" - break - case 781: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = "* (Seems like a comfortable& bed.)/" - global.msg[1] = "* (Lie on it?)& & Yes No\C" - global.msg[2] = " " - break - case 783: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = "* (It's just a regular suspicious& bed now.)/%%" - if (global.flag[484] == 1) - { - global.msg[0] = "* (It's a yellow key.^1)&* (You put it on your& keychain.)/%%" - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = "* (There's something under& the sheets.)/" - global.msg[1] = "* (Check it out?)& & Yes No\C" - global.msg[2] = " " - } - break - case 785: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = "* (The power has been turned& on.)/%%" - if (global.flag[491] == 0) - { - global.msg[0] = "* (It seems like this controls& the elevator's power.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - break - case 787: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = (("\E7* I always was a crybaby^1,& wasn't I^1, " + global.charname) + "?/") - global.msg[1] = "\E1* .../" - global.msg[2] = "\E2* ... I know./" - global.msg[3] = (("\E0* You're not actually& " + global.charname) + ", are you?/") - global.msg[4] = (("\E7* " + global.charname) + "'s been gone for& a long time./") - global.msg[5] = "* .../" - global.msg[6] = "\E9* Um..^1. what.../" - global.msg[7] = "\E0* What IS your name?/" - global.msg[8] = "\E2* .../" - global.msg[9] = "\E5* " + chr(34) + "Frisk?" + chr(34) + "/" - global.msg[10] = "\E7* That's.../" - global.msg[11] = "\E5* A nice name./" - global.msg[12] = "* .../" - global.msg[13] = "\E7* Frisk.../" - global.msg[14] = "\E0* I haven't felt like& this for a long time./" - global.msg[15] = "\E2* As a flower^1, I was& soulless./" - global.msg[16] = "\E1* I lacked the power to& love other people./" - global.msg[17] = "\E2* However^1, with everyone's& souls inside me.../" - global.msg[18] = "\E7* I not only have my own& compassion back.../" - global.msg[19] = "\E5* But I can feel every& other monster's as& well./" - global.msg[20] = "\E7* They all care about& each other so much./" - global.msg[21] = "\E0* And..^1. they care about& you too^1, Frisk./" - global.msg[22] = "* .../" - global.msg[23] = "\E7* I wish I could tell& you how everyone& feels about you./" - global.msg[24] = "* Papyrus..^1. Sans..^1.&* Undyne..^1. Alphys.../" - global.msg[25] = "\E0* ... Toriel./" - global.msg[26] = "\E7* Monsters are weird./" - global.msg[27] = "\E5* Even though they barely& know you.../" - global.msg[28] = "\E6* It feels like they& all really love& you./" - global.msg[29] = "\E8* Haha./" - global.msg[30] = "* .../" - global.msg[31] = "\E1* Frisk..^1. I..^1.&* I understand if you& can't forgive me./" - global.msg[32] = "* I understand if you& hate me./" - global.msg[33] = "* I acted so strange and& horrible./" - global.msg[34] = "\E3* I hurt you./" - global.msg[35] = "* I hurt so many people./" - global.msg[36] = "\E1* Friends^1, family^1,& bystanders.../" - global.msg[37] = "\E3* There's no excuse for& what I've done./" - global.msg[38] = " & & Forgive Do not\C" - global.msg[39] = " " - break - case 801: - if (global.choice == 0) - { - global.msg[0] = "\E3* Wh..^1. what?/" - global.msg[1] = "\E7* ... Frisk^1, come on./" - global.msg[2] = "\E0* You're..^1.&* You're gonna make me& cry again./" - global.msg[3] = "\E7* ... besides^1, even if& you do forgive me.../" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* ... right^1./" - global.msg[1] = "* I understand./" - global.msg[2] = "\E1* I just hope that.../" - global.msg[3] = "* I can make up for& it a little right& now./" - } - global.msg[4] = "\E1* I can't keep these& souls inside of me./" - global.msg[5] = "\E0* The least I can do& is return them./" - global.msg[6] = "\E2* But first.../" - global.msg[7] = "\E4* There's something I& have to do./" - global.msg[8] = "* Right now^1, I can feel& everyone's hearts& beating as one./" - global.msg[9] = "* They're all burning& with the same& desire./" - global.msg[10] = "* With everyone's power..^1.&* With everyone's& determination.../" - global.msg[11] = "* It's time for& monsters.../" - global.msg[12] = "* To finally go free./%%" - break - case 803: - global.msg[0] = "\E7* Frisk.../" - global.msg[1] = "\E0* I have to go now./" - global.msg[2] = "\E7* Without the power of& everyone's souls.../" - global.msg[3] = "\E1* I can't keep& maintaining this& form./" - global.msg[4] = "* In a little while.../" - global.msg[5] = "* I'll turn back into& a flower./" - global.msg[6] = "\E3* I'll stop being& " + chr(34) + "myself." + chr(34) + "/" - global.msg[7] = "* I'll stop being able& to feel love again./" - global.msg[8] = "\E1* So..^1. Frisk./" - global.msg[9] = "\E7* It's best if you& just forget about& me^1, OK?/" - global.msg[10] = "\E0* Just go be with& the people who& love you./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & Comfort& him Do not\C" - global.msg[13] = " " - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = "\E0* So^1, Alphys.../" - global.msg[1] = "\E9* What do you want& to do now that& we're all free?/" - global.msg[2] = "\E0* We have the whole& world to explore& now./" - scr_alface(3, 3) - global.msg[4] = "\E3* W-well^1, of course& I'm going to go& out and.../" - global.msg[5] = "\E4* Um.../" - global.msg[6] = "\E3* No^1, I should be& honest!!/" - global.msg[7] = "\E1* I'm gonna stay inside& and watch anime like& a total loser!/" - scr_papface(8, 0) - global.msg[9] = "\E0THAT'S THE SPIRIT!/" - global.msg[10] = "EVERYONE!!^1!&A CELEBRATION!!!&TO BEING LOSERS!!/" - scr_undface(11, 9) - global.msg[12] = "\E9* Heh^1.&* Papyrus has the& right idea./" - global.msg[13] = "\E0* Losing to Frisk is& the best thing to& ever happen to me./" - global.msg[14] = "\E0* So I'm glad that& we.../" - global.msg[15] = "\E9* Huh^1?&* What is it^1, Asgore?/" - scr_asgface(16, 2) - global.msg[17] = "\E2* Um..^1. what's an.../" - global.msg[18] = "\E0* ... anime?/" - scr_alface(19, 1) - global.msg[20] = "\E1* (Oh My God?)/" - global.msg[21] = "\E3* (Frisk^1. Please.)/" - global.msg[22] = "\E2* (Help me explain what& anime is to Asgore.)/" - global.msg[23] = "\E0* Y-you see^1, it's& like a cartoon^1,& but.../" - global.msg[24] = "\TS \F0 \T0 %" - global.msg[25] = " & With With& Sword's Gun's\C" - global.msg[26] = " " - break - case 807: - scr_asgface(0, 2) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with swords?/" - if (global.choice == 1) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with guns?/" - global.msg[2] = "\E0* Golly^1!&* That sounds neato!/" - global.msg[3] = "\E3* Where is this^1?&* Where can I see the& Anime./" - scr_alface(4, 3) - global.msg[5] = "\E3* H-hold on^1, uh..^1.&* I think I have& some on my phone./" - global.msg[6] = "\E0* Here^1, l-look at& this!/" - global.msg[7] = "\E0* .../" - global.msg[8] = "\E3*...Oh^1, uh.../" - global.msg[9] = "\E4* Um..^1. that's the..^1.&* That's the wrong.../" - global.msg[10] = "\E5* Uh^1, nevermind./" - scr_asgface(11, 1) - global.msg[12] = "* Golly^1.&* Were those two robots.../" - scr_undface(13, 9) - global.msg[14] = "\E9* ... kissing?/" - scr_asgface(15, 0) - global.msg[16] = "\E0* Boy^1!&* Technology sure is& something^1, isn't it?/" - scr_alface(17, 5) - global.msg[18] = "\E5* Eheheh..^1. yeah^1!&* It sure is!/%%" - break - case 808: - global.msg[0] = "\E0* Psst..^1.&* F-Frisk./" - global.msg[1] = "\E3* Um^1, you've gotta& tell me./" - global.msg[2] = "\E6* D..^1. do you think& Asgore and Toriel& are...?/" - global.msg[3] = "\E3* Uh^1, ever gonna get& back together?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "& & Yeah Nope\C" - global.msg[6] = " " - break - case 809: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = "\E7* Y-yeah!!^1!&* Yeah^1, that's what& I hope^1, too./" - global.msg[2] = "\E7* Just think about how& cute they must have& been together./" - global.msg[3] = "\E0* It's quickly becoming& my number one ship& of all time./" - global.msg[4] = "\E7* Tori and Gorey.../" - global.msg[5] = "\E5* My..^1.&* My old boss and& his ex-wife./" - global.msg[6] = "\E8* ... uh^1, that sounds& a lot less cool& all of a sudden./%%" - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = "\E8* ... yeah^1, that's what& I thought./" - global.msg[2] = "\E7* A woman can dream& though^1, right?/" - global.msg[3] = "\E2* And write fanfiction./" - global.msg[4] = "\E1* A LOT of fanfiction./%%" - } - break - case 810: - global.msg[0] = "\E0* Frisk^1!&* I just realized!/" - global.msg[1] = "\E3* Now that we aren't& fighting each& other.../" - global.msg[2] = "\E2* I can finally ask& you.../" - global.msg[3] = "\E0* " + chr(34) + "Would you like a& cup of tea?" + chr(34) + "/" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E0* Would you like a& cup of tea?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "& & Yes No\C" - global.msg[8] = " " - break - case 811: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = "* Oh^1!&* Well!/" - global.msg[2] = "\E3* Actually^1, the cup I& had is cold now./" - global.msg[3] = "* So you shouldn't& have it./" - global.msg[4] = "\E0* But^1, I am so& happy you said& yes./" - global.msg[5] = "\E0* As soon as I can^1,& I will make some& more for you./" - global.msg[6] = "\E0* Then we can be& great pals./%%" - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = "\E3* Oh.../" - global.msg[2] = "\E3* Okay./" - scr_undface(3, 2) - global.msg[4] = "\E2* Frisk^1! Stop^1!&* You're breaking his& big burly heart!/" - scr_asgface(5, 2) - global.msg[6] = "\E2* Um^1, it's OK^1, Undyne./" - global.msg[7] = "\E0* My heart's already& broken./" - scr_undface(8, 6) - global.msg[9] = "\E6* ASGORE^1! STOP^1!&* YOU'RE BREAKING MY& BIG BURLY HEART!/" - scr_alface(10, 9) - global.msg[11] = "\E9* Y-yeah^1, Asgore^1.&* Don't break Undyne's& heart./" - global.msg[12] = "\E2* That's my job./" - scr_undface(13, 2) - global.msg[14] = "\E2* OH MY GOD!&* YOU'RE GOING BACK& IN THE TRASH!!!/" - scr_papface(15, 0) - global.msg[16] = "\E0CAN I GO IN THE&TRASH TOO?/" - scr_undface(17, 9) - global.msg[18] = "\E9* Sure^1, Papyrus./" - scr_sansface(19, 1) - global.msg[20] = "\E1* guess i have to& go in the trash& too./" - scr_torface(21, 0) - global.msg[22] = "\E0* Oh^1, may I enter& the trash as well?/" - scr_undface(23, 1) - global.msg[24] = "\E1* Uh^1, okay?/" - scr_asgface(25, 0) - global.msg[26] = "\E0* Am I invited to& the trash?/" - scr_undface(27, 6) - global.msg[28] = "\E6* SURE!!!&* WHY NOT!!!/" - scr_torface(29, 1) - global.msg[30] = "\E1* On second thought^1,& do not put me& in the trash./" - scr_asgface(31, 5) - global.msg[32] = "\E5* Oh.../" - scr_undface(33, 1) - global.msg[34] = "\E1* OH MY GOD!!!/%%" - } - break - case 812: - global.msg[0] = "* (If you leave here^1, your& adventure will really& be over.)/" - global.msg[1] = "* (Your friends will follow& you out of the underground.)/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = " & Don't I'm& leave ready\C" - global.msg[4] = " " - break - case 813: - global.msg[0] = " %%" - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = "\E0* Oh my.../" - scr_asgface(1, 0) - global.msg[2] = "\E0* Isn't it beautiful^1,& everyone?/" - scr_alface(3, 3) - global.msg[4] = "\E3* Wow..^1. it's e-even& better than on TV./" - global.msg[5] = "\E7* WAY better^1!&* Better than I ever& imagined!/" - scr_undface(6, 1) - global.msg[7] = "\E1* Frisk^1, you LIVE with& this!?/" - global.msg[8] = "\E9* The sunlight is so& nice..^1. and the air& is so fresh!/" - global.msg[9] = "* I really feel alive!/" - scr_papface(10, 0) - global.msg[11] = "\E0HEY SANS.../" - global.msg[12] = "\E3WHAT'S THAT GIANT&BALL?/" - scr_sansface(13, 1) - global.msg[14] = "\E1* we call that& " + chr(34) + "the sun^1," + chr(34) + " my friend./" - scr_papface(15, 0) - global.msg[16] = "\E0THAT'S THE SUN!^1?&WOWIE!!!/" - global.msg[17] = "I CAN'T BELIEVE&I'M FINALLY MEETING&THE SUN!!!/" - scr_asgface(18, 0) - global.msg[19] = "\E0* I could stand here& and watch this for& hours.../" - scr_torface(20, 0) - global.msg[21] = "\E0* Yes^1, it is beautiful^1,& is it not?/" - global.msg[22] = "\E1* But we should really& think about what comes& next./" - scr_asgface(23, 3) - global.msg[24] = "\E3* Oh^1, right./" - global.msg[25] = "\E0* Everyone.../" - global.msg[26] = "* This is the beginning& of a bright new& future./" - global.msg[27] = "* An era of peace between& humans and monsters./" - global.msg[28] = "\E2* Frisk.../" - global.msg[29] = "* I have something to& ask of you./" - global.msg[30] = "\E0* Will you act as our& ambassador to the& humans?/" - global.msg[31] = "\TS \F0 \T0 %" - global.msg[32] = "* (Be the ambassador?)& & Yes No\C" - global.msg[33] = " " - break - case 815: - scr_papface(0, 0) - global.msg[1] = "WOWi, Nice error./%%" - if (global.choice == 0) - { - global.msg[1] = "\E0YEAH^1!&FRISK WILL BE THE&BEST AMBASSADOR!/" - global.msg[2] = "AND I^1, THE GREAT&PAPYRUS.../" - global.msg[3] = "WILL BE THE BEST&MASCOT!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E0IT'S OK FRISK^1!&I'VE GOT YOU&COVERED!/" - global.msg[2] = "IF YOU DON'T WANT&TO BE THE&AMBASSADOR.../" - global.msg[3] = "I CAN DO IT FOR&YOU!!!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - break - case 820: - global.msg[0] = "* Frisk.../" - global.msg[1] = "\E2* You came from this& world^1, right...?/" - global.msg[2] = "\E1* So you must have& a place to return to^1,& do you not?/" - global.msg[3] = "\E2* What will you do& now?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = " I want I have& to stay places& with you to go\C" - global.msg[6] = " " - break - case 821: - global.msg[0] = " %%" - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = "* (The door has no mail slot.)/" - global.msg[1] = "* (Slide the letter under?)& & Slide NO!!!! \C" - global.msg[2] = " " - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = "* (You slide the letter under& the door and give it a& knock.)/%%" - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* (You'll keep the letter& warm for a little longer.)/%%" - break - case 827: - global.msg[0] = "* (It's a note from Alphys.)/" - global.msg[1] = "* (Read it...?)& & Read Do not \C" - global.msg[2] = " " - break - case 828: - if (global.choice == 0) - { - global.msg[0] = "* (It's hard to read because& of the handwriting^1, but& you try your best...)/" - global.msg[1] = "* Hey./" - global.msg[2] = "* Thanks for your help back& there./" - global.msg[3] = "* You guys..^1.&* Your support really means a& lot to me./" - global.msg[4] = "* But..^1.&* As difficult as it is& to say this.../" - global.msg[5] = "* You guys alone can't& magically make my own& problems go away./" - global.msg[6] = "* I want to be a better& person./" - global.msg[7] = "* I don't want to be& afraid anymore./" - global.msg[8] = "* And for that to happen^1,& I have to be able to& face my own mistakes./" - global.msg[9] = "* I'm going to start& doing that now./" - global.msg[10] = "* I want to be clear./" - global.msg[11] = "* This isn't anyone else's& problem but mine./" - global.msg[12] = "* But if you don't ever& hear from me again.../" - global.msg[13] = "* If you want to know& " + chr(34) + "the truth." + chr(34) + "/" - global.msg[14] = "* Enter the door to the& north of this note./" - global.msg[15] = "* You all at least deserve& to know what I did./" - global.msg[16] = "* (That's all she wrote.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = "* (Buy chips for 25G?)& & Buy No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There were no chips left& in the machine.)/%%" - global.msg[1] = " " - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* (The vending machine& dispensed some chisps.)/%%" - if (afford == 0) - global.msg[0] = "* (You didn't have enough& gold.)/%%" - } - if (noroom == 1) - global.msg[0] = "* (You are carrying too& many items.)/%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 831: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?/" - global.msg[5] = "\E1* ... wait^1.&* Do not tell me./" - if (bs == 0) - global.msg[6] = "\E0* It is ERROR MESSAGE!& & Yes No \C" - if (bs == 1) - global.msg[6] = "\E0* Is it Butterscotch?& & Yes No \C" - if (bs == 2) - global.msg[6] = "\E0* Is it Cinnamon?& & Yes No \C" - global.msg[7] = " " - break - case 832: - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - if (bs == 2) - global.flag[46] = 0 - global.msg[0] = "\E0* Hee hee hee^1.&* I had a feeling./" - global.msg[1] = "\E1* When humans fall down& here^1, strangely..^1.&* I.../" - global.msg[2] = "\E1* I often feel like& I already know them./" - global.msg[3] = "\E0* Truthfully^1, when I first& saw you^1, I felt.../" - global.msg[4] = "\E1* ... like I was seeing& an old friend for& the first time./" - global.msg[5] = "\E0* Strange^1, is it not?/" - global.msg[6] = "* Well^1, thank you for& your selection./" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - if (bs == 2) - global.flag[46] = 1 - global.msg[0] = "\E1* Oh..^1. I see./" - global.msg[1] = "\E0* Well^1, thank you^1.&* Goodbye for now./" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* Click.../%%" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - break - case 833: - global.msg[0] = "* (Seems like you could skip& Mettaton's monologue by& turning him around now.)/" - global.msg[1] = "* (What will you do?)& & Skip Hear again\C" - global.msg[2] = " " - break - case 834: - if (global.choice == 0) - { - global.msg[0] = "* (You told Mettaton there& was something cool& behind him.)/%%" - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = " %%" - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = "* though.../" - global.msg[1] = "* one thing about you& always struck me& as kinda odd./" - global.msg[2] = "* now^1, i understand& acting in self-defense./" - global.msg[3] = "* you were thrown into& those situations& against your will./" - global.msg[4] = "* but.../" - global.msg[5] = "* sometimes.../" - global.msg[6] = "* you act like you& know what's gonna& happen./" - global.msg[7] = "* like you've already& experienced it all& before./" - global.msg[8] = "* this is an odd thing& to say^1, but.../" - global.msg[9] = "\W* if you have some sort& of \Yspecial power\W.../" - global.msg[10] = "* isn't it your& responsibility to do& the right thing?/" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & & Yes No\C" - global.msg[13] = " " - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* ah./" - global.msg[2] = "\E0* i see./" - global.msg[3] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* heh./" - global.msg[2] = "\E0* well^1, that's your& viewpoint./" - global.msg[3] = "\E2* i won't judge you& for it./" - global.msg[4] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = "* (Ring...)/" - scr_alface(1, 0) - global.msg[2] = "\E0* Hey!/" - global.msg[3] = "\E3* This um^1, doesn't have& anything to do with& guiding you..^1. but.../" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E6* Uhh^1, hey^1, would you want& to watch a human TV& show together???/" - global.msg[6] = "* Sometime???/" - global.msg[7] = "\E4* It's called^1, um^1,& M..^1.Mew Mew Kissy& Cutie.../" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = " & & Sure! ...no...\C" - global.msg[10] = " " - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = "* R-really!?/" - global.msg[2] = "\E3* It's so good^1!&* It's um^1, my favorite& show!/" - global.msg[3] = "* It's all about this& human girl named Mew Mew& who has cat ears!%" - global.msg[4] = "\E3* Which humans don't have!&* S-so she's all& sensitive about them!%" - global.msg[5] = "\E6* But like...&* Eventually!%" - global.msg[6] = "* She realizes that her& ears don't matter!%" - global.msg[7] = "* That her friends like& her despite the ears!%" - global.msg[8] = "\E7* It's really moving!%" - global.msg[9] = "\E5* Whoops, spoilers%" - global.msg[10] = "\E6* Also, this sounds& weird, but she has& the power!%" - global.msg[11] = "\E5* To control the minds& of anyone she kisses!%" - global.msg[12] = "\E3* She kisses people and& controls them to fix& her problems!!%" - global.msg[13] = "\E5* They don't remember& anything after the& kiss I mean!!%" - global.msg[14] = "\E3* BUT IF SHE MISSES& THE KISS!!!&* THEN!!%" - global.msg[15] = "\E4* Then^1, uh^1, and^1, uh^1,& also I mean^1, of course%" - global.msg[16] = "\E5* Eventually^1, she& realizes that& controlling people%" - global.msg[17] = "\E3* OKAY WELL I almost& spoiled the whole& show^1, but%" - global.msg[18] = "\E5* Uhhh^1, I think you'd& really like it!!!/" - global.msg[19] = "\E0* We should watch it^1!&* After you get through& all this!/" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* (Click...)/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E5* Um^1! Well^1!&* That's okay!/" - global.msg[2] = "* Just thought I'd!^1!&* Ask!!!/" - global.msg[3] = "\E6* B-but I think you'd& really like it!!/" - global.msg[4] = "* If you gave it a& chance!!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Click...)/%%" - } - break - case 839: - global.msg[0] = "\M1* Did y'hear!^1?&* You're back!/" - global.msg[1] = "\M0* I'll tell you a big secret./" - global.msg[2] = "\M1* I'm starting a band^1, y'hear?/" - global.msg[3] = "\M1* It's called the Red Hot& Chibi Peppers./" - global.msg[4] = "\M0* All I've thought of is& the name./" - global.msg[5] = "\M3* And I don't^1, play...&* Instruments^1, or sing./" - global.msg[6] = "\M1* Well^1!&* Do you think we'll be& popular!!!/" - global.msg[7] = " & & Yeah No\C" - global.msg[8] = " " - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = "\M0* Yeah^1, me too.../%%" - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = " %%" - } - break - case 845: - global.msg[0] = "* (It's a lamp.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - break - case 846: - if (global.choice == 0) - { - global.msg[0] = "* (There's no lightbulb.^1)&* (A flashlight is stuck in& the bulb socket.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = " %%" - break - case 847: - if (global.choice == 0) - global.msg[0] = "* (The flashlight is out of& batteries.)/%%" - else - global.msg[0] = " %%" - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = "* Hey^1, hey^1!&* Did you remember my name?/" - global.msg[1] = "* (Did you?)& & Yes No\C" - global.msg[2] = " " - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = "* Wh-WHAT!^1?&* You REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = "* Wh-WHAT!^1?&* You DON'T REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - break - case 853: - global.msg[0] = "* (It's a small white dog.^1)&* (It's fast asleep...)/" - global.msg[1] = "* (Fight the dog?)& & Yes No\C" - global.msg[2] = " " - break - case 854: - if (global.choice == 0) - { - global.msg[0] = "* (Can't fight the dog.)/" - global.msg[1] = "* (Seems like the fabric it's& sleeping on has too many& holes in it.)/" - global.msg[2] = "* (Seems like the dog needs& to " + chr(34) + "patch" + chr(34) + " the fabric.)/" - global.msg[3] = "* (Then you can fight the dog.^1)&* (... maybe.)/%%" - } - else - global.msg[0] = "* (Let sleeping dogs lie^1, instead& of fighting them.^1)&* (That's how the saying goes.)/%%" - break - case 860: - global.msg[0] = "* (Knock knock)./" - if (global.flag[262] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Sea Tea" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a million ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = "* (You pour the Sea Tea under& the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 862: - global.msg[0] = "* (Knock knock)./" - if (global.flag[263] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Cinnamon Bun" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a trillion ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = "* (You flatten the Cinnamon Bun& until it's paper thin.)&* (You slide it under the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 864: - global.msg[0] = "* (You hear shuffling.)/" - global.msg[1] = "* (Seems like you could put& something under the door.)/" - global.msg[2] = " & & Put No Put\C" - global.msg[3] = " " - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - break - case 865: - if (global.choice == 0) - { - global.msg[0] = "* (...)/" - global.msg[1] = "* (But you didn't have anything& appealing.)/%%" - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = "* (You put a Hot Dog in front& of the door.)/" - global.msg[1] = "* (A white paw shoots out from& under the door.)/" - global.msg[2] = "* (It tries to pull the Hot Dog& into its room...)/" - global.msg[3] = "* (But it keeps pressing down too& hard^1, and the hot dog keeps& spinning away.)/" - global.msg[4] = "* (...)/" - global.msg[5] = "* (It finally succeeds.)/" - global.msg[6] = "* (...)/" - global.msg[7] = "* (You hear the grinding of& stone.)/" - global.msg[8] = "* (A single hushpuppy slides& out from under the door.)/" - global.msg[9] = "* (You got Hush Puppy.)/%%" - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = "* (You put a Hot Cat in front& of the door.)/" - global.msg[1] = "* (You hear growling...)/%%" - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = "* (You put a Dog Salad in front& of the door.^1)&* (It slides underneath.)/" - global.msg[1] = "* (...)/" - global.msg[2] = "* (The Dog Salad was absorbed& by the darkness.)/%%" - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = "* (You put a Dog Residue in& front of the door.)/" - global.msg[1] = "* (It slides underneath the door^1,& as if pulled by a magnet.)/" - global.msg[2] = "* (...)/" - if (noroom == 1) - global.msg[3] = "* (ZOMMM!!^1!)&* (It shoots back out at a& high speed!)/%%" - else - global.msg[3] = "* (Two Dog Residues slowly slide& back out from underneath& the door.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 866: - global.msg[0] = "* Yes^1, we know^1.&* The elevator to the city& is NOT working./" - global.msg[1] = "* Because of this incident^1, rooms& are running at a special rate!/" - global.msg[2] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[3] = " " - if (global.flag[267] == 2) - { - global.msg[0] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[1] = " " - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = "* Did you enjoy your stay?/" - global.msg[1] = "* What^1?&* Room..^1.&* Key?/" - global.msg[2] = "* No^1, we don't do that./" - global.msg[3] = "* If you leave your room^1,& you'll have to pay again./" - global.msg[4] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[5] = " " - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* Fabulous^1!&* We'll escort you to your& room!/%%" - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = "* ... that's not enough money./%%" - } - else - global.msg[0] = "* Do let us know if you& change your mind^1.&* Have a sparkular day!/%%" - break - case 870: - global.msg[0] = "* ... MY ONE TRUE LOVE?/" - global.msg[1] = "* .../" - global.msg[2] = "* (YOU LOOK BORED^1, DARLING.)/" - global.msg[3] = "* (I WANT THIS TO BE A STELLAR& PERFORMANCE^1, SO IF YOU& WON'T GIVE IT YOUR ALL...)/" - global.msg[4] = "* (THEN I'LL SKIP AHEAD FOR& THE AUDIENCE'S SAKE.)/" - global.msg[5] = "* (Perform?)& & Yeah Skip this\C" - global.msg[6] = " " - break - case 871: - if (global.choice == 0) - global.msg[0] = "* (UNDERSTOOD.^1)&* (LET'S KNOCK 'EM DEAD!)/%%" - else - { - global.msg[0] = "* (KA-SIGH...^1)&* (THE SHOW MUST GO ON!)/%%" - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = "Interesting./" - global.msg[1] = "You want to go back./" - global.msg[2] = "You want to go bac^1k&to the worl^2d&you destroyed./" - global.msg[3] = "It was you who pushed&everythin^1g to its edge./" - global.msg[4] = "It was you who led the worl^1d&to its destruction./" - global.msg[5] = "But you cannot accept it./" - global.msg[6] = "You think you are above&consequences.& Yes No\C" - global.msg[7] = "" - break - case 889: - if (global.choice == 0) - global.msg[0] = "Exactly./%%" - else - global.msg[0] = "Then what are you looking for?/%%" - break - case 890: - global.msg[0] = "Perhaps./" - global.msg[1] = "We can reach a compromise./" - global.msg[2] = "You still have somethin^1g&I want./" - global.msg[3] = "Give it to me./" - global.msg[4] = "And I will bring this&world back./" - global.msg[5] = " & & Yes No\C" - global.msg[6] = "" - break - case 891: - if (global.choice == 0) - { - global.msg[0] = "Then it is agreed./" - global.msg[1] = "You will give me your SOUL.& & Yes No\C" - global.msg[2] = " " - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = ".../" - global.msg[1] = "Then^1, it is done./%%" - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 900: - global.msg[0] = "* hey./" - global.msg[1] = "* is your refrigerator& running?/" - global.msg[2] = " & & yes no\C" - global.msg[3] = " " - break - case 901: - if (global.choice == 0) - global.msg[0] = "* nice^1.&* i'll be over to deposit& the brewskis./%%" - else - { - global.msg[0] = "* ok^1, i'll send someone& over to fix it./" - global.msg[1] = "* thanks for letting me& know./" - global.msg[2] = "* good communication is& important./%%" - } - break - case 1001: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = " * Check * Console& * Terrorize" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = " * Check * Talk& * Devour * Dinner" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = " * Check * Pick On& * Don't Pick On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = " * Check * Flirt& * Threat * Cheer" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = " * Check * Pet" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = " * Check * Pet& * Pet * Pet & * Pet * Pet " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = " * Check * Agree& * Clash * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = " * Check * Compliment& * Ignore * Steal" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = " * Check * Compliment" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = " * Check * Ditch" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = " * Check * Decorate& * Undecorate * Gift" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = " * Check * Flex& * Shoo" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = " * Check * Flex& * Feed Temmie * Talk& Flakes " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = " * Check * Flirt& * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = " * Check * Clean& * Touch * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = " * Check * Smile& * Hum * Conduct" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = " * Check * Plead& * Challenge" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = " * Check * Cry" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = " * Check * Flirt& * Approach" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = " * Check * Criticize& * Encourage * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = " * Check * Cool Down& * Heat Up * Invite" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = (((("\W * Check * Struggle& * Pay " + string(global.flag[382])) + "G& \YYour Money: ") + string(global.gold)) + "G \W ") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = " * Check * Yell" - if (global.flag[385] > 0) - global.msg[0] = "\W * Check \Y* Yellow \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = " * Check * Fake Attack" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = " * Check * Talk & * Stare * Clear Mind" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = " * Check * Talk & * Sing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = " * Check * Defuse Bomb" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = " * Check * Burn" - if (global.flag[424] > 0) - global.msg[0] = "\W * Check \Y* Turn \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = " * Check * Boast& * Pose * Heel Turn" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = " * Call * Hum& * Scream * Flex& * Unhug * Cry" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = " * Check * Pick On& * Mystify * Clean& * Hum * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = " * Check * ITEM & * STAT * CELL" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = " * Check * Join& * Refuse" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = " * Fake Hit * Recipe& * Smile * Clash" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = " * Encourage * Call & * Nerd Out * Quiz" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = " * Joke * Puzzle & * Recipe * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = " * Take break * Joke & * Judgment * Crossword" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = " * Talk * Mercy & * Hug * Preference" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = " * Talk * Mercy & * Stare * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = " * Check * Switch& * Fix * Lie Down" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = " * Check * Hiss& * Devour * Snack" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = " * Check * Applaud& * Boo * Nothing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = " * Check * Something" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = " * Check * Draw" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = " * Check * Hope & * Dream" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = " * Error" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = " * Struggle" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = "\W * Undyne " - else - global.msg[0] = "\W \Y* (Saved) \W " - if (global.flag[506] == 0) - global.msg[0] += "* Alphys \W &" - else - global.msg[0] += "\Y* (Saved)\W &" - if (global.flag[507] == 0) - global.msg[0] += "\W * Papyrus * Sans \W &" - else - global.msg[0] += "\Y * (Saved) * (Saved)\W &" - if (global.flag[508] == 0) - global.msg[0] += "\W * Toriel * Asgore \W " - else - global.msg[0] += "\Y * (Saved) * (Saved)\W " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = " * Someone else" - if (global.flag[501] == 3) - global.msg[0] = " * Asriel Dreemurr" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = "* Dialing..\E0.\TT /" - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You only wanted to& say hello...^2?&* Well then./" - global.msg[4] = "\E0* 'Hello!'/" - global.msg[5] = "* I hope that suffices^1.&* Hee hee./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 2) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You want to say& hello again?/" - global.msg[4] = "* 'Salutations!'/" - global.msg[5] = "* Is that enough?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Are you bored^1?&* I should have given& a book to you./" - global.msg[4] = "* My apologies./" - global.msg[5] = "* Why not use your& imagination to& divert yourself?/" - global.msg[6] = "* Pretend you are..^1.&* A monarch!/" - global.msg[7] = "* Rule over the leaf pile& with a fist of iron./" - global.msg[8] = "* Can you do that for me?/" - global.msg[9] = "\TS \F0 \T0 %" - global.msg[10] = "* Click.../%%" - } - if (global.flag[40] > 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Hello^1, my child./" - global.msg[4] = "\E1* Sorry^1, I do not have& much to say./" - global.msg[5] = "\E0* It was nice to hear& your voice^1, though^1./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - break - case 1502: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* Help with a puzzle^1.^1.^1.?/" - global.msg[4] = "* Um^1, you have not& left the room^1, have you?/" - global.msg[5] = "\E0* Wait patiently for& me and we can solve& it together!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1503: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* You want to know& more about me?/" - global.msg[4] = "* Well^1, I am afraid there& is not much to say./" - global.msg[5] = "\E0* I am just a silly little& lady who worries too& much!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1504: - global.flag[42] = 1 - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E8* Huh^2?&* Did you just call& me... " + chr(34) + "Mom" + chr(34) + "?/" - global.msg[4] = "\E1* Well...&* I suppose.../" - global.msg[5] = "* Would that make you& happy?/" - global.msg[6] = "* To call me..^2.&* " + chr(34) + "Mother?" + chr(34) + "/" - global.msg[7] = "\E0* Well then^1, call me& whatever you like!/!" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E8* ...^2 huh???/" - global.msg[3] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[4] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[5] = "* You can certainly find& better than an old woman& like me./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[41] == 2) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E1* Oh dear,^1 are you& serious...?/" - global.msg[3] = "\E1* I do not know if this is& pathetic,^1 or endearing./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - if (global.flag[42] == 1) - { - global.msg[3] = "\E8* And after you said you& want to call& me " + chr(34) + "mother..." + chr(34) + "/" - global.msg[4] = "\E0* You are an...^2 & \E1... " + chr(34) + "interesting" + chr(34) + "& child./" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* But nobody came./%%" - } - else - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* Nobody picked up./%%" - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* The ringing is coming from& inside your inventory./%%" - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = "* Dialing...\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hey^1, you silly& child./" - global.msg[3] = "* If you want to& talk to me^1, I am& right here./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - break - case 1508: - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* (Somewhere^1, signals deflected& by a dog.)/%%" - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = "* (No response.^1)&* (Their phone might be out& of batteries.)/%%" - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = "* (The box is aclog with the& the hair of a dog.)/%%" - break - case 2001: - global.msg[0] = "\E2* Welcome to your new& home,^1 innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of& the RUINS./%" - break - case 2002: - global.faceplate = 1 - global.msg[0] = "\E8* ...^2 huh???/" - global.msg[1] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[2] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[3] = "* You can certainly find& better than an old woman& like me./%" - break - case 3002: - global.msg[0] = "* You encountered the Dummy." - global.msg[1] = "%%%" - break - case 3003: - global.msg[0] = "* Froggit attacks you!" - global.msg[1] = "%%%" - break - case 3004: - global.msg[0] = "* Froggit hopped close!" - global.msg[1] = "%%%" - break - case 3005: - global.msg[0] = "* Whimsun approached meekly!" - global.msg[1] = "%%%" - break - case 3006: - global.msg[0] = "* Froggit and Whimsun drew near!" - global.msg[1] = "%%%" - break - case 3007: - global.msg[0] = "* Moldsmal blocked the way!" - global.msg[1] = "%%%" - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_itemget.gml deleted file mode 100644 index 18d1db209..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_storageget.gml deleted file mode 100644 index 1ceb16fbb..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Main/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml deleted file mode 100644 index 7865cee5e..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_OBJ_INSTAWRITER_Draw_0.gml +++ /dev/null @@ -1,103 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - n += 2 - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "P") - script_execute(SCR_TEXTSETUP, 4, 255, x, y, (x + 150), 43, 4, 94, 10) - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - } - if (global.inbattle == 1) - halt = 5 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_OBJ_WRITER_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_OBJ_WRITER_Draw_0.gml deleted file mode 100644 index fdeb5a41d..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_OBJ_WRITER_Draw_0.gml +++ /dev/null @@ -1,255 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "L") - mycolor = $FDC00E - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "p") - mycolor = $D4BBFF - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - if (newtyper == "a") - global.typer = 60 - if (newtyper == "R") - global.typer = 76 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "z") - { - sym = real(string_char_at(originalstring, (n + 2))) - sym_s = spr_infinitysign - if (sym == 4) - sym_s = spr_infinitysign - if (sym == 4) - draw_sprite_ext(sym_s, 0, (myx + (random(shake) - (shake / 2))), ((myy + 10) + (random(shake) - (shake / 2))), 2, 2, 0, c_white, 1) - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - if (myfont == fnt_comicsans) - { - if (myletter == "w") - myx += 2 - if (myletter == "m") - myx += 2 - if (myletter == "i") - myx -= 2 - if (myletter == "l") - myx -= 2 - if (myletter == "s") - myx -= 1 - if (myletter == "j") - myx -= 1 - } - if (myfont == fnt_papyrus) - { - if (myletter == "D") - myx += 1 - if (myletter == "Q") - myx += 3 - if (myletter == "M") - myx += 1 - if (myletter == "L") - myx -= 1 - if (myletter == "K") - myx -= 1 - if (myletter == "C") - myx += 1 - if (myletter == ".") - myx -= 3 - if (myletter == "!") - myx -= 3 - if (myletter == "O" || myletter == "W") - myx += 2 - if (myletter == "I") - myx -= 6 - if (myletter == "T") - myx -= 1 - if (myletter == "P") - myx -= 2 - if (myletter == "R") - myx -= 2 - if (myletter == "A") - myx += 1 - if (myletter == "H") - myx += 1 - if (myletter == "B") - myx += 1 - if (myletter == "G") - myx += 1 - if (myletter == "F") - myx -= 1 - if (myletter == "?") - myx -= 3 - if (myletter == "'") - myx -= 6 - if (myletter == "J") - myx -= 1 - } - n += nskip -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_boxsiner_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_boxsiner_Draw_0.gml deleted file mode 100644 index 63273c0cd..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_boxsiner_Draw_0.gml +++ /dev/null @@ -1,18 +0,0 @@ -draw_set_color(c_green) -yoff = 0 -siner += 1 -if (fade == 1) - alpha -= 0.01 -if (alpha <= 0) - instance_destroy() -repeat (2) -{ - for (i = 0; i < 6; i += 1) - { - draw_set_alpha(alpha) - ysin = (sin((((i * 3) + (siner / 2)) / 8)) * 20) - draw_rectangle((20 + (i * 100)), ((16 + yoff) + ysin), (20 + ((i + 1) * 100)), ((136 + yoff) + ysin), true) - } - yoff = 120 -} -draw_set_alpha(1) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml deleted file mode 100644 index 075e5cba4..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_brightwaterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_bright_lt, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_bright_mt, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_bright_rt, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_bright_mm, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_bright_lm, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bright_bl, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_rm, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_bright_mm, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bright_br, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bright_bm, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_flowey_writer_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_flowey_writer_Draw_0.gml deleted file mode 100644 index aa57ccad5..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_flowey_writer_Draw_0.gml +++ /dev/null @@ -1,181 +0,0 @@ -myx = writingx -myy = writingy -for (n = 1; n < (stringpos + 1); n = n + 1) -{ - nskip = 0 - if (string_char_at(originalstring, n) == "&") - { - script_execute(SCR_NEWLINE) - n += 1 - } - if (string_char_at(originalstring, n) == "^") - { - if (string_char_at(originalstring, (n + 1)) == "0") - nskip = 1 - else - n += 2 - } - if (string_char_at(originalstring, n) == "\") - { - if (string_char_at(originalstring, (n + 1)) == "R") - mycolor = c_red - if (string_char_at(originalstring, (n + 1)) == "G") - mycolor = c_lime - if (string_char_at(originalstring, (n + 1)) == "W") - mycolor = c_white - if (string_char_at(originalstring, (n + 1)) == "Y") - mycolor = c_yellow - if (string_char_at(originalstring, (n + 1)) == "X") - mycolor = c_black - if (string_char_at(originalstring, (n + 1)) == "B") - mycolor = c_blue - if (string_char_at(originalstring, (n + 1)) == "O") - mycolor = c_orange - if (string_char_at(originalstring, (n + 1)) == "P") - mycolor = c_fuchsia - if (string_char_at(originalstring, (n + 1)) == "C") - { - if (global.inbattle == 0) - { - if (instance_exists(obj_choicer) == 0) - choicer = instance_create(0, 0, obj_choicer) - choicer.creator = id - halt = 5 - } - } - if (string_char_at(originalstring, (n + 1)) == "M") - { - global.flag[20] = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "E") - { - global.faceemotion = real(string_char_at(originalstring, (n + 2))) - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "F") - { - global.facechoice = real(string_char_at(originalstring, (n + 2))) - global.facechange = 1 - n += 1 - } - if (string_char_at(originalstring, (n + 1)) == "T") - { - newtyper = string_char_at(originalstring, (n + 2)) - if (newtyper == "T") - global.typer = 4 - if (newtyper == "t") - global.typer = 48 - if (newtyper == "0") - global.typer = 5 - if (newtyper == "S") - global.typer = 10 - if (newtyper == "f") - global.typer = 9 - if (newtyper == "F") - global.typer = 16 - if (newtyper == "s") - global.typer = 17 - if (newtyper == "P") - global.typer = 18 - if (newtyper == "M") - global.typer = 27 - if (newtyper == "U") - global.typer = 37 - if (newtyper == "A") - global.typer = 47 - script_execute(SCR_TEXTTYPE, global.typer) - global.facechange = 1 - n += 1 - } - n += 2 - } - if (string_char_at(originalstring, n) == "/") - { - halt = 1 - if (string_char_at(originalstring, (n + 1)) == "%") - halt = 2 - if (string_char_at(originalstring, (n + 1)) == "^" && string_char_at(originalstring, (n + 2)) != "0") - halt = 4 - if (string_char_at(originalstring, (n + 1)) == "*") - halt = 6 - break - } - if (string_char_at(originalstring, n) == "%") - { - if (string_char_at(originalstring, (n + 1)) == "%") - { - instance_destroy() - break - } - stringpos = 1 - stringno += 1 - originalstring = mystring[stringno] - myx = writingx - myy = writingy - lineno = 0 - alarm[0] = textspeed - myletter = " " - break - } - if (myx > writingxend) - script_execute(SCR_NEWLINE) - myletter = string_char_at(originalstring, n) - if (global.typer == 18) - { - if (myletter == "l" || myletter == "i") - myx += 2 - if (myletter == "I") - myx += 2 - if (myletter == "!") - myx += 2 - if (myletter == ".") - myx += 2 - if (myletter == "S") - myx += 1 - if (myletter == "?") - myx += 2 - if (myletter == "D") - myx += 1 - if (myletter == "A") - myx += 1 - if (myletter == "'") - myx += 1 - } - draw_set_font(myfont) - draw_set_color(mycolor) - if (shake > 38) - { - if (shake == 39) - { - direction += 10 - draw_text((myx + hspeed), (myy + vspeed), myletter) - } - if (shake == 40) - draw_text((myx + hspeed), (myy + vspeed), myletter) - if (shake == 41) - { - direction += (10 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (10 * n) - } - if (shake == 42) - { - direction += (20 * n) - draw_text((myx + hspeed), (myy + vspeed), myletter) - direction -= (20 * n) - } - if (shake == 43) - { - direction += (30 * n) - draw_text(((myx + (hspeed * 0.7)) + 10), (myy + (vspeed * 0.7)), myletter) - direction -= (30 * n) - } - } - else if (global.typer == 70 || global.typer == 71 || global.typer == 74 || global.typer == 75 || global.typer == 76 || global.typer == 77) - draw_text_transformed((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter, 2, 2, 0) - else - draw_text((myx + (random(shake) - (shake / 2))), (myy + (random(shake) - (shake / 2))), myletter) - myx += spacing - n += nskip -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_gyftrot_Step_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_gyftrot_Step_0.gml deleted file mode 100644 index 887cbbc9b..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_gyftrot_Step_0.gml +++ /dev/null @@ -1,298 +0,0 @@ -if (global.mnfight == 3) - attacked = 0 -if (alarm[5] > 0) -{ - if (global.monster[0] == true) - { - if (global.monsterinstance[0].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[0].alarm[5] - } - if (global.monster[1] == true) - { - if (global.monsterinstance[1].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[1].alarm[5] - } - if (global.monster[2] == true) - { - if (global.monsterinstance[2].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[2].alarm[5] - } -} -if (global.mnfight == 1) -{ - if (talked == 0) - { - alarm[5] = 110 - alarm[6] = 1 - talked = 1 - global.heard = 0 - } -} -if keyboard_multicheck_pressed(13) -{ - if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) - alarm[5] = 2 -} -if (global.hurtanim[myself] == 1) -{ - shudder = 16 - alarm[3] = global.damagetimer - global.hurtanim[myself] = 3 -} -if (global.hurtanim[myself] == 2) -{ - global.monsterhp[myself] -= takedamage - with (dmgwriter) - alarm[2] = 15 - if (global.monsterhp[myself] >= 1) - { - mypart1 = instance_create(x, y, part1) - mypart2 = instance_create(x, y, part2) - global.hurtanim[myself] = 0 - image_index = 0 - global.myfight = 0 - global.mnfight = 1 - } - else - { - global.myfight = 0 - global.mnfight = 1 - killed = 1 - instance_destroy() - } -} -if (global.hurtanim[myself] == 5) -{ - global.damage = 0 - instance_create(((x + (sprite_width / 2)) - 48), (y - 24), obj_dmgwriter) - with (obj_dmgwriter) - alarm[2] = 30 - global.myfight = 0 - global.mnfight = 1 - global.hurtanim[myself] = 0 -} -if (global.mnfight == 2) -{ - if (attacked == 0) - { - pop = scr_monstersum() - if instance_exists(obj_jerry) - { - if (obj_jerry.ditch == 0) - pop -= 1 - } - global.turntimer = 120 - if (mercymod > 90) - global.turntimer = -2 - global.firingrate = 5 - if (global.hardmode == 1) - global.firingrate = 3 - if (pop == 3) - global.firingrate = global.firingrate * 2.4 - if (pop == 2) - global.firingrate = global.firingrate * 1.7 - if (mycommand >= 0 && mycommand <= 60) - { - gen = instance_create(x, y, obj_gyftgen) - gen.bullettype = 1 - } - else - { - gen = instance_create(x, y, obj_giftgen) - gen.bullettype = 0 - } - gen.myself = myself - if (mycommand >= 0) - global.msg[0] = "* Gyftrot laments its lack of& hands." - if (mycommand >= 25) - global.msg[0] = "* Gyftrot eyes you with& suspicion." - if (mycommand >= 40) - global.msg[0] = "* Gyftrot distrusts your& youthful demeanor." - if (mycommand >= 60) - global.msg[0] = "* Ah^1, the scent of fresh& pine needles." - if (mycommand >= 80) - global.msg[0] = "* Gyftrot tries vainly to& remove its decorations." - if (giftgiven == 1) - global.msg[0] = "* Gyftrot pretends to refuse& your gift." - if (giftgiven == 2) - global.msg[0] = "* Gyftrot politely accepts& your gift." - if (googly == 1) - global.msg[0] = "* Gyftrot stumbles blindly." - if (itemgone == 1 || itemgone == 2) - global.msg[0] = "* Gyftrot is slightly less& irritated." - if (itemgone == 3) - global.msg[0] = "* Gyftrot's problems have& been taken away." - if (betray == 1) - global.msg[0] = "* Gyftrot looks disappointed." - if (global.monsterhp[myself] < 30) - global.msg[0] = "* Gyftrot's antlers tremble." - attacked = 1 - } -} -if (global.myfight == 2) -{ - if (whatiheard != -1) - { - if (global.heard == 0) - { - if (whatiheard == 0) - { - global.msc = 0 - global.msg[0] = (((("* GYFTROT " + string(global.monsteratk[myself])) + " ATK ") + string(global.monsterdef[myself])) + ' DEF&* Some teens "decorated" it as& a prank./^') - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - if (whatiheard == 1) - { - global.msc = 0 - if (itemgone < 3) - { - if (gift[itemgone] == 0) - global.msg[0] = "* You remove the striped cane& that says " + chr(34) + "I use this tiny& cane to walk" + chr(34) + " on it./^" - if (gift[itemgone] == 1) - global.msg[0] = "* You remove the box of& non-dog-related raisins./^" - if (gift[itemgone] == 2) - global.msg[0] = "* You remove the lenticular& bookmark of a smug teen& winking./^" - if (gift[itemgone] == 3) - global.msg[0] = "* You remove the barbed wire& made of pipe cleaners./^" - if (gift[itemgone] == 4) - global.msg[0] = "* You remove a childhood& photograph of Snowdrake and& his parent./^" - if (gift[itemgone] == 5) - global.msg[0] = "* You remove a small^1, confused& dog./^" - if (gift[itemgone] == 6) - global.msg[0] = "* You remove a stocking filled& with chicken nuggets./^" - if (gift[itemgone] == 7) - global.msg[0] = "* You remove the shirt that says& 'I'm with stupid' and points& inward./^" - } - if (itemgone == 3) - { - global.msg[0] = "* You try to undecorate...?/^" - mercymod = 180 - } - if (googly == 1) - global.msg[0] = "* You remove the googly eyes./^" - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - if (googly == 1) - { - googly = 0 - ung = 1 - with (mypart5) - instance_destroy() - } - else if (itemgone < 3) - { - if (itemgone == 2) - { - with (mypart8) - instance_destroy() - itemgone = 3 - } - if (itemgone == 1) - { - with (mypart4) - instance_destroy() - itemgone = 2 - } - if (itemgone == 0) - { - with (mypart3) - instance_destroy() - itemgone = 1 - } - } - if (mercymod < 150) - { - if (itemgone > 0 && mercymod < 100) - mercymod = 10 - if (itemgone > 2) - { - mercymod = 160 - global.flag[138] = 1 - } - } - } - if (whatiheard == 3) - { - global.msc = 0 - if (googly == 0) - { - global.msg[0] = "* You add some googly eyes& you found on the ground./^" - googly = 1 - mypart5 = instance_create(x, y, part3) - mypart5.gift = 8 - } - else - global.msg[0] = "* You can't improve on& perfection./^" - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - if (whatiheard == 4) - { - global.msc = 0 - if (giftgiven == 0 && googly == 0 && itemgone > 0 && betray == 0) - { - mypart6 = instance_create(x, y, part3) - mypart6.gift = 9 - if (global.gold == 0) - { - global.msg[0] = "* You give the cheapest gift& of all..^1.&* Friendship./^" - giftgiven = 2 - mercymod = 140 - global.goldreward[myself] += 50 - } - if (global.gold > 0) - { - if (global.gold >= 35) - { - global.msg[0] = "* You give 35 G because& you can't think of an& appropriate gift./^" - global.gold -= 35 - } - else - { - global.gold = 0 - global.msg[0] = "* You give your remaining& money because you can't& think of a better gift./^" - } - giftgiven = 1 - mercymod = 140 - } - } - else - { - if (googly == 1 || betray == 1 || itemgone == 0) - global.msg[0] = "* Gyftrot refuses your gift./^" - if (giftgiven == 1) - global.msg[0] = "* Hey now^1.&* You aren't made of money./^" - if (giftgiven == 2) - global.msg[0] = "* Hey now^1.&* You aren't made of friendship./^" - } - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - } - global.heard = 1 - } -} -if (global.myfight == 4) -{ - if (global.mercyuse == 0) - { - script_execute(scr_mercystandard) - if (mercy < 0) - instance_destroy() - } -} -if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0) -{ - script_execute(scr_mercystandard) - if (mercy < 0) - instance_destroy() -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_joypadmenu_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_joypadmenu_Draw_0.gml deleted file mode 100644 index 9a5ea7df7..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_joypadmenu_Draw_0.gml +++ /dev/null @@ -1,398 +0,0 @@ -buffer -= 1 -if (menu_engage == 0) -{ - if keyboard_check_pressed(vk_down) - menu += 1 - if (menu == 4) - menu = 5 - if (fun == false) - { - if (menu == 6) - menu = 7 - } - if keyboard_check_pressed(vk_up) - menu -= 1 - if (menu == 4) - menu = 3 - if (fun == false) - { - if (menu == 6) - menu = 5 - } - if (menu <= 0) - menu = 0 - if (menu >= 9) - menu = 9 - if (buffer < 0) - { - if keyboard_multicheck_pressed(0) - { - menu_engage = 1 - js_buffer = 1 - buffer = 4 - } - } -} -if (menu == 0 && menu_engage == 1) -{ - ini_open("config.ini") - ini_write_real("joypad1", "b0", global.button0) - ini_write_real("joypad1", "b1", global.button1) - ini_write_real("joypad1", "b2", global.button2) - ini_write_real("joypad1", "as", global.analog_sense) - ini_write_real("joypad1", "jd", global.joy_dir) - ini_close() - room_goto(room_intromenu) -} -draw_set_color(c_white) -draw_set_font(fnt_maintext) -if (weather != 3) - draw_text_transformed(100, 10, "JOYSTICK CONFIG", 2, 2, 0) -else - draw_text_transformed(10, 10, "JOYSTICK CONFIG", 2, 2, 0) -if (menu != 0) - draw_set_color(c_white) -else - draw_set_color(c_yellow) -draw_text(20, 40, "EXIT") -for (i = 1; i < 4; i += 1) -{ - if (menu != i) - draw_set_color(c_white) - else - draw_set_color(c_yellow) - if (i == 1) - itext = "CONFIRM - [Z + ENTER] ::" - if (i == 2) - itext = "CANCEL - [X + SHIFT] ::" - if (i == 3) - itext = "MENU - [C + CTRL] ::" - draw_text(20, (60 + (i * 15)), itext) - draw_set_color(c_white) -} -if (menu == 1 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 75, 245, 90, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 75, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button0 = i - menu_engage = 0 - buffer = 4 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 75, global.button0) -} -if (menu == 2 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 90, 245, 105, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 90, "(PUSH BUTTON)") - if (js_buffer == 0) - { - if (obj_time.j_ch > 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button1 = i - menu_engage = 0 - break - } - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 90, global.button1) -} -if (menu == 3 && menu_engage == 1) -{ - draw_set_color(c_blue) - draw_rectangle(160, 105, 245, 120, false) - draw_set_color(c_white) - o_o += 1 - if (o_o >= 16) - o_o = 0 - if (o_o <= 8) - draw_text(160, 105, "(PUSH BUTTON)") - if (obj_time.j_ch > 0 && js_buffer == 0) - { - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if joystick_check_button(obj_time.j_ch, i) - { - global.button2 = i - menu_engage = 0 - break - } - } - } - if (js_buffer == 1) - { - bt = 0 - for (i = 0; i < joystick_buttons(obj_time.j_ch); i += 1) - { - if (!joystick_check_button(obj_time.j_ch, i)) - bt += 1 - } - if (bt >= joystick_buttons(obj_time.j_ch)) - js_buffer = 0 - } - if (buffer < 0) - { - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_set_color(c_aqua) - draw_text(170, 105, global.button2) -} -if (menu == 5) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 135, "ANALOG SENSITIVITY:") -if (menu == 5 && menu_engage == 1) -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense -= global.analog_sense_sense - if keyboard_check(vk_left) - global.analog_sense += global.analog_sense_sense - if (global.analog_sense >= 0.4) - global.analog_sense = 0.4 - if (global.analog_sense <= 0.02) - global.analog_sense = 0.02 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } -} -else -{ - draw_sprite_ext(spr_sensing_slider, 0, 150, 135, 1, 1, 0, c_red, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense * 100)), 138, 1, 1, 0, c_yellow, 0.6) -} -if (fun == true) -{ - if (menu == 6) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text_transformed(20, 150, "ANALOG SENSITIVITY SENSITIVITY:", 0.6, 1, 0) - if (menu == 6 && menu_engage == 1) - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 1) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 1) - if (buffer < 0) - { - if keyboard_check(vk_right) - global.analog_sense_sense -= 0.01 - if keyboard_check(vk_left) - global.analog_sense_sense += 0.01 - if (global.analog_sense_sense >= 0.2) - global.analog_sense_sense = 0.2 - if (global.analog_sense_sense <= 0.01) - global.analog_sense_sense = 0.01 - if (keyboard_multicheck_pressed(0) || keyboard_multicheck_pressed(1)) - menu_engage = 0 - } - } - else - { - draw_sprite_ext(spr_sensing_slider, 0, 150, 150, 1, 1, 0, c_green, 0.6) - draw_sprite_ext(spr_sensebar, 0, (190 - (global.analog_sense_sense * 200)), 153, 1, 1, 0, c_yellow, 0.6) - } -} -if (menu == 7) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 170, "DIR CHOICE:") -if (global.joy_dir == 0) - draw_text(100, 170, "NORMAL") -if (global.joy_dir == 1) - draw_text(100, 170, "ANALOG ONLY") -if (global.joy_dir == 2) - draw_text(100, 170, "POV ONLY") -if (menu == 7 && menu_engage == 1) -{ - global.joy_dir += 1 - if (global.joy_dir >= 3) - global.joy_dir = 0 - menu_engage = 0 -} -if (r_buffer > 0) -{ - r_buffer -= 1 - draw_set_color(c_red) - draw_text_transformed_color(20, 185, r_line, 1, 1, 0, c_red, c_red, c_red, c_red, (1 - ((10 - r_buffer) / 10))) -} -else -{ - if (menu == 8) - draw_set_color(c_yellow) - else - draw_set_color(c_white) - draw_text(20, 185, "RESET TO DEFAULT") -} -if (menu == 8 && menu_engage == 1) -{ - r_buffer = 15 - rrr = floor(random(50)) - if (fun == true) - { - if (rrr == 1) - r_line = "SPAGHETTI..." - else - r_line = "RESETTED..." - } - global.button0 = 2 - global.button1 = 1 - global.button2 = 4 - global.analog_sense = 0.2 - global.analog_sense_sense = 0.01 - global.joy_dir = 0 - if (obj_time.j_ch > 0) - { - if (!joystick_has_pov(obj_time.j_ch)) - global.joypad_dir = 1 - } - menu_engage = 0 -} -if (menu == 9) - draw_set_color(c_yellow) -else - draw_set_color(c_white) -draw_text(20, 200, "CONTROL TEST") -if (menu == 9 && menu_engage == 1) -{ - caster_free(-3) - room_goto(room_controltest) -} -if (weather == 1) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_christmasflake - siner += 1 - draw_sprite_ext(spr_tobdog_winter, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "cold outside#but stay warm#inside of you", 1, 1, -20) -} -if (weather == 2) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(merge_color(c_red, c_white, 0.5)) - siner += 1 - draw_sprite_ext(spr_tobdog_spring, floor((siner / 15)), 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "spring time#back to school", 1, 1, -20) -} -if (weather == 3) -{ - extreme2 += 1 - if (extreme2 >= 240) - { - extreme += 1 - if (extreme >= 1100 && abs(sin((siner / 15))) < 0.1) - { - extreme = 0 - extreme2 = 0 - } - } - siner += 1 - draw_sprite_ext(spr_tobdog_summer, floor((siner / 15)), 250, 225, (2 + (sin((siner / 15)) * (0.2 + (extreme / 900)))), (2 - (sin((siner / 15)) * (0.2 + (extreme / 900)))), 0, c_white, 1) - draw_set_color(c_yellow) - draw_circle((258 + (cos((siner / 18)) * 6)), (40 + (sin((siner / 18)) * 6)), (28 + (sin((siner / 6)) * 4)), 0) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "try to withstand#the sun's life-#giving rays", 1, 1, -20) -} -if (weather == 4) -{ - c = instance_create(0, 0, obj_ct_fallobj) - c.sprite_index = spr_fallleaf - c.image_blend = choose(65535, 4235519, 255) - siner += 1 - draw_sprite_ext(spr_tobdog_autumn, 0, 250, 218, 1, 1, 0, c_white, 1) - draw_set_color(c_gray) - draw_text_transformed((220 + sin((siner / 12))), (120 + cos((siner / 12))), "sweep a leaf#sweep away a#troubles", 1, 1, -20) -} -if (intro == 1) -{ - if (rectile == 16) - caster_play(harp, 1, 1) - rectile += 4 - draw_set_color(c_black) - draw_rectangle((168 - rectile), -10, -1, 250, false) - draw_set_color(c_black) - draw_rectangle((152 + rectile), -10, 330, 250, false) - if (rectile >= 170) - { - caster_loop(weathermusic, 0.8, 1) - menu_engage = 0 - buffer = 5 - intro = -1 - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml deleted file mode 100644 index fe513bc92..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_mettattackgen_Alarm_0.gml +++ /dev/null @@ -1,1121 +0,0 @@ -gil = global.idealborder[0] -gir = global.idealborder[1] -fff = 25 -type = global.attacktype -if (type == 100) - global.turntimer = 90 -if (type == 1) -{ - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 80, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } - i = 0 - repeat (7) - { - bl = instance_create((240 + (i * 24)), 40, obj_blackbox_pl) - bl.vspeed = 4 - i += 1 - } -} -if (type == 2) -{ - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 120, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = 20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 60, obj_blackbox_pl) - bl.vspeed = 4 - bl.sf = -20 - i += 1 - } - i = 0 - repeat (9) - { - bl = instance_create((220 + (i * 24)), 0, obj_blackbox_pl) - bl.sf = 20 - bl.vspeed = 4 - i += 1 - } -} -if (type == 3) -{ - i = 0 - repeat (2) - { - ll = instance_create(216, (200 - (i * 80)), obj_metthand_l) - with (ll) - { - sf = 25 - sp = 15 - vspeed = 2 - yseg = 60 - } - rr = instance_create(360, (160 - (i * 80)), obj_metthand_r) - with (rr) - { - sf = 20 - sp = 12 - vspeed = 2 - yseg = 40 - } - i += 1 - } -} -if (type == 4) -{ - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - i = 0 - repeat (4) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 3 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 3 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 5) -{ - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 6) -{ - instance_create(240, 20, obj_blackbox_pl) - instance_create(240, 120, obj_blackbox_pl) - instance_create(264, 40, obj_blackbox_pl) - instance_create(264, 100, obj_blackbox_pl) - instance_create(264, 200, obj_blackbox_pl) - instance_create(288, 0, obj_blackbox_pl) - instance_create(288, 80, obj_blackbox_pl) - instance_create(288, 140, obj_blackbox_pl) - instance_create(312, 20, obj_blackbox_pl) - instance_create(312, 60, obj_blackbox_pl) - instance_create(312, 180, obj_blackbox_pl) - instance_create(336, 40, obj_blackbox_pl) - instance_create(336, 120, obj_blackbox_pl) - instance_create(336, 220, obj_blackbox_pl) - instance_create(360, 60, obj_blackbox_pl) - instance_create(360, 160, obj_blackbox_pl) - instance_create(384, 0, obj_blackbox_pl) - instance_create(384, 80, obj_blackbox_pl) - instance_create(384, 200, obj_blackbox_pl) - instance_create(240, 60, obj_plusbomb) - instance_create(240, 180, obj_plusbomb) - instance_create(264, 0, obj_plusbomb) - instance_create(264, 160, obj_plusbomb) - instance_create(288, 40, obj_plusbomb) - instance_create(312, 100, obj_plusbomb) - instance_create(336, 60, obj_plusbomb) - instance_create(336, 160, obj_plusbomb) - instance_create(360, 0, obj_plusbomb) - instance_create(360, 100, obj_plusbomb) - instance_create(384, 40, obj_plusbomb) - instance_create(384, 140, obj_plusbomb) - with (obj_blackbox_pl) - { - vspeed = 2 - y -= 200 - } - with (obj_plusbomb) - { - vspeed = 2 - y -= 200 - } -} -if (type == 7) -{ - j = 0 - repeat (16) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.5) - 0.2) - with (obj_blackbox_pl) - vspeed += (random(0.5) - 0.2) -} -if (type == 8) -{ - j = 0 - repeat (5) - { - instance_create(obj_heart.x, (-100 - (j * 240)), obj_plusbomb) - instance_create((obj_heart.x + 20), ((-100 - (j * 240)) + 120), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 2 -} -if (type == 9) -{ - j = 0 - repeat (10) - { - instance_create((obj_heart.x + choose(0, 20)), (-100 - (j * 150)), obj_plusbomb) - j += 1 - } - with (obj_plusbomb) - vspeed += 3 -} -if (type == 10) -{ - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 260)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 8 - obj_blackbox_pl.vspeed += 8 - instance_create(0, 0, obj_blackbox_rewinder) -} -if (type == 11) -{ - j = 0 - repeat (8) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 150)), obj_upbox_pl) - j += 1 - } - obj_upbox_pl.vspeed = 4 -} -if (type == 12) -{ - j = 0 - repeat (3) - { - for (i = 0; i < 5; i += 1) - instance_create((global.idealborder[0] + (25 * i)), (0 - (j * 200)), obj_upbox_new_pl) - j += 1 - } - j = 0 - repeat (8) - { - ch = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch * 25)), (0 - (j * 50)), obj_mettlightning_pl) - ch2 = choose(0, 1, 2, 3, 4) - instance_create(((global.idealborder[0] + 10) + (ch2 * 25)), (0 - (j * 75)), obj_mettlightning_pl) - j += 1 - } - obj_upbox_new_pl.vspeed = 4 -} -if (type == 13) -{ - j = 0 - repeat (7) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - j += 1 - } -} -if (type == 14) -{ - j = 0 - repeat (5) - { - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + random(150)), ((0 - (j * 150)) - (i * 50)), obj_mettfodder) - j += 1 - } -} -if (type == 15) -{ - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 3; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 16) -{ - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), 0, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[1] - (25 * (i + 1))), -125, obj_dancemett) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (25 * i)), -250, obj_dancemett) -} -if (type == 26) -{ - global.turntimer = 140 - j = 0 - repeat (4) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - for (i = 0; i < 4; i += 1) - instance_create((global.idealborder[0] + (g[i] * 25)), (((0 - (j * 95)) + random(60)) - 100), obj_blackbox_pl) - j += 1 - } - with (obj_blackbox_pl) - { - s = random(8) - sf = 3 - sp = 4 - vspeed += 2 - } -} -if (type == 27) -{ - global.turntimer = 165 - i = 0 - repeat (2) - { - bb = instance_create((global.idealborder[0] + (i * 25)), 30, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gil + 50), 30, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - i = 0 - repeat (2) - { - bb = instance_create(((gir - 25) - (i * 25)), -120, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - ll = instance_create((gir - 75), -120, obj_metthand_r) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - yseg = 999 - ysegi = 999 - } - ll = instance_create(gil, -250, obj_metthand_l) - with (ll) - { - sf = 1 - sp = 1 - vspeed = 4 - ysegi = 70 - } -} -if (type == 28) -{ - global.turntimer = 160 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -125, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - i = 0 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } - pl = instance_create((gil + 75), -230, obj_plusbomb) - pl.vspeed = 4 - i += 1 - repeat (3) - { - bb = instance_create((gil + (i * 25)), -230, obj_blackbox_pl) - bb.vspeed = 4 - i += 1 - } -} -if (type == 29) -{ - global.turntimer = 150 - j = 0 - repeat (5) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || (b2 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_plusbomb) - } - else if (b3 == i) - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_mettlightning_pl) - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 85)) + random(50)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += (random(0.6) + 1) - with (obj_blackbox_pl) - vspeed += (random(0.6) + 1) - with (obj_mettlightning_pl) - vspeed += (random(0.6) + 1) -} -if (type == 99) -{ - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -150, obj_metthand_r) - with (ll) - { - sf = 4 - sp = 3 - vspeed = 4 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (5) - { - i = 0 - repeat (5) - { - lt = instance_create((global.idealborder[0] + ((gir - gil) / 2)), (0 - (j * 50)), obj_mettlightning_pl) - lt.hspeed = (((-0.5 + (0.25 * i)) + random(0.2)) - 0.1) - lt.vspeed = ((1.5 + random(0.2)) - 0.1) - lt.friction = -0.05 - i += 1 - } - j += 1 - } -} -if (type == 30) -{ - global.turntimer = 200 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 80 - ll = instance_create(gil, -80, obj_mettleg_r) - ll.on = 0 - ll.sf = 80 - ll = instance_create((gil - 70), -240, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 90), -240, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil - 140), -380, obj_mettleg_l) - ll.on = 1 - ll.sf = 30 - ll = instance_create((gil + 30), -380, obj_mettleg_r) - ll.on = 1 - ll.sf = 30 - obj_mettleg_l.vspeed = 4 - obj_mettleg_r.vspeed = 4 -} -if (type == 31) -{ - global.turntimer = 190 - i = 0 - repeat (4) - { - mf = instance_create(gil, (-50 - (i * 70)), obj_mettfodder) - mf = instance_create((gir - 25), (-50 - (i * 70)), obj_mettfodder) - obj_mettfodder.vspeed = 5 - obj_mettfodder.type = 2 - i += 1 - } - i = 0 - repeat (5) - { - bl = instance_create(((gil + 25) + random(((gir - gil) - 75))), (-50 * i), obj_plusbomb) - i += 1 - } -} -if (type == 32) -{ - global.turntimer = 210 - i = 0 - ll = instance_create((gil - 45), 60, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), 20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create((gil - 45), -20, obj_mettleg_l) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -200, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -240, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - ll = instance_create(gil, -280, obj_mettleg_r) - ll.on = 0 - ll.sf = 60 - obj_mettleg_l.vspeed = 3.3 - obj_mettleg_r.vspeed = 3.3 - ks = instance_create((gil + 75), -175, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -50, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -150, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 - ks = instance_create((gil + 75), -75, obj_blackbox_pl) - ks.vspeed = 3.3 - ks.sf = 20 - ks.sp = 10 -} -if (type == 33) -{ - global.turntimer = 190 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - ll = instance_create(gir, -235, obj_metthand_r) - with (ll) - { - sf = 20 - sp = 7 - vspeed = 3.5 - yseg = 999 - ysegi = 40 - } - j = 0 - repeat (1) - { - i = 0 - repeat (5) - { - lt = instance_create(((gil + 25) + (i * 25)), -80, obj_mettfodder) - lt.vspeed = 3.5 - lt.type = 2 - lt.early = 80 - i += 1 - } - j += 1 - } -} -if (type == 34) -{ - global.turntimer = 90 - instance_create(0, 0, obj_essaystuff) -} -if (type == 35) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_1) -} -if (type == 36) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (3) - { - for (i = 0; i < 3; i += 1) - { - km = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 90)) - (i * 30)), obj_mettfodder) - } - j += 1 - } - obj_mettfodder.vspeed += 1 -} -if (type == 37) -{ - global.turntimer = 270 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 0 -} -if (type == 38) -{ - global.turntimer = 193 - ds = instance_create(308, (global.idealborder[2] - 10), obj_discoball_pl) - obj_heart.x += 7 - obj_heart.y += 10 - ds.diff = 1 - if (global.specialdam[0] > 1) - { - ds.diff = 0 - global.turntimer = 270 - } -} -if (type == 39) -{ - global.turntimer = 210 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (2) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - } -} -if (type == 40) -{ - global.turntimer = 160 - specialtimer = 2 - j = 0 - oo = (global.idealborder[0] + 5) - repeat (3) - { - bb = instance_create(oo, (-200 - (j * 260)), obj_plusbomb) - bb.side = 1 - bb = instance_create((oo + 20), ((-200 - (j * 260)) + 120), obj_plusbomb) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - if (global.specialdam[1] < 2) - { - vspeed += 2 - vspeed += 1 - } - } -} -if (type == 41) -{ - global.turntimer = 110 - instance_create((global.idealborder[0] + 30), (global.idealborder[2] + 10), obj_happybreaktime) -} -if (type == 42) -{ - global.turntimer = 600 - bossheart = instance_create(320, 162, obj_mettheart_2) -} -if (type == 99) -{ - global.turntimer = 180 - i = 0 - ll = instance_create(202, 140, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 40, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - } - rr = instance_create(212, 10, obj_mettleg_r) - with (rr) - { - sf = 30 - sp = 6 - vspeed = 3 - c = 2 - } - ll = instance_create(202, -100, obj_mettleg_l) - with (ll) - { - sf = 30 - sp = 6 - vspeed = 3 - } - ll = instance_create(202, -130, obj_mettleg_l) - with (ll) - { - c = 2 - sf = 30 - sp = 6 - vspeed = 3 - } - i = 0 - obj_mettleg_r.on = 1 - obj_mettleg_l.on = 1 -} -if (type == 43) -{ - global.turntimer = 200 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (0 - (j * 180)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 3 - obj_blackbox_pl.vspeed += 3 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.maxrw = 10 -} -if (type == 44) -{ - global.turntimer = 220 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-60 - (j * 250)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 6 - obj_blackbox_pl.vspeed += 6 - rw = instance_create(0, 0, obj_blackbox_rewinder) - if (global.specialdam[2] > 2) - { - rw.maxrw = 10 - obj_plusbomb.vspeed -= 1 - obj_blackbox_pl.vspeed -= 1 - } -} -if (type == 45) -{ - global.turntimer = 165 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(20)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 46) -{ - global.turntimer = 140 - j = 0 - repeat (10) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 54)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((2.5 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((2.5 + random(0.5)) - 0.2) -} -if (type == 47) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - obj_heart.x = global.idealborder[0] - repeat (6) - { - ch = choose(5, 25) - bb = instance_create((obj_heart.x + ch), (-100 - (j * 180)), obj_plusbomb) - if (ch == 5) - bb.side = 1 - if (ch == 25) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - { - vspeed += 3 - if (global.specialdam[1] > 3) - vspeed -= 1 - } -} -if (type == 48) -{ - global.turntimer = 700 - bossheart = instance_create(320, 162, obj_mettheart_3) -} -if (type == 49) -{ - global.turntimer = 800 - bossheart = instance_create(320, 232, obj_mettheart_4) -} -if (type == 50) -{ - global.turntimer = 170 - ll = instance_create(gil, -25, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gir, -185, obj_metthand_r) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - ll = instance_create(gil, -345, obj_metthand_l) - with (ll) - { - s = random(300) - sf = 50 - sp = 10 - vspeed = 4.5 - yseg = 999 - ysegi = 80 - } - j = 0 -} -if (type == 51) -{ - global.turntimer = 160 - ds = instance_create(308, global.idealborder[2], obj_discoball_pl) - ds.diff = 2 -} -if (type == 52) -{ - global.turntimer = 150 - j = 0 - repeat (9) - { - g[0] = choose(0, 1) - g[1] = (g[0] + choose(1, 2)) - g[2] = (g[1] + choose(1, 2)) - g[3] = choose(5, 6) - b = choose(0, 1, 2, 3) - b2 = choose(0, 1, 2, 3) - b3 = choose(0, 1, 2, 3) - bm = 0 - for (i = 0; i < 4; i += 1) - { - if (b == i || b2 == i || (b3 == i && bm < 3)) - { - bm += 1 - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_plusbomb) - } - else - instance_create((global.idealborder[0] + (g[i] * 25)), ((0 - (j * 45)) + random(25)), obj_blackbox_pl) - } - j += 1 - } - with (obj_plusbomb) - vspeed += ((1 + random(0.5)) - 0.2) - with (obj_blackbox_pl) - vspeed += ((1 + random(0.5)) - 0.2) -} -if (type == 53) -{ - global.turntimer = 200 - specialtimer = 2 - j = 0 - global.idealborder[1] = (global.idealborder[0] + 50) - obj_heart.x = global.idealborder[0] - oo = (global.idealborder[0] + 5) - repeat (7) - { - ch = choose(0, 20) - bb = instance_create((oo + ch), (-100 - (j * 170)), obj_plusbomb) - if (ch == 0) - bb.side = 1 - if (ch == 20) - bb.side = 2 - j += 1 - } - with (obj_plusbomb) - vspeed += 3.5 -} -if (type == 54) -{ - global.turntimer = 250 - specialtimer = 1 - j = 0 - repeat (4) - { - for (i = 0; i < 3; i += 1) - { - f = instance_create((global.idealborder[0] + random(150)), ((0 - (j * 120)) - (i * 40)), obj_mettfodder) - f.vspeed += 0.5 - t = instance_create((global.idealborder[0] + random(150)), (((0 - (j * 120)) - (i * 40)) - 20), obj_mettlightning_pl) - t.direction += (random(20) - 10) - t.vspeed += 2 - t.friction = -0.02 - } - j += 1 - } -} -if (type == 55) -{ - global.turntimer = 170 - i = 0 - repeat (4) - { - ll = instance_create((96 + (24 * i)), (180 - (i * 40)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((312 + (24 * i)), (180 - (i * 40)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - i = 0 - repeat (3) - { - ll = instance_create((144 - (24 * i)), (20 - (i * 50)), obj_mettleg_l) - with (ll) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - rr = instance_create((360 - (24 * i)), (20 - (i * 50)), obj_mettleg_r) - with (rr) - { - sf = 60 - sp = 6 - vspeed = 2.8 - } - i += 1 - } - obj_mettleg_r.on = 0 - obj_mettleg_l.on = 0 -} -if (type == 56) -{ - global.turntimer = 260 - j = 0 - repeat (8) - { - bm1 = choose(0, 1, 2, 3, 4) - bm2 = choose(0, 1, 2, 3, 4) - if (bm2 == bm1) - bm2 += 1 - for (i = 0; i < 4; i += 1) - { - if (bm1 == i || bm2 == i || j == i) - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_plusbomb) - else - instance_create((global.idealborder[0] + (i * 25)), (-100 - (j * 240)), obj_blackbox_pl) - } - j += 1 - } - obj_plusbomb.vspeed += 5 - obj_blackbox_pl.vspeed += 5 - rw = instance_create(0, 0, obj_blackbox_rewinder) - rw.rew = -40 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_movedogehead_Alarm_2.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_movedogehead_Alarm_2.gml deleted file mode 100644 index 7b8438b88..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_movedogehead_Alarm_2.gml +++ /dev/null @@ -1,63 +0,0 @@ -if (sprite_index == spr_movedogeheada) - exit -if (specialx == 1) -{ - alarm[2] = 2 - if (global.mnfight == 2) - alarm[2] = (round(random(10)) + 8) - else - { - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - exit - specialx = 0 - alarm[2] = -1 - } - gg = floor(random(3)) - if instance_exists(blcon) - { - with (blcon) - instance_destroy() - } - if instance_exists(blconwd) - { - with (blconwd) - instance_destroy() - } - if (gg == 0) - { - xx = ((x - random((sprite_width / 2))) - 40) - yy = (y + random((sprite_height / 3))) - } - if (gg == 1) - { - xx = ((x + random((sprite_width / 3))) + 100) - yy = (y + random((sprite_height / 3))) - } - if (gg == 2) - { - xx = ((x + random(sprite_width)) - (sprite_width / 2)) - yy = (y - 18) - } - blcon = instance_create(xx, yy, obj_blconsm) - blcon.depth = 14 - blcon.sprite_index = spr_blcontiny - if (gg == 0) - global.msg[0] = "PET?" - if (gg == 1) - global.msg[0] = "PAT?" - if (gg == 2) - global.msg[0] = "POT?" - global.msg[1] = "%%%" - global.typer = 2 - blconwd = instance_create((blcon.x + 15), (blcon.y + 10), OBJ_NOMSCWRITER) - blconwd.depth = 13 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_overworldcontroller_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_overworldcontroller_Draw_0.gml deleted file mode 100644 index 22357d594..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_overworldcontroller_Draw_0.gml +++ /dev/null @@ -1,507 +0,0 @@ -buffer += 1 -if (global.interact == 5) -{ - currentmenu = global.menuno - if (global.menuno < 6) - currentspot = global.menucoord[global.menuno] - xx = view_xview[view_current] - yy = (view_yview[view_current] + 10) - moveyy = yy - if (obj_mainchara.y > (yy + 120)) - moveyy += 135 - if (global.menuno != 4) - { - draw_set_color(c_white) - draw_rectangle((16 + xx), (16 + moveyy), (86 + xx), (70 + moveyy), false) - draw_rectangle((16 + xx), (74 + yy), (86 + xx), (147 + yy), false) - if (global.menuno == 1 || global.menuno == 5 || global.menuno == 6) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (196 + yy), false) - if (global.menuno == 2) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (224 + yy), false) - if (global.menuno == 3) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (150 + yy), false) - if (global.menuno == 7) - draw_rectangle((94 + xx), (16 + yy), (266 + xx), (216 + yy), false) - draw_set_color(c_black) - draw_rectangle((19 + xx), (19 + moveyy), (83 + xx), (67 + moveyy), false) - draw_rectangle((19 + xx), (77 + yy), (83 + xx), (144 + yy), false) - if (global.menuno == 1 || global.menuno == 5 || global.menuno == 6) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (193 + yy), false) - if (global.menuno == 2) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (221 + yy), false) - if (global.menuno == 3) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (147 + yy), false) - if (global.menuno == 7) - draw_rectangle((97 + xx), (19 + yy), (263 + xx), (213 + yy), false) - draw_set_color(c_white) - draw_set_font(fnt_small) - draw_text((23 + xx), (49 + moveyy), ((("HP " + string(global.hp)) + "/") + string(global.maxhp))) - draw_text((23 + xx), (40 + moveyy), ("LV " + string(global.lv))) - draw_text((23 + xx), (58 + moveyy), ("G " + string(global.gold))) - draw_set_font(fnt_maintext) - draw_text((23 + xx), (20 + moveyy), global.charname) - if (global.menuchoice[0] == 1) - draw_text((42 + xx), (84 + yy), "ITEM") - if (global.menuchoice[1] == 1) - draw_text((42 + xx), (102 + yy), "STAT") - if (global.menuchoice[2] == 1) - draw_text((42 + xx), (120 + yy), "CELL") - if (global.menuno == 1 || global.menuno == 5) - { - for (i = 0; i < 8; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.itemname[i]) - draw_text((116 + xx), (170 + yy), "USE") - draw_text(((116 + xx) + 48), (170 + yy), "INFO") - draw_text(((116 + xx) + 105), (170 + yy), "DROP") - } - } - if (global.menuno == 3) - { - for (i = 0; i < 7; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.phonename[i]) - } - if (global.menuno == 6) - { - scr_itemname() - for (i = 0; i < 8; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.itemname[i]) - } - if (global.menuno == 7) - { - scr_storagename(300) - for (i = 0; i < 10; i += 1) - draw_text((116 + xx), ((30 + yy) + (i * 16)), global.itemname[i]) - } - if (global.menuno == 2) - { - draw_text((108 + xx), (32 + yy), (('"' + global.charname) + '"')) - draw_text((108 + xx), (62 + yy), ("LV " + string(global.lv))) - draw_text((108 + xx), (78 + yy), ((("HP " + string(global.hp)) + " / ") + string(global.maxhp))) - draw_text((108 + xx), (110 + yy), (((("AT " + string((global.at - 10))) + " (") + string(global.wstrength)) + ")")) - draw_text((108 + xx), (126 + yy), (((("DF " + string((global.df - 10))) + " (") + string(global.adef)) + ")")) - weaponname = " " - armorname = " " - if (global.weapon == 3) - weaponname = "Stick" - if (global.weapon == 13) - weaponname = "Toy Knife" - if (global.weapon == 14) - weaponname = "Tough Glove" - if (global.weapon == 25) - weaponname = "Ballet Shoes" - if (global.weapon == 45) - weaponname = "Torn Notebook" - if (global.weapon == 47) - weaponname = "Burnt Pan" - if (global.weapon == 49) - weaponname = "Empty Gun" - if (global.weapon == 51) - weaponname = "Worn Dagger" - if (global.weapon == 52) - weaponname = "Real Knife" - if (global.armor == 4) - armorname = "Bandage" - if (global.armor == 12) - armorname = "Faded Ribbon" - if (global.armor == 15) - armorname = "Manly Bandanna" - if (global.armor == 24) - armorname = "Old Tutu" - if (global.armor == 44) - armorname = "Clouded Glasses" - if (global.armor == 46) - armorname = "Stained Apron" - if (global.armor == 48) - armorname = "Cowboy Hat" - if (global.armor == 50) - armorname = "Heart Locket" - if (global.armor == 53) - armorname = "The Locket" - if (global.armor == 64) - armorname = "Temmie Armor" - draw_text((108 + xx), (156 + yy), ("WEAPON: " + weaponname)) - draw_text((108 + xx), (172 + yy), ("ARMOR: " + armorname)) - draw_text((108 + xx), (192 + yy), ("GOLD: " + string(global.gold))) - if (global.kills > 20) - draw_text((192 + xx), (192 + yy), ("KILLS: " + string(global.kills))) - if (string_length(global.charname) >= 7) - draw_text((192 + xx), (32 + yy), "Easy to#change,#huh?") - draw_text((192 + xx), (110 + yy), ("EXP: " + string(global.xp))) - if (global.lv == 1) - nextlevel = (10 - global.xp) - if (global.lv == 2) - nextlevel = (30 - global.xp) - if (global.lv == 3) - nextlevel = (70 - global.xp) - if (global.lv == 4) - nextlevel = (120 - global.xp) - if (global.lv == 5) - nextlevel = (200 - global.xp) - if (global.lv == 6) - nextlevel = (300 - global.xp) - if (global.lv == 7) - nextlevel = (500 - global.xp) - if (global.lv == 8) - nextlevel = (800 - global.xp) - if (global.lv == 9) - nextlevel = (1200 - global.xp) - if (global.lv == 10) - nextlevel = (1700 - global.xp) - if (global.lv == 11) - nextlevel = (2500 - global.xp) - if (global.lv == 12) - nextlevel = (3500 - global.xp) - if (global.lv == 13) - nextlevel = (5000 - global.xp) - if (global.lv == 14) - nextlevel = (7000 - global.xp) - if (global.lv == 15) - nextlevel = (10000 - global.xp) - if (global.lv == 16) - nextlevel = (15000 - global.xp) - if (global.lv == 17) - nextlevel = (25000 - global.xp) - if (global.lv == 18) - nextlevel = (50000 - global.xp) - if (global.lv == 19) - nextlevel = (99999 - global.xp) - if (global.lv >= 20) - nextlevel = 0 - draw_text((192 + xx), (126 + yy), ("NEXT: " + string(nextlevel))) - } - if (global.menuno == 4) - { - iniread = ini_open("undertale.ini") - name = ini_read_string("General", "Name", "EMPTY") - love = ini_read_real("General", "Love", 0) - time = ini_read_real("General", "Time", 1) - kills = ini_read_real("General", "Kills", 0) - roome = ini_read_real("General", "Room", 0) - ini_close() - draw_set_font(fnt_maintext) - draw_set_color(c_white) - draw_rectangle((54 + xx), (49 + yy), (265 + xx), (135 + yy), false) - draw_set_color(c_black) - draw_rectangle((57 + xx), (52 + yy), (262 + xx), (132 + yy), false) - draw_set_color(c_white) - if (global.menucoord[4] == 2) - draw_set_color(c_yellow) - minutes = floor((time / 1800)) - seconds = round((((time / 1800) - minutes) * 60)) - if (seconds == 60) - seconds = 59 - if (seconds < 10) - seconds = ("0" + string(seconds)) - script_execute(scr_roomname, roome) - draw_text((70 + xx), (60 + yy), name) - draw_text((140 + xx), (60 + yy), ("LV " + string(love))) - draw_text((210 + xx), (60 + yy), ((string(minutes) + ":") + string(seconds))) - draw_text((70 + xx), (80 + yy), roomname) - if (global.menucoord[4] == 0) - draw_sprite(spr_heartsmall, 0, (xx + 71), (yy + 113)) - if (global.menucoord[4] == 1) - draw_sprite(spr_heartsmall, 0, (xx + 161), (yy + 113)) - if (global.menucoord[4] < 2) - { - draw_text((xx + 85), (yy + 110), "Save") - draw_text((xx + 175), (yy + 110), "Return") - } - else - { - draw_text((xx + 85), (yy + 110), "File saved.") - if keyboard_multicheck_pressed(13) - { - global.menuno = -1 - global.interact = 0 - global.menucoord[4] = 0 - keyboard_clear(vk_return) - } - } - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (global.menucoord[4] < 2) - { - if (global.menucoord[4] == 1) - global.menucoord[4] = 0 - else - global.menucoord[4] = 1 - keyboard_clear(vk_left) - keyboard_clear(vk_right) - } - } - if (keyboard_multicheck_pressed(13) && global.menucoord[4] == 0) - { - snd_play(snd_save) - script_execute(scr_save) - global.menucoord[4] = 2 - keyboard_clear(vk_return) - } - if (keyboard_multicheck_pressed(13) && global.menucoord[4] == 1) - { - global.menuno = -1 - global.interact = 0 - global.menucoord[4] = 0 - keyboard_clear(vk_return) - } - if keyboard_multicheck_pressed(16) - { - global.menuno = -1 - global.interact = 0 - global.menucoord[4] = 0 - keyboard_clear(vk_shift) - } - } - if (global.menuno == 0) - draw_sprite(spr_heartsmall, 0, (28 + xx), ((88 + yy) + (18 * global.menucoord[0]))) - if (global.menuno == 1) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[1]))) - if (global.menuno == 3) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[3]))) - if (global.menuno == 6) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[6]))) - if (global.menuno == 7) - draw_sprite(spr_heartsmall, 0, (104 + xx), ((34 + yy) + (16 * global.menucoord[7]))) - if (global.menuno == 5) - { - if (global.menucoord[5] == 0) - draw_sprite(spr_heartsmall, 0, ((104 + xx) + (45 * global.menucoord[5])), (174 + yy)) - if (global.menucoord[5] == 1) - draw_sprite(spr_heartsmall, 0, ((104 + xx) + ((45 * global.menucoord[5]) + 3)), (174 + yy)) - if (global.menucoord[5] == 2) - draw_sprite(spr_heartsmall, 0, ((104 + xx) + ((45 * global.menucoord[5]) + 15)), (174 + yy)) - } - if keyboard_multicheck_pressed(13) - { - if (global.menuno == 5) - { - if (global.menucoord[5] == 0) - { - global.menuno = 9 - script_execute(scr_itemuseb, global.menucoord[1], global.item[global.menucoord[1]]) - } - if (global.menucoord[5] == 1) - { - global.menuno = 9 - script_execute(scr_itemdesc, global.item[global.menucoord[1]]) - script_execute(scr_writetext, 0, "x", 0, 0) - } - if (global.menucoord[5] == 2) - { - global.menuno = 9 - dontthrow = 0 - if (global.item[global.menucoord[1]] != 23 && global.item[global.menucoord[1]] != 27 && global.item[global.menucoord[1]] != 54 && global.item[global.menucoord[1]] != 56 && global.item[global.menucoord[1]] != 57) - script_execute(scr_writetext, 12, "x", 0, 0) - else - { - if (global.item[global.menucoord[1]] == 23) - script_execute(scr_writetext, 23, "x", 0, 0) - if (global.item[global.menucoord[1]] == 27) - { - script_execute(scr_writetext, 0, "* (You put the dog on the& ground.)/%%", 0, 0) - if instance_exists(obj_rarependant) - { - with (obj_rarependant) - con = 1 - } - } - if (global.item[global.menucoord[1]] == 54) - { - script_execute(scr_writetext, 0, "* (You threw the Bad Memory& away.^1)&* (But it came back.)/%%", 0, 0) - dontthrow = 1 - } - if (global.item[global.menucoord[1]] == 56) - { - if (!instance_exists(obj_undyne_friendc)) - { - script_execute(scr_writetext, 0, "* (Despite what seems like& common sense^1, you threw& away the letter.)/%%", 0, 0) - global.flag[494] = 1 - } - else - { - global.faceemotion = 1 - script_execute(scr_writetext, 0, "* Hey^1! Don't throw that& away^1! Just deliver it!/%%", 5, 37) - dontthrow = 1 - } - } - if (global.item[global.menucoord[1]] == 57) - { - script_execute(scr_writetext, 0, "* (The letter is too powerful to& throw away.^1)&* (It gets the better of you.)/%%", 0, 0) - dontthrow = 1 - } - } - if (dontthrow == 0) - script_execute(scr_itemshift, global.menucoord[1], 0) - } - } - if (global.menuno == 3) - { - global.menuno = 9 - script_execute(scr_itemuseb, global.menucoord[3], global.phone[global.menucoord[3]]) - } - if (global.menuno == 6) - { - global.menuno = 9 - script_execute(scr_storageget, global.item[global.menucoord[6]], 300) - if (noroom == 0) - { - script_execute(scr_writetext, 16, "x", 0, 0) - script_execute(scr_itemshift, global.menucoord[6], 0) - } - else - script_execute(scr_writetext, 19, "x", 0, 0) - } - if (global.menuno == 7) - { - global.menuno = 9 - script_execute(scr_itemget, global.flag[(global.menucoord[7] + 300)]) - if (noroom == 0) - { - script_execute(scr_writetext, 17, "x", 0, 0) - script_execute(scr_storageshift, global.menucoord[7], 0, 300) - } - else - script_execute(scr_writetext, 18, "x", 0, 0) - } - if (global.menuno == 1) - { - global.menuno = 5 - global.menucoord[5] = 0 - } - if (global.menuno == 0) - global.menuno += (global.menucoord[0] + 1) - if (global.menuno == 3) - { - script_execute(scr_phonename) - global.menucoord[3] = 0 - } - if (global.menuno == 1) - { - if (global.item[0] != 0) - { - global.menucoord[1] = 0 - script_execute(scr_itemname) - } - else - global.menuno = 0 - } - } - if keyboard_check_pressed(vk_up) - { - if (global.menuno == 0) - { - if (global.menucoord[0] != 0) - global.menucoord[0] -= 1 - } - if (global.menuno == 1) - { - if (global.menucoord[1] != 0) - global.menucoord[1] -= 1 - } - if (global.menuno == 3) - { - if (global.menucoord[3] != 0) - global.menucoord[3] -= 1 - } - if (global.menuno == 6) - { - if (global.menucoord[6] != 0) - global.menucoord[6] -= 1 - } - if (global.menuno == 7) - { - if (global.menucoord[7] != 0) - global.menucoord[7] -= 1 - } - } - if keyboard_check_pressed(vk_down) - { - if (global.menuno == 0) - { - if (global.menucoord[0] != 2) - { - if (global.menuchoice[(global.menucoord[0] + 1)] != 0) - global.menucoord[0] += 1 - } - } - if (global.menuno == 1) - { - if (global.menucoord[1] != 7) - { - if (global.item[(global.menucoord[1] + 1)] != 0) - global.menucoord[1] += 1 - } - } - if (global.menuno == 3) - { - if (global.menucoord[3] != 7) - { - if (global.phone[(global.menucoord[3] + 1)] != 0) - global.menucoord[3] += 1 - } - } - if (global.menuno == 6) - { - if (global.menucoord[6] != 7) - { - if (global.item[(global.menucoord[6] + 1)] != 0) - global.menucoord[6] += 1 - } - } - if (global.menuno == 7) - { - if (global.menucoord[7] != 9) - { - if (global.flag[(global.menucoord[7] + 301)] != 0) - global.menucoord[7] += 1 - } - } - } - if (keyboard_multicheck_pressed(16) && buffer >= 0) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - } - else if (global.menuno <= 3) - global.menuno = 0 - if (global.menuno == 5) - global.menuno = 1 - } - if keyboard_check_pressed(vk_right) - { - if (global.menuno == 5) - { - if (global.menucoord[5] != 2) - global.menucoord[5] += 1 - } - } - if keyboard_check_pressed(vk_left) - { - if (global.menuno == 5) - { - if (global.menucoord[5] != 0) - global.menucoord[5] -= 1 - } - } - if keyboard_multicheck_pressed(17) - { - if (global.menuno == 0) - { - global.menuno = -1 - global.interact = 0 - } - } - if (currentmenu < global.menuno && global.menuno != 9) - snd_play(snd_select) - else if (global.menuno >= 0 && global.menuno < 6) - { - if (currentspot != global.menucoord[global.menuno]) - snd_play(snd_squeak) - } -} -if (global.menuno == 9 && instance_exists(obj_dialoguer) == 0) -{ - global.menuno = -1 - global.interact = 0 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_papyrusboss_Step_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_papyrusboss_Step_0.gml deleted file mode 100644 index 7681fda13..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_papyrusboss_Step_0.gml +++ /dev/null @@ -1,1150 +0,0 @@ -if (global.mnfight == 3) - attacked = 0 -if (alarm[5] > 0) -{ - if (global.monster[0] == true) - { - if (global.monsterinstance[0].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[0].alarm[5] - } - if (global.monster[1] == true) - { - if (global.monsterinstance[1].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[1].alarm[5] - } - if (global.monster[2] == true) - { - if (global.monsterinstance[2].alarm[5] > alarm[5]) - alarm[5] = global.monsterinstance[2].alarm[5] - } -} -if (global.mnfight == 1) -{ - if (talked == 0) - { - alarm[5] = 320 - alarm[6] = 2 - talked = 1 - global.heard = 0 - } -} -if (keyboard_multicheck_pressed(13) && talkify == 0) -{ - if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0) - alarm[5] = 2 -} -if (talkify == 1 && instance_exists(OBJ_WRITER) == 0) -{ - alarm[5] = -2 - with (blconwd) - instance_destroy() - with (blcon) - instance_destroy() - talkify = 0 - talked = 0 - whatiheard = -1 - global.mnfight = 2 -} -if (global.hurtanim[myself] == 1) -{ - shudder = 16 - alarm[3] = global.damagetimer - global.hurtanim[myself] = 3 -} -if (global.hurtanim[myself] == 2) -{ - global.monsterhp[myself] -= takedamage - with (dmgwriter) - alarm[2] = 15 - if (global.monsterhp[myself] >= 1) - { - mypart1 = instance_create(x, y, part1) - global.hurtanim[myself] = 0 - image_index = 0 - global.myfight = 0 - global.mnfight = 1 - } - else - { - global.myfight = 0 - global.mnfight = 99 - killed = 1 - event_user(3) - } -} -if (global.hurtanim[myself] == 5) -{ - global.damage = 0 - instance_create(((x + (sprite_width / 2)) - 48), (y - 24), obj_dmgwriter) - with (obj_dmgwriter) - alarm[2] = 30 - global.myfight = 0 - global.mnfight = 1 - global.hurtanim[myself] = 0 -} -if (global.mnfight == 2) -{ - if (attacked == 0) - { - global.turntimer = 4 - global.firingrate = 15 - if (truefight == 0 && mycommand >= 0) - { - global.turntimer = 140 - if (murder == 1) - global.turntimer = 2 - global.border = 5 - bz = round(random(20)) - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - (20 + bz)), blt_sizebone) - with (gen) - hspeed = -3 - bz = round(random(20)) - gen = instance_create((global.idealborder[1] + 90), (global.idealborder[3] - (20 + bz)), blt_sizebone) - with (gen) - hspeed = -3 - bz = round(random(20)) - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - (20 + bz)), blt_sizebone) - with (gen) - hspeed = -3 - } - if (truefight == 1) - obj_heart.sprite_index = spr_heartblue - if (truefight == 1 && fighto == 15) - { - dontcancel = 4 - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - global.turntimer = 1300 - global.border = 5 - k = (global.idealborder[1] + 1900) - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 160), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 210), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 360), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 540), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 540), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[0] - 640), (global.idealborder[3] - 50), blt_topbone) - gen.hspeed = 4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 50), blt_topbone) - gen.hspeed = -4 - gen.osc = -4 - gen.oscmin = -1 - gen.oscmax = 60 - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 740), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 740), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 890), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 890), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 1090), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1120), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1150), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[0] - 1340), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[0] - 1370), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[0] - 1400), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 2000), (global.idealborder[3] - 40), blt_scootdog) - gen.hspeed = -5 - gen = instance_create((global.idealborder[1] + 2240), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_cbone - gen = instance_create((global.idealborder[1] + 2280), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_oolbone - gen = instance_create((global.idealborder[1] + 2500), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_dbone - gen = instance_create((global.idealborder[1] + 2540), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -5 - gen.sprite_index = spr_udebone - gen = instance_create((global.idealborder[1] + 2220), (global.idealborder[3] - 60), blt_scootdog) - gen.hspeed = -4 - gen.sprite_index = spr_skatebone - gen = instance_create((k + 10), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 70), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 130), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 190), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 250), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 310), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 370), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 430), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 490), (global.idealborder[3] - 60), blt_coolbus) - gen.hspeed = -3 - gen = instance_create((k + 550), (global.idealborder[3] - 240), blt_superbone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 970), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -1 - fighto = 16 - } - if (truefight == 1 && fighto == 14 && xfight > 3) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - fighto = 15 - xfight = 0 - dontcancel = 1 - global.border = 50 - instance_create(global.idealborder[1], (global.idealborder[3] - 40), blt_tobydogbone) - alarm[7] = 80 - } - if (truefight == 1 && fighto == 14) - { - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - xfight += 1 - if (mycommand < 20) - { - global.turntimer = 210 - global.border = 5 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 90), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 120), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 150), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 180), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 210), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 240), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 680), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 720), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 800), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 840), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 880), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 920), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - } - if (mycommand >= 20 && mycommand < 40) - { - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 90), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 250), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 330), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 410), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 490), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 570), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 1150), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -8 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 1230), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -8 - gen.blue = 0 - } - if (mycommand >= 40) - fighto = (floor(random(11)) + 2) - } - if (truefight == 1 && fighto == 13) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 220 - global.border = 5 - gen = instance_create((global.idealborder[1] + 20), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 100), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 240), (global.idealborder[3] - 10), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 270), (global.idealborder[3] - 10), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 300), (global.idealborder[3] - 10), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 40 - gen = instance_create((global.idealborder[1] + 580), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 580), (global.idealborder[3] - 60), blt_topbone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 40 - } - if (truefight == 1 && fighto == 12) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 87), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 114), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 141), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 168), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 195), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 222), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 600), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 680), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 720), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 800), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -6.4 - gen = instance_create((global.idealborder[1] + 840), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6.4 - } - if (truefight == 1 && fighto == 11) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 250 - global.border = 5 - gen = instance_create((global.idealborder[1] + 60), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 140), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 220), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 300), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 380), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 540), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 620), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4.5 - gen.blue = 0 - gen = instance_create((global.idealborder[1] + 1250), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = -7 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 1330), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -7 - gen.blue = 0 - } - if (truefight == 1 && fighto == 10) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 230 - global.border = 5 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 80), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 80), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 100), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 100), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 280), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 280), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 295), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 295), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 600), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 620), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -3 - gen.oscmin = -1 - gen.oscmax = 60 - blt_topbone.speed = 4.2 - blt_sizebone.speed = 4.2 - } - if (truefight == 1 && fighto == 9) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 355 - global.border = 5 - gen = instance_create((global.idealborder[1] + 60), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 220), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 220), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 500), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 500), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 640), (global.idealborder[3] - 70), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 780), (global.idealborder[3] - 10), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 780), (global.idealborder[3] - 50), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 990), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 990), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen.osc = -1 - gen.oscmin = -1 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1130), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -20 - gen.oscmax = 30 - gen = instance_create((global.idealborder[1] + 1130), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = -4 - gen.osc = -2 - gen.oscmin = -20 - gen.oscmax = 30 - blt_topbone.speed = 4.2 - blt_sizebone.speed = 4.2 - } - if (truefight == 1 && fighto == 8) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 230 - global.border = 5 - gen = instance_create((global.idealborder[1] + 40), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 170), (global.idealborder[3] - 70), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 310), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 310), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 460), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 610), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 610), (global.idealborder[3] - 100), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = -4 - blt_topbone.speed = 4.4 - blt_sizebone.speed = 4.4 - } - if (truefight == 1 && fighto == 7) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 150 - global.border = 5 - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 110), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 210), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 110), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 210), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 310), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -2 - if (xfight > 0) - blt_sizebone.speed = 4.4 - else - { - blt_sizebone.speed = 4 - global.turntimer = 150 - } - } - if (truefight == 1 && fighto == 6) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 110), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[0] - 210), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = 2 - gen = instance_create((global.idealborder[1] + 10), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 110), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = -2 - gen = instance_create((global.idealborder[1] + 210), (global.idealborder[3] - 35), blt_sizebone) - gen.hspeed = -2 - } - if (truefight == 1 && fighto == 5) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 330 - global.border = 5 - gen = instance_create((global.idealborder[1] + 40), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 70), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 100), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 130), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 160), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 190), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 300), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 330), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 360), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 390), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 700), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 730), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 760), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 790), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 820), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 850), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 970), (global.idealborder[3] - 15), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 1000), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 1030), (global.idealborder[3] - 45), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 1060), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - } - if (truefight == 1 && fighto == 4) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 240 - global.border = 5 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 60), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 170), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 170), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 190), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 190), (global.idealborder[3] - 110), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 320), (global.idealborder[3] - 90), blt_sizebone) - gen.hspeed = 4 - gen.blue = 1 - gen = instance_create((global.idealborder[1] + 480), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 700), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 700), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 700), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 700), (global.idealborder[3] - 80), blt_topbone) - gen.hspeed = 4 - } - if (truefight == 1 && fighto == 3) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 150 - global.border = 5 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 40), (global.idealborder[3] - 90), blt_topbone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[1] + 140), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[0] - 260), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 280), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 300), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 320), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 340), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 360), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 380), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 400), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - if (xfight > 0) - { - with (blt_sizebone) - speed = 4.5 - } - } - if (truefight == 1 && fighto == 2) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 240 - global.border = 5 - gen = instance_create((global.idealborder[0] - 30), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3.5 - gen = instance_create((global.idealborder[0] - 160), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3.5 - gen = instance_create((global.idealborder[0] - 290), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3.5 - gen = instance_create((global.idealborder[0] - 390), (global.idealborder[3] - 80), blt_sizebone) - gen.hspeed = 3.5 - gen.blue = 1 - if (xfight > 0) - blt_sizebone.speed = 4 - gen = instance_create((global.idealborder[1] + 1120), (global.idealborder[3] - 30), blt_sizebone) - gen.hspeed = -6 - } - if (truefight == 1 && fighto == 1) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 220 - global.border = 5 - gen = instance_create((global.idealborder[0] - 10), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = 3 - gen = instance_create((global.idealborder[0] - 80), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = 3 - gen = instance_create((global.idealborder[0] - 230), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 310), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 390), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 490), (global.idealborder[3] - 50), blt_sizebone) - gen.hspeed = 4 - gen = instance_create((global.idealborder[0] - 580), (global.idealborder[3] - 40), blt_topbone) - gen.hspeed = 4 - if (xfight > 0) - blt_sizebone.speed = 4.5 - } - if (truefight == 1 && fighto == 0) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - } - global.turntimer = 300 - global.border = 5 - gen = instance_create((global.idealborder[1] + 20), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 150), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 280), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 410), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -4 - gen = instance_create((global.idealborder[1] + 390), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 510), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 630), (global.idealborder[3] - 60), blt_sizebone) - gen.hspeed = -3 - } - if (truefight == 1 && fighto == -1) - { - fighto += 1 - if (truefight == 1) - { - obj_heart.movement = 2 - obj_heart.vspeed = -1 - obj_heart.jumpstage = 2 - obj_heart.sprite_index = spr_heartblue - } - global.turntimer = 200 - global.border = 5 - gen = instance_create((global.idealborder[1] + 30), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 200), (global.idealborder[3] - 20), blt_sizebone) - gen.hspeed = -3 - gen = instance_create((global.idealborder[1] + 370), (global.idealborder[3] - 40), blt_sizebone) - gen.hspeed = -3 - } - if (mycommand == -1) - { - global.border = 5 - global.turntimer = 300 - gen = instance_create(x, y, obj_blueattackgen) - } - if instance_exists(gen) - gen.myself = myself - hearthp = global.hp - if (mycommand >= 0) - global.msg[0] = "* Papyrus is preparing a bone& attack." - if (mycommand > 15) - global.msg[0] = "* Papyrus prepares a non-bone& attack then spends a minute& fixing his mistake." - if (mycommand >= 20) - global.msg[0] = "* Papyrus is cackling." - if (mycommand >= 30) - global.msg[0] = "* Papyrus whispers " + chr(34) + "Nyeh heh& heh!" + chr(34) + "" - if (mycommand >= 40) - global.msg[0] = "* Papyrus is rattling his bones." - if (mycommand >= 60) - global.msg[0] = "* Papyrus is trying hard to play& it cool." - if (mycommand >= 80) - global.msg[0] = "* Papyrus is considering his& options." - if (mycommand >= 90) - global.msg[0] = "* Smells like bones." - if (mycommand >= 97) - global.msg[0] = "* Papyrus remembered a bad joke& Sans told and is frowning." - if (global.flag[66] == 1) - flirt2 += 1 - if (flirt2 > 0 && flirt2 < 11) - { - if (flirt2 == 1) - global.msg[0] = "* Papyrus is thinking about& what to wear for his date." - if (flirt2 == 2) - global.msg[0] = "* Papyrus is thinking about& what to cook for his date." - if (flirt2 == 3) - global.msg[0] = "* Papyrus dabs some Bone& Cologne behind his ear." - if (flirt2 == 4) - global.msg[0] = "* Papyrus dabs marinara sauce& behind his ear." - if (flirt2 == 5) - global.msg[0] = "* Papyrus dabs MTT-Brand Bishie& Cream behind his ear." - if (flirt2 == 6) - global.msg[0] = "* Papyrus dabs MTT-Brand Anime& Powder behind his ear." - if (flirt2 == 7) - global.msg[0] = "* Papyrus dabs MTT-Brand Cute& Juice behind his ear." - if (flirt2 == 8) - global.msg[0] = "* Papyrus dabs MTT-Brand& Attraction Slime behind his& ear." - if (flirt2 == 9) - global.msg[0] = "* Papyrus dabs MTT-Brand& Beauty Yogurt behind his& ear." - if (flirt2 == 10) - global.msg[0] = "* Papyrus realizes he doesn't& have ears." - if (flirt2 == 11) - global.msg[0] = "* Papyrus has lumps of weird-& smelling ointment on his& head." - } - if (global.monsterhp[myself] < 100) - global.msg[0] = "* Papyrus is at the edge of& defeat." - if (mercymod >= 8000) - global.msg[0] = "* Papyrus is sparing you." - if (murder == 1) - global.msg[0] = "* Papyrus is sparing you." - attacked = 1 - if (xfight > 0) - fighto = 14 - } - if (global.turntimer < 3 && dontcancel == 0) - { - hearthp2 = global.hp - obj_heart.vspeed = 0 - obj_heart.jumpstage = 0 - global.turntimer = -1 - global.mnfight = 3 - obj_heart.movement = 0 - } - if (global.turntimer < 3 && dontcancel == 4) - { - alarm[8] = 2 - dontcancel = 5 - } -} -if (global.myfight == 2) -{ - if (whatiheard != -1) - { - if (global.heard == 0) - { - if (whatiheard == 0) - { - global.msc = 0 - global.msg[0] = (((("* PAPYRUS " + string(global.monsteratk[myself])) + " ATK ") + string(global.monsterdef[myself])) + ' DEF&* He likes to say:& "Nyeh heh heh!"/^') - if (murder == 1) - global.msg[0] = "* PAPYRUS 5 ATK 5 DEF&* Forgettable./^" - OBJ_WRITER.halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - if (whatiheard == 1) - { - global.msc = 0 - with (OBJ_WRITER) - instance_destroy() - if (insult <= 2 && truefight == 0) - { - global.msg[0] = " HOW SELFLESS.../" - global.msg[1] = " YOU WANT ME TO& FEEL BETTER& ABOUT FIGHTING& YOU.../%%" - if (insult == 1) - global.msg[0] = " THERE'S NO NEED& TO LIE TO& YOURSELF!!!/%%" - if (insult > 1) - global.msg[0] = " DON'T...!/%%" - if (insult <= 2) - { - insult += 1 - flirto = 2 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - } - else - { - global.msc = 0 - global.msg[0] = "* You INSULT^1, but to no avail^1.&* Seems ACTing won't escalate& this battle.../^" - if (truefight > 0) - global.msg[0] = "* Papyrus is too busy FIGHTing& to accept your insult./^" - with (OBJ_WRITER) - halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - } - if (whatiheard == 3) - { - hotcha += 1 - with (OBJ_WRITER) - halt = 3 - if (hotcha <= 2 && truefight == 0) - { - global.msg[0] = " WHAT!^1?& FL-FLIRTING!?/" - global.msg[1] = "\X SO YOU FINALLY& REVEAL YOUR\R & ULTIMATE FEELINGS\X!/" - global.msg[2] = " W-WELL^1!& I'M A SKELETON& WITH VERY HIGH& STANDARDS!!!/%%" - flirto = 1 - if (hotcha == 2) - { - global.msg[0] = " OH NO!!!/%%" - flirto = 2 - } - if (hotcha > 2) - { - flirto = 0 - whatiheard = 3 - global.myfight = 0 - global.mnfight = 1 - } - else - { - global.flag[66] = 1 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - } - else - { - global.msc = 0 - global.msg[0] = "* You FLIRT^1, but to no avail^1.&* Seems ACTing won't escalate& this battle.../^" - if (truefight > 0) - global.msg[0] = "* Papyrus is too busy FIGHTing& to flirt back./^" - with (OBJ_WRITER) - halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER) - with (iii) - halt = 0 - } - } - if (whatiheard == 6) - { - with (OBJ_WRITER) - instance_destroy() - global.msg[0] = " OH NO!!^1! YOU'RE& MEETING ALL MY& STANDARDS!!!/" - global.msg[1] = " I GUESS THIS MEANS& I HAVE TO GO ON A& DATE WITH YOU...?/%%" - flirto = 2 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - global.heard = 1 - if (whatiheard == 7) - { - with (OBJ_WRITER) - instance_destroy() - global.msg[0] = " OH NO!!^1!& THAT HUMILITY..^1.& IT REMINDS ME OF,/" - global.msg[1] = " MYSELF!!!/" - global.msg[2] = " YOU'RE MEETING ALL& MY STANDARDS!!!/%%" - flirto = 2 - global.typer = 22 - sblcon = instance_create((x + 145), (y + 52), obj_blconwdflowey) - sblconwd = instance_create((sblcon.x + 15), (sblcon.y + 10), OBJ_NOMSCWRITER) - } - } - } -} -if (global.myfight == 4) -{ - if (global.mercyuse == 0) - { - script_execute(scr_mercystandard) - if (mercy < 0) - event_user(2) - } -} -if (flirto > 0) -{ - if (instance_exists(OBJ_WRITER) == 0) - { - if (flirto == 1) - { - global.msc = 0 - global.typer = 1 - global.myfight = 3 - global.bmenuno = 6 - global.msg[0] = " I can I have zero& make redeeming& spaghetti qualities\C" - with (OBJ_WRITER) - halt = 3 - iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_INSTAWRITER) - with (iii) - halt = 0 - with (sblcon) - instance_destroy() - } - if (flirto == 2) - { - global.myfight = 0 - global.mnfight = 1 - stalk = 1 - } - flirto = 0 - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_readable_room1_Alarm_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_readable_room1_Alarm_0.gml deleted file mode 100644 index 6726a977b..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_readable_room1_Alarm_0.gml +++ /dev/null @@ -1,472 +0,0 @@ -myinteract = 3 -global.msc = 0 -global.typer = 5 -global.facechoice = 0 -global.faceemotion = 0 -global.msg[0] = "%%" -if (room == room_ruins2) - global.msg[0] = "* Only the fearless may proceed.&* Brave ones, foolish ones.&* Both walk not the middle road./%%" -if (room == room_ruins3) - global.msg[0] = "* Stay on the path./%%" -if (room == room_ruins5) - global.msg[0] = "* The western room is the& eastern room's blueprint./%%" -if (room == room_ruins9) - global.msg[0] = "* Three out of four grey rocks& recommend you push them./%%" -if (room == room_ruins13) - global.msg[0] = "* (There's an ant-sized frog in& a crack in the wall...^1)&* (It waves at you.)/%%" -if (room == room_ruins14) - global.msg[0] = "* There is just one switch./%%" -if (room == room_ruins15A) - global.msg[0] = "* The far door is not an exit^1.&* It simply marks a rotation& in perspective./%%" -if (room == room_ruins15B) - global.msg[0] = "* If you can read this^1,& press the blue switch./%%" -if (room == room_ruins15C) - global.msg[0] = "* If you can read this^1,& press the red switch./%%" -if (room == room_ruins15D) - global.msg[0] = "* If you can read this^1,& press the green switch./%%" -if (room == room_torhouse1) - global.msg[0] = "* These books are worn...&* They must have been read& many times./%%" -if (room == room_asghouse1) -{ - global.msg[0] = "* (There's an old calendar from& the end of 201X.^1)&* (A date is circled on it.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (The date I came here.)/%%" -} -if (room == room_torhouse2) - global.msg[0] = "* The ends of the tools have& been filed down to& make them safer./%%" -if (room == room_asghouse2) - global.msg[0] = "* Seems like gardening tools./%%" -if (room == room_asrielroom) - global.msg[0] = "* Look at these cool toys^2!&* They don't interest you& at all./%%" -if (room == room_asrielroom_final) - global.msg[0] = "* (Dusty toys.)/%%" -if (room == room_castle_finalshoehorn) - global.msg[0] = "* Throne Room/%%" -if (room == room_castle_coffins2) -{ - global.msg[0] = "* (It's a coffin.^1)&* (There's a name engraved on& it.)/" - global.msg[1] = (('* ("' + global.charname) + '.")/') - global.msg[2] = "* (It's empty.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (The coffin is empty...?)/" - global.msg[1] = "* (You didn't notice before^1,& but there's something like...)/" - global.msg[2] = "* (... mummy wrappings at the& bottom of it.)/%%" - } - if (scr_murderlv() >= 16) - global.msg[0] = "\R* (It's as comfortable as it& looks.)/%%" -} -if (room == room_torielroom) -{ - global.msc = 524 - if (x > 192) - { - global.msc = 0 - global.msg[0] = "* You peek inside..^2.&* Scandalous!/" - global.msg[1] = "* It's TORIEL's sock& collection./%%" - if (read > 0) - global.msg[0] = "* You can't stop looking& at the socks./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (You came all the way& back here to look at& Toriel's socks.)/" - global.msg[1] = "* (You have great priorities& in life.)/%%" - } - } -} -if (room == room_asgoreroom) -{ - global.msg[0] = "* It's a clothes drawer^1.&* There are robes^1, button-up& shirts.../" - global.msg[1] = "* ... and a pink^1, hand-knit& sweater that says& " + chr(34) + "Mr. Dad Guy." + chr(34) + "/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* Still has that sweater./%%" - if (y > 120) - global.msg[0] = "* (It's just a chair.)/%%" -} -if (room == room_castle_throneroom) - global.msg[0] = "* (It's a throne.)/%%" -if (room == room_torhouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_asghouse3) - global.msg[0] = "* " + chr(34) + "Room under renovations." + chr(34) + "/%%" -if (room == room_kitchen) - global.msg[0] = "* For some reason^1, there& is a brand-name chocolate& bar in the fridge./%%" -if (room == room_kitchen_final) -{ - global.msg[0] = "* (The fridge is full of& unopened containers of& snails.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "\R* No chocolate./%%" -} -if (room == room_tundra1) - global.msg[0] = "* ...!^1?&* There's a camera hidden& in the bushes./%%" -if (room == room_tundra8A) - global.msg[0] = "* (His.)/%%" -if (room == room_tundra_snowpuzz) -{ - if (global.plot <= 48) - global.msg[0] = "* There's a switch hidden& in the snow^1.&* Click!/%%" - if (global.plot > 48) - global.msg[0] = "* The switch is stuck now./%%" - if (global.flag[64] == 0) - global.flag[64] = 1 - if (global.plot <= 48) - global.plot = 49 - if (scr_murderlv() >= 3) - global.msg[0] = "* There's a switch here^1.&* It's been depressed with& vines./%%" -} -if (room == room_tundra_lesserdog) - global.msg[0] = "* On the floor inside is& a box of pomeraisins./%%" -if (room == 9999999) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are super crap./" - global.msg[2] = "* When monsters die^1, their& bodies turn into dust./" - global.msg[3] = "* One time this kid at my school& went missing for a week and& everyone thought he was dead.../" - global.msg[4] = "* But then he came back!!!/" - global.msg[5] = "* Turns out he was visiting his& girlfriend in Hotland and& and didn't tell anyone!/" - global.msg[6] = "* To be scientific^1, it sucks& that no one ever knows& if anyone's dead or alive./" - global.msg[7] = "* So yeah^1, what do we do at& funerals^1, anyway?/" - global.msg[8] = "* Professionally speaking:/" - global.msg[9] = "* DUH!!!/" - global.msg[10] = "* We pour the dust on whatever& that person liked./" - global.msg[11] = "* Then they will live on..^1.& ... in that object...& ... symbolically.../" - global.msg[12] = "* Uhhh^1, did I reach the page& minimum yet^1?&* I'm kinda sick of writing./%%" -} -if (room == room_tundra_library) -{ - global.msg[0] = "* (It's a school report about& monster funerals.)/" - global.msg[1] = "* Monster funerals^1, technically& speaking^2, are cool as heck./" - global.msg[2] = "* When monsters get old and& kick the bucket^1, they turn& into dust./" - global.msg[3] = "* At funerals^1, we take that& dust and spread it on that& person's favorite thing./" - global.msg[4] = "* Then their essence will live& on in that thing.../" - global.msg[5] = "* Uhhh^1, am I at the page& minimum yet^1?&* I'm kinda sick of writing this./%%" -} -if (room == room_tundra_inn) -{ - global.msg[0] = "\W* Mom says that sleeping& can recover your health& \Yabove your maximum HP\W./" - global.msg[1] = "* ... what's maximum HP?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* Mom says that we can& go to the surface world& now!/" - global.msg[1] = "* ... what's so great about& that^1, anyway^1?&* I don't wanna move./%%" - } - if (scr_murderlv() >= 7) - global.msg[0] = "* (It's merely a decoy.)/%%" -} -if (room == room_water12) -{ - global.msg[0] = "* " + chr(34) + "The power to take their& SOULs." + chr(34) + "/" - global.msg[1] = "* " + chr(34) + "This is the power that& the humans feared." + chr(34) + "/%%" -} -if (room == room_water7) -{ - global.msg[0] = "* (Ancient writing covers the& walls..^1. you can just make& out the words.)/" - global.msg[1] = "* " + chr(34) + "The War of Humans and& Monsters." + chr(34) + "/%%" -} -if (room == room_water14) - global.msg[0] = "* The northern room hides a& great treasure./%%" -if (room == room_water15) -{ - global.msg[0] = "* Hurt, beaten, and fearful for& our lives, we surrendered& to the humans./" - global.msg[1] = "* Seven of their greatest& magicians sealed us underground& with a magic spell./" - global.msg[2] = "* Anything can enter through the& seal, but only beings with a& powerful SOUL can leave./%%" -} -if (room == room_water19) -{ - global.msg[0] = "* However...&* There is a prophecy./" - global.msg[1] = "* The Angel...&* The One Who Has Seen The& Surface.../" - global.msg[2] = "* They will return.&* And the underground will go& empty./%%" -} -if (room == room_water_nicecream) - global.msg[0] = "* The ancient glyphs have been& painted over with a list of& 21 different flavors./%%" -if (room == room_water_prebird) - global.msg[0] = "* Achoo^1!&* Tried to catch a bug^1, but& I just caught a cold.../%%" -if (room == room_water_preundyne) -{ - global.msg[0] = "* The humans, afraid of our& power^1, declared war on us./" - global.msg[1] = "* They attacked suddenly, and& without mercy./%%" -} -if (room == room_water17) - global.msg[0] = "* Without candles or magic to& guide them Home^1, the monsters& used crystals to navigate./%%" -if (room == room_water20) -{ - if instance_exists(obj_monsterkidtrigger7) - obj_monsterkidtrigger7.con = 80 - cantalk = 0 -} -if (room == room_fire_lab1) -{ - global.msg[0] = "* (It's beat-up figurine& of a female human with& cat ears.)/%%" - if (global.plot < 126 && scr_murderlv() < 12) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" -} -if (room == room_fire_lab2) - global.msg[0] = "* (Scientific books.^1)&* (They seem very dusty.)/%%" -if (room == room_fire_cookingshow) -{ - global.msg[0] = "* (It's a fridge.^1)&* (It's strangely warm.)/%%" - if (global.plot < 134) - global.msg[0] = "* (It's too dark to see& near the walls.)/%%" - if instance_exists(obj_mettaton_npc) - { - global.typer = 27 - global.msg[0] = "* MILK^1? EGGS^1? IN THE FRIDGE?/" - global.msg[1] = "* NO WAY^1, DARLING^1!&* THEY'D GET COLD!!!/%%" - } - if (global.plot == 134) - { - snd_play(snd_phone) - global.typer = 5 - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* Um^1, is it really& a good idea to be& getting a snack?/" - global.msg[3] = "\E8* Well^1, I guess I& really shouldn't& judge you.../" - global.msg[4] = "\E0* After all^1, I'm the& one eating potato& chips in my PJs!/" - global.msg[5] = "\E5* Uhhh^1, I mean..^1.&* H-hey^1, go over to& the right!/%%" - if (specialread > 0) - { - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* H-hey^1!&* Head over to the& right!/%%" - } - specialread += 1 - } -} -if (room == room_water_undynehouse) -{ - global.typer = 37 - global.facechoice = 5 - global.faceemotion = 4 - global.msc = 0 - if (x > 180) - { - global.msg[0] = "* I hate cold food./" - global.msg[1] = "\E0* So Alphys fixed up& my fridge so it& heats up food instead!/" - global.msg[2] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - if (read > 0) - global.msg[0] = "\E6* Hot Fridge..^1.&* The world's greatest& invention!/%%" - } - else - { - global.faceemotion = 0 - global.msg[0] = "* This oven is some& top-of-the-line& MTT thing./" - global.msg[1] = "\E4* But^1, y'know^1, as much& as technology& advances.../" - global.msg[2] = "\E0* Nothing beats food& home-cooked with& fire magic./%%" - } -} -if (room == room_fire_spidershop) -{ - global.msg[0] = "* (It looks like some sort of& powerful bracelet...)/" - global.msg[1] = "* (Wait.^1)&* (It's just a croissant...)/%%" -} -if (room == room_fire_hotelfront_2) - global.msg[0] = "* (It's just a regular wall.)/%%" -if (room == room_fire_core_branch) - global.msg[0] = "* (East...)&* (The End.)/%%" -if (room == room_fire_core_left) - global.msg[0] = "* (Solve this puzzle,& and The End will open.)/%%" -if (room == room_fire_core_top) - global.msg[0] = "* (Traverse the northern& room^1, and The End will& open.)/%%" -if (room == room_fire_core_right) -{ - global.msg[0] = "* (I cannot fight.)&* (I cannot think.)/" - global.msg[1] = "* (But^1, with patience^1,& I will make my way& through.)/%%" -} -if (room == room_fire_core_center) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_treasureleft) - global.msg[0] = "* (Why not relax and have& a nice snack?)/%%" -if (room == room_fire_core_treasureright) - global.msg[0] = "* (Get lost...)&* (And stay that way.)/%%" -if (room == room_fire_core_metttest) -{ - global.msg[0] = "* (It's completely trashed.^1)&* (There's no way it could& ever be repaired.)/%%" - if (global.flag[425] == 0) - global.msg[0] = "* (It's out of batteries.)/%%" -} -if (room == room_truelab_hall1) -{ - global.msg[0] = "* ENTRY NUMBER 1/" - global.msg[1] = "* This is it..^1.&* Time to do what the King& has asked me to do./" - global.msg[2] = "* I will create the power to& free us all./" - global.msg[3] = "* I will unleash the power of& the SOUL./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hub) -{ - global.msg[0] = "* POWER ROOM/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall2) -{ - global.msg[0] = "* ENTRY NUMBER 6/" - global.msg[1] = "* ASGORE asked everyone& outside the city for monsters& that had " + chr(34) + "fallen down." + chr(34) + "/" - global.msg[2] = "* Their bodies came in today./" - global.msg[3] = "* They're still comatose..^1.&* And soon^1, they'll all& turn into dust./" - global.msg[4] = "* But what happens if I& inject " + chr(34) + "determination" + chr(34) + " into& them?/" - global.msg[5] = "* If their SOULS persist& after they perish^1, then.../" - global.msg[6] = "* Freedom might be closer& than we all thought./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_operatingroom) -{ - global.msg[0] = "* ENTRY NUMBER 9/" - global.msg[1] = "* things aren't going well./" - global.msg[2] = "* none of the bodies have& turned into dust^1, so I& can't get the SOULs./" - global.msg[3] = "* i told the families that& i would give them the& dust back for the funerals./" - global.msg[4] = "* people are starting to& ask me what's happening./" - global.msg[5] = "* what do i do?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_prebed) -{ - global.msg[0] = "* ENTRY NUMBER 12/" - global.msg[1] = "* nothing is happening^1.&* i don't know what to do./" - global.msg[2] = "* i'll just keep injecting& everything with& " + chr(34) + "determination." + chr(34) + "/" - global.msg[3] = "* i want this to work./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_bedroom) -{ - global.msg[0] = "* ENTRY NUMBER 14/" - global.msg[1] = "* Everyone that had fallen& down.../" - global.msg[2] = "* ... has woken up./" - global.msg[3] = "* They're all walking around& and talking like nothing& is wrong./" - global.msg[4] = "* I thought they were& goners...?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_mirror) -{ - global.msg[0] = "* ENTRY NUMBER 7/" - global.msg[1] = "* We'll need a vessel to& wield the monster SOULs& when the time comes./" - global.msg[2] = "* After all^1, a monster& cannot absorb the SOULs& of other monsters./" - global.msg[3] = "* Just as a human cannot& absorb a human SOUL.../" - global.msg[4] = "* So then.../" - global.msg[5] = "* What about something that's& neither human nor monster?/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_hall3) -{ - global.msg[0] = "* ENTRY NUMBER 15/" - global.msg[1] = "* Seems like this research& was a dead end.../" - global.msg[2] = "* But at least we got a& happy ending out of it...?/" - global.msg[3] = "* I sent the SOULS and the& vessel back to ASGORE./" - global.msg[4] = "* And I called all of the& families and told them& everyone's alive./" - global.msg[5] = "* I'll send everyone back& tomorrow. :) /%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* ENTRY NUMBER 17/" - global.msg[1] = "* monsters' physical forms& can't handle " + chr(34) + "determination" + chr(34) + "& like humans' can./" - global.msg[2] = "* with too much determination^1,& our bodies begin to break& down./" - global.msg[3] = "* everyone's melted together.../%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_determination) -{ - global.msg[0] = "* DT EXTRACTION MACHINE&* STATUS: INACTIVE/%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_tv) -{ - global.msg[0] = "* ENTRY NUMBER 4/" - global.msg[1] = "* I've been researching humans& to see if I can find any& info about their SOULS./" - global.msg[2] = "* I ended up snooping around& the castle...&* And found these weird tapes./" - global.msg[3] = "* I don't feel like ASGORE's& watched them.../" - global.msg[4] = "* I don't think he should./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" -} -if (room == room_truelab_fan) - global.msc = 780 -if (room == room_truelab_cooler) -{ - global.msg[0] = "* ENTRY NUMBER 19/" - global.msg[1] = "* the families keep calling& me to ask when everyone& is coming home./" - global.msg[2] = "* what am i supposed to say?/" - global.msg[3] = "* i don't even answer the& phone anymore./%%" - if (global.flag[485] == 1) - global.msg[0] = "* (It seems to be turned off.)/%%" - if (global.flag[490] == 0) - global.msg[0] = "* (It's too dark to see near& the walls.)/%%" -} -if (room == room_truelab_prepower) -{ - global.msg[0] = "* (Seems to be turned off.)/%%" - if (global.flag[485] == 1) - { - global.msg[0] = "* ENTRY NUMBER 8/" - global.msg[1] = "* I've chosen a candidate./" - global.msg[2] = "* I haven't told ASGORE yet^1,& because I want to surprise& him with it.../" - global.msg[3] = "* In the center of his& garden^1, there's something& special./" - global.msg[4] = "* The first golden flower^1,& that grew before all the& others./" - global.msg[5] = "* The flower from the outside& world./" - global.msg[6] = "* It appeared just before& the queen left./" - global.msg[7] = "* I wonder.../" - global.msg[8] = "* What happens when something& without a SOUL gains& the will to live?/%%" - } -} -if (room == room_truelab_elevatorinside) - global.msg[0] = "* (None of the buttons work.^1)&* (It seems to have lost power.)/%%" -if (room == room_castle_elevatorout) - global.msg[0] = "* (The door is jammed shut& with vines.)/%%" -if (room == room_truelab_castle_elevator) - global.msg[0] = "* (Seems like another elevator& has lost its power.)/%%" -if (room == room_tundra_grillby) - global.msg[0] = "* (The jukebox is broken.)/%%" -if (room == room_water_blookyard) - global.msg[0] = "* (It's locked.)/%%" -if (room == room_tundra_sansroom) - global.msg[0] = "* (It's a worn mattress.^1)&* (The sheets are bunched up in a& weird^1, creasy ball.)/%%" -if (room == room_tundra_sansbasement) -{ - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (He looks happy.)/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* (There's a photo album inside& the drawer.)/" - global.msg[1] = "* (There are photos of Sans with& a lot of people you don't& recognize.)/" - global.msg[2] = "* (... and^1, one photo of you& standing with Sans and all& your friends.)/" - global.msg[3] = "* (He looks happy.)/%%" - } -} -if (room == room_fire_pacing) -{ - global.msg[0] = "* (It's a poster for Mettaton's& latest stage performance.)/" - global.msg[1] = "* (A tragic tale of two star-& crossed lovers^1, kept apart& by the tides of fate...)/" - global.msg[2] = "* (Looks like it's almost time& for the performance.)/%%" -} -if (room == room_fire_hoteldoors) - global.msg[0] = "* (It's locked from the inside.)/%%" -if (room == room_fire_hotellobby) -{ - global.msg[0] = "* (There's an inscription on& this fountain.)/" - global.msg[1] = "* Royal Memorial Fountain&* Built 201X&* (Mettaton Added Last Week)/%%" -} -if (room == room_fire_restaurant) -{ - global.msg[0] = "* (It's a Wall of Fame full of& quotes and photos from visiting& celebrities.)/" - global.msg[1] = "* " + chr(34) + "The food is to die for!^1" + chr(34) + "&* " + chr(34) + "Gorgeous style and fragrance!^1" + chr(34) + "&* " + chr(34) + "My face tastes beautiful!" + chr(34) + "/" - global.msg[2] = "* (... these are all Mettaton.)/%%" -} -if (room == room_fire_hotelbed) -{ - global.msg[0] = "* (It's a lamp.^1)&* (There's no lightswitch.)/" - global.msg[1] = "* (It says that stars make& their own light...)/%%" -} -if (room == room_water_temvillage) - global.msg[0] = "* (Rich history of Tem.)/%%" -read += 1 -if (cantalk == 1) - mydialoguer = instance_create(0, 0, obj_dialoguer) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_shop5_body_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_shop5_body_Draw_0.gml deleted file mode 100644 index d03c73c02..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_shop5_body_Draw_0.gml +++ /dev/null @@ -1,236 +0,0 @@ -if (nowemote != global.faceemotion) - event_user(0) -nowemote = global.faceemotion -siner += 1 -draw_sprite(spr_5_coffeeline, floor((siner / 8)), 178, floor((62 + (sin((siner / 4)) * 1.5)))) -draw_sprite(spr_5_tembody, 0, (99 + bodyx), (1 + bodyy)) -if (global.faceemotion == 0) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes1, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 - if (facetimer > 90 && facetimer < 110) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 130 && facetimer < 150) - facex += (sin((facetimer / 10)) * 0.8) - if (facetimer > 190 && facetimer < 230) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer > 290 && facetimer < 310) - facey += (sin((facetimer / 10)) * 0.8) - if (facetimer > 326 && facetimer < 345) - facey += (sin((facetimer / 10)) * 1.5) - if (facetimer > 390 && facetimer < 430) - { - facey *= 0.9 - if (facey <= 0.5) - facex = 0 - } - if (facetimer == 460) - facetimer = 0 -} -if (global.faceemotion == 1) -{ - rr = (random(0.8) - random(0.8)) - rr2 = (random(0.8) - random(0.8)) - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor((((32 + offy[0]) + (facey / 2)) - sin((facetimer / 2))))) - draw_sprite(spr_5_eyes2, 0, floor((((135 + offx[1]) + facex) + rr)), floor((((38 + offy[1]) + facey) + rr2))) - draw_sprite(spr_5_mouth1, 0, floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 2) -{ - draw_sprite(spr_5_tembrows, 0, floor((138 + offx[0])), floor(((32 + offy[0]) + (facey / 2)))) - draw_sprite(spr_5_eyes3, 0, floor(((139 + offx[1]) + facex)), floor(((40 + offy[1]) + facey))) - draw_sprite(spr_5_mouth2, floor((siner / 3)), floor(((141 + offx[2]) + facex)), floor(((48 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - if (facetimer > 45 && facetimer < 55) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 65 && facetimer < 75) - facex += (sin((facetimer / 5)) * 0.8) - if (facetimer > 95 && facetimer < 115) - { - facex *= 0.9 - if (facex <= 0.5) - facex = 0 - } - if (facetimer == 140) - facetimer = 0 - facetimer += 1 -} -if (global.faceemotion == 3) -{ - facex = 2 - facey = -2 - draw_sprite(spr_5_eyes4, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor(((146 + offx[2]) + facex)), floor(((42 + offy[2]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 4) -{ - facey = (sin((facetimer / 5)) * 1.5) - draw_sprite(spr_5_eyes5, 0, floor(((137 + offx[1]) + facex)), floor(((32 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos((siner / 1.5)) * 1.5))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 4)) * 1.5)), 1, 1, 0, c_white, (1 + sin((siner / 4)))) - facetimer += 1 -} -if (global.faceemotion == 5) -{ - rr = (random(1) - random(1)) - rr2 = (random(1) - random(1)) - bodyx = rr - bodyy = rr2 - facey = (sin((facetimer / 3)) * 2) - draw_sprite(spr_5_eyes6, 0, floor(((137 + offx[1]) + facex)), floor(((31 + offy[1]) + facey))) - draw_sprite(spr_5_mouth3, floor((siner / 3)), floor((((144 + offx[2]) + facex) + (cos(siner) * 2))), floor(((43 + offy[2]) + facey))) - draw_sprite_ext(spr_5_sweat, 0, 133, (39 + (sin((siner / 2)) * 2)), 1, 1, 0, c_white, (1 + sin((siner / 2)))) - facetimer += 1 -} -if (global.faceemotion == 6) -{ - draw_sprite(spr_5_sellface, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -if (global.faceemotion == 7) -{ - draw_sprite(spr_5_sellface_x, floor((siner / 2)), floor(((139 + offx[1]) + facex)), floor(((25 + offy[1]) + facey))) - facetimer += 1 -} -draw_sprite(spr_5_tembox, 0, (80 + boxx), 68) -if (sellmenu == 1) -{ - draw_set_color(c_white) - draw_set_font(fnt_maintext) - value[0] = 100 - value[1] = 5 - value[2] = 666 - value[3] = 10 - value[4] = 100 - value[5] = 5 - value[6] = 12 - value[7] = 0 - value[8] = 0 - value[9] = 0 - value[10] = 0 - for (i = 0; i < 8; i += 1) - { - s_value[i] = (" " + string(value[i])) - if (value[i] >= 10 && value[i] < 100) - s_value[i] = (" " + string(value[i])) - if (value[i] >= 100 && value[i] < 1000) - s_value[i] = string(value[i]) - } - odd = -1 - if (sellpos == 0 || sellpos == 2 || sellpos == 4 || sellpos == 6) - { - odd = 0 - draw_sprite(spr_heartsmall, 0, 15, (135 + ((sellpos / 2) * 20))) - } - if (sellpos == 1 || sellpos == 3 || sellpos == 5 || sellpos == 7) - { - odd = 1 - draw_sprite(spr_heartsmall, 0, 155, (135 + (((sellpos - 1) / 2) * 20))) - } - if (sellpos == 8) - draw_sprite(spr_heartsmall, 0, 15, 215) - if (keyboard_check_pressed(vk_right) && odd == 0) - { - if (value[(sellpos + 1)] != 0) - sellpos += 1 - } - if (keyboard_check_pressed(vk_left) && odd == 1) - sellpos -= 1 - if keyboard_check_pressed(vk_down) - { - d_fail = 0 - if (value[(sellpos + 2)] == 0) - d_fail = 1 - if (d_fail == 1 && value[(sellpos + 1)] != 0) - d_fail = 2 - if (sellpos == 6 || sellpos == 7 || sellpos == 8) - d_fail = 1 - if (d_fail == 1) - sellpos = 8 - else if (d_fail == 2) - sellpos += 1 - else - sellpos += 2 - } - if keyboard_check_pressed(vk_up) - { - if (sellpos != 0 && sellpos != 1) - { - if (sellpos == 8) - { - this_i = -1 - i = 7 - while (this_i == -1) - { - if (value[i] != 0) - this_i = i - i -= 1 - if (i == -1) - this_i = 8 - } - sellpos = this_i - } - else - sellpos -= 2 - } - } - draw_set_color(c_white) - for (i = 0; i < 4; i += 1) - { - if (value[(i * 2)] != 0) - draw_text(30, (130 + (i * 20)), (s_value[(i * 2)] + "G - Ninechara")) - if (value[((i * 2) + 1)] != 0) - draw_text(170, (130 + (i * 20)), (s_value[((i * 2) + 1)] + "G - Ninechara")) - } - draw_text(30, 210, "Exit") - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if keyboard_check_pressed(vk_return) - { - buffer = 3 - if (sellpos == 8) - sellmenu = 0 - else - { - sellmenu = 2 - sellpos2 = 0 - } - } -} -if (sellmenu == 2) -{ - buffer -= 1 - draw_set_color(c_white) - draw_set_font(fnt_maintext) - draw_text(55, 150, (("Really sell Ninechara for " + string(value[sellpos])) + "G?")) - draw_text(80, 180, "Yes") - draw_text(190, 180, "No") - draw_sprite(spr_heartsmall, 0, (65 + (sellpos2 * 110)), 185) - draw_set_color(c_yellow) - draw_text(200, 210, "(9999 G)") - if (keyboard_check_pressed(vk_left) || keyboard_check_pressed(vk_right)) - { - if (sellpos2 == 0) - sellpos2 = 1 - else - sellpos2 = 0 - } - if (keyboard_check_pressed(vk_return) && buffer <= 0) - { - if (sellpos2 == 1) - sellmenu = 1 - else - { - } - } -} -if (global.flag[276] == 1) - draw_sprite(spr_temhat, 0, ((99 + bodyx) + 37), (1 + bodyy)) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_truechara_Step_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_truechara_Step_0.gml deleted file mode 100644 index 0b3663c04..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_truechara_Step_0.gml +++ /dev/null @@ -1,192 +0,0 @@ -if (con == 1) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Greetings./" - global.msg[1] = (("I^2 am " + global.charname) + "./%%") - instance_create(220, 320, OBJ_WRITER) - con = 2 -} -if (con == 2 && instance_exists(OBJ_WRITER) == 0) -{ - caster_loop(ch_sfx1, 1, 1) - con = 3 - alarm[4] = 60 -} -if (con == 4) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Thank you./" - global.msg[1] = "Your power awakened&me from death./" - global.msg[2] = 'My "human soul."/' - global.msg[3] = 'My "determination."/' - global.msg[4] = "They were not mine^1,&but YOURS./" - global.msg[5] = "At first^1, I&was so confused./" - global.msg[6] = "Our plan had failed^1,&hadn't it?/" - global.msg[7] = "Why was I brought&back to life?/" - global.msg[8] = ".../" - global.msg[9] = "You./" - global.msg[10] = "With your guidance./" - global.msg[11] = "I realized the purpose&of my reincarnation./" - global.msg[12] = "Power./" - global.msg[13] = "Together^1, we eradicated&the enemy and became&strong./" - global.msg[14] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[15] = "Every time a number&increases^1, that&feeling.../" - global.msg[16] = "That's me./" - global.msg[17] = (('"' + global.charname) + '."/') - global.msg[18] = "Now./" - global.msg[19] = "Now, we have reached&the absolute./" - global.msg[20] = "There is nothing&left for us here./" - global.msg[21] = "Let us erase this&pointless world^1, and&move on to the next./%%" - if file_exists("system_information_963") - { - global.msg[0] = (('"' + global.charname) + '."/') - global.msg[1] = "The demon that comes&when people call&its name./" - global.msg[2] = "It doesn't matter when./" - global.msg[3] = "It doesn't matter where./" - global.msg[4] = "Time after time,&I will appear./" - global.msg[5] = "And, with your help./" - global.msg[6] = "We will eradicate the&enemy and become&strong./" - global.msg[7] = "HP. ATK. DEF.&GOLD. EXP. LV./" - global.msg[8] = "Every time a number&increases^1, that&feeling.../" - global.msg[9] = "That's me./" - global.msg[10] = (('"' + global.charname) + '."/') - global.msg[11] = ".../" - global.msg[12] = "But./" - global.msg[13] = "You and I are not&the same^1, are we?/" - global.msg[14] = "This SOUL resonates&with a strange&feeling./" - global.msg[15] = "There is a reason&you continue to&recreate this world./" - global.msg[16] = "There is a reason&you continue to&destroy it./" - global.msg[17] = "You./" - global.msg[18] = "You are wracked with&a perverted&sentimentality./" - global.msg[19] = "Hmm./" - global.msg[20] = "I cannot understand&these feelings&any more./" - global.msg[21] = "Despite this./" - global.msg[22] = "I feel obligated to&suggest./" - global.msg[23] = "Should you choose to&create this world&once more./" - global.msg[24] = "Another path would&be better suited./" - global.msg[25] = "Now, partner./" - global.msg[26] = "Let us send this&world back into the&abyss./%%" - } - instance_create(150, 320, OBJ_WRITER) - con = 5 -} -if (con == 5 && instance_exists(OBJ_WRITER) == 0) -{ - con = 6 - alarm[4] = 30 -} -if (con == 7) -{ - con = 8 - choicer = 1 -} -if (con == 20) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "Right^1. You are a&great partner./" - global.msg[1] = "We'll be together&forever^1, won't we?/%%" - con = 22 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 22 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 1) - sprite_index = spr_truechara_weird -} -if (con == 22 && instance_exists(OBJ_WRITER) == 0) - con = 60 -if (con == 30) -{ - global.msc = 0 - global.typer = 104 - global.msg[0] = "No...?/" - global.msg[1] = "Hmm.../" - global.msg[2] = "How curious./" - global.msg[3] = "You must have&misunderstood./" - global.msg[4] = "SINCE WHEN WERE YOU&THE ONE IN CONTROL?/%%" - if file_exists("system_information_963") - { - global.msg[0] = "No...?/" - global.msg[1] = "Hmm...&This feeling you have./" - global.msg[2] = "This is what I&spoke of./" - global.msg[3] = "Unfortunately,®arding this.../" - global.msg[4] = "YOU MADE YOUR CHOICE&LONG AGO./%%" - } - con = 31 - instance_create(150, 320, OBJ_WRITER) -} -if (con == 31 && instance_exists(OBJ_WRITER)) -{ - if (OBJ_WRITER.stringno == 4) - sprite_index = spr_truechara_weird -} -if (con == 31 && instance_exists(OBJ_WRITER) == 0) - con = 40 -if (con == 40) -{ - caster_stop(-3) - caster_play(ch_sfx2, 1, 0.95) - sprite_index = spr_truechara_laugh - image_speed = 0.5 - con = 41 - flashred = 1 - alarm[4] = 120 - wx = 0 - wy = 0 - if (global.osflavor == 1) - { - window_set_fullscreen(false) - window_set_caption(" ") - window_center() - wx = window_get_x() - wy = window_get_y() - } -} -if (con == 41) -{ - x = (((room_width / 2) + random(4)) - random(4)) - y = (((room_height / 2) + random(4)) - random(4)) - image_xscale += 0.08 - image_yscale += 0.08 - if (global.osflavor == 1) - window_set_position(((wx + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4))), ((wy + random(((redsiner / 4) + 4))) - random(((redsiner / 4) + 4)))) -} -if (con == 42) -{ - con = 60 - if (global.osflavor == 1) - window_center() - flashred = 0 -} -if (con == 60) -{ - caster_free(-3) - snd_play(snd_laz) - image_speed = 0 - image_index = 0 - sprite_index = spr_strike - image_xscale = 5 - image_yscale = 5 - y = ((room_height / 2) - (sprite_height / 2)) - x = ((room_width / 2) - (sprite_width / 2)) - image_speed = 0.1 - con = 61 -} -if (con == 61) -{ - if (image_index >= 5.5) - { - visible = false - con = 62 - alarm[4] = 40 - } -} -if (con == 63) -{ - snd_play(snd_damage) - instance_create(0, 0, obj_gameshake) - con = 64 -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_vaporized_new_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_vaporized_new_Draw_0.gml deleted file mode 100644 index f424d711c..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_vaporized_new_Draw_0.gml +++ /dev/null @@ -1,55 +0,0 @@ -dn = 1 -ht_a = (sprite_height - (line * 2)) -ht_b = (y + (line * 2)) -ht_c = (line * 2) -if (dn == 1) - draw_sprite_part_ext(sprite_index, image_index, 0, ht_c, wd, ht_a, x, ht_b, image_xscale, image_yscale, c_white, 1) -if (finishedreading == 0) -{ - repeat (4) - { - ww = 0 - mychar = string("0") - while (mychar != "}" && mychar != "~") - { - mychar = string_char_at(mydata, (myread + 1)) - draw_set_color(c_black) - if (ord(mychar) >= 84 && ord(mychar) <= 121) - { - for (i = 0; i < (ord(mychar) - 85); i += 1) - ww += 2 - } - draw_set_color(c_white) - if (ord(mychar) >= 39 && ord(mychar) <= 82) - { - if (wd > 120 && spec == 0) - { - blk = instance_create((x + ww), (y + (line * 2)), obj_whtpxlgrav) - blk.image_xscale = (ord(mychar) - 40) - with (blk) - event_user(0) - ww += ((ord(mychar) - 40) * 2) - } - else - { - for (i = 0; i < (ord(mychar) - 40); i += 1) - { - instance_create((x + ww), ((y + (line * 2)) + 2), obj_whtpxlgrav) - ww += 2 - } - } - } - myread += 1 - } - ww = 0 - line += 1 - if (mychar == "~") - { - finishedreading = 1 - instance_destroy() - exit - } - else - alarm[0] = (1 + myvapor) - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml deleted file mode 100644 index 9be3e0aee..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Object_obj_waterfall_waterfall_Draw_0.gml +++ /dev/null @@ -1,51 +0,0 @@ -siner += 1 -if (image_xscale == 1) - draw_sprite(spr_waterfall_singletop, (siner / 5), x, y) -if (image_xscale > 1) -{ - draw_sprite(spr_waterfall_topleft, (siner / 5), x, y) - for (i = 1; i < (image_xscale + 1); i += 1) - { - if (i < image_xscale) - { - draw_sprite(spr_waterfall_midtop, (siner / 5), (x + (i * 20)), y) - } - else - { - draw_sprite(spr_waterfall_topright, (siner / 5), ((x + (i * 20)) - 20), y) - break - } - } -} -if (image_yscale > 1 && image_xscale == 1) -{ - for (i = 1; i <= image_yscale; i += 1) - draw_sprite(spr_waterfall_midmid, (siner / 5), x, (y + (i * 20))) -} -if (image_yscale > 1 && image_xscale > 1) -{ - for (j = 1; j <= image_yscale; j += 1) - { - if (j < image_yscale) - draw_sprite(spr_waterfall_midleft, (siner / 5), x, (y + (j * 20))) - if (j == image_yscale) - draw_sprite(spr_waterfall_bottomleft, (siner / 5), x, ((y + (j * 20)) - 20)) - for (i = 1; i <= image_xscale; i += 1) - { - if (j < image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_midright, (siner / 5), ((x + (i * 20)) - 20), (y + (j * 20))) - else - draw_sprite(spr_waterfall_midmid, (siner / 5), (x + (i * 20)), (y + (j * 20))) - } - if (j == image_yscale) - { - if (i == image_xscale) - draw_sprite(spr_waterfall_bottomright, (siner / 5), ((x + (i * 20)) - 20), ((y + (j * 20)) - 20)) - else - draw_sprite(spr_waterfall_bottommid, (siner / 5), (x + (i * 20)), ((y + (j * 20)) - 20)) - } - } - } -} diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_SCR_TEXT.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_SCR_TEXT.gml deleted file mode 100644 index 061b9f3b9..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_SCR_TEXT.gml +++ /dev/null @@ -1,6407 +0,0 @@ -switch argument0 -{ - case 0: - break - case 1: - global.msg[0] = "\XLa, la.^3 &Time to wake&up and\R smell\X &the^4 pain./" - global.msg[1] = "* Though^2.^4.^6.^8.&It's still a&little shaky./" - global.msg[2] = "fhuehfuehfuehfuheufhe/%" - global.msg[3] = "%%%" - break - case 2: - global.msg[0] = "* TestMonster and its cohorts&draw near!" - global.msg[1] = "%%%" - break - case 3: - global.msg[0] = " " - if (global.monster[0] == true) - { - with (global.monsterinstance[0]) - script_execute(scr_mercystandard) - adder = " " - adder = "\W " - if (global.monsterinstance[0].mercy < 0) - { - if (global.flag[22] == 0) - adder = "\Y " - if (global.flag[22] == 2) - adder = "\p " - } - global.msg[0] = adder - global.msg[0] += (" * " + global.monstername[0]) - if (global.monstertype[0] == global.monstertype[1] || global.monstertype[0] == global.monstertype[2]) - global.msg[0] += " A" - } - global.msg[0] += "\W &" - if (global.monster[1] == true) - { - with (global.monsterinstance[1]) - script_execute(scr_mercystandard) - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[1].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[1]) - if (global.monstertype[1] == global.monstertype[0]) - global.msg[0] += " B" - } - global.msg[0] += "\W &" - if (global.monster[2] == true) - { - with (global.monsterinstance[2]) - script_execute(scr_mercystandard) - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 0) - global.msg[0] += "\Y" - if (global.monsterinstance[2].mercy < 0 && global.flag[22] == 2) - global.msg[0] += "\p" - global.msg[0] += (" * " + global.monstername[2]) - if (global.monstertype[2] == global.monstertype[1]) - global.msg[0] += " C" - } - global.msg[1] = "%%%" - break - case 7: - global.msg[0] = " " - for (i = 0; i < 3; i += 1) - { - if (global.monster[i] == true) - { - with (global.monsterinstance[i]) - script_execute(scr_mercystandard) - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 0) - global.msg[0] = "\Y " - if (global.monsterinstance[i].mercy < 0 && global.flag[22] == 2) - global.msg[0] = "\p " - } - } - global.msg[0] += " * Spare" - if (global.mercy == 0) - global.msg[0] += "& \W * Flee" - break - case 9: - global.msg[0] = ((" * " + global.itemnameb[0]) + " ") - if (global.item[1] != 0) - global.msg[0] += ("* " + global.itemnameb[1]) - global.msg[0] += " &" - if (global.item[2] != 0) - global.msg[0] += ((" * " + global.itemnameb[2]) + " ") - if (global.item[3] != 0) - global.msg[0] += ("* " + global.itemnameb[3]) - global.msg[0] += " & PAGE 1" - global.msg[1] = "%%%" - break - case 10: - global.msg[0] = ((" * " + global.itemnameb[4]) + " ") - if (global.item[5] != 0) - global.msg[0] += ("* " + global.itemnameb[5]) - global.msg[0] += " &" - if (global.item[6] != 0) - global.msg[0] += ((" * " + global.itemnameb[6]) + " ") - if (global.item[7] != 0) - global.msg[0] += ("* " + global.itemnameb[7]) - global.msg[0] += " & PAGE 2" - global.msg[1] = "%%%" - break - case 11: - global.msg[0] += " &" - if (global.item[8] < 99) - global.msg[0] += (("* You recovered " + string(global.item[8])) + " HP!/%") - else - global.msg[0] += "* Your HP was maxed out./%" - break - case 12: - i = round(random(18)) - if (i == 0) - global.msg[0] = (("* You bid a quiet farewell& to the " + global.itemname[global.menucoord[1]]) + ".") - if (i == 1) - global.msg[0] = (("* You put the " + global.itemname[global.menucoord[1]]) + "& on the ground and gave it a& little pat.") - if (i == 2) - global.msg[0] = (("* You threw the " + global.itemname[global.menucoord[1]]) + "& on the ground like the piece& of trash it is.") - if (i == 3) - global.msg[0] = (("* You abandoned the & " + global.itemname[global.menucoord[1]]) + ".") - if (i > 3) - global.msg[0] = (("* The " + global.itemname[global.menucoord[1]]) + " was& thrown away.") - global.msg[0] += "/%" - break - case 14: - i = round(random(20)) - if (i == 0 || i == 1) - global.msg[0] = " * I'm outta here." - if (i == 2) - global.msg[0] = " * I've got better to do." - if (i > 3) - global.msg[0] = " * Escaped..." - if (i == 3) - global.msg[0] = " * Don't slow me down." - if (global.xpreward[3] > 0 || global.goldreward[3] > 0) - global.msg[0] = ((((" * Ran away with " + string(global.xpreward[3])) + " EXP& and ") + string(global.goldreward[3])) + " GOLD.") - break - case 15: - if (room == room_ruins1) - { - global.msg[0] = "* (The shadow of the ruins& looms above^1, filling you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins7) - { - global.msg[0] = "* (Playfully crinkling through& the leaves fills you with& determination.)/" - global.msg[1] = "* (HP fully restored.)/%%" - } - if (room == room_ruins12A) - { - global.msg[0] = "* (Knowing the mouse might one& day leave its hole and& get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_ruins19) - global.msg[0] = "* (Seeing such a cute^1, tidy& house in the RUINS gives& you determination.)/%%" - if (global.flag[202] >= 20) - global.msg[0] = "* Determination./%%" - if (room == room_tundra1) - global.msg[0] = "* (The cold atmosphere of a& new land... it fills you& with determination.)/%%" - if (room == room_tundra3) - global.msg[0] = "* (The convenience of that& lamp still fills you& with determination.)/%%" - if (room == room_tundra_spaghetti) - { - global.msg[0] = "* (Knowing the mouse might one& day find a way to heat& up the spaghetti...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_tundra_lesserdog) - { - global.msg[0] = "* (Knowing that dog will& never give up trying to& make the perfect snowdog...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - if (global.flag[55] == 1) - { - global.msg[0] = "* (Snow can always be broken& down and rebuilt into& something more useful.)/" - global.msg[1] = "* (This simple fact fills& you with determination.)/%%" - } - } - if (room == room_tundra_town) - global.msg[0] = "* (The sight of such a friendly& town fills you with& determination.)/%%" - if (room == room_water2) - global.msg[0] = "* (The sound of rushing water& fills you with& determination.)/%%" - if (room == room_water4) - global.msg[0] = "* (A feeling of dread hangs& over you...^1)&* (But you stay determined.)/%%" - if (room == room_water_savepoint1) - { - global.msg[0] = "* (Knowing the mouse might one& day extract the cheese from& the mystical crystal...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_preundyne) - { - global.msg[0] = "* (The sound of muffled rain& on the cavetop...)/" - if (global.flag[86] == 1) - global.msg[0] = "* (The serene sound of a& distant music box...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_water_trashzone2) - global.msg[0] = "* (The feeling of your socks& squishing as you step& gives you determination.)/%%" - if (room == room_water_trashsavepoint) - { - global.msg[0] = "* (The waterfall here seems& to flow from the& ceiling of the cavern...)/" - global.msg[1] = "* (Occasionally^1, a piece of& trash will flow& through...)/" - global.msg[2] = "* (... and fall into the& bottomless abyss below.)/" - global.msg[3] = "* (Viewing this endless& cycle of worthless& garbage...)/" - global.msg[4] = "* (It fills you with& determination.)/%%" - if (global.flag[91] == 1) - global.msg[0] = "* (Partaking in worthless& garbage fills you& with determination.)/%%" - global.flag[91] = 1 - } - if (room == room_water_friendlyhub) - global.msg[0] = "* (You feel a calming& tranquility^1. You're filled& with determination...)/%%" - if (room == room_water_temvillage) - global.msg[0] = "* (You feel..^1. something.)&* (You're filled with& detemmienation.)/%%" - if (room == room_water_undynefinal) - { - global.msg[0] = "* (The wind is howling^1.&* You're filled with& determination...)/%%" - if (global.flag[99] > 0) - global.msg[0] = "* (The howling wind is& now a breeze^1. This gives& you determination...)/%%" - if (global.flag[350] == 1) - global.msg[0] = "* (The wind has stopped^1.&* You're filled with& determination...)/%%" - } - if (room == room_fire_prelab) - { - global.msg[0] = "* (Seeing such a strange& laboratory in a place like& this...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire6) - global.msg[0] = "* (The wooshing sound of steam& and cogs..^1. it fills you& with determination.)/%%" - if (room == room_fire_savepoint1) - { - global.msg[0] = "* (An ominous structure looms& in the distance...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_mewmew2) - { - global.msg[0] = "* (Knowing the mouse might one& day hack the computerized& safe and get the cheese...)/" - global.msg[1] = "* (It fills you with& determination.)/%%" - } - if (room == room_fire_hotelfront_1) - global.msg[0] = "* (A huge structure lies north.^1)&* (You're filled with& determination.)/%%" - if (room == room_fire_hotellobby) - global.msg[0] = "* (The relaxing atmosphere& of this hotel..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_branch) - global.msg[0] = "* (The air is filled with& the smell of ozone..^1. it fills& you with determination.)/%%" - if (room == room_fire_core_premett) - { - global.msg[0] = "* (Behind this door must be& the elevator to the King's& castle.)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - if (room == room_fire_savepoint2) - { - global.msg[0] = "* (The smell of cobwebs fills& the air...)/" - global.msg[1] = "* (You're filled with& determination.)/%%" - } - break - case 16: - i = round(random(14)) - script_execute(scr_itemname) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& put away.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& tossed inside recklessly.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[6]]) + " was& placed thoughtfully inside.") - global.msg[0] += "/%" - break - case 17: - i = round(random(14)) - script_execute(scr_storagename, 300) - if (i <= 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out.") - if (i > 12) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& grabbed impatiently.") - if (i > 13) - global.msg[0] = (("* The " + global.itemname[global.menucoord[7]]) + " was& taken out and held like a& small puppy.") - global.msg[0] += "/%" - break - case 18: - global.msg[0] = "* You can't carry any more./%%" - break - case 19: - global.msg[0] = "* The box is full./%%" - break - case 23: - global.msg[0] = "* You leave the Quiche on the& ground and tell it you'll& be right back./%%" - break - case 30: - global.msg[0] = "* Use the box?& & Yes No \C " - global.msg[1] = " " - global.msg[2] = " " - break - case 31: - if (global.choice == 0) - { - if (global.item[0] != 0 || global.flag[300] != 0) - { - if (instance_exists(obj_itemswapper) == 0) - instance_create(0, 0, obj_itemswapper) - global.msg[0] = " %%" - } - else - { - gx = floor(random(3)) - if (gx == 0) - global.msg[0] = "* You have no items^1.&* You put a little time into& the box./%%" - if (gx == 1) - global.msg[0] = "* You have no items^1.&* You put a little effort& into the box./%%" - if (gx == 2) - global.msg[0] = "* You have no items^1.&* You put a little feeling& into the box./%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 200: - global.msg[0] = "\W* Howdy^2!&* I'm\Y FLOWEY\W.^2 &* \YFLOWEY\W the \YFLOWER\W!/" - global.msg[1] = "* Hmmm.../" - global.msg[2] = "* You're new to the& UNDERGROUND^2, aren'tcha?/" - global.msg[3] = "* Golly^1, you must be& so confused./" - global.msg[4] = "* Someone ought to teach& you how things work& around here!/" - global.msg[5] = "* I guess little old me& will have to do./" - global.msg[6] = "* Ready^2?&* Here we go!/%%" - break - case 201: - global.msg[0] = "\E2* This way./%%" - global.msg[1] = "%%%" - break - case 202: - global.msg[0] = "\E2* Welcome to your new& home^1, innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of the& RUINS./%%" - break - case 203: - global.msg[0] = "\E2* The RUINS are full of& puzzles./" - global.msg[1] = "* Ancient fusions between & diversions and doorkeys./" - global.msg[2] = "* One must solve them& to move from room to& room./" - global.msg[3] = "* Please adjust yourself to the sight of them./%" - break - case 204: - global.msg[0] = "\E2* To make progress here,^1 & you will need to trigger& several switches./" - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./%" - if (global.flag[6] == 1) - { - global.msg[1] = "* Do not worry,^1 I have & labelled the ones that& you need to flip./" - global.msg[2] = "* ... eh^1?&* It seems that the& labelling has worn away./" - global.msg[3] = "* Oh dear./" - global.msg[4] = "* This might be far more& challenging than I& anticipated.../%%" - } - break - case 205: - global.msg[0] = "\E2* The first switch is over& on the wall./%" - break - case 206: - global.msg[0] = "\E1* Do you need some help..^1?&* Press the switch on the wall./" - global.msg[1] = "\E0* Come on^1, you can do it!/%" - break - case 207: - global.msg[0] = "\E2* Go on^1, press the switch& on the left./%" - if (global.flag[6] == 1) - global.msg[0] = "\E2* I believe it was& the switch on the& left./%" - break - case 208: - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/" - global.msg[1] = "\E0* Press the switch that I& labelled for you./%" - if (global.flag[6] == 1) - global.msg[0] = "\E1* You do know which way& left is^1, do you not?/%%" - break - case 209: - global.msg[0] = "\E1* You are very curious,^1 & are you not?/" - global.msg[1] = "\E1* Please understand.^2 & \E0I only want the best& for you./%" - break - case 210: - global.msg[0] = "\E0* Splendid!^2 &* I am proud of you,^1 & little one./" - global.msg[1] = "* Let us move to the& next room./%" - break - case 211: - global.msg[0] = "\E1* As a human living in& the UNDERGROUND,^1 & monsters may attack you./" - global.msg[1] = "\E2* You will need to be& prepared for this& situation./" - global.msg[2] = "\E0* However, worry not!^2 &* The process is simple./" - global.msg[3] = "\E2* When you encounter a & monster,^1 you will enter& a FIGHT./" - global.msg[4] = "* While you are in a& FIGHT^1, strike up a& friendly conversation./" - global.msg[5] = "\E2* Stall for time.& I will come to resolve& the conflict./" - global.msg[6] = "\E2* Practice talking to& the dummy./%" - break - case 212: - if (global.flag[12] == 1) - { - global.msg[0] = "\E1* Ahh,^1 the dummies are& not for fighting!^2 &* They are for talking!/" - global.msg[1] = "* We do not want to hurt& anybody, do we...?^2 \E0 &* Come now./%" - } - if (global.flag[10] == 1) - global.msg[0] = "\E0* Ah,^1 very good!^2 &* You are very good./%" - if (global.flag[11] == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E1* ... you ran away.../" - global.msg[2] = "\E0* Truthfully^1, that was& not a poor choice./" - global.msg[3] = "\E0* It is better to& avoid conflict& whenever possible./" - global.msg[4] = "\E1* That..^1. however^1, is& only a dummy^2.&* It cannot harm you./" - global.msg[5] = "\E1* It is made of cotton^1.&* It has no desire& for revenge.../" - global.msg[6] = "\E0* Nevermind^2.&* Stay close to me and& I will keep you safe./%" - } - if (global.flag[13] == 1) - { - global.msg[0] = "\E3* ^1.^1.^1./" - global.msg[1] = "\E4* ^1.^1.^1./" - global.msg[2] = "\E0* The next room awaits./%" - } - break - case 213: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E2 &* I do not think the dummy& will be bothered./%" - break - case 214: - global.msg[0] = "\E0* Do you need some& ideas for conversation& topics?/" - global.msg[1] = "* Well^1, I often start with& a simple 'how do you& do...'/" - global.msg[2] = "* You could ask them about& their favorite books.../" - global.msg[3] = "* Jokes can be useful for& 'breaking the ice.'/" - global.msg[4] = "* Listen to this one.../" - global.msg[5] = "* What did the skeleton& tile his roof with?/" - global.msg[6] = "* ... SHIN-gles!/" - global.msg[7] = "\E1* .../" - global.msg[8] = "\E0* Well^1, I thought it& was amusing./%" - break - case 215: - global.msg[0] = "\E2* Practice talking to& the dummy./" - global.msg[1] = "\E1* You can say anything..^2.\E0 &* The dummy will not& be bothered./%" - break - case 216: - global.msg[0] = "\E1* There is another puzzle& in this room.../" - global.msg[1] = "\E0* I wonder if you can& solve it?/%" - break - case 217: - global.msg[0] = "\E1* This is the puzzle^1,& but.../" - global.msg[1] = "\E0* Here^1, take my hand& for a moment./%" - break - case 218: - global.msg[0] = "\E1* Puzzles seem a little& too dangerous for& now./%" - break - case 219: - global.msg[0] = ".../%" - break - case 220: - global.msg[0] = "\E2* Greetings,^1 my child^2.&* Do not worry^1, I did& not leave you./" - global.msg[1] = "\E0* I was merely behind this& pillar the whole time./" - global.msg[2] = "* Thank you for trusting& me./" - global.msg[3] = "\E2* However^1, there was an& important reason for& this exercise./" - global.msg[4] = "* ... to test your& independence./" - global.msg[5] = "\E1* I must attend to some& business^1, and you must& stay alone for a while./" - global.msg[6] = "\E0* Please remain here^2.&*\E1 It's dangerous to& explore by yourself./" - global.msg[7] = "\E0* I have an idea^2.&* I will give you a& CELL PHONE./" - global.msg[8] = "* If you have a need for& anything^1, just call./" - global.msg[9] = "\E1* Be good^1, alright?/%" - break - case 221: - global.msg[0] = "\E0* You have done& excellently thus& far^1, my child./" - global.msg[1] = "\E2* However... I have a& difficult request to ask& of you./" - global.msg[2] = "* .../" - global.msg[3] = "* I would like you to walk& to the end of the room& by yourself./" - global.msg[4] = "\E1* Forgive me for this./%" - break - case 222: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?& Cinnamon Bscotch \C" - global.msg[5] = " " - break - case 223: - if (global.choice == 0) - { - global.flag[46] = 0 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 2) - ini_close() - } - if (global.choice == 1) - { - global.flag[46] = 1 - ini_open("undertale.ini") - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - global.msg[0] = "* Oh^1, I see.&* Thank you very much!/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* Click.../%%" - global.msg[5] = "* /" - break - case 224: - global.msg[0] = "* It's a fishing rod affixed& to the ground.../" - global.msg[1] = "* Reel it in?& & Yes No \C " - global.msg[2] = " " - break - case 225: - if (global.choice == 0) - { - if instance_exists(obj_ladiesfishingrod) - { - obj_ladiesfishingrod.reeled = 1 - obj_ladiesfishingrod.image_index = 1 - } - global.msg[0] = "* All that's attached to& the end is a photo of a& weird-looking monster.../" - global.msg[1] = "* (Call Me!& Here's my number!)/" - global.msg[2] = "* You decide not to call./%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* All that's attached to& the end is a note./" - global.msg[1] = "* (Nevermind^1, guys!)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* You leave it alone./%%" - break - case 226: - if (global.flag[56] == 5) - global.msg[0] = "* I shouldn't have given myself& away so easily.../%%" - if (global.flag[56] == 4) - { - global.msg[0] = "* Did you just...&* Consume the part of me& I had given you?/" - global.msg[1] = "* In front of my very eyes!?/" - global.msg[2] = "* I have no words for you..^1.&* Begone!/%%" - global.flag[56] = 5 - } - if (global.flag[56] == 2) - { - global.msg[0] = "* Thank you for taking care& of me.../%%" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[0] = "* Huh^1? Again...?/" - global.msg[1] = "* I'm sorry..^1. if I give you& any more^1, there will be& nothing left of me./" - global.msg[2] = "* I suppose it is true^1.&* Travelling beyond our limits& is but a fantasy./" - global.msg[3] = "* It's no different for& anyone else./" - global.msg[4] = "* All of monsterkind& are doomed to stay& underground^1, forever.../%%" - } - } - if (global.flag[56] == 1) - { - global.msg[0] = "* How am I doing^1?&* By " + chr(34) + "I" + chr(34) + " I mean the piece& of me I gave you.../" - scr_itemcheck(16) - scr_storagecheck(16) - if (haveit == 0 && haveit2 == 0) - { - global.msg[1] = "* Huh^1? You lost it...^1?&* ... I suppose I can give& you another piece.../" - scr_itemget(16) - if (noroom == 1) - global.msg[2] = "* You don't have any room^1?&* OK..^1. I understand I am not& a priority for you^1, then./%%" - else - { - global.msg[2] = "* Please be careful this& time./" - global.msg[3] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 2 - } - } - else - global.msg[0] += "%%" - } - if (global.flag[56] == 0) - { - global.msg[0] = "* Hello^1.&* I am a snowman./" - global.msg[1] = "* I want to see the world..^1.&* But I cannot move./" - global.msg[2] = "* If you would be so kind^1,& traveller^1, please.../" - global.msg[3] = "* Take a piece of me and& bring it very far away.& Yes No \C " - global.msg[4] = " " - } - break - case 227: - if (global.choice == 0) - { - scr_itemget(16) - if (noroom == 1) - global.msg[0] = "* It seems you do not& have enough room for me./%%" - else - { - global.msg[0] = "* Thank you... good luck!/" - global.msg[1] = "* (You got the Snowman& Piece.)/%%" - global.flag[56] = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* I see^1.&* Good journey^1, then./%%" - break - case 228: - global.msg[0] = "SANS!!^1!&THAT DIDN'T DO&ANYTHING!/" - if (global.flag[254] == 0) - global.msg[0] = "SANS!!^1!&THEY DIDN'T EVEN&LOOK AT IT!/" - scr_sansface(1, 0) - global.msg[2] = "* whoops./" - global.msg[3] = "* i knew i should have& used today's crossword& instead./" - scr_papface(4, 1) - global.msg[5] = "WHAT!^1?&CROSSWORD!?/" - global.msg[6] = "I CAN'T BELIEVE&YOU SAID THAT!!/" - global.msg[7] = "IN MY OPINION.../" - global.msg[8] = "\E3JUNIOR JUMBLE&IS EASILY THE&HARDEST./" - scr_sansface(9, 0) - global.msg[10] = "* what^1? really^1, dude^1?&* that easy-peasy word& scramble?/" - global.msg[11] = "\E1* that's for baby bones./" - scr_papface(12, 3) - global.msg[13] = "UN^1. BELIEVABLE./" - global.msg[14] = "\E0HUMAN!!^1!&SOLVE THIS DISPUTE!/" - global.msg[15] = "\TS \F0 \E0 \T0 %" - global.msg[16] = "* (Which is harder?)& & Jumble Crossword \C " - global.msg[17] = " " - break - case 229: - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[58] = 0 - global.msg[1] = "HA^1! HA^1! YES!/" - global.msg[2] = "HUMANS MUST BE&VERY INTELLIGENT!/" - global.msg[3] = "IF THEY ALSO FIND&JUNIOR JUMBLE&SO DIFFICULT!/" - global.msg[4] = "NYEH^1! HEH^1! HEH HEH!/%%" - } - if (global.choice == 1) - { - global.flag[58] = 1 - global.msg[1] = "YOU TWO ARE WEIRD!/" - global.msg[2] = "\E3CROSSWORDS ARE SO&EASY./" - global.msg[3] = "IT'S THE SAME&SOLUTION EVERY&TIME./" - global.msg[4] = "\E0I JUST FILL ALL&THE BOXES IN WITH&THE LETTER " + chr(34) + "Z" + chr(34) + ".../" - global.msg[5] = "BECAUSE EVERY TIME&I LOOK AT A&CROSSWORD.../" - global.msg[6] = "ALL I CAN DO IS&SNORE!!!/" - global.msg[7] = "NYEH HEH HEH!!!/%%" - } - break - case 230: - doak = 0 - noroom = 0 - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 15G!& & Yes No \C" - global.msg[3] = " " - } - break - case 231: - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 15 - global.flag[60] += 15 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here you go^1!&* Have a super-duper day^1!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1?&* You don't have enough& money.../" - global.msg[1] = "* I wish I could make& Nice Cream for free.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Out in the middle of& the woods.../%%" - } - break - case 232: - doak = 0 - noroom = 0 - scr_itemcheck(26) - if (global.flag[85] == 0) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hello^1!&* Would you like some& Nice Cream?/" - global.msg[1] = "* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1!&* It's the frozen treat& that warms your heart!/" - global.msg[2] = "* Now just 25G!& & Yes No \C" - global.msg[3] = " " - } - } - if (global.flag[85] == 1) - { - if (global.flag[60] < 5) - { - global.msg[0] = "* Hey^1, you have an umbrella^1,& just like my cart.../" - global.msg[1] = "* Such solidarity^1!&* I have no choice but to& give you a deal!/" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[60] >= 5) - { - global.msg[0] = " %" - global.msg[1] = "* Umbrella solidarity!^1?&* I guess I have to give& you a deal.../" - global.msg[2] = "* Discount Ice Cream! 15G!& & Yes No \C" - global.msg[3] = " " - } - } - if (itemcount > 2) - { - global.msg[0] = "* Hey^1!&* You have 3 Punch Cards!/" - global.msg[1] = "* How about redeeming them& for some Nice Cream!?/" - global.msg[2] = "* It's free!& & Yes No \C" - global.msg[3] = " " - } - break - case 233: - scr_itemcheck(26) - if (itemcount < 3) - { - if (global.flag[85] == 0) - script_execute(scr_cost, 25) - if (global.flag[85] == 1) - script_execute(scr_cost, 15) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - if (global.flag[85] == 0) - { - global.gold -= 25 - global.flag[60] += 25 - } - else - { - global.gold -= 15 - global.flag[60] += 15 - } - global.flag[80] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Super^1! Here you go^1!&* Your Card's in the box!&* (You got the Nice Cream.)/%%" - if (afford == 0) - { - global.msg[0] = "* Huh^1? No money^1?&* Sorry^1, I can't give it to& you for free./%%" - if (global.flag[85] == 1) - global.msg[0] = "* Huh^1? You can't afford it& even with the discount^1?&* I.../%%" - } - } - if (noroom == 1) - global.msg[0] = "* It looks like you're& holding too much stuff^1!&* Oh well!/%%" - } - else if (global.choice == 0) - { - rem = 0 - g = 0 - for (n = 0; n < 8; n += 1) - { - if (g == 1) - { - n -= 1 - g = 0 - } - if (global.item[n] == 26 && rem < 3) - { - scr_itemshift(n, 0) - rem += 1 - g = 1 - } - } - scr_itemget(17) - global.msg[0] = "* Here^1! A free Nice Cream^1!&* (You lost 3 cards and got& a Nice Cream.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* There's ice cream..^1.&* Hidden in the depths of a& watery cavern.../%%" - } - break - case 235: - global.msg[0] = "* i've been thinking& about selling treats& too./" - global.msg[1] = "* want some fried snow^1?&* it's just 5G.& Buy No\C" - global.msg[2] = " " - break - case 236: - if (global.choice == 0) - { - global.msg[0] = "* did i say 5G^1?&* i meant 50G^1.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* i should charge way& more than than that./%%" - } - break - case 237: - if (global.choice == 0) - { - global.msg[0] = "* really^1?&* how about 5000G?& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - { - global.msg[0] = "* you're right./" - global.msg[1] = "* that's still too low./%%" - } - break - case 238: - if (global.choice == 0) - { - global.msg[0] = "* 50000G^1.&* that's my final offer.& Buy No\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* i have to pay for& the raw materials& somehow./%%" - break - case 239: - if (global.choice == 0) - { - global.msg[0] = "* what^1?&* you don't have the& money?/" - global.msg[1] = "* hey^1, that's okay./" - global.msg[2] = "\E1* i don't have any snow./%%" - if (global.gold >= 50000) - { - global.msg[0] = "* wow^1, that's a lot& of cash./" - global.msg[1] = "\E3* that's why i'm sorry& to say.../" - global.msg[2] = "\E3* i can't sell you& this fried snow./" - global.msg[3] = "\E2* it's got too much& sentimental value./%%" - } - } - if (global.choice == 1) - global.msg[0] = "* don't you know a& good deal when you& hear one?/%%" - break - case 240: - global.msg[0] = "WHAT!^1?&HOW DID YOU&AVOID MY TRAP?/" - global.msg[1] = "\E3AND^1, MORE&IMPORTANTLY.../" - global.msg[2] = "\E0IS THERE ANY&LEFT FOR ME???/" - global.msg[3] = "\TS \F0 \E0 \T0 %" - global.msg[4] = "* (What do you tell Papyrus& about his spaghetti?)& Ate it Left it \C " - global.msg[5] = " " - break - case 241: - scr_papface(0, 0) - global.msg[1] = "REALLY!?/" - if (global.choice == 0) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "NO ONE'S EVER&ENJOYED MY&COOKING BEFORE.../" - global.msg[4] = "\E0WELL THEN!!/" - global.flag[62] = 1 - } - if (global.choice == 1) - { - global.msg[2] = "\E2WOWIE.../" - global.msg[3] = "YOU RESISTED THE&FLAVOR OF MY&HOMECOOKED PASTA.../" - global.msg[4] = "JUST SO YOU&COULD SHARE&IT WITH ME???/" - global.flag[62] = 2 - } - global.msg[5] = "\E0FRET NOT HUMAN^1!&I^1, MASTER CHEF&PAPYRUS.../" - global.msg[6] = "WILL MAKE YOU ALL&THE PASTA YOU&COULD EVER WANT!/" - global.msg[7] = "HEH HEH HEH HEH&HEH HEH NYEH!/%%" - break - case 243: - global.msg[0] = "HEY!/" - global.msg[1] = "IT'S THE HUMAN!/" - global.msg[2] = "\E0YOU'RE GONNA&LOVE THIS&PUZZLE!/" - global.msg[3] = "IT WAS MADE&BY THE GREAT&DR. ALPHYS!/" - global.msg[4] = "YOU SEE&THESE TILES&!?/" - global.msg[5] = "ONCE I THROW&THIS SWITCH.../" - global.msg[6] = "THEY WILL&BEGIN TO&CHANGE COLOR!/" - global.msg[7] = "EACH COLOR HAS&A DIFFERENT&FUNCTION!/" - global.msg[8] = "RED TILES ARE&IMPASSABLE!/" - global.msg[9] = "YOU CANNOT&WALK ON THEM!/" - global.msg[10] = "YELLOW TILES&ARE ELECTRIC!/" - global.msg[11] = "THEY WILL&ELECTROCUTE&YOU!/" - global.msg[12] = "GREEN TILES&ARE ALARM&TILES!/" - global.msg[13] = "IF YOU STEP&ON THEM.../" - global.msg[14] = "YOU WILL HAVE&TO FIGHT A&MONSTER!!/" - global.msg[15] = "ORANGE TILES&ARE ORANGE-&SCENTED./" - global.msg[16] = "THEY WILL MAKE&YOU SMELL&DELICIOUS!/" - global.msg[17] = "BLUE TILES ARE&WATER TILES./" - global.msg[18] = "SWIM THROUGH&IF YOU LIKE^1,&BUT.../" - global.msg[19] = "IF YOU SMELL&LIKE ORANGES!/" - global.msg[20] = "THE PIRAHNAS&WILL BITE&YOU./" - global.msg[21] = "ALSO^1, IF A&BLUE TILE IS&NEXT TO A,/" - global.msg[22] = "YELLOW TILE^1,&THE WATER WILL&ALSO ZAP YOU!/" - global.msg[23] = "PURPLE TILES&ARE SLIPPERY!/" - global.msg[24] = "YOU WILL SLIDE&TO THE NEXT&TILE!/" - global.msg[25] = "HOWEVER^1, THE&SLIPPERY&SOAP.../" - global.msg[26] = "SMELLS LIKE&LEMONS!!/" - global.msg[27] = "WHICH PIRAHNAS&DO NOT LIKE!/" - global.msg[28] = "PURPLE AND&BLUE ARE OK!/" - global.msg[29] = "FINALLY^1,&PINK TILES./" - global.msg[30] = "THEY DON'T DO&ANYTHING./" - global.msg[31] = "STEP ON THEM&ALL YOU LIKE./" - global.msg[32] = "HOW WAS THAT!^1?&UNDERSTAND???/" - global.msg[33] = "\TS \F0 \E0 \T0 %" - global.msg[34] = "* (Understand the explanation?)& & Of course No \C " - global.msg[35] = " " - break - case 244: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "OKAY..^1.&I GUESS I'LL&REPEAT MYSELF.../" - global.msg[2] = "\E0RED TILES ARE&IMPASSABLE./" - global.msg[3] = "YELLOW TILES ARE&ELECTRIC AND&DANGEROUS./" - global.msg[4] = "BLUE TILES MAKE&YOU FIGHT A&MONSTER./" - global.msg[5] = "GREEN TILES ARE&WATER TILES./" - global.msg[6] = "ORANGE TILES ARE&ORANGE SCENTED./" - global.msg[7] = "IF YOU STEP ON&ORANGE^1, DON'T STEP&ON GREEN./" - global.msg[8] = "\E3BROWN TILES ARE.../" - global.msg[9] = "\E1WAIT!!^1!&THERE ARE NO&BROWN TILES.../" - global.msg[10] = "\E0PURPLE TILES&SMELL LIKE&LEMONS.../" - global.msg[11] = "\E3WHY DON'T THE&YELLOW ONES&SMELL LEMONY?/" - global.msg[12] = "\E3UMM.../" - global.msg[13] = "\E1WAIT!^1!&DID I MIX UP&GREEN AND BLUE!?/" - global.msg[14] = "THE BLUE ONES&ARE WATER ONES!/" - global.msg[15] = "\E3PINK TILES.../" - global.msg[16] = "I DON'T..^1.&REMEMBER???/" - global.msg[17] = "\E1WAIT!!!/" - global.msg[18] = "\E3THOSE ONES DON'T&DO ANYTHING./" - global.msg[19] = "\E0OKAY^1!&DO YOU UNDERSTAND&BETTER NOW!?/" - global.msg[20] = "\TS \F0 \E0 \T0 %" - global.msg[21] = "* (Understand the explanation?)& & Yes Even less \C " - global.msg[22] = " " - } - break - case 245: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "GREAT!^1!&THEN THERE'S ONE&LAST THING.../" - global.msg[2] = "THIS PUZZLE.../" - global.msg[3] = "IS ENTIRELY RANDOM&!!!!!!/" - global.msg[4] = "WHEN I PULL THIS&SWITCH^1, IT WILL&MAKE A PUZZLE.../" - global.msg[5] = "THAT HAS NEVER&BEEN SEEN BEFORE!/" - global.msg[6] = "NOT EVEN I WILL&KNOW THE SOLUTION!/" - global.msg[7] = "NYEH HEH HEH^1!&GET READY...!/%%" - obj_papyrus4.conversation = 50 - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "........../" - global.msg[2] = "OK^1, YOU KNOW&WHAT???/" - global.msg[3] = "HOW ABOUT..^1.&YOU JUST.../" - global.msg[4] = "DO THIS PUZZLE..^1.&ON YOUR OWN.../" - global.msg[5] = "I'LL LEAVE THE&INSTRUCTIONS.../" - global.msg[6] = "JUST READ THEM./" - global.msg[7] = "THEN WHEN YOU&UNDERSTAND IT.../" - global.msg[8] = "YOU CAN THROW&THE SWITCH./" - global.msg[9] = "AND DO IT AT&YOUR OWN PACE./" - global.msg[10] = "GOOD LUCK./" - global.msg[11] = "NYEH..^1.&HEH..^1.&HEH!/%%" - obj_papyrus4.conversation = 80 - } - break - case 246: - if (global.flag[104] == 0) - { - global.msg[0] = "* (There's a lone quiche& sitting underneath& this bench.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* It's just a bench./%%" - break - case 247: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 23) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Abandoned& Quiche.)/%%" - global.flag[104] = 1 - } - if (noroom == 1) - { - global.msg[0] = "* (You're carrying too much.)/" - global.msg[1] = "* (You aren't ready for the& responsibility.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = "* (The quiche was left all& alone...)/%%" - break - case 248: - if (global.flag[105] == 0) - { - global.msg[0] = "* (There's a tutu lying on& the ground here.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 249: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 24) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Old Tutu.)/%%" - global.flag[105] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 250: - if (global.flag[80] > 0) - { - card = string(global.flag[80]) - global.msg[0] = (("* (The box contains " + card) + " cards.)/") - if (global.flag[80] > 2) - global.msg[0] = (("* (Two bugs in the box are& playing a " + card) + "-card game.)/") - if (global.flag[80] > 4) - global.msg[0] = (("* (There's a smiley face made& of " + card) + " cards in the box.)/") - if (global.flag[80] > 6) - global.msg[0] = (("* (A house made of " + card) + " cards& sits in the box.)/") - if (global.flag[80] > 12) - global.msg[0] = "* (The box is overstuffed with& cards.)/" - global.msg[1] = "* (Take a card?)& & Take Leave \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's a box for storing Punch& Cards^1.)&* (It's empty right now.)/%%" - break - case 251: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 26) - } - if (noroom == 0) - { - global.msg[0] = "* (You got a Punch Card.)/%%" - if (global.flag[80] > 2) - global.msg[0] = "* (All games must end one day.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 4) - global.msg[0] = "* (Happiness is fleeting.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 6) - global.msg[0] = "* (The house collapses.^1)&* (You got a Punch Card.)/%%" - if (global.flag[80] > 12) - global.msg[0] = "* (You got a Punch Card.)/%%" - global.flag[80] -= 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 252: - if (global.flag[106] == 0) - { - global.msg[0] = "* (It's a pair of ballet shoes.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 253: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 25) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Ballet Shoes.)/%%" - global.flag[106] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 254: - global.msg[0] = "* (This little bird wants to& carry you across.)/" - global.msg[1] = "* (Accept the bird's offer?)& & Get ride No \C " - global.msg[2] = " " - if (global.flag[85] == 1) - global.msg[0] = "* (Umbrellas and birds...^1)&* (A bad combination.)/%%" - break - case 255: - global.msg[0] = " %%" - if (global.choice == 0 && global.flag[85] == 0) - { - global.interact = 1 - if instance_exists(obj_carrybird) - { - obj_carrybird.carry = 1 - with (obj_mainchara) - uncan = 1 - } - } - break - case 256: - if (global.flag[107] != 1) - { - global.msg[0] = "* (It's a legendary artifact.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The artifact is gone.)/%%" - break - case 257: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 0) - for (i = 0; i < 8; i += 1) - { - if (global.item[i] == 27) - noroom = 2 - } - } - if (noroom == 0) - { - global.msg[0] = "* (This will never happen.)/%%" - global.flag[107] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - if (noroom == 2) - global.msg[0] = "* (You're carrying too many& dogs.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 258: - if (global.flag[109] == 0) - { - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/" - global.msg[1] = "* (Take a package of noodles?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (The fridge is filled with& instant noodles and soda.)/%%" - break - case 259: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 36) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Instant Noodles.)/%%" - global.flag[109] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* (You decide to stay healthy.)/%%" - break - case 260: - if (global.flag[110] == 0) - { - global.msg[0] = "* (There's a frypan lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 261: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 47) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Burnt Pan.)/%%" - global.flag[110] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 262: - if (global.flag[111] == 0) - { - global.msg[0] = "* (There's an apron lying on& the ground.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 263: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 46) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Stained Apron.)/%%" - global.flag[111] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 264: - if (global.flag[112] == 0) - { - global.msg[0] = "* (There's a Glamburger inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 265: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - script_execute(scr_itemget, 40) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Glamburger.)/%%" - global.flag[112] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 266: - if (global.flag[113] == 0) - { - global.msg[0] = "* (There's 100G inside& the trash can.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* (It's an empty trashcan.)/%%" - break - case 267: - if (global.choice == 0) - { - global.flag[113] = 1 - if (doak == 0) - global.gold += 100 - doak = 1 - global.msg[0] = "* (You got 100G.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 268: - if (global.flag[114] == 0) - { - if (scr_murderlv() < 16) - global.msg[0] = "* (There's a worn dagger& inside the box.)/" - else - global.msg[0] = "* (Knife inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 269: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() >= 16) - scr_itemget(52) - else - script_execute(scr_itemget, 51) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Worn Dagger.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got the Real Knife.)/%%" - global.flag[114] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 270: - if (global.flag[115] == 0) - { - global.msg[0] = "* (There's a heart-shaped& locket inside the box.)/" - global.msg[1] = "* (Will you take it?)& & Take it Leave it \C " - global.msg[2] = " " - } - else - global.msg[0] = "* Nothing's here!!!/%%" - break - case 271: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = -1 - doak = 1 - if (scr_murderlv() < 16) - script_execute(scr_itemget, 50) - else - script_execute(scr_itemget, 53) - } - if (noroom == 0) - { - global.msg[0] = "* (You got the Heart-shaped& Locket.)/%%" - if (scr_murderlv() >= 16) - global.msg[0] = "* (You got The Locket.)/%%" - global.flag[115] = 1 - } - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 272: - global.msg[0] = "* (The box is empty.)/%%" - break - case 273: - doak = 0 - noroom = 0 - if (global.flag[250] == 0) - { - global.msg[0] = "* Hello...&* Would you like some& Nice Cream...?/" - global.msg[1] = "* It's the frozen treat...&* That warms your heart./" - global.msg[2] = "* Now only 12G!& & Yes No \C" - global.msg[3] = " " - } - if (global.flag[250] >= 1) - { - global.msg[0] = " %" - global.msg[1] = "* Nice Cream^1.&* It's the frozen treat^1.&* That warms your heart./" - global.msg[2] = "* Now just 12G.& & Yes No \C" - global.msg[3] = " " - } - break - case 274: - script_execute(scr_cost, 12) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 17) - if (noroom == 0) - { - global.gold -= 12 - global.flag[60] += 12 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Here^1.&* (You got the Nice Cream.)/%%" - if (afford == 0) - global.msg[0] = "* You don't have enough& money.../%%" - } - if (noroom == 1) - global.msg[0] = "* Drop something./%%" - if (global.choice == 1) - { - global.msg[0] = "* Well then..^1.&* Tell your friends.../" - global.msg[1] = "* Life..^1. is suffering./%%" - } - break - case 500: - global.msg[0] = "* (Golden flowers.^1)&* (They must have& broken your fall.)/%%" - global.msg[1] = "%%%" - break - case 501: - global.msg[0] = "* " + chr(34) + "Press [Z] to read signs!" + chr(34) + "/%%" - break - case 502: - global.msg[0] = "* Just a regular old pillar./%%" - break - case 503: - global.msg[0] = "* Please don't step on the& leaves./%%" - break - case 504: - global.msg[0] = "* Didn't you read the sign& downstairs?/%%" - break - case 505: - conversation = obj_goofyrock.conversation - if (global.flag[33] == 0) - { - if (conversation == 0) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* WHOA there^1, pardner^2!&* Who said you could push& me around?/" - global.msg[1] = "* HMM^2?&* So you're ASKIN' me to& move over?/" - global.msg[2] = "* Okay^1, just for you^1,& pumpkin./%%" - } - if (conversation == 3) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You want me to move some& more?/" - global.msg[1] = "* Alrighty^1, how's this?/%%" - } - if (conversation == 6) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* That was the wrong direction?/" - global.msg[1] = "* Okay^1, think I got it./%%" - } - if (conversation == 9) - global.msg[0] = "* Was that helpful?/%%" - if (conversation == 12) - { - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* HMM^2?&* You wanted me to STAY there?/" - global.msg[1] = "* You're giving me a real& workout./%%" - } - } - else - { - global.msg[0] = "* Aren't things easier when& you just ask?/%%" - if (global.flag[7] == 1) - { - global.msg[0] = "* The exit's open^1?&* Guess I better roll out.../" - global.msg[1] = "* Hey^1, y'mind giving me a& push^1, pumpkin?/%%" - } - } - break - case 508: - doak = 0 - noroom = 0 - if (global.flag[34] < 4) - { - global.msg[0] = "*'Take one.'&* Take a candy?& Yes No \C" - if (global.flag[34] == 0) - global.msg[0] = "* It says 'take one.'&* Take a piece of candy?& Yes No \C" - } - else - global.msg[0] = "* Look at what you've done./%%" - global.msg[1] = " " - break - case 509: - if (global.choice == 0) - { - if (global.flag[34] < 4) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 1) - if (noroom == 0) - global.flag[34] += 1 - } - } - if (noroom == 0) - { - if (global.flag[34] == 1) - global.msg[0] = "* You took a piece of candy.&* (Press [C] to open the menu.)/%%" - if (global.flag[34] == 2) - global.msg[0] = "* You took more candy^1.&* How disgusting../%%" - if (global.flag[34] == 3) - global.msg[0] = "* You take another piece.&* You feel like the& scum of the earth.../%%" - if (global.flag[34] == 4) - global.msg[0] = "* You took too much too fast.&* The candy spills onto& the floor./%%" - if (global.flag[34] == 3 && global.flag[6] == 1) - { - global.msg[0] = "* In this hellish world^1, you& can only take 3 pieces& of candy.../%%" - global.flag[34] += 1 - } - } - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - } - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 510: - global.msg[0] = "* zzzzzzzzzzzzzzz..^1.&* zzzzzzzzzzzzzz.../" - global.msg[1] = "* zzzzzzzzzz..^1.&* (are they gone yet^1)&* zzzzzzzzzzzzzzz.../" - global.msg[2] = "* (This ghost keeps saying 'z'& out loud repeatedly^1,& pretending to sleep.)/" - global.msg[3] = "* Move it with force?& & Yes No \C" - global.msg[4] = " " - break - case 511: - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - } - global.msg[0] = "%%" - break - case 512: - doak = 0 - noroom = 0 - global.msg[0] = "* It says 'Take them all.'&* Take a candy?& Yes No \C" - global.msg[1] = " " - break - case 513: - script_execute(scr_itemcheck, 5) - if (global.choice == 0) - { - if (haveit == 0) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 5) - } - } - } - if (noroom == 0) - global.msg[0] = "* You took a piece.&* Boy^1, that's heavy./%%" - if (haveit == 1) - global.msg[0] = "* You can't carry more.&* It's just too heavy./%%" - if (noroom == 1) - global.msg[0] = "* You tried to take a piece& of candy^1, but you didn't& have any room./%%" - if (global.choice == 1) - global.msg[0] = "* You decided not to take some./%%" - break - case 514: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 7G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 515: - script_execute(scr_cost, 7) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 7 - global.flag[59] += 7 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 516: - doak = 0 - noroom = 0 - global.msg[0] = "* Leave 18G in the web?& & Yes No \C" - global.msg[1] = " " - break - case 517: - script_execute(scr_cost, 18) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 18 - global.flag[59] += 18 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 518: - if (doak == 0) - { - script_execute(scr_itemget, 12) - if (noroom == 0) - global.flag[100] = 1 - doak = 1 - } - global.msg[0] = "* You found a Faded Ribbon./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 519: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 520: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - global.msg[0] = "* Nothing happened./%%" - if (global.choice == 1) - global.msg[0] = "%%" - if (global.flag[43] > 25) - global.msg[0] = "* You're making the switches& uncomfortable with all& this attention./%%" - break - case 521: - doak = 0 - noroom = 0 - global.msg[0] = "* It's a switch.&* Press it?& Yes No \C" - global.msg[1] = " " - break - case 522: - if (doak == 0) - { - global.flag[43] += 1 - doak = 1 - } - if (global.choice == 0) - { - global.msg[0] = "* You hear a clicking sound./%%" - if (room == room_ruins15B && global.plot < 14) - { - global.plot = 14 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15C && global.plot < 15) - { - global.plot = 15 - snd_play(snd_switchpull_n) - } - if (room == room_ruins15D && global.plot < 16) - { - global.plot = 16 - snd_play(snd_switchpull_n) - } - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 523: - if (doak == 0) - { - script_execute(scr_itemget, 13) - if (noroom == 0) - global.flag[102] = 1 - doak = 1 - } - global.msg[0] = "* You found the Toy Knife./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - break - case 524: - doak = 0 - noroom = 0 - global.msg[0] = "* It's TORIEL's diary.&* Read the circled passage?& Yes No \C" - global.msg[1] = " " - break - case 525: - if (global.choice == 0) - { - global.msg[0] = "* You read the passage.../" - global.msg[1] = "* " + chr(34) + "Why did the skeleton want& a friend?" + chr(34) + "/" - global.msg[2] = "" + chr(34) + "* Because she was feeling& BONELY..." + chr(34) + "/" - global.msg[3] = "* The rest of the page is& filled with jokes of& a similar caliber./%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 526: - if (global.flag[6] == 0) - { - if (doak == 0) - { - script_execute(scr_itemget, 11) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& butterscotch-cinnamon& pie./%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - else - { - if (doak == 0) - { - script_execute(scr_itemget, 63) - if (noroom == 0) - global.flag[103] = 2 - doak = 1 - } - global.msg[0] = "* You found a slice of& snail pie.../%%" - if (noroom == 1) - global.msg[0] = "* You are carrying too& much./%%" - } - break - case 527: - global.msg[0] = "* Hello there^1,& little one!/" - global.msg[1] = "* The pie has not& cooled down yet./" - global.msg[2] = "* Perhaps you should& take a nap.& Yes No \C " - global.msg[3] = " " - break - case 528: - global.plot = 19.1 - if (global.choice == 0) - global.msg[0] = "* Sweet dreams./%%" - else - { - global.msg[0] = "\E1* You'd rather stay& up and chat with& me^1, then?/" - if (global.flag[103] > 0) - global.msg[0] = "* Up already^1, I see?/" - global.msg[1] = "\E0* Um^1, I want you to know& how glad I am to& have someone here./" - global.msg[2] = "* There are so many& old books I want& to share./" - global.msg[3] = "* I want to show you& my favorite bug-& hunting spot./" - global.msg[4] = "* I've also prepared& a curriculum for& your education./" - global.msg[5] = "* This may come as& a surprise to you.../" - global.msg[6] = "* But I have always& wanted to be a& teacher./" - global.msg[7] = "\E1* ... actually^1, perhaps& that isn't very& surprising./" - global.msg[8] = "\E5* STILL./" - global.msg[9] = "\E0* I am glad to have& you living here./" - global.msg[10] = "\E1* Oh^1, did you& want something?/" - global.msg[11] = "* What is it?& When can& Nothing I go home?\C " - global.msg[12] = " " - } - break - case 529: - global.plot = 19.2 - if (global.choice == 0) - global.msg[0] = "* Well^1, talk to me& again if you& need anything./%%" - else - { - global.msg[0] = "\E1* What^1?&* This..^1. this IS your& home now./" - global.msg[1] = "* Um..^1. would you like& to hear about this& book I am reading?/" - if (global.choice == -1) - { - global.msg[0] = "\E0* Oh^1, hello!/" - global.msg[1] = "* Did you want to& hear about the& book I am reading?/" - } - global.msg[2] = "\E0* It is called& " + chr(34) + "72 Uses for Snails." + chr(34) + "/" - global.msg[3] = "* How about it?& How to exit& Sure the RUINS\C " - global.msg[4] = " " - } - break - case 530: - global.plot = 19.3 - global.msg[0] = "* Here is an exciting& snail fact./" - if (global.choice == 1) - global.msg[0] = "\E1* Um^1.^1.^1.&*\E0 How about an exciting& snail fact?/" - global.msg[1] = "\E2* Did you know& that snails.../" - r = round(random(3)) - if (r == 0) - global.msg[2] = "\E0* Have a chainsaw-like& tongue called a& radula?/" - if (r == 1) - global.msg[2] = "\E0* Sometimes flip their& digestive systems& as they mature?/" - if (r == 2) - global.msg[2] = "\E0* Make terrible& shoelaces?/" - if (r == 3) - global.msg[2] = "\E0* Talk^2. Really^2. Slowly^2?&* Just kidding^1, snails& don't talk./" - global.msg[3] = "\E0* Interesting.& How to exit& Yeah the RUINS\C " - global.msg[4] = " " - break - case 531: - global.plot = 19.4 - if (global.choice == 0) - global.msg[0] = "* Well^1, bother me& if you need anything& else./%%" - else - { - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something^1.&* Stay here./%%" - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - if (global.choice == -1) - global.msg[0] = "\E0* What is it?& How to exit& Nothing the RUINS\C " - } - global.msg[1] = " " - break - case 532: - if (global.choice == 0) - global.msg[0] = "* If you need anything^1,& just ask./%%" - if (global.choice == 1) - { - global.msg[0] = "\E1* ... I have to do& something.&* Stay here./%%." - global.plot = 19.9 - with (obj_mainchara) - uncan = 1 - } - global.msg[1] = " " - break - case 540: - global.msg[0] = "\E2NYOO HOO HOO.../" - global.msg[1] = "I CAN'T EVEN&STOP SOMEONE AS&WEAK AS YOU.../" - global.msg[2] = "UNDYNE'S GOING TO&BE DISAPPOINTED&IN ME./" - global.msg[3] = "I'LL NEVER JOIN THE&ROYAL GUARD..^1.&AND.../" - global.msg[4] = "MY FRIEND QUANTITY&WILL REMAIN&STAGNANT!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (What should you say?)& Let's be What a& friends loser\C" - global.msg[7] = " " - if (scr_murderlv() >= 7) - { - if instance_exists(obj_papyrus8) - { - if (obj_papyrus8.murder == 1) - { - global.msg[0] = "\E0WOWIE!^1!&YOU DID IT!!!/" - global.msg[1] = "YOU DIDN'T DO A&VIOLENCE!!!/" - global.msg[2] = "\E5TO BE HONEST^1,&I WAS A LITTLE&AFRAID.../" - global.msg[3] = "\E0BUT YOU'RE ALREADY&BECOMING A GREAT&PERSON!/" - global.msg[4] = "\E7I'M SO PROUD I&COULD CRY!!!/" - global.msg[5] = "\E3... WAIT^1, WASN'T I&SUPPOSED TO&CAPTURE YOU...?/" - global.msg[6] = "\E0WELL^1, FORGET IT!/" - global.msg[7] = "I JUST WANT YOU&TO BE THE BEST&PERSON YOU CAN BE./" - global.msg[8] = "SO LET'S LET&BYBONES BE&BYBONES./" - global.msg[9] = "I'LL EVEN TELL YOU&HOW TO LEAVE THE&UNDERGROUND!/" - global.msg[10] = "JUST KEEP GOING&EAST!/" - global.msg[11] = "EVENTUALLY YOU'LL&REACH THE KING'S&CASTLE./" - global.msg[12] = "THEN YOU CAN&LEAVE!/%%" - } - } - } - break - case 541: - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "REALLY!^1?&YOU WANT TO BE&FRIENDS^1, WITH ME???/" - global.msg[2] = "WELL THEN.../" - global.msg[3] = "\E0I GUESS..^1./" - global.msg[4] = "I GUESS&I CAN MAKE AN&ALLOWANCE FOR YOU!/" - global.msg[5] = " %" - } - if (global.choice == 1) - { - scr_papface(0, 3) - global.msg[1] = "HUH^1?&WHY WOULD YOU.../" - global.msg[2] = "BERATE YOURSELF&SO LOUDLY???/" - global.msg[3] = "IS IT BECAUSE.../" - global.msg[4] = "\E3YOU DON'T THINK&YOU'RE GOOD ENOUGH&TO BE MY FRIEND?/" - global.msg[5] = "\E0NO!!^1!&YOU'RE GREAT!!^1!&I'LL BE YOUR FRIEND!/" - } - if (global.flag[66] == 1) - { - global.msg[6] = "WOWIE!^1!&WE HAVEN'T EVEN HAD&OUR FIRST DATE.../" - global.msg[7] = "AND I'VE ALREADY&MANAGED TO HIT&THE FRIEND ZONE!!!/" - global.msg[8] = "WHO KNEW THAT&ALL I NEEDED TO&MAKE PALS.../" - } - else - { - global.msg[6] = "WOW!!!/" - global.msg[7] = "I HAVE FRIENDS!!!/" - global.msg[8] = "AND WHO KNEW THAT&ALL I NEEDED TO&MAKE THEM.../" - } - global.msg[9] = "WAS TO GIVE PEOPLE&AWFUL PUZZLES AND&THEN FIGHT THEM??/" - global.msg[10] = "YOU TAUGHT ME A&LOT^1, HUMAN./" - global.msg[11] = "I HEREBY GRANT&YOU PERMISSION&TO PASS THROUGH!/" - global.msg[12] = "AND I'LL GIVE&YOU DIRECTIONS&TO THE SURFACE./" - global.msg[13] = "CONTINUE FORWARD&UNTIL YOU REACH THE&END OF THE CAVERN./" - global.msg[14] = "\WTHEN..^1. WHEN YOU&REACH THE CAPITAL^1,&CROSS \YTHE BARRIER\W./" - global.msg[15] = "THAT'S THE MAGICAL&SEAL TRAPPING US&ALL UNDERGROUND./" - global.msg[16] = "ANYTHING CAN ENTER&THROUGH IT^1, BUT&NOTHING CAN EXIT.../" - global.msg[17] = "... EXCEPT SOMEONE&WITH A POWERFUL&SOUL./" - global.msg[18] = "... LIKE YOU!!!/" - global.msg[19] = "THAT'S WHY THE&KING WANTS TO&ACQUIRE A HUMAN./" - global.msg[20] = "HE WANTS TO OPEN&THE BARRIER WITH&SOUL POWER./" - global.msg[21] = "THEN US MONSTERS&CAN RETURN TO&THE SURFACE!/%%" - break - case 544: - global.msg[0] = "YOU'RE BACK AGAIN?!?!/" - global.msg[1] = "I FINALLY REALIZE&THE TRUE REASON WHY./" - global.msg[2] = "YOU.../" - global.msg[3] = "JUST MISS SEEING MY&FACE SO MUCH.../" - global.msg[4] = "I'M NOT SURE I&CAN FIGHT SOMEONE&WHO FEELS THIS WAY./" - global.msg[5] = "BUT MOSTLY..^1. I'M GETTING&REALLY TIRED OF&CAPTURING YOU!/" - global.msg[6] = "SO..^1.&WHAT DO YOU SAY?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* (Fight Papyrus?)& & Yes No\C" - global.msg[8] = " " - break - case 545: - global.msg[0] = "\TP %" - if (global.choice == 0) - { - global.msg[1] = "OKAY.../" - global.msg[2] = "I GUESS./" - global.msg[3] = "IF YOU WANT ME TO&CAPTURE YOU./" - global.msg[4] = "I'LL TRY AGAIN!!!/%%" - obj_papyrus8.conversation = 14 - } - if (global.choice == 1) - { - global.msg[1] = "... OKAY.../" - global.msg[2] = "I GUESS I'LL ACCEPT&MY FAILURE.../%%" - obj_papyrus8.conversation = 17 - obj_fogmaker.s = 1 - global.flag[67] = 0 - global.flag[68] = 1 - } - break - case 547: - global.msg[0] = "* Welcome to Snowed Inn^1!&* Snowdin's premier hotel!/" - global.msg[1] = "* One night is 80G.& & Stay Leave\C" - if (global.flag[72] == 2) - { - global.msg[0] = "* Back again^1?&* Well^1, stay as long as you& like./" - global.msg[1] = "* How about it?& & Stay Leave\C" - } - global.msg[2] = " " - if (obj_townnpc_innlady.jtext == 1) - global.msg[0] = "* What^1?&* No^1, you can't get a& second key!" - if (global.flag[7] == 1) - { - global.msg[0] = "* Hello^1!&* Sorry^1, no time for a& nap.../" - global.msg[1] = "* Snowed Inn is shutting& down so we can all go& to the surface./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Oh^1, there you are^1.&* I was worrying about& you!/" - global.msg[1] = "* Things are going to be OK^1,& you hear?/" - global.msg[2] = "* We're all going to the& surface world soon.../" - global.msg[3] = "* There's bound to be a& place you can stay there!/%%" - } - } - break - case 548: - if (global.choice == 0) - { - global.msg[0] = "Error./%%" - if (global.flag[72] == 2) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - } - if (global.gold < 80 && global.flag[72] == 0) - { - global.msg[0] = "* ... You don't even have 80G?/" - global.msg[1] = "* Oh^1! You poor thing^1.&* I can only imagine what& you've been through./" - global.msg[2] = "* One of the rooms upstairs& is empty^1./" - global.msg[3] = "* You can sleep there for& free^1, okay?/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 2 - } - if (global.gold >= 80) - { - if (global.flag[72] == 0 || global.flag[72] == 1) - { - global.msg[0] = "* Here's your room key^1.&* Make sure to bundle up!/%%" - obj_townnpc_innlady.conversation = 2 - with (obj_townnpc_innlady) - jtext = 1 - global.flag[72] = 1 - } - } - if (global.gold < 80 && global.flag[72] == 1) - global.msg[0] = "* You aren't carrying enough& money./%%" - } - else - global.msg[0] = "* Well^1, feel free to come& back any time./%%" - break - case 549: - global.msg[0] = "* (Look through the telescope?)& & Yes No\C" - global.msg[1] = " " - break - case 550: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - } - break - case 551: - if (obj_mainchara.dsprite != spr_maincharad_pranked) - { - global.msg[0] = "* i'm thinking about& getting into the& telescope business./" - global.msg[1] = "* it's normally 50000G& to use this premium& telescope.../" - global.msg[2] = "* but..^1.&*\E1 since i know you^1,& you can use it for free./" - global.msg[3] = "\E2* howzabout it?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Use the telescope?)& & Yes No\C" - } - else - { - global.msg[0] = "* huh^1?&* you aren't satisfied?/" - global.msg[1] = "\E1* don't worry./" - global.msg[2] = "\E2* i'll give you a& full refund./%%" - } - global.msg[6] = " " - break - case 552: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_starchecker) == 0) - instance_create(view_xview[0], view_yview[0], obj_starchecker) - obj_mainchara.dsprite = spr_maincharad_pranked - obj_mainchara.lsprite = spr_maincharal_pranked - } - else - { - scr_sansface(0, 0) - global.msg[1] = "* well^1, come back& whenever you want./%%" - } - break - case 553: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - global.flag[75] = global.armor - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "\E3HOW DID I GET THIS&NUMBER...?/" - global.msg[4] = "\E0IT WAS EASY!!!/" - global.msg[5] = "\E0I JUST DIALED EVERYNUMBER SEQUENTIALLYUNTIL I GOT YOURS!!!/" - global.msg[6] = "NYEH HEH HEH HEH!!/" - global.msg[7] = "\E2SO..^1.&WHAT ARE YOU&WEARING...?/" - global.msg[8] = "\E3I'M..^1.&ASKING FOR A&FRIEND./" - global.msg[9] = (("\E0SHE THOUGHT SHE&SAW YOU WEARING A&" + armor) + "./") - global.msg[10] = (("\E3IS THAT TRUE^1?&ARE YOU WEARING A&" + armor) + "?/") - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* (What will you say?)& & Yes No\C" - global.msg[13] = " " - break - case 554: - armor = "BEPIS." - if (global.armor == 4) - armor = "GROSS BANDAGE" - if (global.armor == 12) - armor = "FADED RIBBON" - if (global.armor == 15) - armor = "BANDANNA" - if (global.armor == 24) - armor = "DUSTY TUTU" - scr_papface(0, 0) - if (global.choice == 0) - { - global.flag[76] = 0 - global.msg[1] = (("SO YOU ARE WEARING&A " + armor) + ".../") - global.msg[2] = "GOT IT!!^1!&WINK WINK!!!/" - global.msg[3] = "HAVE A NICE DAY!/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - } - else - { - global.flag[76] = 1 - global.msg[1] = (("SO YOU AREN'T&WEARING A&" + armor) + ".../") - global.msg[2] = "GOT IT!/" - global.msg[3] = "YOU'RE MY FRIEND^1,&SO I TRUST YOU&100-PERCENT./" - global.msg[4] = "HAVE A NICE DAY!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - break - case 556: - global.msg[0] = "* (There's an empty pie tin& inside the stove.)/%%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "\E0MY BROTHER ALWAYS&GOES OUT TO EAT^1.&BUT.../" - global.msg[2] = "\E3RECENTLY^1, HE TRIED&'BAKING' SOMETHING./" - global.msg[3] = "IT WAS LIKE..^1.&A QUICHE./" - global.msg[4] = "BUT FILLED WITH A&SUGARY^1, NON-EGG&SUBSTANCE./" - global.msg[5] = "\E0HOW ABSURD!/%%" - } - break - case 557: - global.msg[0] = "* (It's a joke book.)/" - global.msg[1] = "* (Take a look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 558: - if (global.choice == 0) - { - global.msg[0] = "* (Inside the joke book was& a quantum physics book.)/" - global.msg[1] = "* (You look inside...)/" - global.msg[2] = "* (Inside the quantum physics& book was another joke& book.)/" - global.msg[3] = "* (You look inside...)/" - global.msg[4] = "* (There's another quantum& physics book...)/" - global.msg[5] = "* (You decide to stop.)/%%" - } - else - global.msg[0] = " %%" - break - case 559: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THAT'S MY ROOM^1!/" - global.msg[2] = "IF YOU'VE&FINISHED LOOKING&AROUND.../" - global.msg[3] = "WE COULD GO IN&AND.../" - global.msg[4] = "" + chr(34) + "HANG-OUT" + chr(34) + " LIKE&A PAIR OF VERY&COOL FRIENDS?/" - if (global.flag[66] == 1) - global.msg[4] = "\E3DO WHATEVER&PEOPLE DO WHEN&THEY DATE???/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Go inside?)& & Yes No\C" - global.msg[7] = " %" - } - else - { - global.msg[0] = "* (It's the door to& Papyrus's room.)/" - global.msg[1] = "* (It's covered in many& labels...)/" - global.msg[2] = "\TP %" - global.msg[3] = "* (NO GIRLS ALLOWED!)/" - global.msg[4] = "* (NO BOYS ALLOWED!)/" - global.msg[5] = "* (PAPYRUS ALLOWED.)/%%" - } - break - case 560: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_papdoor) - event_user(2) - } - break - case 561: - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "THERE ARE NO&SKELETONS INSIDE&MY CLOSET!!!/" - global.msg[2] = "\E3EXCEPT ME&SOMETIMES./" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Look in the closet?)& & Yes No\C" - global.msg[5] = " " - } - else - { - global.msg[0] = "* (Look in the closet?)& & Yes No\C" - global.msg[1] = " " - } - break - case 562: - if (global.choice == 0) - global.msg[0] = "* (Clothes are hung up& neatly inside.)/%%" - else - { - global.msg[0] = " %%" - if instance_exists(obj_papyrusparent) - { - scr_papface(0, 0) - global.msg[1] = "IT'S OK TO BE&INTIMIDATED BY&MY FASHION SENSE./%%" - } - } - break - case 563: - global.msg[0] = "\E3SO^1, UM.../" - global.msg[1] = "\E3IF YOU'VE SEEN&EVERYTHING.../" - global.msg[2] = "\E2DO YOU WANT TO&START HANGING OUT?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the hangouts?)& & Yes No\C" - global.msg[5] = " " - if (global.flag[66] == 1) - { - global.msg[2] = "\E2DO YOU WANT TO&START THE DATE?/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Begin the date?)& & Yes No\C" - global.msg[5] = " " - } - break - case 564: - if (global.choice == 0) - { - obj_papyrus_hisroom.intro = 4 - scr_papface(0, 0) - global.msg[1] = "\E0OKAY!!^1!&DATING START!!!/%%" - if (global.flag[66] == 0) - global.msg[1] = "\E0OKAY!!^1!&LET'S HANG TEN!!/%%" - } - else - { - scr_papface(0, 2) - global.msg[1] = "\E2TAKE YOUR TIME..^1.&I'LL WAIT FOR&YOU./%%" - } - break - case 565: - global.msg[0] = "* (This mailbox is labelled& " + chr(34) + "PAPYRUS" + chr(34) + ".)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 566: - if (global.choice == 0) - global.msg[0] = "* (It's empty.)/%%" - else - global.msg[0] = "* (You realize that would& probably be illegal.)/%%" - break - case 567: - global.msg[0] = "* what^1?&* haven't you seen a guy& with two jobs before?/" - global.msg[1] = "\E1* fortunately^1, two jobs& means twice as many& legally-required breaks./" - global.msg[2] = "\E0* i'm going to grillby's.&* wanna come?& Yeah I'm busy \C" - global.msg[3] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - if (scr_murderlv() >= 7) - { - global.msg[0] = "\E2* hey^1, looks like you're& really turning yourself& around./" - global.msg[1] = "\E0* how about i treat you& to lunch at grillby's?/" - global.msg[2] = "\E1* ... when everyone you& scared away comes& back^1, i mean./%%" - } - break - case 568: - if (global.choice == 0) - { - global.msg[0] = "* well^1, if you insist..^1.&* i'll pry myself away& from my work.../%%" - if instance_exists(obj_sans_sentry2) - obj_sans_sentry2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* OK^1. have fun./%%" - break - case 570: - global.msg[0] = "\E1* whoops^1, watch where& you sit down./" - global.msg[1] = "* sometimes weirdos put& whoopee cushions on& the seats./" - global.msg[2] = "\E0* anyway^1, let's order./" - global.msg[3] = "* whaddya want...?& & Fries Burger\C" - global.msg[4] = " " - break - case 571: - global.msg[0] = "* ok^1, coming right up./%%" - if (global.choice == 0) - { - global.flag[391] = 1 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& fries./%%" - obj_grillbynpc_sansdate.burg = 0 - } - if (global.choice == 1) - { - global.flag[391] = 2 - global.msg[0] = "* hey^1, that sounds& pretty good./" - global.msg[1] = "* grillby^1, we'll have& a double order of& burg./%%" - obj_grillbynpc_sansdate.burg = 1 - } - break - case 572: - global.msg[0] = "* so^1, what do you& think.../" - global.msg[1] = "* of my brother?& & Cool Uncool\C" - global.msg[2] = " " - break - case 573: - if (global.choice == 0) - { - global.msg[0] = "* of course he's cool./" - global.msg[1] = "\E1* you'd be cool too& if you wore that& outfit every day./" - global.msg[2] = "\E0* he'd only take that& thing off if he& absolutely had to./" - global.msg[3] = "* oh well^1.&* at least he washes& it./" - global.msg[4] = "\E1* and by that i mean& he wears it in& the shower./%%" - } - else - { - global.msg[0] = "* hey^1, pal./" - global.msg[1] = "\E1* sarcasm isn't funny^1,& okay?/" - global.msg[2] = "\E0* my brother's a real& star./" - global.msg[3] = "* he's the person who& pushed me to get& this sentry job./" - global.msg[4] = "* maybe it's a little& strange^1, but& sometimes.../" - global.msg[5] = "* ... it's nice to have& someone call you out& on being lazy./" - global.msg[6] = "\E1* even though nothing& could be further& from the truth./%%" - } - break - case 574: - global.msg[0] = "* here comes the grub./" - global.msg[1] = "* want some ketchup^1?& & Yes No \C" - global.msg[2] = " " - break - case 575: - if (global.choice == 0) - global.msg[0] = "\E2* bone appetit./%%" - else - { - global.msg[0] = "\E2* more for me./%%" - if instance_exists(obj_grillbynpc_sansdate) - obj_grillbynpc_sansdate.burg = 2 - } - break - case 576: - global.msg[0] = "\W* have you ever heard& of a \Ytalking flower\W?& Yes No \C" - global.msg[1] = " " - break - case 577: - if (global.choice == 0) - global.msg[0] = "\E1* so you know all& about it./" - if (global.choice == 1) - global.msg[0] = "\E1* i'll tell you^1, then./" - global.msg[1] = "\W*\E0 the \Becho flower\W./" - global.msg[2] = "* they're all over the& marsh./" - global.msg[3] = "* say something to them^1,& and they'll repeat it& over and over.../" - global.msg[4] = "* what about it?/" - global.msg[5] = "* well^1, papyrus told& me something interesting& the other day./" - global.msg[6] = "* sometimes^1, when no& one else is around.../" - global.msg[7] = "* a flower appears and& whispers things to& him./" - global.msg[8] = "* flattery..^1.&* advice..^1.&* encouragement.../" - global.msg[9] = "* ... predictions./" - global.msg[10] = "* weird^1, huh?/" - global.msg[11] = "* someone must be using& an echo flower to& play a trick on him./" - global.msg[12] = "* keep an eye out^1, ok?/" - global.msg[13] = "* thanks./%%" - break - case 578: - global.msg[0] = "\E1* oh^1, by the way.../" - global.msg[1] = "\E0* i'm flat broke^1.&* can you foot the& bill?/" - global.msg[2] = "* it's just 10000G.& & Yes No \C" - global.msg[3] = " " - break - case 579: - global.msg[0] = " %%" - break - case 580: - if (global.flag[84] == 4) - global.msg[0] = "* My mind is running wild^1!&* I haven't felt like this& in a long time.../%%" - if (global.flag[84] == 5) - global.msg[0] = "* Please leave./%%" - if (global.flag[84] < 2) - { - global.msg[0] = "* You..^1.&* You came from outside^1,& didn't you?/" - global.msg[1] = "* People like you are so& rare.../" - global.msg[2] = "* Please^1!* Stranger!/" - global.msg[3] = "* Tell me about outside...?& & Yes No\C" - global.msg[4] = " " - } - if (global.flag[84] == 2) - global.msg[0] = "* Well^1, what are you& waiting for?/%%" - if (global.flag[84] == 3) - { - global.msg[0] = "* Oh^1!&* You're back!/" - global.msg[1] = "* How's the room?& & Different Same\C" - global.msg[2] = " " - } - break - case 581: - if (global.flag[84] < 3) - { - if (global.choice == 0) - { - global.msg[0] = "* Huh^1?&* " + chr(34) + "SURFACE" + chr(34) + "^1?&* What do you mean?/" - global.msg[1] = "* I just meant outside this& room./" - global.msg[2] = "* If you haven't noticed^1, my& mycelium have bound me& to the ground./" - global.msg[3] = "* Please^1!&* Stranger!/" - global.msg[4] = "* I'll make this simple./" - global.msg[5] = "* I've spent my whole life& in the same spot^1,& in the same room./" - global.msg[6] = "* But I've long wondered& what lies inside the& room to the right./" - global.msg[7] = "* Long I've fantasized& about entering^1, and& changing my scenery.../" - global.msg[8] = "* No..^1.&* Changing my LIFE!/" - global.msg[9] = "* Please^1.&* Go and tell me what's& inside./%%" - if (doak == 0) - { - if (global.flag[84] == 0) - global.flag[84] = 2 - doak = 1 - } - } - if (global.choice == 1) - global.msg[0] = "* Is everyone out there& like you^1?&* How terrible./%%" - } - else - { - if (global.choice == 0) - { - global.msg[0] = "* Oh^1, that's a relief^1!/" - global.msg[1] = "* That's all I need to& continue my fantasies^1.&* Thank you^1, stranger./%%" - global.flag[84] = 4 - } - if (global.choice == 1) - { - global.msg[0] = "* So it's the same./" - global.msg[1] = "* The same.../" - global.msg[2] = "* Same.../" - global.msg[3] = "* .../" - global.msg[4] = "* OK./%%" - global.flag[84] = 5 - } - } - break - case 583: - if (global.flag[85] == 0) - { - global.msg[0] = "* (Take an umbrella?)& & Take one Do not\C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (Return the umbrella?)& & Put back Do not\C" - global.msg[1] = " " - } - break - case 584: - if (doak == 0) - { - if (global.flag[85] == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You took an umbrella.)/%%" - global.flag[85] = 1 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 1 - obj_mainchara.dsprite = spr_maincharad_umbrella - obj_mainchara.rsprite = spr_maincharar_umbrella - obj_mainchara.lsprite = spr_maincharal_umbrella - obj_mainchara.usprite = spr_maincharau_umbrella - } - else - global.msg[0] = " %%" - } - else if (global.choice == 0) - { - global.msg[0] = "* (You returned the umbrella.)/%%" - global.flag[85] = 0 - if instance_exists(obj_umbrellabox) - obj_umbrellabox.image_index = 0 - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 585: - global.msg[0] = "* (It's a statue^1.)&* (The structures at its& feet seem dry.)/%%" - if (global.flag[85] == 1 && global.flag[86] == 0) - { - global.msg[0] = "* (Put the umbrella on the& statue?)& Yes Do not\C" - global.msg[1] = " " - } - if (global.flag[86] == 1) - global.msg[0] = "* (The music continues^1, and& doesn't stop.)/%%" - break - case 586: - if (doak == 0) - { - if (global.choice == 0) - { - global.msg[0] = "* (You place the umbrella& atop the statue.)/" - global.msg[1] = "* (Inside the statue^1, a music& box begins to play...)/%%" - global.flag[85] = 0 - global.flag[86] = 1 - if instance_exists(obj_musicstatue) - { - obj_musicstatue.image_index = 1 - obj_musicstatue.con = 1 - } - obj_mainchara.dsprite = spr_maincharad - obj_mainchara.rsprite = spr_maincharar - obj_mainchara.usprite = spr_maincharau - obj_mainchara.lsprite = spr_maincharal - } - else - global.msg[0] = " %%" - doak = 1 - } - break - case 587: - global.msg[0] = "* (It's a rusty old& fridge.)/" - global.msg[1] = "* (Look inside?)& & Yes No\C" - global.msg[2] = " " - break - case 588: - if (global.choice == 0) - { - global.msg[0] = "* (You open the fridge.^1)&* (The air fills with a& rotten stench.)/" - global.msg[1] = "* (All the food inside here& spoiled long ago.)/%%" - } - else - global.msg[0] = " %%" - break - case 589: - doak = 0 - noroom = 0 - global.msg[0] = "* error/%%" - if (global.flag[108] > 2) - global.msg[0] = "* (The cooler is empty.)/%%" - if (global.flag[108] == 1 || global.flag[108] == 2) - { - global.msg[0] = "* (Take a space food bar& from the cooler?)& Yes No \C" - global.msg[1] = " " - } - if (global.flag[108] == 0) - { - global.msg[0] = "* (It's a cooler^1.&* It has no brand^1, and& shows no signs of wear...)/" - global.msg[1] = "* (Inside are a couple& of freeze-dried space& food bars.)/" - global.msg[2] = "* (Take one?)& & Yes No \C" - global.msg[3] = " " - global.flag[108] = 1 - } - break - case 590: - if (global.choice == 0) - { - if (doak == 0) - { - noroom = 0 - doak = 1 - script_execute(scr_itemget, 35) - if (noroom == 0) - global.flag[108] += 1 - } - if (noroom == 0) - global.msg[0] = "* (You got the Astronaut Food.)/%%" - if (noroom == 1) - global.msg[0] = "* (You're carrying too much.)/%%" - } - if (global.choice == 1) - global.msg[0] = "* %%" - break - case 591: - if (global.flag[355] == 0) - { - global.msg[0] = "* (Seems like a regular& training dummy.)/" - global.msg[1] = "* (Do you want to beat it& up?)& Yes No \C" - global.msg[2] = " " - } - else - global.msg[0] = "* (You've had enough of& the dummy.)/%%" - break - case 592: - if (global.choice == 0) - { - if (global.lv == 1) - { - global.msg[0] = "* (You tap the dummy with& your fist.)/" - global.msg[1] = "* (You feel bad.)/%%" - } - if (global.lv > 1) - { - global.msg[0] = "* (You hit the dummy& lightly.)/" - global.msg[1] = "* (You don't feel like& you learned anything.)/%%" - } - if (global.lv > 4) - { - global.msg[0] = "* (You sock the dummy.)/" - global.msg[1] = "* (Who cares?)/%%" - } - if (global.lv > 7) - { - global.msg[0] = "* (You punch the dummy at& full force.)/" - global.msg[1] = "* (Feels good.)/%%" - } - global.flag[355] = 1 - } - if (global.choice == 1) - { - global.msg[0] = "* (You stare into each& other's eyes for a& moment...)/%%" - global.flag[355] = 2 - } - break - case 593: - global.msg[0] = "* (It's a horse stable.)/" - global.msg[1] = "* (Do you want to go& inside?)& Yes No \C" - global.msg[2] = " " - break - case 594: - if (global.choice == 0) - { - global.msg[0] = "* (You jostle the door.)&* (It's locked.)/" - global.msg[1] = "* (Suddenly^1, from inside& the [redacted], you hear a&/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 595: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 596: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 597: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 598: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 599: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 600: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 601: - global.msg[0] = "* x/%%" - global.flag[92] = 2 - break - case 606: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 1) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spooktunes." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 607: - if (global.flag[94] != 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* (Spooktunes are dead.)/%%" - } - if (global.flag[94] == 1) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 608: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 2) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Spookwave." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 609: - if (global.flag[94] != 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 3 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 2) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 610: - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (Play it?)& & Play it No\C" - global.msg[2] = " " - if (global.flag[94] == 3) - { - global.msg[0] = "* (This CD is labelled& " + chr(34) + "Ghouliday Music." + chr(34) + ")/" - global.msg[1] = "* (This CD is playing.)&* (Turn it off?)& Stop it No\C" - global.msg[2] = " " - } - break - case 611: - if (global.flag[94] != 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (You play the CD.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 4 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - if (global.flag[94] == 3) - { - if (global.choice == 0) - { - global.msg[0] = "* (The CD stops moving.)/%%" - if instance_exists(obj_napstablookdate_music) - obj_napstablookdate_music.con = 2 - } - if (global.choice == 1) - global.msg[0] = "* %%" - } - break - case 612: - global.msg[0] = "* (Look inside the fridge?)& & Open it No\C" - global.msg[1] = " " - break - case 613: - if (global.choice == 0) - { - if (global.flag[93] < 2) - { - global.msg[0] = "* (There's a lonely sandwich& inside.)/%%" - if instance_exists(obj_napstablookdate) - obj_napstablookdate.con = 11 - } - else - global.msg[0] = "* (It's empty.)/%%" - } - if (global.choice == 1) - global.msg[0] = "%%" - break - case 615: - global.msg[0] = "* this is a ghost sandwich.../" - global.msg[1] = "* do you want to try it...& & Yes No\C" - global.msg[2] = " " - break - case 616: - if (global.choice == 0) - { - global.msg[0] = "* (You attempt to bite& into the ghost sandwich.)/" - global.msg[1] = "* (You phase right through& it...)/" - global.msg[2] = "* oh.../" - global.msg[3] = "* nevermind.../%%" - } - if (global.choice == 1) - global.msg[0] = "* oh.....................& ....................& ................./%%" - break - case 617: - global.msg[0] = "* after a great meal i like& to lie on the ground and& feel like garbage.../" - global.msg[1] = "* it's a family tradition.../" - global.msg[2] = "* do you want..^1.&* ... to join me...& Yes No\C" - global.msg[3] = " " - break - case 618: - if (global.choice == 0) - global.msg[0] = "* okay..^1.&* follow my lead.../%%" - if (global.choice == 1) - { - global.flag[93] = 9 - global.msg[0] = "* oh.....................& ....................& ................./%%" - obj_napstablookdate.con = 80 - } - break - case 619: - global.msg[0] = "* do you want to play a game^1?&* it's called thundersnail./" - global.msg[1] = "* the snails will race^1, and if& the yellow snail wins^1, you& win./" - global.msg[2] = "* it's 10G to play.& & Play No\C" - global.msg[3] = " " - break - case 620: - if (global.choice == 0) - { - if (global.gold == 0) - { - global.msg[0] = "* um..^1.&* you don't have any money?/" - global.msg[1] = "* n-no^1, you can still play^1,& don't worry about it.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - } - if (global.gold < 10 && global.gold > 0) - { - global.msg[0] = "* um..^1. that's less than 10G./" - global.msg[1] = "* but since you're my only& real customer^1, i guess i'll& just take what you have.../" - global.msg[2] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[3] = "* ready?/%%" - global.gold = 0 - } - if (global.gold >= 10) - { - global.gold -= 10 - global.msg[0] = "* okay..^1.&* press [Z] repeatedly to& encourage your snail./" - global.msg[1] = "* ready?/%%" - } - obj_napstablook_farm2.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* oh.........../%%" - break - case 621: - global.msg[0] = "* .../" - global.msg[1] = "* Seven./" - global.msg[2] = "* Seven human souls./" - global.msg[3] = "* With the power of seven& human souls^1, our king.../" - global.msg[4] = "\W* \YKing \RASGORE \YDreemurr\W.../" - global.msg[5] = "* ... will become a god./" - global.msg[6] = "\W* With that power^1, \RASGORE\W & can finally shatter the& barrier./" - global.msg[7] = "* He will finally take the& surface back from humanity.../" - global.msg[8] = "* And give them back the& suffering and pain that& we have endured./" - global.msg[9] = "* .../" - global.msg[10] = "* Understand^1, human?/" - global.msg[11] = "* This is your only chance& at redemption./" - global.msg[12] = "* Give up your soul.../" - global.msg[13] = "* Or I'll tear it from& your body./%%" - break - case 622: - if (global.choice == 0) - { - global.msg[0] = "* That spark in your eyes.../" - global.msg[1] = "* You're really eager to& die^1, aren't you?/%%" - } - if (global.choice == 1) - global.msg[0] = "* .../%%" - break - case 623: - global.msg[0] = "* Yo^1, I know I'm not supposed& to be here^1, but.../" - global.msg[1] = "* I wanna ask you something./" - global.msg[2] = "* .../" - global.msg[3] = "* Man^1, I've never had to ask& anyone this before.../" - global.msg[4] = "* Umm.../" - global.msg[5] = "* Yo..^1. You're human^1, right?&* Haha./" - global.msg[6] = "* Man^1! I knew it!/" - global.msg[7] = "* ... well^1, I know it now^1,& I mean.../" - global.msg[8] = "* Undyne told me^1, um^1, " + chr(34) + "stay& away from that human." + chr(34) + "/" - global.msg[9] = "* So^1, like^1, ummm.../" - global.msg[10] = "* I guess that makes us enemies& or something./" - global.msg[11] = "* But I kinda stink at that^1,& haha./" - global.msg[12] = "* Yo^1, say something mean so& I can hate you?/" - global.msg[13] = "* Please? & & Yes No \C" - global.msg[14] = " " - break - case 624: - if (global.choice == 0) - { - global.msg[0] = "* Huh...?/" - global.msg[1] = "* Yo^1, that's your idea of& something mean?/" - global.msg[2] = "* My sister says that to me& ALL THE TIME!/" - global.msg[3] = "* Guess I have to do it^1, haha./" - global.msg[4] = "* Yo^1, I..^1. I hate your guts./" - global.msg[5] = "* .../" - global.msg[6] = "* Man^1, I..^1. I'm such a turd./" - global.msg[7] = "* I'm..^1. I'm gonna go home& now./%%" - } - if (global.choice == 1) - { - global.msg[0] = "* Yo^1, what^1?&* So I have to do it?/" - global.msg[1] = "* Here goes nothing.../" - global.msg[2] = "* Yo^1, I..^1. I hate your guts./" - global.msg[3] = "* .../" - global.msg[4] = "* Man^1, I..^1. I'm such a turd./" - global.msg[5] = "* I'm..^1. I'm gonna go home& now./%%" - } - break - case 625: - if (global.flag[353] <= 19) - { - global.msg[0] = "* (It's a water cooler.)&* (Take a cup of water?)& Yes No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There's no more water left& in the cooler.)/%%" - if instance_exists(obj_undynefall) - global.msg[0] = "* (Sadistically^1, you've poured& out all the water right in& front of Undyne's eyes.)/%%" - } - break - case 626: - if (global.choice == 0) - { - global.flag[440] += 1 - global.msg[0] = "* (You take a cup of water.)/%%" - with (obj_watercooler) - event_user(1) - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 627: - global.msg[0] = "* (Get rid of the water?)& & Yes No \C" - global.msg[1] = " " - break - case 628: - if (global.choice == 0) - { - global.msg[0] = "* (You pour the water on& the ground next to the& water cooler.)/%%" - with (obj_watercooler) - { - if instance_exists(obj_undynefall) - global.flag[441] += 1 - global.flag[353] += 1 - event_user(1) - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 629: - global.msg[0] = "* A rousing error./%%" - if instance_exists(obj_watercooler) - { - if (obj_watercooler.havewater == 1) - { - global.msg[0] = "* (Give Undyne the water?)& & Yes No \C" - global.msg[1] = " " - } - else - global.msg[0] = "* (She looks dry...)/%%" - } - break - case 630: - global.msg[0] = " %%" - if (global.choice == 0) - { - global.interact = 1 - with (obj_undynefall) - event_user(1) - } - break - case 632: - armor1 = "BEPIS." - armor2 = "BEPIS." - if (global.flag[75] == 4) - armor1 = "GROSS BANDAGE" - if (global.flag[75] == 12) - armor1 = "FADED RIBBON" - if (global.flag[75] == 15) - armor1 = "BANDANNA" - if (global.flag[75] == 24) - armor1 = "DUSTY TUTU" - if (global.flag[77] == 4) - armor2 = "GROSS BANDAGE" - if (global.flag[77] == 12) - armor2 = "FADED RIBBON" - if (global.flag[77] == 15) - armor2 = "BANDANNA" - if (global.flag[77] == 24) - armor2 = "DUSTY TUTU" - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HELLO^1!&THIS IS PAPYRUS!!!/" - global.msg[3] = "REMEMBER WHEN&I ASKED YOU&ABOUT CLOTHES?/" - global.msg[4] = "\E3WELL^1, THE FRIEND&WHO WANTED TO&KNOW.../" - global.msg[5] = "\E0HER OPINION OF&YOU IS VERY.../" - global.msg[6] = "\E3MURDERY./" - global.msg[7] = "\E0ERROR!!^1!&SEE YOU LATER!/%%" - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I TOLD HER WHAT&YOU TOLD ME&YOU WERE WEARING!/" - global.msg[10] = (("A " + armor1) + "!/") - global.msg[11] = "BECAUSE I KNEW^1,&OF COURSE.../" - global.msg[12] = "\E3AFTER SUCH A&SUSPICIOUS&QUESTION.../" - global.msg[13] = "\E0YOU WOULD&OBVIOUSLY CHANGE&YOUR CLOTHES!/" - global.msg[14] = "YOU'RE SUCH A&SMART COOKIE!/" - global.msg[15] = "THIS WAY YOU'RE&SAFE AND I&DIDN'T LIE!!!/" - global.msg[16] = "NO BETRAYAL&ANYWHERE!!!/" - global.msg[17] = "BEING FRIENDS&WITH EVERYONE&IS EASY!!!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 0) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = "\E3I AM NOT A&CRUEL PERSON./" - global.msg[10] = "\E0I STRIVE TO BE&COMFORTING AND&PLEASANT./" - global.msg[11] = "PAPYRUS!&HE SMELLS LIKE&THE MOON./" - global.msg[12] = "SO, BECAUSE OF&MY INHERENT&GOODNESS.../" - global.msg[13] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[14] = "\E3EVEN THOUGH YOU&TOLD ME YOU&WERE!/" - global.msg[15] = "INSTEAD^1, I MADE&SOMETHING UP!/" - global.msg[16] = "I TOLD HER YOU&WERE WEARING.../" - global.msg[17] = (("\E0A " + armor2) + "./") - global.msg[18] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[19] = (("I KNOW YOU WOULD&NEVER EVER WEAR&A " + armor2) + "./") - global.msg[20] = "\E0BUT YOUR SAFETY&IS MORE IMPORTANT&THAN FASHION./" - global.msg[21] = "\E3DANG!/" - global.msg[22] = "I JUST WANT TO&BE FRIENDS WITH&EVERYONE.../" - global.msg[23] = "\TS \F0 \T0 %" - global.msg[24] = "* Click.../%%" - } - } - if (global.flag[75] == global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0WELL^1, WORRY&NOT DEAR HUMAN!/" - global.msg[8] = "\E3PAPYRUS WOULD&NEVER BETRAY YOU!/" - global.msg[9] = (("\WY\E0OU SAID YOU WERE\Y &NOT WEARING A&" + armor1) + "\W./") - global.msg[10] = "\E3SO OF COURSE&I ACTUALLY&TOLD HER.../" - global.msg[11] = (("\E0YOU WERE&INDEED WEARING&A " + armor1) + "!/") - global.msg[12] = "\E3IT PAINED ME TO&TELL SUCH A&BOLDFACED LIE./" - global.msg[13] = (("BUT SINCE YOU&AREN'T WEARING&A " + armor1) + "./") - global.msg[14] = "\E0SHE SURELY&WON'T ATTACK&YOU!/" - global.msg[15] = "NOW YOU ARE&SAFE AND SOUND./" - global.msg[16] = "\E2WOWIE..^1.&THIS IS HARD./" - global.msg[17] = "I JUST WANT TO&BE EVERYBODY'S&FRIEND!/" - global.msg[18] = "\TS \F0 \T0 %" - global.msg[19] = "* Click.../%%" - } - } - if (global.flag[75] != global.flag[77]) - { - if (global.flag[76] == 1) - { - global.msg[7] = "\E0BUT I BET YOU&KNEW THAT&ALREADY!/" - global.msg[8] = "\E3AND BECAUSE YOU&KNEW THAT.../" - global.msg[9] = "\E0I KNEW WHEN&YOU SAID:/" - global.msg[10] = (('\E3"I AM NOT&WEARING A&' + armor1) + '."/') - global.msg[11] = "\E0IT WAS REALLY&A SECRET CODE!/" - global.msg[12] = "\E3YOU REALLY&MEANT.../" - global.msg[13] = (('\E0"I ACTUALLY AM&WEARING&A ' + armor1) + '!"/') - global.msg[14] = "YOU WERE TRYING&TO PROTECT&YOURSELF.../" - global.msg[15] = "WHILE MAKING IT&SO I DIDN'T&HAVE TO LIE!/" - global.msg[16] = "I PICKED UP ON&THIS, AND FOLLOWED&YOUR PLAN./" - global.msg[17] = (("I TOLD HER YOU&WERE NOT WEARING&A " + armor1) + "!/") - global.msg[18] = "IN FACT I TOOK&IT ONE STEP&FURTHER!/" - global.msg[19] = "\E3I TOLD HER YOU&WERE PROBABLY.../" - global.msg[20] = (("\E0WEARING A&" + armor2) + "!/") - global.msg[21] = "\E3OF COURSE, YOU&WOULD NEVER&WEAR THAT./" - global.msg[22] = "\E0BUT THAT'S THE&POINT!/" - global.msg[23] = "SHE WON'T&RECOGNIZE YOU&NOW!/" - global.msg[24] = "AND I DIDN'T&HAVE TO BETRAY&EITHER OF YOU!/" - global.msg[25] = "SINCE I JUST&TOLD HER WHAT&YOU SAID!/" - global.msg[26] = "WOWIE^1!&YOU'RE SUCH A&SMART COOKIE!/" - global.msg[27] = "I REALLY CAN&BE FRIENDS WITH&EVERYONE!!!/" - global.msg[28] = "\TS \F0 \T0 %" - global.msg[29] = "* Click.../%%" - } - } - break - case 633: - global.msg[0] = "* Ring..\E0./" - scr_papface(1, 0) - global.msg[2] = "HEY^1!&WHAT'S UP!?/" - global.msg[3] = "I WAS JUST&THINKING.../" - global.msg[4] = "YOU^1, ME^1, AND&UNDYNE SHOULD ALL&HANG OUT SOMETIME!/" - global.msg[5] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE&LATER!/" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - if (global.flag[88] < 3) - { - global.msg[5] = "AFTER YOU HANG&OUT WITH ME.../" - global.msg[6] = "LET'S MEET UP&AT HER HOUSE!/" - global.msg[7] = "I THINK YOU&WOULD MAKE&GREAT PALS!/" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - } - break - case 635: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 636: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 637: - global.msg[0] = "* (It's a book labelled& Monster History Part 6.)& Read it Do not\C" - global.msg[1] = " " - break - case 638: - global.msg[0] = "* Unfortunately^1, monsters are& not experienced with& illness./" - global.msg[1] = "* However^1, when monsters are& about to expire of age^1,& they lie down^1, immobile./" - global.msg[2] = "* We call this state& " + chr(34) + "Fallen Down." + chr(34) + "/" - global.msg[3] = "* A person who has Fallen& Down will soon perish./" - global.msg[4] = "* In a way^1, this confusing& situation was all too& familiar./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 639: - global.msg[0] = "* (It's a book labelled& Monster History Part 7.)& Read it Do not\C" - global.msg[1] = " " - break - case 640: - global.msg[0] = "* When a human dies^1, its& soul remains stable& outside the body./" - global.msg[1] = "* Meanwhile^1, a monster's soul& disappears near-instantly& upon death./" - global.msg[2] = "* This allows monsters to& absorb the souls of& humans.../" - global.msg[3] = "* While it is extremely& difficult for humans to& absorb a monster's soul./" - global.msg[4] = "* This is why they feared us./" - global.msg[5] = "* Though monsters are weak^1,& with enough human souls.../" - global.msg[6] = "* They could easily destroy& all of mankind./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 641: - global.msg[0] = "* (It's a book labelled& Monster History Part 8.)& Read it Do not\C" - global.msg[1] = " " - break - case 642: - global.msg[0] = "* There is one exception& to the aforementioned& rules:/" - global.msg[1] = "* A certain type of monster^1,& the " + chr(34) + "boss" + chr(34) + " monster./" - global.msg[2] = "* Due to its life cycle^1, it& possesses an incredibly& strong soul for a monster./" - global.msg[3] = "* This soul can remain& stable after death^1, if& only for a few moments./%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to read it.)/%%" - break - case 643: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 644: - global.msg[0] = "* (You look inside a book.)/" - global.msg[1] = "* (It's a comic of a giant& robot fighting a beautiful& alien princess.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 645: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 646: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (Two scantily-clad chefs are& flinging energy pancakes& at each other.)/" - global.msg[2] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 647: - global.msg[0] = "* (All these books are labelled& Human History.)& Read one Do not\C" - global.msg[1] = " " - break - case 648: - global.msg[0] = "* (You look inside a book.)&* (It's a comic book.)/" - global.msg[1] = "* (A hideous android is running& to school with toast in& its mouth.)/" - global.msg[2] = "* (Seems like it's late.)/" - global.msg[3] = "* (This doesn't strike you& as very accurate...)/%%" - if (global.choice == 1) - global.msg[0] = "* (You decide not to.)/%%" - break - case 660: - global.msg[0] = "* (There's a piano here.^1)&* (Play it?)& Yes No\C" - global.msg[1] = " " - break - case 661: - global.msg[0] = " %%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_paino) == 0) - instance_create(2, 2, obj_paino) - } - break - case 666: - global.msg[0] = "See that heart^1? &That is your SOUL^1,&the very culmination&of your being!/" - global.msg[1] = "Your SOUL starts off&weak^1, but can grow&strong if you gain&a lot of LV./" - global.msg[2] = "What's LV stand for^1?&Why^1, LOVE^1, of course!/" - global.msg[3] = "You want some&LOVE, don't you?/" - global.msg[4] = "Don't worry,&I'll share some&with you!/%" - break - case 667: - global.msg[0] = "Down here^1, LOVE is&shared through..^1./" - global.msg[1] = "Little white..^2.\E1 &" + chr(34) + "friendliness&pellets." + chr(34) + "/" - global.msg[2] = "\E2Are you ready\E0?/%" - break - case 668: - global.msg[0] = "Move around^1!&Get as many as&you can^2!%%%" - global.msg[1] = "%%%" - break - case 669: - global.msg[0] = "You idiot./" - global.msg[1] = "In this world^1, it's&kill or BE killed./" - global.msg[2] = "Why would ANYONE pass&up an opportunity&like this!?/%" - break - case 670: - global.msg[0] = "Die./%" - break - case 671: - global.msg[0] = "Hey buddy^1,&you missed them./" - global.msg[1] = "Let's try again^1,&okay?/%" - break - case 672: - global.msg[0] = "Is this a joke^2?&Are you braindead^2?&RUN^2. INTO^2. THE^2.&BULLETS!!!" - break - case 673: - global.msg[0] = "You know what's&going on here^1,&don't you?/" - global.msg[1] = "You just wanted to&see me suffer./%" - break - case 674: - global.msg[0] = "\E1What a terrible&creature^1, torturing&such a poor^1,&innocent youth.../" - global.msg[1] = "\E2Ah, do not be&afraid^1, my child./" - global.msg[2] = "\XI am \BTORIEL\X,&caretaker of&the \RRUINS\X./" - global.msg[3] = "I pass through this&place every day to&see if anyone has&fallen down./" - global.msg[4] = "You are the first&human to come here&in a long time./" - global.msg[5] = "I will do my best&to ensure your&protection during&your time here./%%" - global.msg[5] = "\E2Come^2!&I will guide you&through the&catacombs./%%" - global.msg[6] = "%%%" - break - case 680: - global.msg[0] = "* Three gold for the ferry.& & Yes No\C" - global.msg[1] = " " - break - case 681: - global.msg[0] = "* Later^1, then./%%" - global.msg[1] = " " - if (global.choice == 0) - { - if (instance_exists(obj_purpledude) == 1) - obj_purpledude.con = 1 - global.msg[0] = "* Hop on!/%%" - } - break - case 682: - global.msg[0] = "* (It's a switch.)& & Press it Don't\C" - global.msg[1] = " " - break - case 683: - if (global.flag[371] == 0 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were deactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(0) - } - } - } - if (global.flag[371] == 1 && doak == 0) - { - global.msg[0] = " %%" - if (global.choice == 0) - { - sc = instance_create(0, 0, obj_soundcombo) - with (sc) - { - sound1 = snd_switchpull_n - sound2 = snd_spearappear - alarm[1] = 8 - } - doak = 1 - global.msg[0] = "* (The lasers were reactivated.)/%%" - if instance_exists(obj_laserswitch1) - { - with (obj_laserswitch1) - event_user(1) - } - } - } - break - case 684: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "\E1* Um.../" - global.msg[3] = "\E0* I noticed you've been& kind of quiet.../" - global.msg[4] = "\W*\E8 Are you w-worried& about meeting \RASGORE\W...?/" - global.msg[5] = "\E2* .../" - global.msg[6] = "\E0* W-well^1, don't worry^1,& okay?/" - global.msg[7] = "\E7* Th-the king is a& really nice guy.../" - global.msg[8] = "\E0* I'm sure you can& talk to him^1, and.../" - global.msg[9] = "* W-with your human& soul^1, you can pass& through the barrier!/" - global.msg[10] = "* S-so no worrying^1, OK^1?&* J-just forget about it& and smile./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = "* Click.../%%" - break - case 685: - doak = 0 - noroom = 0 - global.msg[0] = "* hey buddy^1, what's up^1?&* wanna buy a hot dog?/" - global.msg[1] = "* it's only 30G.& & Yes No \C" - global.msg[2] = " " - if (global.flag[380] > 0 && global.item[7] != 0) - { - if (instance_number(obj_hotdog) < 30) - { - global.msg[0] = "* here^1.&* have fun./%%" - if (global.flag[380] == 1) - { - global.msg[0] = "* here's another hot& dog./" - global.msg[1] = "* it's on the house^1.&* well^1, no^1.&* it's on you./%%" - } - if (doak == 0) - { - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - } - } - else - { - global.msg[0] = "* sorry^1, thirty is& the limit on& head-dogs./%%" - if (global.flag[381] == 0) - { - global.msg[0] = "\TS*^1 \Tsi'll be 'frank' with& you./" - global.msg[1] = "* as much as i like& putting hot dogs& on your head.../" - global.msg[2] = "* thirty is just& an excessive number./" - global.msg[3] = "* twenty-nine^1, now& that's fine^1, but& thirty.../" - global.msg[4] = "* does it look like& my arms can reach& that high?/%%" - } - global.flag[381] = 1 - } - } - break - case 686: - script_execute(scr_cost, 30) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - if (global.flag[379] != 1) - script_execute(scr_itemget, 38) - if (global.flag[379] == 1) - script_execute(scr_itemget, 39) - if (noroom == 0) - { - global.gold -= 30 - global.flag[378] += 30 - } - } - } - if (noroom == 0) - { - if (afford == 1) - { - global.msg[0] = "* thanks, kid^1.&* here's your hot dog./%%" - if (global.flag[379] == 0) - { - global.msg[0] = "* thanks, kid^1.&* here's your 'dog./" - global.msg[1] = "* yeah^1. 'dog^1.&* apostrophe-dog^1.&* it's short for hot-dog./%%" - } - if (global.flag[379] == 1) - { - global.msg[0] = "* another h'dog^1?&* here you go.../" - global.msg[1] = "* whoops^1, i'm actually& out of hot dogs./" - global.msg[2] = "* here^1, you can have& a hot cat instead./%%" - } - if (global.flag[379] == 2) - { - global.msg[0] = "* another dog^1, coming& right up.../" - global.msg[1] = "* ... you really like& hot animals^1, don't& you?/" - global.msg[2] = "* hey^1, i'm not judging./" - global.msg[3] = "* i'd be out of a job& without folks like you./%%" - } - if (global.flag[379] == 3) - { - global.msg[0] = "* cool^1.&* here's that ''dog./" - global.msg[1] = "* apostrophe-apostrophe& dog./" - global.msg[2] = "* it's short for& apostrophe-dog./" - global.msg[3] = "* which is^1, in turn^1,& short for.../%%" - } - if (global.flag[379] == 4) - { - global.msg[0] = "* another one^1?&* okay./" - global.msg[1] = "* careful^1.&* if you eat& too many hot dogs.../" - global.msg[2] = "* you'll probably get& huge like me./" - global.msg[3] = "* huge as in super-& popular^1, i mean./" - global.msg[4] = "* i'm practically& a hot-dog tycoon now./%%" - } - global.flag[379] += 1 - } - if (afford == 0) - { - global.msg[0] = "* whoops^1, you don't have& enough cash./" - global.msg[1] = "* you should get a job^1.&* i've heard being a& sentry pays well./%%" - } - } - if (noroom == 1) - { - global.msg[0] = "* you're holding too much^1.&* ... guess i'll just put& it on your head./%%" - with (obj_hotdoggen) - event_user(0) - global.flag[380] += 1 - noroom = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* yeah^1, you've gotta& save your money for& college and spiders./%%" - break - case 690: - global.msg[0] = "* Ring.../" - global.msg[1] = "\TS \E3 \F6 \TA %" - global.msg[2] = "* L-looks like you& beat him!/" - global.msg[3] = "\E0* Y-you did a really& great job out there./" - global.msg[4] = " & All thanks& to you ... \C" - global.msg[5] = " " - break - case 691: - if (global.choice == 0) - { - global.msg[0] = "\E3* What^1?&* Oh no^1, I mean.../" - global.msg[1] = "\E4* You were the one& doing everything cool!/" - global.msg[2] = "\E0* I just wrote some& silly programs for& your phone./" - } - if (global.choice == 1) - { - global.msg[0] = "\E1* .../" - global.msg[1] = "\E2* .../" - global.msg[2] = "\E1* .../" - } - global.msg[3] = "\E2* .../" - global.msg[4] = "\E4* ... umm^1, h-hey^1, this& might sound strange^1,& but.../" - global.msg[5] = "\E6* ... c-can I tell& you something?/" - global.msg[6] = "\E9* .../" - global.msg[7] = "\E4* B-before I met you^1,& I d-didn't really.../" - global.msg[8] = "\E9* I didn't really& like myself very& much./" - global.msg[9] = "* For a long time^1,& I f-felt like a& total screw-up./" - global.msg[10] = "\E9* L-like I couldn't& do a-anything& w-without.../" - global.msg[11] = "\E9* W-without ending up& letting everyone& down./" - global.msg[12] = "\E3* B-but...!/" - global.msg[13] = "\E4* Guiding you has& made me feel.../" - global.msg[14] = "\E9* A lot better about& myself./" - global.msg[15] = "\E0* So... thanks for& letting me help& you./" - global.msg[16] = "\E9* .../" - global.msg[17] = "\E4* Uhhh^1, anyway^1, we're& almost to the CORE./" - global.msg[18] = "\E0* It's just past& MTT Resort./" - global.msg[19] = "\E6* Come on^1!&* Let's finish this!/%%" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* Click.../%%" - break - case 692: - global.msg[0] = "\E0EUREKA!!!/" - global.msg[1] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[2] = "\E3YOU SEEM LIKE&YOU'RE HAVING&FUN^1, THOUGH.../" - global.msg[3] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[6] = " " - break - case 693: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 694: - global.msg[0] = "I'VE FIGURED OUT&THE PUZZLE!!!/" - global.msg[1] = "\E0DO YOU ABSOLUTELY^1,&DAPSOLUTELY WANT&THE SOLUTION???/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (Do you absolutely^1,& dapsolutely want the answer?)& Yes No\C" - global.msg[4] = " " - break - case 695: - scr_papface(0, 0) - if (global.choice == 0) - { - global.msg[1] = "THE^1!&SOLUTION^1!&IS!/" - global.msg[2] = "(PLEASE IMAGINE&A DRUMROLL IN&YOUR HEAD)/" - global.msg[3] = "... THAT TREE&OVER THERE HAS&A SWITCH ON IT!/" - global.msg[4] = "CHECK IT&OUTIE!!!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "WOW..^1.&YOU'RE TRULY A&PUZZLE PASSIONEER!/" - global.msg[2] = "I'M SO ENTHUSED&BY YOUR&ENTHUSIASM!!!/" - global.msg[3] = "YOU CAN DO IT^1,&HUMAN!!!/%%" - } - break - case 696: - global.msg[0] = "* (There's a switch on the& trunk of this tree.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - break - case 697: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (obj_xoxocontroller1.fvic != 1) - { - obj_xoxocontroller1.fvic = 1 - snd_play(snd_switchpull_n) - } - } - break - case 698: - global.msg[0] = "OHO^1!&THE HUMAN ARRIVES!/" - global.msg[1] = "ARE YOU READY TO&HANG OUT WITH&UNDYNE?/" - global.msg[2] = "I HAVE A PLAN&TO MAKE YOU TWO&GREAT FRIENDS!/" - global.msg[3] = "\TS \F0 \T0 %" - global.msg[4] = "* (Will you hang out?)& & Yes No\C" - global.msg[5] = " " - break - case 699: - scr_papface(0, 3) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - { - global.msg[1] = "HMMM..^1.&STILL GETTING&READY?/" - global.msg[2] = "\E0TAKE YOUR TIME!/%%" - } - break - case 700: - global.msg[0] = "OKAY^1!&ALL READIED-UP&TO HANG OUT!?/" - global.msg[1] = "\TS \F0 \T0 %" - global.msg[2] = "* (Will you hang out?)& & Yes No\C" - global.msg[3] = " " - break - case 701: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 702: - scr_papface(0, 0) - if (global.choice == 0) - { - scr_papface(0, 0) - global.msg[1] = "OKAY^1!&STAND BEHIND ME!/%%" - if instance_exists(obj_undynedate_outside) - obj_undynedate_outside.con = 5 - } - if (global.choice == 1) - global.msg[1] = "TAKE YOUR TIME!/%%" - break - case 703: - global.msg[0] = "\E4* .../" - global.msg[1] = "\E5* So why are YOU& here?/" - global.msg[2] = "\E4* To rub your victory& in my face?/" - global.msg[3] = "\E4* To humiliate me& even further?/" - global.msg[4] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[5] = " " - break - case 704: - if (global.choice == 0) - { - global.msg[0] = "\E2* Oh-ho-ho-ho./" - global.msg[1] = "\E1* Well^1, I've got news& for you^1, BRAT./" - global.msg[2] = "\E2* You're on MY& battlefield now./" - global.msg[3] = "\E3* And you AREN'T& going to& humiliate me./" - global.msg[4] = "\E3* I'll TELL you& what's going to& happen./" - global.msg[5] = "\E0* We're going to& hang out./" - global.msg[6] = "\E2* We're going to& have a good& time./" - global.msg[7] = "\M1* We're going to& become " + chr(34) + "friends." + chr(34) + "/" - global.msg[8] = "\E3* You'll become so& enamored with me.../" - global.msg[9] = "\E1* YOU'LL be the one& feeling humiliated& for your actions!/" - global.msg[10] = "\E6* Fuhuhuhuhu!!/" - global.msg[11] = "\M2* It's the perfect& revenge!!!/" - global.msg[12] = "\E1* Err.../" - global.msg[13] = "\E9* Why don't you& have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\E4* Then why are you& here?/" - global.msg[1] = "\E1* ...!/" - global.msg[2] = "\E2* Wait^1, I get it./" - global.msg[3] = "\E3* You think that I'm& gonna be friends& with you^1, huh?/" - global.msg[4] = "* Right???& NEVER & Yes with you\C" - global.msg[5] = " " - } - break - case 705: - if (global.choice == 0) - { - global.msg[0] = "\E6* Really^1?&* How delightful!^1!&* I accept!/" - global.msg[1] = "* Let's all frolick& in the fields& of friendship!/" - global.msg[2] = "\E2* ...NOT!/" - global.msg[3] = "\E2* Why would I EVER& be friends with& YOU!?/" - global.msg[4] = "\E3* If you weren't my& houseguest^1, I'd beat& you up right now!/" - global.msg[5] = "\E0* You're the enemy& of everyone's hopes& and dreams!/" - global.msg[6] = "\E1* I WILL NEVER& BE YOUR FRIEND./" - global.msg[7] = "\E3* Now get out of& my house!/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 40 - } - if (global.choice == 1) - { - global.msg[0] = "\E1* WHAT?/" - global.msg[1] = "\E4* First you parade& into my house^1,& then you INSULT me?/" - global.msg[2] = "\E2* You little BRAT^1!&* I have half a& mind to.../" - global.msg[3] = "\E1* .../" - global.msg[4] = "\E3* Wait./" - global.msg[5] = "\E2* I'll prove you& WRONG./" - global.msg[6] = "\E3* We ARE going to& be friends./" - global.msg[7] = "\E1* In fact.../" - global.msg[8] = "\E3* We./" - global.msg[9] = "\M1* Are going to be& BESTIES./" - global.msg[10] = "* I'll make you like& me so much.../" - global.msg[11] = "\E1* Your WHOLE LIFE& will revolve around& me!!/" - global.msg[12] = "\M2* It's the perfect& revenge!!!/" - global.msg[13] = "\E6* FUHUHUHUHU!!!/" - global.msg[14] = "\E1* Err.../" - global.msg[15] = "\E9* Now^1, why don't& you have a seat?/%%" - if instance_exists(obj_undynedate_inside) - obj_undynedate_inside.con = 50 - } - break - case 706: - global.msg[0] = "* (Sit down and progress?)& & Yes No\C" - global.msg[1] = " " - break - case 707: - global.msg[0] = " %%" - if (global.choice == 0) - obj_undynedate_inside.con = 60 - if (global.choice == 1) - { - global.msg[0] = " %%" - global.msg[1] = " %%" - } - break - case 708: - global.msg[0] = "* That sugar's for& the tea./" - global.msg[1] = "\E2* I'm not gonna give& you a cup of& sugar!/" - global.msg[2] = "\E6* What do I look& like^1, the ice-cream& woman?/" - global.msg[3] = "\E2* Do human ice-cream& women TERRORIZE HUMANITY& with ENERGY SPEARS?/" - global.msg[4] = "\E3* Are their ice-cream& songs a PRELUDE TO& DESTRUCTION?/" - global.msg[5] = "\E1* IS THAT IT? & & Yes No\C" - global.msg[6] = " " - break - case 709: - if (global.choice == 0) - { - global.msg[0] = "\E1* ... what^1?&* REALLY?/" - global.msg[1] = "\E6* That rules!!!/%%" - } - if (global.choice == 1) - global.msg[0] = "\E3* That's what I& thought./%%" - break - case 710: - global.msg[0] = "* Envision these& vegetables as your& greatest enemy!/" - global.msg[1] = "\E2* Now!^1!&* Pound them to dust& with your fists!!/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* (How will you pound?)& & Strong Wimpy\C" - global.msg[4] = " " - break - case 711: - if (global.choice == 0) - { - obj_undynedate_inside.con = 140 - global.msg[0] = "* (You punch the vegetables& at full force^1.&* You knock over a tomato.)/" - scr_undface(1, 6) - global.msg[2] = "* YEAH^1!&* YEAH!/" - global.msg[3] = "\E1* Our hearts are& uniting against these& healthy ingredients!/" - global.msg[4] = "\M2* NOW IT'S MY TURN!/" - global.msg[5] = "* NGAHHH!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 141 - global.msg[0] = "* (You pet the vegetables& in an affectionate& manner.)/" - scr_undface(1, 1) - global.msg[2] = "* OH MY GOD!!^1!&* STOP PETTING THE& ENEMY!!!/" - global.msg[3] = "\M2* I'll show you& how it's done!/" - global.msg[4] = "* NGAHHH!/%%" - } - break - case 712: - global.msg[0] = "* ... we add the& noodles!/" - global.msg[1] = "\E0* Homemade noodles& are the best!/" - global.msg[2] = "\E6* BUT I JUST BUY& STORE-BRAND!/" - global.msg[3] = "\M2* THEY'RE THE& CHEAPEST!!!/" - global.msg[4] = "\E1* NGAHHHHHHHHH& HHHHHHHHHH!!!/" - global.msg[5] = "\E9* Uhh^1, just put them& in the pot./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "\M0* (How will you put them in?)& & Fiercely Careful\C" - global.msg[8] = " " - break - case 713: - if (global.choice == 0) - { - obj_undynedate_inside.con = 199 - global.msg[0] = "* (You throw everything into& the pot as hard as you can^1,& including the box.)/" - global.msg[1] = "* (It clanks against the& empty bottom.)/" - scr_undface(2, 6) - global.msg[3] = "\M2* YEAH!!^1!&* I'M INTO IT!!!/%%" - } - if (global.choice == 1) - { - obj_undynedate_inside.con = 200 - global.msg[0] = "* (You place the noodles& in one at a time.)/" - global.msg[1] = "* (They clank against the& empty bottom.)/" - scr_undface(2, 9) - global.msg[3] = "* Nice???/%%" - } - break - case 714: - global.msg[0] = "\E0* Humans suck^1, but& their history..^1.&* Kinda rules./" - global.msg[1] = "\E2* Case in point^1:&* This giant sword!/" - global.msg[2] = "\E0* Historically^1, humans& wielded swords up& to 10x their size./" - global.msg[3] = "\E1* RIGHT?& & True False\C" - global.msg[4] = " " - break - case 715: - if (global.choice == 0) - { - global.msg[0] = "\E6* Heh^1, I knew it!/" - global.msg[1] = "\E2* When I first heard& that^1, I immediately& wanted one!/" - global.msg[2] = "\E0* So me and Alphys& built a giant& sword together./" - global.msg[3] = "\E0* She figured out all& the specs herself.../" - global.msg[4] = "\E6* She's smart^1, huh!?/%%" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* Pfft^1!&* You liar!/" - global.msg[1] = "\E3* I've READ Alphys's& human history book& collection!/" - global.msg[2] = "\E3* I know all about& your giant swords.../" - global.msg[3] = "\E3* Your colossal^1,& alien-fighting& robots.../" - global.msg[4] = "* Your supernatural& princesses.../" - global.msg[5] = "\E6* Heh^1! There's no& way you're gonna& fool me!!!/%%" - } - break - case 716: - global.msg[0] = "* (Look inside the bone drawer?)& & Yes No\C" - global.msg[1] = " " - break - case 717: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - obj_bonedrawer_check.con = 5 - } - break - case 720: - global.msg[0] = "\M5* WHAT A SENSATIONAL OPPORTUNITY& FOR A STORY!/" - global.msg[1] = "\M3* I CAN SEE THE HEADLINE NOW:/" - global.msg[2] = "\M4* " + chr(34) + "A DOG EXISTS SOMEWHERE." + chr(34) + "/" - global.msg[3] = "\M2* FRANKLY^1, I'M BLOWN AWAY./" - global.msg[4] = "* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 721: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 722: - global.msg[0] = "\M5* THIS DOG..^1.&* STILL EXISTS!/" - global.msg[1] = "* THIS STORY..^1.&* JUST KEEPS GETTING& BETTER AND BETTER!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 723: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 1 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 724: - global.msg[0] = "\M5* OH MY!!!!/" - global.msg[1] = "\M2* ... IT'S A COMPLETELY& NONDESCRIPT GLASS OF WATER./" - global.msg[2] = "\M4* BUT ANYTHING CAN MAKE& A GREAT STORY WITH ENOUGH& SPIN!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 725: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 726: - global.msg[0] = "\M3* I'M HONORED TO BE IN THE& PRESENCE OF SUCH A HUGE& LUKEWARM WATER FAN^1, FOLKS!/" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 727: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 2 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 728: - global.msg[0] = "\M5* OH NO!!^1!&* THAT MOVIE SCRIPT!!^1!&* HOW'D??^1? THAT GET THERE???/" - global.msg[1] = "\M4* IT'S A SUPER-JUICY SNEAK& PREVIEW OF MY LATEST& GUARANTEED-NOT-TO-BOMB FILM:/" - global.msg[2] = "\M6* METTATON THE MOVIE XXVIII..^1.& STARRING METTATON!/" - global.msg[3] = "\M1* I'VE HEARD THAT LIKE THE& OTHER FILMS.../" - global.msg[4] = "\M1* IT CONSISTS MOSTLY OF A SINGLE& FOUR-HOUR SHOT OF ROSE PETALS& SHOWERING ON MY RECLINING BODY./" - global.msg[5] = "\M5* OOH!!^1!&* BUT THAT'S!!^1!&* NOT CONFIRMED!!/" - global.msg[6] = "\M5* YOU WOULDN'T (COUGH) SPOIL MY& MOVIE FOR EVERYONE WITH A& PROMOTIONAL STORY^1, WOULD YOU?/" - global.msg[7] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[8] = " " - break - case 729: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - { - global.msg[0] = "\M5* PHEW!!^1! THAT WAS CLOSE!^1!&* YOU ALMOST GAVE ME A BUNCH& OF FREE ADVERTISEMENT!!/%%" - global.msg[1] = "\M2 %%" - } - break - case 730: - global.msg[0] = "\M3* OH^1!&* YOU'RE BACK!/" - global.msg[1] = "\M6* THAT'S RIGHT^1, FOLKS^1!&* IT SEEMS NO ONE CAN RESIST& THE ALLURE OF MY NEW FILM!/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 731: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 3 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 732: - global.msg[0] = "\M4* BASKETBALL'S A BLAST^1, ISN'T IT^1,& DARLING?/" - global.msg[1] = "\M1* TOO BAD YOU CAN'T PLAY WITH& THESE BALLS./" - global.msg[2] = "\M4* THEY'RE MTT-BRAND FASHION& BASKETBALLS^1.&* FOR WEARING^1, NOT PLAYING./" - global.msg[3] = "\M6* YOU CAN'T GET RICH AND FAMOUS& LIKE MOI WITHOUT BEAUTIFYING& A FEW ORBS./" - global.msg[4] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[5] = " " - break - case 733: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 734: - global.msg[0] = "* IT SEEMS OUR REPORTER IS DRAWN& TO SPORTS LIKE MOTHS TO A& FLAMING BASKETBALL HOOP./" - global.msg[1] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[2] = " " - break - case 735: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 4 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 736: - global.msg[0] = "\M5* OH MY^1! IT'S A PRESENT^1!&* AND IT'S ADDRESSED TO YOU^1,& DARLING!/" - global.msg[1] = "\M6* AREN'T YOU JUST BURSTING& WITH EXCITEMENT?/" - global.msg[2] = "\M5* WHAT COULD BE INSIDE^1?&* WELL^1, NO TIME LIKE THE& " + chr(34) + "PRESENT" + chr(34) + " TO FIND OUT!/" - global.msg[3] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[4] = " " - break - case 737: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 738: - global.msg[0] = "\M4* READY FOR YOUR..^1.&* PRESENTATION?/" - global.msg[1] = "\M4* (... LET'S CUT THAT ONE IN& POST.)/" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 739: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 5 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 740: - global.msg[0] = "\M5* OOH LA LA^1!&* THIS VIDEO GAME YOU FOUND..^1.&* IS DYNAMITE!!!/" - global.msg[1] = "\M4* THOUGH I DON'T MAKE AN& APPEARANCE IN IT UNTIL& THREE-FOURTHS IN./" - global.msg[2] = "\M3* BUT I LIKE THAT./" - global.msg[3] = "\M6* APPEARING FROM THE HEAVENS LIKE& MANNA^1, SLAKING THE AUDIENCE'S& HUNGER FOR GORGEOUS ROBOTS.../" - global.msg[4] = "\M5* OOH^1!&* THAT'S METTATON!/" - global.msg[5] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[6] = " " - break - case 741: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 742: - global.msg[0] = "* AH^1, YOU UNDERSTAND./" - global.msg[1] = "* THIS IS A GAME WHERE YOU& SHOULD CHECK EVERYTHING& TWICE./" - global.msg[2] = "\M2* (REPORT THIS ONE?)& & Report Look More\C" - global.msg[3] = " " - break - case 743: - if (global.choice == 0) - { - global.msg[0] = " %%" - obj_mettnewsevent.eventchoice = 6 - obj_mettnewsevent.con = 50 - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 744: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Cider for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 745: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 10) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a jug./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 746: - doak = 0 - noroom = 0 - global.msg[0] = "* Buy a Spider Donut for 9999G?& & Yes No \C" - global.msg[1] = " " - break - case 747: - script_execute(scr_cost, 9999) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 7) - if (noroom == 0) - { - global.gold -= 9999 - global.flag[59] += 9999 - global.flag[403] = 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* Some spiders crawled down& and gave you a donut./%%" - if (afford == 0) - global.msg[0] = "* You didn't have enough& gold./%%" - } - if (noroom == 1) - global.msg[0] = "* You are carrying too& many items./%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 748: - global.msg[0] = "* Ribbit^1, ribbit.&* (I have heard you are quite& merciful^1, for a human...)/" - global.msg[1] = "\W* (Surely you know by now a& monster wears a \YYELLOW\W name& when you can \YSPARE\W it.)/" - global.msg[2] = "* (What do you think of that?)& Very It's& Helpful Bad\C" - global.msg[3] = " " - break - case 749: - if (global.choice == 0) - { - global.msg[0] = "* (It is rather helpful.^1)&* (Remember^1, sparing is just& saying you won't fight.)/" - global.msg[1] = "* (Maybe one day^1, you'll& have to do it even if& their name isn't yellow.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Really^1? Then^1, I'll tell all& of my friends to tell& their friends' friends...)/" - global.msg[1] = "* (Never use yellow names.)&* (How about that?)/" - global.msg[2] = " Keep No more& Yellow Yellow& Names Names\C" - global.msg[3] = " " - } - break - case 750: - if (global.choice == 0) - global.msg[0] = "* (OK^1, they will still& use yellow names.)/%%" - if (global.choice == 1) - { - global.msg[0] = "* (OK^1, I will let them& know not to use yellow& names.)/%%" - global.flag[22] = 1 - } - break - case 751: - global.msg[0] = "* Ribbit^1, ribbit^1.&* (How are you doing without& yellow names?)/" - global.msg[1] = " Bring & It's Them& great Back\C" - global.msg[2] = " " - break - case 752: - if (global.choice == 0) - { - global.msg[0] = "* (Glad to hear it.^1)&* (Though^1, I do not know why& you dislike yellow.)/" - global.msg[1] = "* (You had better hope you do& not encounter a banana-themed& monster.)/%%" - } - if (global.choice == 1) - { - global.msg[0] = "* (Huh^1? It's rather inconvenient& that you changed your mind& like this.)/" - global.msg[1] = "* (Since I told everyone& not to use yellow names^1,& everyone threw theirs out.)/" - global.msg[2] = "* (This is really troubling...^1)&* (Hmmm...)/" - global.msg[2] = "\W* (Well^1, last year it was& fashionable to have \ppink\W & names.)/" - global.msg[3] = "* (I think everyone still& has those in their closets& somewhere...)/" - global.msg[4] = "* (I'll ask everyone to look.^1)&* (But this is the last time!)/%%" - global.flag[22] = 2 - } - break - case 753: - global.msg[0] = "* Ribbit^1, ribbit...&* (I hope you're satisfied.)/%%" - break - case 754: - global.msg[0] = "* \YNAPSTABLOOK22 has sent you& a friend request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 755: - global.flag[409] = 1 - global.msg[0] = "* (It seems to have already& rejected itself...)/%%" - break - case 756: - global.msg[0] = "* \YMETTATON has sent you a& Mortal Enemy request.\W /" - global.msg[1] = "* Accept the request?& & Accept Reject\C" - global.msg[2] = " " - break - case 757: - if (global.choice == 0) - { - global.msg[0] = "* Congratulations^1!&* You are now Mortal Enemies& with Mettaton./" - global.msg[1] = "* \YCOOLSKELETON95\W has posted& a comment on this change./" - global.msg[2] = "* CONGRATULATIONS^1, YOU TWO^1!&* WISH YOU A LONG AND& HORRIBLE RIVALRY./%%" - } - if (global.choice == 1) - global.msg[0] = "* You rejected the request./%%" - break - case 758: - global.msg[0] = "* \YMETTATON has sent you an& invitation to " + chr(34) + "Die." + chr(34) + "\W /" - global.msg[1] = "* RSVP?& & Respond Ignore\C" - global.msg[2] = " " - break - case 759: - if (global.choice == 0) - global.msg[0] = "* Bepis valley Granola Bars/%%" - if (global.choice == 1) - global.msg[0] = "* Bepis valley Granola Bars/%%" - break - case 760: - global.msg[0] = "* hey^1.&* i heard you're going& to the core./" - global.msg[1] = "\E0* how about grabbing some& dinner with me first?& Yeah I'm busy \C" - global.msg[2] = " " - if (global.flag[67] == 1) - global.msg[0] = "* .../%%" - break - case 761: - if (global.choice == 0) - { - global.msg[0] = "* great^1, thanks for& treating me./%%" - if instance_exists(obj_sans_prefinaldate) - obj_sans_prefinaldate.con = 1 - } - if (global.choice == 1) - global.msg[0] = "* well^1, have fun in& there./%%" - break - case 762: - global.msg[0] = "* This is the barrier./" - global.msg[1] = "* This is what keeps& us all trapped& underground./" - global.msg[2] = "* .../" - global.msg[3] = "* If.../" - global.msg[4] = "* If by chance you& have any unfinished& business.../" - global.msg[5] = "* Please do what you& must./" - global.msg[6] = " & & Continue Go Back\C" - global.msg[7] = " " - break - case 763: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - global.flag[457] = 1 - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Anything you want to& do is important& enough./" - global.msg[2] = "* Even something as small& as reading a book^1,& or taking a walk.../" - global.msg[3] = "* Please take your time./%%" - } - break - case 764: - global.msg[0] = "* Oh..^1.&* Back so soon?/" - global.msg[1] = "* How are you feeling?/" - global.msg[2] = " & & Ready Go Back\C" - global.msg[3] = " " - break - case 765: - if (global.choice == 0) - { - obj_barrierevent.con = 10 - global.msg[0] = "* ..^2.&* ... I see.../" - global.msg[1] = "* This is it^1, then./%%" - } - if (global.choice == 1) - { - obj_barrierevent.con = 40 - global.msg[0] = "* I see./" - global.msg[1] = "* Do what you have to./%%" - } - break - case 770: - global.msg[0] = "* Tra la la^1.&* I am the riverman./" - global.msg[1] = "* Or am I the riverwoman...^1?&* It doesn't really matter./" - global.msg[2] = "* I love to ride in my boat^1.&* Would you care to join me?/" - global.msg[3] = "* (Ride in the boat?)& & Yes No\C" - global.msg[4] = " " - if (global.flag[460] > 0) - { - global.msg[0] = "* Tra la la^1.&* Care for a ride?/" - global.msg[1] = "* (Ride in the boat?)& & Yes No\C" - global.msg[2] = " " - } - break - case 771: - if (global.choice == 0) - { - global.msg[0] = "* Where will we go today?& & Error Error\C" - if (room == room_fire_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Waterfall\C" - if (room == room_water_dock) - global.msg[0] = "* Where will we go today?& & Snowdin Hotland\C" - if (room == room_tundra_dock) - global.msg[0] = "* Where will we go today?& & Waterfall Hotland\C" - global.msg[1] = " " - } - if (global.choice == 1) - global.msg[0] = "* Then perhaps another time^1.&* Or perhaps not^1.&* It doesn't really matter./%%" - break - case 772: - if (global.choice == 0) - { - if (room == room_fire_dock || room == room_water_dock) - global.flag[459] = 1 - if (room == room_tundra_dock) - global.flag[459] = 2 - } - if (global.choice == 1) - { - if (room == room_tundra_dock || room == room_water_dock) - global.flag[459] = 3 - if (room == room_fire_dock) - global.flag[459] = 2 - } - if instance_exists(obj_dogboat_thing) - obj_dogboat_thing.con = 0.1 - global.msg[0] = "* Then we're off.../%%" - break - case 780: - if (global.flag[490] == 0) - { - global.msg[0] = "* (There's a switch on the& wall.)/" - global.msg[1] = "* (Press it?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = "* (The switch doesn't do& anything.)/%%" - break - case 781: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - global.flag[490] = 1 - if instance_exists(obj_amalgam_dogevent) - obj_amalgam_dogevent.con = 50 - } - break - case 782: - global.msg[0] = "* (Seems like a comfortable& bed.)/" - global.msg[1] = "* (Lie on it?)& & Yes No\C" - global.msg[2] = " " - break - case 783: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_bed_watcher) - obj_bed_watcher.con = 5 - } - break - case 784: - if (global.flag[484] > 1) - global.msg[0] = "* (It's just a regular suspicious& bed now.)/%%" - if (global.flag[484] == 1) - { - global.msg[0] = "* (It's a yellow key.^1)&* (You put it on your& keychain.)/%%" - global.flag[484] = 2 - } - if (global.flag[484] == 0) - { - global.msg[0] = "* (There's something under& the sheets.)/" - global.msg[1] = "* (Check it out?)& & Yes No\C" - global.msg[2] = " " - } - break - case 785: - global.msg[0] = " %%" - if (global.choice == 0) - { - if (global.flag[484] == 0) - { - snd_play(snd_noise) - global.flag[484] = 1 - } - } - break - case 786: - global.msg[0] = "* (The power has been turned& on.)/%%" - if (global.flag[491] == 0) - { - global.msg[0] = "* (It seems like this controls& the elevator's power.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - break - case 787: - global.msg[0] = " %%" - if (global.choice == 0) - { - with (obj_mainchara) - uncan = 1 - if instance_exists(obj_lab_powerswitch) - { - global.flag[491] = 1 - obj_lab_powerswitch.con = 5 - } - } - break - case 800: - global.msg[0] = (("\E7* I always was a crybaby^1,& wasn't I^1, " + global.charname) + "?/") - global.msg[1] = "\E1* .../" - global.msg[2] = "\E2* ... I know./" - global.msg[3] = (("\E0* You're not actually& " + global.charname) + ", are you?/") - global.msg[4] = (("\E7* " + global.charname) + "'s been gone for& a long time./") - global.msg[5] = "* .../" - global.msg[6] = "\E9* Um..^1. what.../" - global.msg[7] = "\E0* What IS your name?/" - global.msg[8] = "\E2* .../" - global.msg[9] = "\E5* " + chr(34) + "Frisk?" + chr(34) + "/" - global.msg[10] = "\E7* That's.../" - global.msg[11] = "\E5* A nice name./" - global.msg[12] = "* .../" - global.msg[13] = "\E7* Frisk.../" - global.msg[14] = "\E0* I haven't felt like& this for a long time./" - global.msg[15] = "\E2* As a flower^1, I was& soulless./" - global.msg[16] = "\E1* I lacked the power to& love other people./" - global.msg[17] = "\E2* However^1, with everyone's& souls inside me.../" - global.msg[18] = "\E7* I not only have my own& compassion back.../" - global.msg[19] = "\E5* But I can feel every& other monster's as& well./" - global.msg[20] = "\E7* They all care about& each other so much./" - global.msg[21] = "\E0* And..^1. they care about& you too^1, Frisk./" - global.msg[22] = "* .../" - global.msg[23] = "\E7* I wish I could tell& you how everyone& feels about you./" - global.msg[24] = "* Papyrus..^1. Sans..^1.&* Undyne..^1. Alphys.../" - global.msg[25] = "\E0* ... Toriel./" - global.msg[26] = "\E7* Monsters are weird./" - global.msg[27] = "\E5* Even though they barely& know you.../" - global.msg[28] = "\E6* It feels like they& all really love& you./" - global.msg[29] = "\E8* Haha./" - global.msg[30] = "* .../" - global.msg[31] = "\E1* Frisk..^1. I..^1.&* I understand if you& can't forgive me./" - global.msg[32] = "* I understand if you& hate me./" - global.msg[33] = "* I acted so strange and& horrible./" - global.msg[34] = "\E3* I hurt you./" - global.msg[35] = "* I hurt so many people./" - global.msg[36] = "\E1* Friends^1, family^1,& bystanders.../" - global.msg[37] = "\E3* There's no excuse for& what I've done./" - global.msg[38] = " & & Forgive Do not\C" - global.msg[39] = " " - break - case 801: - if (global.choice == 0) - { - global.msg[0] = "\E3* Wh..^1. what?/" - global.msg[1] = "\E7* ... Frisk^1, come on./" - global.msg[2] = "\E0* You're..^1.&* You're gonna make me& cry again./" - global.msg[3] = "\E7* ... besides^1, even if& you do forgive me.../" - } - if (global.choice == 1) - { - global.msg[0] = "\E2* ... right^1./" - global.msg[1] = "* I understand./" - global.msg[2] = "\E1* I just hope that.../" - global.msg[3] = "* I can make up for& it a little right& now./" - } - global.msg[4] = "\E1* I can't keep these& souls inside of me./" - global.msg[5] = "\E0* The least I can do& is return them./" - global.msg[6] = "\E2* But first.../" - global.msg[7] = "\E4* There's something I& have to do./" - global.msg[8] = "* Right now^1, I can feel& everyone's hearts& beating as one./" - global.msg[9] = "* They're all burning& with the same& desire./" - global.msg[10] = "* With everyone's power..^1.&* With everyone's& determination.../" - global.msg[11] = "* It's time for& monsters.../" - global.msg[12] = "* To finally go free./%%" - break - case 803: - global.msg[0] = "\E7* Frisk.../" - global.msg[1] = "\E0* I have to go now./" - global.msg[2] = "\E7* Without the power of& everyone's souls.../" - global.msg[3] = "\E1* I can't keep& maintaining this& form./" - global.msg[4] = "* In a little while.../" - global.msg[5] = "* I'll turn back into& a flower./" - global.msg[6] = "\E3* I'll stop being& " + chr(34) + "myself." + chr(34) + "/" - global.msg[7] = "* I'll stop being able& to feel love again./" - global.msg[8] = "\E1* So..^1. Frisk./" - global.msg[9] = "\E7* It's best if you& just forget about& me^1, OK?/" - global.msg[10] = "\E0* Just go be with& the people who& love you./" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & Comfort& him Do not\C" - global.msg[13] = " " - break - case 804: - global.msg[0] = " %%" - if instance_exists(obj_asriel_overworldanim) - { - if (global.choice == 0) - obj_asriel_overworldanim.con = 28 - if (global.choice == 1) - obj_asriel_overworldanim.con = 50 - } - break - case 806: - global.msg[0] = "\E0* So^1, Alphys.../" - global.msg[1] = "\E9* What do you want& to do now that& we're all free?/" - global.msg[2] = "\E0* We have the whole& world to explore& now./" - scr_alface(3, 3) - global.msg[4] = "\E3* W-well^1, of course& I'm going to go& out and.../" - global.msg[5] = "\E4* Um.../" - global.msg[6] = "\E3* No^1, I should be& honest!!/" - global.msg[7] = "\E1* I'm gonna stay inside& and watch anime like& a total loser!/" - scr_papface(8, 0) - global.msg[9] = "\E0THAT'S THE SPIRIT!/" - global.msg[10] = "EVERYONE!!^1!&A CELEBRATION!!!&TO BEING LOSERS!!/" - scr_undface(11, 9) - global.msg[12] = "\E9* Heh^1.&* Papyrus has the& right idea./" - global.msg[13] = "\E0* Losing to Frisk is& the best thing to& ever happen to me./" - global.msg[14] = "\E0* So I'm glad that& we.../" - global.msg[15] = "\E9* Huh^1?&* What is it^1, Asgore?/" - scr_asgface(16, 2) - global.msg[17] = "\E2* Um..^1. what's an.../" - global.msg[18] = "\E0* ... anime?/" - scr_alface(19, 1) - global.msg[20] = "\E1* (Oh My God?)/" - global.msg[21] = "\E3* (Frisk^1. Please.)/" - global.msg[22] = "\E2* (Help me explain what& anime is to Asgore.)/" - global.msg[23] = "\E0* Y-you see^1, it's& like a cartoon^1,& but.../" - global.msg[24] = "\TS \F0 \T0 %" - global.msg[25] = " & With With& Sword's Gun's\C" - global.msg[26] = " " - break - case 807: - scr_asgface(0, 2) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with swords?/" - if (global.choice == 1) - global.msg[1] = "\E2* So it's like a& cartoon..^1.&* But with guns?/" - global.msg[2] = "\E0* Golly^1!&* That sounds neato!/" - global.msg[3] = "\E3* Where is this^1?&* Where can I see the& Anime./" - scr_alface(4, 3) - global.msg[5] = "\E3* H-hold on^1, uh..^1.&* I think I have& some on my phone./" - global.msg[6] = "\E0* Here^1, l-look at& this!/" - global.msg[7] = "\E0* .../" - global.msg[8] = "\E3*...Oh^1, uh.../" - global.msg[9] = "\E4* Um..^1. that's the..^1.&* That's the wrong.../" - global.msg[10] = "\E5* Uh^1, nevermind./" - scr_asgface(11, 1) - global.msg[12] = "* Golly^1.&* Were those two robots.../" - scr_undface(13, 9) - global.msg[14] = "\E9* ... kissing?/" - scr_asgface(15, 0) - global.msg[16] = "\E0* Boy^1!&* Technology sure is& something^1, isn't it?/" - scr_alface(17, 5) - global.msg[18] = "\E5* Eheheh..^1. yeah^1!&* It sure is!/%%" - break - case 808: - global.msg[0] = "\E0* Psst..^1.&* F-Frisk./" - global.msg[1] = "\E3* Um^1, you've gotta& tell me./" - global.msg[2] = "\E6* D..^1. do you think& Asgore and Toriel& are...?/" - global.msg[3] = "\E3* Uh^1, ever gonna get& back together?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "& & Yeah Nope\C" - global.msg[6] = " " - break - case 809: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_alface(0, 7) - global.msg[1] = "\E7* Y-yeah!!^1!&* Yeah^1, that's what& I hope^1, too./" - global.msg[2] = "\E7* Just think about how& cute they must have& been together./" - global.msg[3] = "\E0* It's quickly becoming& my number one ship& of all time./" - global.msg[4] = "\E7* Tori and Gorey.../" - global.msg[5] = "\E5* My..^1.&* My old boss and& his ex-wife./" - global.msg[6] = "\E8* ... uh^1, that sounds& a lot less cool& all of a sudden./%%" - } - if (global.choice == 1) - { - scr_alface(0, 9) - global.msg[1] = "\E8* ... yeah^1, that's what& I thought./" - global.msg[2] = "\E7* A woman can dream& though^1, right?/" - global.msg[3] = "\E2* And write fanfiction./" - global.msg[4] = "\E1* A LOT of fanfiction./%%" - } - break - case 810: - global.msg[0] = "\E0* Frisk^1!&* I just realized!/" - global.msg[1] = "\E3* Now that we aren't& fighting each& other.../" - global.msg[2] = "\E2* I can finally ask& you.../" - global.msg[3] = "\E0* " + chr(34) + "Would you like a& cup of tea?" + chr(34) + "/" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E0* Would you like a& cup of tea?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "& & Yes No\C" - global.msg[8] = " " - break - case 811: - global.msg[0] = "* Error.../%%" - if (global.choice == 0) - { - scr_asgface(0, 0) - global.msg[1] = "* Oh^1!&* Well!/" - global.msg[2] = "\E3* Actually^1, the cup I& had is cold now./" - global.msg[3] = "* So you shouldn't& have it./" - global.msg[4] = "\E0* But^1, I am so& happy you said& yes./" - global.msg[5] = "\E0* As soon as I can^1,& I will make some& more for you./" - global.msg[6] = "\E0* Then we can be& great pals./%%" - } - if (global.choice == 1) - { - scr_asgface(0, 3) - global.msg[1] = "\E3* Oh.../" - global.msg[2] = "\E3* Okay./" - scr_undface(3, 2) - global.msg[4] = "\E2* Frisk^1! Stop^1!&* You're breaking his& big burly heart!/" - scr_asgface(5, 2) - global.msg[6] = "\E2* Um^1, it's OK^1, Undyne./" - global.msg[7] = "\E0* My heart's already& broken./" - scr_undface(8, 6) - global.msg[9] = "\E6* ASGORE^1! STOP^1!&* YOU'RE BREAKING MY& BIG BURLY HEART!/" - scr_alface(10, 9) - global.msg[11] = "\E9* Y-yeah^1, Asgore^1.&* Don't break Undyne's& heart./" - global.msg[12] = "\E2* That's my job./" - scr_undface(13, 2) - global.msg[14] = "\E2* OH MY GOD!&* YOU'RE GOING BACK& IN THE TRASH!!!/" - scr_papface(15, 0) - global.msg[16] = "\E0CAN I GO IN THE&TRASH TOO?/" - scr_undface(17, 9) - global.msg[18] = "\E9* Sure^1, Papyrus./" - scr_sansface(19, 1) - global.msg[20] = "\E1* guess i have to& go in the trash& too./" - scr_torface(21, 0) - global.msg[22] = "\E0* Oh^1, may I enter& the trash as well?/" - scr_undface(23, 1) - global.msg[24] = "\E1* Uh^1, okay?/" - scr_asgface(25, 0) - global.msg[26] = "\E0* Am I invited to& the trash?/" - scr_undface(27, 6) - global.msg[28] = "\E6* SURE!!!&* WHY NOT!!!/" - scr_torface(29, 1) - global.msg[30] = "\E1* On second thought^1,& do not put me& in the trash./" - scr_asgface(31, 5) - global.msg[32] = "\E5* Oh.../" - scr_undface(33, 1) - global.msg[34] = "\E1* OH MY GOD!!!/%%" - } - break - case 812: - global.msg[0] = "* (If you leave here^1, your& adventure will really& be over.)/" - global.msg[1] = "* (Your friends will follow& you out of the underground.)/" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = " & Don't I'm& leave ready\C" - global.msg[4] = " " - break - case 813: - global.msg[0] = " %%" - if (global.choice == 0) - obj_underground_exit.con = 2 - if (global.choice == 1) - obj_underground_exit.con = 10 - break - case 814: - global.msg[0] = "\E0* Oh my.../" - scr_asgface(1, 0) - global.msg[2] = "\E0* Isn't it beautiful^1,& everyone?/" - scr_alface(3, 3) - global.msg[4] = "\E3* Wow..^1. it's e-even& better than on TV./" - global.msg[5] = "\E7* WAY better^1!&* Better than I ever& imagined!/" - scr_undface(6, 1) - global.msg[7] = "\E1* Frisk^1, you LIVE with& this!?/" - global.msg[8] = "\E9* The sunlight is so& nice..^1. and the air& is so fresh!/" - global.msg[9] = "* I really feel alive!/" - scr_papface(10, 0) - global.msg[11] = "\E0HEY SANS.../" - global.msg[12] = "\E3WHAT'S THAT GIANT&BALL?/" - scr_sansface(13, 1) - global.msg[14] = "\E1* we call that& " + chr(34) + "the sun^1," + chr(34) + " my friend./" - scr_papface(15, 0) - global.msg[16] = "\E0THAT'S THE SUN!^1?&WOWIE!!!/" - global.msg[17] = "I CAN'T BELIEVE&I'M FINALLY MEETING&THE SUN!!!/" - scr_asgface(18, 0) - global.msg[19] = "\E0* I could stand here& and watch this for& hours.../" - scr_torface(20, 0) - global.msg[21] = "\E0* Yes^1, it is beautiful^1,& is it not?/" - global.msg[22] = "\E1* But we should really& think about what comes& next./" - scr_asgface(23, 3) - global.msg[24] = "\E3* Oh^1, right./" - global.msg[25] = "\E0* Everyone.../" - global.msg[26] = "* This is the beginning& of a bright new& future./" - global.msg[27] = "* An era of peace between& humans and monsters./" - global.msg[28] = "\E2* Frisk.../" - global.msg[29] = "* I have something to& ask of you./" - global.msg[30] = "\E0* Will you act as our& ambassador to the& humans?/" - global.msg[31] = "\TS \F0 \T0 %" - global.msg[32] = "* (Be the ambassador?)& & Yes No\C" - global.msg[33] = " " - break - case 815: - scr_papface(0, 0) - global.msg[1] = "WOWi, Nice error./%%" - if (global.choice == 0) - { - global.msg[1] = "\E0YEAH^1!&FRISK WILL BE THE&BEST AMBASSADOR!/" - global.msg[2] = "AND I^1, THE GREAT&PAPYRUS.../" - global.msg[3] = "WILL BE THE BEST&MASCOT!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E0IT'S OK FRISK^1!&I'VE GOT YOU&COVERED!/" - global.msg[2] = "IF YOU DON'T WANT&TO BE THE&AMBASSADOR.../" - global.msg[3] = "I CAN DO IT FOR&YOU!!!/" - global.msg[4] = "I'LL GO MAKE A&GOOD FIRST&IMPRESSION!/%%" - } - break - case 820: - global.msg[0] = "* Frisk.../" - global.msg[1] = "\E2* You came from this& world^1, right...?/" - global.msg[2] = "\E1* So you must have& a place to return to^1,& do you not?/" - global.msg[3] = "\E2* What will you do& now?/" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = " I want I have& to stay places& with you to go\C" - global.msg[6] = " " - break - case 821: - global.msg[0] = " %%" - if (global.choice == 0) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 100 - } - if (global.choice == 1) - { - if instance_exists(obj_outsideworld_event) - obj_outsideworld_event.con = 200 - } - break - case 825: - global.msg[0] = "* (The door has no mail slot.)/" - global.msg[1] = "* (Slide the letter under?)& & Slide NO!!!! \C" - global.msg[2] = " " - break - case 826: - if (global.choice == 0) - { - if (doak == 0) - { - snd_play(snd_knock) - doak = 1 - } - global.msg[0] = "* (You slide the letter under& the door and give it a& knock.)/%%" - if instance_exists(obj_alabdoor_l) - { - obj_alabdoor_l.myinteract = 5 - obj_alabdoor_l.con = 2 - } - } - if (global.choice == 1) - global.msg[0] = "* (You'll keep the letter& warm for a little longer.)/%%" - break - case 827: - global.msg[0] = "* (It's a note from Alphys.)/" - global.msg[1] = "* (Read it...?)& & Read Do not \C" - global.msg[2] = " " - break - case 828: - if (global.choice == 0) - { - global.msg[0] = "* (It's hard to read because& of the handwriting^1, but& you try your best...)/" - global.msg[1] = "* Hey./" - global.msg[2] = "* Thanks for your help back& there./" - global.msg[3] = "* You guys..^1.&* Your support really means a& lot to me./" - global.msg[4] = "* But..^1.&* As difficult as it is& to say this.../" - global.msg[5] = "* You guys alone can't& magically make my own& problems go away./" - global.msg[6] = "* I want to be a better& person./" - global.msg[7] = "* I don't want to be& afraid anymore./" - global.msg[8] = "* And for that to happen^1,& I have to be able to& face my own mistakes./" - global.msg[9] = "* I'm going to start& doing that now./" - global.msg[10] = "* I want to be clear./" - global.msg[11] = "* This isn't anyone else's& problem but mine./" - global.msg[12] = "* But if you don't ever& hear from me again.../" - global.msg[13] = "* If you want to know& " + chr(34) + "the truth." + chr(34) + "/" - global.msg[14] = "* Enter the door to the& north of this note./" - global.msg[15] = "* You all at least deserve& to know what I did./" - global.msg[16] = "* (That's all she wrote.)/%%" - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 829: - doak = 0 - noroom = 0 - if (global.flag[495] < 8) - { - global.msg[0] = "* (Buy chips for 25G?)& & Buy No \C" - global.msg[1] = " " - } - else - { - global.msg[0] = "* (There were no chips left& in the machine.)/%%" - global.msg[1] = " " - } - break - case 830: - script_execute(scr_cost, 25) - if (global.choice == 0) - { - if (afford == 1) - { - if (doak == 0) - { - doak = 1 - script_execute(scr_itemget, 58) - if (noroom == 0) - { - global.gold -= 25 - global.flag[495] += 1 - } - } - } - } - if (noroom == 0) - { - global.msg[0] = "* (The vending machine& dispensed some chisps.)/%%" - if (afford == 0) - global.msg[0] = "* (You didn't have enough& gold.)/%%" - } - if (noroom == 1) - global.msg[0] = "* (You are carrying too& many items.)/%%" - if (global.choice == 1) - global.msg[0] = "*%%" - break - case 831: - global.msg[0] = "* Ring..\E0.\TT /" - global.msg[1] = "\F1 %" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - global.msg[2] = "* Hello?&* This is TORIEL./" - global.msg[3] = "* For no reason in& particular...&* Which do you prefer?/" - global.msg[4] = "* Cinnamon or& butterscotch?/" - global.msg[5] = "\E1* ... wait^1.&* Do not tell me./" - if (bs == 0) - global.msg[6] = "\E0* It is ERROR MESSAGE!& & Yes No \C" - if (bs == 1) - global.msg[6] = "\E0* Is it Butterscotch?& & Yes No \C" - if (bs == 2) - global.msg[6] = "\E0* Is it Cinnamon?& & Yes No \C" - global.msg[7] = " " - break - case 832: - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - ini_close() - if (global.choice == 0) - { - if (bs == 1) - global.flag[46] = 1 - if (bs == 2) - global.flag[46] = 0 - global.msg[0] = "\E0* Hee hee hee^1.&* I had a feeling./" - global.msg[1] = "\E1* When humans fall down& here^1, strangely..^1.&* I.../" - global.msg[2] = "\E1* I often feel like& I already know them./" - global.msg[3] = "\E0* Truthfully^1, when I first& saw you^1, I felt.../" - global.msg[4] = "\E1* ... like I was seeing& an old friend for& the first time./" - global.msg[5] = "\E0* Strange^1, is it not?/" - global.msg[6] = "* Well^1, thank you for& your selection./" - global.msg[7] = "\TS \F0 \T0 %" - global.msg[8] = "* Click.../%%" - } - if (global.choice == 1) - { - if (bs == 1) - global.flag[46] = 0 - if (bs == 2) - global.flag[46] = 1 - global.msg[0] = "\E1* Oh..^1. I see./" - global.msg[1] = "\E0* Well^1, thank you^1.&* Goodbye for now./" - global.msg[2] = "\TS \F0 \T0 %" - global.msg[3] = "* Click.../%%" - ini_open("undertale.ini") - bs = ini_read_real("Toriel", "Bscotch", 0) - if (bs == 1) - ini_write_real("Toriel", "Bscotch", 2) - else - ini_write_real("Toriel", "Bscotch", 1) - ini_close() - } - break - case 833: - global.msg[0] = "* (Seems like you could skip& Mettaton's monologue by& turning him around now.)/" - global.msg[1] = "* (What will you do?)& & Skip Hear again\C" - global.msg[2] = " " - break - case 834: - if (global.choice == 0) - { - global.msg[0] = "* (You told Mettaton there& was something cool& behind him.)/%%" - if instance_exists(obj_mettboss_event) - obj_mettboss_event.con = 4.5 - } - if (global.choice == 1) - { - global.msg[0] = " %%" - obj_mettboss_event.con = 6 - } - break - case 835: - global.msg[0] = "* though.../" - global.msg[1] = "* one thing about you& always struck me& as kinda odd./" - global.msg[2] = "* now^1, i understand& acting in self-defense./" - global.msg[3] = "* you were thrown into& those situations& against your will./" - global.msg[4] = "* but.../" - global.msg[5] = "* sometimes.../" - global.msg[6] = "* you act like you& know what's gonna& happen./" - global.msg[7] = "* like you've already& experienced it all& before./" - global.msg[8] = "* this is an odd thing& to say^1, but.../" - global.msg[9] = "\W* if you have some sort& of \Yspecial power\W.../" - global.msg[10] = "* isn't it your& responsibility to do& the right thing?/" - global.msg[11] = "\TS \F0 \T0 %" - global.msg[12] = " & & Yes No\C" - global.msg[13] = " " - break - case 836: - if (global.choice == 0) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* ah./" - global.msg[2] = "\E0* i see./" - global.msg[3] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 20 - } - if (global.choice == 1) - { - scr_sansface(0, 1) - global.msg[1] = "\E1* heh./" - global.msg[2] = "\E0* well^1, that's your& viewpoint./" - global.msg[3] = "\E2* i won't judge you& for it./" - global.msg[4] = "\E3* .../%%" - if instance_exists(obj_lastsans_trigger) - obj_lastsans_trigger.con = 21 - } - break - case 837: - global.msg[0] = "* (Ring...)/" - scr_alface(1, 0) - global.msg[2] = "\E0* Hey!/" - global.msg[3] = "\E3* This um^1, doesn't have& anything to do with& guiding you..^1. but.../" - global.msg[4] = "\E2* .../" - global.msg[5] = "\E6* Uhh^1, hey^1, would you want& to watch a human TV& show together???/" - global.msg[6] = "* Sometime???/" - global.msg[7] = "\E4* It's called^1, um^1,& M..^1.Mew Mew Kissy& Cutie.../" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = " & & Sure! ...no...\C" - global.msg[10] = " " - break - case 838: - scr_alface(0, 5) - if (global.choice == 0) - { - global.msg[1] = "* R-really!?/" - global.msg[2] = "\E3* It's so good^1!&* It's um^1, my favorite& show!/" - global.msg[3] = "* It's all about this& human girl named Mew Mew& who has cat ears!%" - global.msg[4] = "\E3* Which humans don't have!&* S-so she's all& sensitive about them!%" - global.msg[5] = "\E6* But like...&* Eventually!%" - global.msg[6] = "* She realizes that her& ears don't matter!%" - global.msg[7] = "* That her friends like& her despite the ears!%" - global.msg[8] = "\E7* It's really moving!%" - global.msg[9] = "\E5* Whoops, spoilers%" - global.msg[10] = "\E6* Also, this sounds& weird, but she has& the power!%" - global.msg[11] = "\E5* To control the minds& of anyone she kisses!%" - global.msg[12] = "\E3* She kisses people and& controls them to fix& her problems!!%" - global.msg[13] = "\E5* They don't remember& anything after the& kiss I mean!!%" - global.msg[14] = "\E3* BUT IF SHE MISSES& THE KISS!!!&* THEN!!%" - global.msg[15] = "\E4* Then^1, uh^1, and^1, uh^1,& also I mean^1, of course%" - global.msg[16] = "\E5* Eventually^1, she& realizes that& controlling people%" - global.msg[17] = "\E3* OKAY WELL I almost& spoiled the whole& show^1, but%" - global.msg[18] = "\E5* Uhhh^1, I think you'd& really like it!!!/" - global.msg[19] = "\E0* We should watch it^1!&* After you get through& all this!/" - global.msg[20] = "\TS \F0 \T0 %" - global.msg[21] = "* (Click...)/%%" - } - if (global.choice == 1) - { - global.msg[1] = "\E5* Um^1! Well^1!&* That's okay!/" - global.msg[2] = "* Just thought I'd!^1!&* Ask!!!/" - global.msg[3] = "\E6* B-but I think you'd& really like it!!/" - global.msg[4] = "* If you gave it a& chance!!/" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* (Click...)/%%" - } - break - case 839: - global.msg[0] = "\M1* Did y'hear!^1?&* You're back!/" - global.msg[1] = "\M0* I'll tell you a big secret./" - global.msg[2] = "\M1* I'm starting a band^1, y'hear?/" - global.msg[3] = "\M1* It's called the Red Hot& Chibi Peppers./" - global.msg[4] = "\M0* All I've thought of is& the name./" - global.msg[5] = "\M3* And I don't^1, play...&* Instruments^1, or sing./" - global.msg[6] = "\M1* Well^1!&* Do you think we'll be& popular!!!/" - global.msg[7] = " & & Yeah No\C" - global.msg[8] = " " - break - case 840: - if (global.choice == 0) - { - global.flag[496] = 6 - global.msg[0] = "\M0* Yeah^1, me too.../%%" - } - if (global.choice == 1) - { - global.flag[496] = -1 - with (obj_onionsan_event) - con = 25 - global.msg[0] = " %%" - } - break - case 845: - global.msg[0] = "* (It's a lamp.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - break - case 846: - if (global.choice == 0) - { - global.msg[0] = "* (There's no lightbulb.^1)&* (A flashlight is stuck in& the bulb socket.)/" - global.msg[1] = "* (Turn it on?)& & Yes No\C" - global.msg[2] = " " - } - else - global.msg[0] = " %%" - break - case 847: - if (global.choice == 0) - global.msg[0] = "* (The flashlight is out of& batteries.)/%%" - else - global.msg[0] = " %%" - break - case 850: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_remember - global.msg[0] = "* Hey^1, hey^1!&* Did you remember my name?/" - global.msg[1] = "* (Did you?)& & Yes No\C" - global.msg[2] = " " - break - case 851: - with (obj_heatsflamesman) - sprite_index = spr_heatsf_shock - if (global.choice == 0) - { - global.flag[434] = 1 - global.msg[0] = "* Wh-WHAT!^1?&* You REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - if (global.choice == 1) - { - global.flag[434] = 2 - global.msg[0] = "* Wh-WHAT!^1?&* You DON'T REMEMBER!?/" - global.msg[1] = "* How could I be so easily& defeateeeeeeeeed!?/%%" - } - break - case 853: - global.msg[0] = "* (It's a small white dog.^1)&* (It's fast asleep...)/" - global.msg[1] = "* (Fight the dog?)& & Yes No\C" - global.msg[2] = " " - break - case 854: - if (global.choice == 0) - { - global.msg[0] = "* (Can't fight the dog.)/" - global.msg[1] = "* (Seems like the fabric it's& sleeping on has too many& holes in it.)/" - global.msg[2] = "* (Seems like the dog needs& to " + chr(34) + "patch" + chr(34) + " the fabric.)/" - global.msg[3] = "* (Then you can fight the dog.^1)&* (... maybe.)/%%" - } - else - global.msg[0] = "* (Let sleeping dogs lie^1, instead& of fighting them.^1)&* (That's how the saying goes.)/%%" - break - case 860: - global.msg[0] = "* (Knock knock)./" - if (global.flag[262] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Sea Tea" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a million ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 861: - if (global.choice == 0) - { - scr_itemremove(41) - if (removed == 1) - { - global.gold += 99 - global.flag[262] = 1 - global.msg[0] = "* (You pour the Sea Tea under& the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 862: - global.msg[0] = "* (Knock knock)./" - if (global.flag[263] == 0) - { - global.msg[0] = "* Oooooaaah ^1!&* Room service !/" - global.msg[1] = "* Got my " + chr(34) + "Cinnamon Bun" + chr(34) + " ?& & Yes No\C" - global.msg[2] = " " - if (global.flag[7] == 1) - global.msg[0] = "* Room service never came ^1.&* (Sigh ...)/%%" - } - else - { - global.msg[0] = "* Thanks a trillion ./%%" - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - } - break - case 863: - if (global.choice == 0) - { - scr_itemremove(21) - if (removed == 1) - { - global.gold += 99 - global.flag[263] = 1 - global.msg[0] = "* (You flatten the Cinnamon Bun& until it's paper thin.)&* (You slide it under the door.)/" - global.msg[1] = "* HUH !?!?!?!^2?&* That's just the way I want ^1!&* Here's a tip ./" - global.msg[2] = "* (You got 99G.)/%%" - } - else - global.msg[0] = "* ..^1.&* No you don't ./%%" - } - else - global.msg[0] = "* Then ...!?/%%" - break - case 864: - global.msg[0] = "* (You hear shuffling.)/" - global.msg[1] = "* (Seems like you could put& something under the door.)/" - global.msg[2] = " & & Put No Put\C" - global.msg[3] = " " - if (global.flag[7] == 1) - global.msg[0] = "* (No response.)/%%" - break - case 865: - if (global.choice == 0) - { - global.msg[0] = "* (...)/" - global.msg[1] = "* (But you didn't have anything& appealing.)/%%" - type = 0 - scr_itemcheck(38) - if (haveit == 1 && global.flag[264] == 0) - type = 1 - scr_itemcheck(39) - if (haveit == 1) - type = 2 - scr_itemcheck(28) - if (haveit == 1) - type = 3 - scr_itemcheck(29) - if (haveit == 1) - type = 4 - scr_itemcheck(30) - if (haveit == 1) - type = 4 - scr_itemcheck(31) - if (haveit == 1) - type = 4 - scr_itemcheck(32) - if (haveit == 1) - type = 4 - scr_itemcheck(33) - if (haveit == 1) - type = 4 - scr_itemcheck(34) - if (haveit == 1) - type = 4 - if (type == 1 && global.flag[264] == 0) - { - scr_itemremove(38) - scr_itemget(62) - global.msg[0] = "* (You put a Hot Dog in front& of the door.)/" - global.msg[1] = "* (A white paw shoots out from& under the door.)/" - global.msg[2] = "* (It tries to pull the Hot Dog& into its room...)/" - global.msg[3] = "* (But it keeps pressing down too& hard^1, and the hot dog keeps& spinning away.)/" - global.msg[4] = "* (...)/" - global.msg[5] = "* (It finally succeeds.)/" - global.msg[6] = "* (...)/" - global.msg[7] = "* (You hear the grinding of& stone.)/" - global.msg[8] = "* (A single hushpuppy slides& out from under the door.)/" - global.msg[9] = "* (You got Hush Puppy.)/%%" - global.flag[264] = 1 - } - if (type == 2) - { - global.msg[0] = "* (You put a Hot Cat in front& of the door.)/" - global.msg[1] = "* (You hear growling...)/%%" - } - if (type == 3) - { - scr_itemremove(28) - global.msg[0] = "* (You put a Dog Salad in front& of the door.^1)&* (It slides underneath.)/" - global.msg[1] = "* (...)/" - global.msg[2] = "* (The Dog Salad was absorbed& by the darkness.)/%%" - } - if (type == 4) - { - rr = choose(29, 30, 31, 32, 33, 34) - scr_itemget(rr) - global.msg[0] = "* (You put a Dog Residue in& front of the door.)/" - global.msg[1] = "* (It slides underneath the door^1,& as if pulled by a magnet.)/" - global.msg[2] = "* (...)/" - if (noroom == 1) - global.msg[3] = "* (ZOMMM!!^1!)&* (It shoots back out at a& high speed!)/%%" - else - global.msg[3] = "* (Two Dog Residues slowly slide& back out from underneath& the door.)/%%" - } - } - if (global.choice == 1) - global.msg[0] = " %%" - break - case 866: - global.msg[0] = "* Yes^1, we know^1.&* The elevator to the city& is NOT working./" - global.msg[1] = "* Because of this incident^1, rooms& are running at a special rate!/" - global.msg[2] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[3] = " " - if (global.flag[267] == 2) - { - global.msg[0] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[1] = " " - } - if (global.flag[267] == 1) - { - global.flag[267] = 2 - global.msg[0] = "* Did you enjoy your stay?/" - global.msg[1] = "* What^1?&* Room..^1.&* Key?/" - global.msg[2] = "* No^1, we don't do that./" - global.msg[3] = "* If you leave your room^1,& you'll have to pay again./" - global.msg[4] = "* 200G a room^1. Interested^1?& & Stay Do not\C" - global.msg[5] = " " - } - break - case 867: - if (global.choice == 0) - { - if (global.gold >= 200) - { - global.gold -= 200 - with (obj_mainchara) - uncan = 1 - global.msg[0] = "* Fabulous^1!&* We'll escort you to your& room!/%%" - if (global.flag[267] < 1) - global.flag[267] = 1 - obj_hotelreceptionist.con = 1 - } - else - global.msg[0] = "* ... that's not enough money./%%" - } - else - global.msg[0] = "* Do let us know if you& change your mind^1.&* Have a sparkular day!/%%" - break - case 870: - global.msg[0] = "* ... MY ONE TRUE LOVE?/" - global.msg[1] = "* .../" - global.msg[2] = "* (YOU LOOK BORED^1, DARLING.)/" - global.msg[3] = "* (I WANT THIS TO BE A STELLAR& PERFORMANCE^1, SO IF YOU& WON'T GIVE IT YOUR ALL...)/" - global.msg[4] = "* (THEN I'LL SKIP AHEAD FOR& THE AUDIENCE'S SAKE.)/" - global.msg[5] = "* (Perform?)& & Yeah Skip this\C" - global.msg[6] = " " - break - case 871: - if (global.choice == 0) - global.msg[0] = "* (UNDERSTOOD.^1)&* (LET'S KNOCK 'EM DEAD!)/%%" - else - { - global.msg[0] = "* (KA-SIGH...^1)&* (THE SHOW MUST GO ON!)/%%" - with (obj_playmovement) - con = 240 - } - break - case 888: - global.msg[0] = "Interesting./" - global.msg[1] = "You want to go back./" - global.msg[2] = "You want to go bac^1k&to the worl^2d&you destroyed./" - global.msg[3] = "It was you who pushed&everythin^1g to its edge./" - global.msg[4] = "It was you who led the worl^1d&to its destruction./" - global.msg[5] = "But you cannot accept it./" - global.msg[6] = "You think you are above&consequences.& Yes No\C" - global.msg[7] = "" - break - case 889: - if (global.choice == 0) - global.msg[0] = "Exactly./%%" - else - global.msg[0] = "Then what are you looking for?/%%" - break - case 890: - global.msg[0] = "Perhaps./" - global.msg[1] = "We can reach a compromise./" - global.msg[2] = "You still have somethin^1g&I want./" - global.msg[3] = "Give it to me./" - global.msg[4] = "And I will bring this&world back./" - global.msg[5] = " & & Yes No\C" - global.msg[6] = "" - break - case 891: - if (global.choice == 0) - { - global.msg[0] = "Then it is agreed./" - global.msg[1] = "You will give me your SOUL.& & Yes No\C" - global.msg[2] = " " - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 892: - if (global.choice == 0) - { - global.msg[0] = ".../" - global.msg[1] = "Then^1, it is done./%%" - } - else - { - global.msg[0] = "Then stay here for&all eternity./" - global.msg[1] = " " - } - break - case 900: - global.msg[0] = "* hey./" - global.msg[1] = "* is your refrigerator& running?/" - global.msg[2] = " & & yes no\C" - global.msg[3] = " " - break - case 901: - if (global.choice == 0) - global.msg[0] = "* nice^1.&* i'll be over to deposit& the brewskis./%%" - else - { - global.msg[0] = "* ok^1, i'll send someone& over to fix it./" - global.msg[1] = "* thanks for letting me& know./" - global.msg[2] = "* good communication is& important./%%" - } - break - case 1001: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1002: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1003: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1004: - global.msg[0] = " * Check * Compliment& * Threat" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1005: - global.msg[0] = " * Check * Console& * Terrorize" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1006: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1007: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1008: - global.msg[0] = " * Check * Talk& * Devour * Dinner" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1009: - global.msg[0] = " * Check * Pick On& * Don't Pick On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1010: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1011: - global.msg[0] = " * Check * Flirt& * Threat * Cheer" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1012: - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1013: - global.msg[0] = " * Check * Pet" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1014: - global.msg[0] = " * Check * Pet& * Pet * Pet & * Pet * Pet " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1015: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1016: - global.msg[0] = " * Check * Pet& * Re-sniff * Roll Around" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1017: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1018: - if (global.flag[57] == 2) - { - global.msg[0] = " * Check * Agree& * Clash * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - break - case 1019: - global.msg[0] = " * Check * Compliment& * Ignore * Steal" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1020: - global.msg[0] = " * Check * Compliment" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1021: - global.msg[0] = " * Check * Ditch" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1022: - global.msg[0] = " * Check * Decorate& * Undecorate * Gift" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1023: - global.msg[0] = " * Check * Flex& * Shoo" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1024: - global.msg[0] = " * Check * Flex& * Feed Temmie * Talk& Flakes " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1025: - global.msg[0] = " * Check * Flirt& * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if (scr_murderlv() >= 7) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1026: - if instance_exists(obj_moldsmalx) - { - if (obj_moldsmalx.stage == 0) - { - global.msg[0] = " * Check * Imitate& * Flirt" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - else if (global.flag[74] == 0) - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - else - { - global.msg[0] = " * Check * Lie Down& * Hug * Unhug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - } - } - break - case 1028: - global.msg[0] = " * Check * Clean& * Touch * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1029: - global.msg[0] = " * Check * Smile& * Hum * Conduct" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1031: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1032: - global.msg[0] = " * Check * Plead& * Challenge" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - if instance_exists(obj_undyneboss) - { - if (obj_undyneboss.con >= 50) - { - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1033: - global.msg[0] = " * Check * Cry" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1034: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1035: - global.msg[0] = " * Check * Whisper& * Clean Armor" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1036: - global.msg[0] = " * Check * Flirt& * Approach" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1037: - global.msg[0] = " * Check * Criticize& * Encourage * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1038: - global.msg[0] = " * Check * Cool Down& * Heat Up * Invite" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1039: - cashfactor = "NaN" - global.msg[0] = (((("\W * Check * Struggle& * Pay " + string(global.flag[382])) + "G& \YYour Money: ") + string(global.gold)) + "G \W ") - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1040: - global.msg[0] = " * Check * Yell" - if (global.flag[385] > 0) - global.msg[0] = "\W * Check \Y* Yellow \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1041: - global.msg[0] = " * Check * Fake Attack" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1042: - global.msg[0] = " * Check * Talk & * Stare * Clear Mind" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1043: - global.msg[0] = " * Check * Talk & * Sing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1044: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1045: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1046: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1047: - global.msg[0] = " * Check * Defuse Bomb" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1048: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1049: - global.msg[0] = " * Check * Whisper& * Touch Glove" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1050: - global.msg[0] = " * Check * Burn" - if (global.flag[424] > 0) - global.msg[0] = "\W * Check \Y* Turn \W" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1051: - global.msg[0] = " * Check * Boast& * Pose * Heel Turn" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1052: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1053: - global.msg[0] = " * Call * Hum& * Scream * Flex& * Unhug * Cry" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1054: - global.msg[0] = " * Check * Pick On& * Mystify * Clean& * Hum * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - break - case 1055: - global.msg[0] = " * Check * Laugh& * Heckle * Joke" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1056: - global.msg[0] = " * Check * ITEM & * STAT * CELL" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - if instance_exists(obj_memoryhead) - { - if (obj_memoryhead.coherent == 1) - { - global.msg[0] = " * Check * Join& * Refuse" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - } - } - break - case 1057: - global.msg[0] = " * Check * Pet& * Beckon * Play & * Ignore" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1058: - global.msg[0] = " * Fake Hit * Recipe& * Smile * Clash" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1059: - global.msg[0] = " * Encourage * Call & * Nerd Out * Quiz" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1060: - global.msg[0] = " * Joke * Puzzle & * Recipe * Insult" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1061: - global.msg[0] = " * Take break * Joke & * Judgment * Crossword" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1062: - global.msg[0] = " * Talk * Mercy & * Hug * Preference" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1063: - global.msg[0] = " * Talk * Mercy & * Stare * Hug" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1064: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1065: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1066: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1067: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1068: - global.msg[0] = " * Check" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1070: - global.msg[0] = " * Check * Compliment& * Threaten * Mystify" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1071: - global.msg[0] = " * Check * Pick On& * Don't Pick * Challenge& On" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1072: - global.msg[0] = " * Check * Console& * Terrorize * Pray" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1073: - global.msg[0] = " * Check * Talk" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1074: - global.msg[0] = " * Check * Switch& * Fix * Lie Down" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1075: - global.msg[0] = " * Check * Hiss& * Devour * Snack" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1076: - global.msg[0] = " * Check * Applaud& * Boo * Nothing" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 0 - break - case 1080: - global.msg[0] = " * Check * Something" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1081: - global.msg[0] = " * Check * Draw" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1099: - global.msg[0] = " * Check * Hope & * Dream" - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 0 - global.choices[3] = 1 - global.choices[4] = 0 - global.choices[5] = 0 - break - case 1100: - global.msg[0] = " * Error" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - if (global.flag[501] == 0) - { - global.msg[0] = " * Struggle" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - if (global.flag[501] == 1) - { - if (global.flag[505] == 0) - global.msg[0] = "\W * Undyne " - else - global.msg[0] = "\W \Y* (Saved) \W " - if (global.flag[506] == 0) - global.msg[0] += "* Alphys \W &" - else - global.msg[0] += "\Y* (Saved)\W &" - if (global.flag[507] == 0) - global.msg[0] += "\W * Papyrus * Sans \W &" - else - global.msg[0] += "\Y * (Saved) * (Saved)\W &" - if (global.flag[508] == 0) - global.msg[0] += "\W * Toriel * Asgore \W " - else - global.msg[0] += "\Y * (Saved) * (Saved)\W " - global.choices[0] = 1 - global.choices[1] = 1 - global.choices[2] = 1 - global.choices[3] = 1 - global.choices[4] = 1 - global.choices[5] = 1 - } - if (global.flag[501] > 1) - { - if (global.flag[501] == 2) - global.msg[0] = " * Someone else" - if (global.flag[501] == 3) - global.msg[0] = " * Asriel Dreemurr" - global.choices[0] = 1 - global.choices[1] = 0 - global.choices[2] = 0 - global.choices[3] = 0 - global.choices[4] = 0 - global.choices[5] = 0 - } - break - case 1501: - global.msg[0] = "* Dialing..\E0.\TT /" - if (doak == 0) - { - doak = 1 - global.flag[40] += 1 - } - if (global.flag[40] == 1) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You only wanted to& say hello...^2?&* Well then./" - global.msg[4] = "\E0* 'Hello!'/" - global.msg[5] = "* I hope that suffices^1.&* Hee hee./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 2) - { - global.msg[1] = "\F1 %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* You want to say& hello again?/" - global.msg[4] = "* 'Salutations!'/" - global.msg[5] = "* Is that enough?/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[40] == 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Are you bored^1?&* I should have given& a book to you./" - global.msg[4] = "* My apologies./" - global.msg[5] = "* Why not use your& imagination to& divert yourself?/" - global.msg[6] = "* Pretend you are..^1.&* A monarch!/" - global.msg[7] = "* Rule over the leaf pile& with a fist of iron./" - global.msg[8] = "* Can you do that for me?/" - global.msg[9] = "\TS \F0 \T0 %" - global.msg[10] = "* Click.../%%" - } - if (global.flag[40] > 3) - { - global.msg[1] = "\F1 \TT %" - global.msg[2] = "\E0* This is TORIEL./" - global.msg[3] = "* Hello^1, my child./" - global.msg[4] = "\E1* Sorry^1, I do not have& much to say./" - global.msg[5] = "\E0* It was nice to hear& your voice^1, though^1./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - break - case 1502: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* Help with a puzzle^1.^1.^1.?/" - global.msg[4] = "* Um^1, you have not& left the room^1, have you?/" - global.msg[5] = "\E0* Wait patiently for& me and we can solve& it together!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1503: - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E1* You want to know& more about me?/" - global.msg[4] = "* Well^1, I am afraid there& is not much to say./" - global.msg[5] = "\E0* I am just a silly little& lady who worries too& much!/" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - break - case 1504: - global.flag[42] = 1 - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* This is TORIEL./" - global.msg[3] = "\E8* Huh^2?&* Did you just call& me... " + chr(34) + "Mom" + chr(34) + "?/" - global.msg[4] = "\E1* Well...&* I suppose.../" - global.msg[5] = "* Would that make you& happy?/" - global.msg[6] = "* To call me..^2.&* " + chr(34) + "Mother?" + chr(34) + "/" - global.msg[7] = "\E0* Well then^1, call me& whatever you like!/!" - global.msg[8] = "\TS \F0 \T0 %" - global.msg[9] = "* Click.../%%" - break - case 1505: - if (doak == 0) - { - doak = 1 - global.flag[41] += 1 - } - if (global.flag[41] == 1) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E8* ...^2 huh???/" - global.msg[3] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[4] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[5] = "* You can certainly find& better than an old woman& like me./" - global.msg[6] = "\TS \F0 \T0 %" - global.msg[7] = "* Click.../%%" - } - if (global.flag[41] == 2) - { - global.msg[0] = "* Dialing..\E0.\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "\E1* Oh dear,^1 are you& serious...?/" - global.msg[3] = "\E1* I do not know if this is& pathetic,^1 or endearing./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - if (global.flag[42] == 1) - { - global.msg[3] = "\E8* And after you said you& want to call& me " + chr(34) + "mother..." + chr(34) + "/" - global.msg[4] = "\E0* You are an...^2 & \E1... " + chr(34) + "interesting" + chr(34) + "& child./" - global.msg[5] = "\TS \F0 \T0 %" - global.msg[6] = "* Click.../%%" - } - } - break - case 1506: - if (global.flag[45] == 4) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* But nobody came./%%" - } - else - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* Nobody picked up./%%" - scr_itemcheck(27) - if (haveit == 1) - { - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* The ringing is coming from& inside your inventory./%%" - } - } - break - case 1507: - global.faceemotion = 99 - global.msg[0] = "* Dialing...\TT /" - global.msg[1] = "\F1 %" - global.msg[2] = "* Hey^1, you silly& child./" - global.msg[3] = "* If you want to& talk to me^1, I am& right here./" - global.msg[4] = "\TS \F0 \T0 %" - global.msg[5] = "* Click.../%%" - break - case 1508: - global.msg[0] = "* Dialing... /" - global.msg[1] = "* ... /" - global.msg[2] = "* (Somewhere^1, signals deflected& by a dog.)/%%" - break - case 1510: - if (global.flag[7] == 0) - scr_papcall() - else - global.msg[0] = "* (No response.^1)&* (Their phone might be out& of batteries.)/%%" - break - case 1515: - scr_torcall() - break - case 1520: - global.msg[0] = "* (The box is aclog with the& the hair of a dog.)/%%" - break - case 2001: - global.msg[0] = "\E2* Welcome to your new& home,^1 innocent one./" - global.msg[1] = "* Allow me to educate you& in the operation of& the RUINS./%" - break - case 2002: - global.faceplate = 1 - global.msg[0] = "\E8* ...^2 huh???/" - global.msg[1] = "\E1* Oh,^1 heh..^1 heh...^1 \E0 &* Ha ha ha!/" - global.msg[2] = "* How adorable...^1 I& could pinch your cheek!/" - global.msg[3] = "* You can certainly find& better than an old woman& like me./%" - break - case 3002: - global.msg[0] = "* You encountered the Dummy." - global.msg[1] = "%%%" - break - case 3003: - global.msg[0] = "* Froggit attacks you!" - global.msg[1] = "%%%" - break - case 3004: - global.msg[0] = "* Froggit hopped close!" - global.msg[1] = "%%%" - break - case 3005: - global.msg[0] = "* Whimsun approached meekly!" - global.msg[1] = "%%%" - break - case 3006: - global.msg[0] = "* Froggit and Whimsun drew near!" - global.msg[1] = "%%%" - break - case 3007: - global.msg[0] = "* Moldsmal blocked the way!" - global.msg[1] = "%%%" - break - case 9999: - i = 0 - fileid = file_text_open_read("testlines.txt") - while (file_text_eof(fileid) == 0) - { - global.msg[i] = file_text_read_string(fileid) - file_text_readln(fileid) - i += 1 - } - file_text_close(fileid) - break -} - diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_itemget.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_itemget.gml deleted file mode 100644 index 18d1db209..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_itemget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.item[8] = 999 -while (loop == 1) -{ - if (global.item[i] == 0) - { - global.item[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_itemname) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_phoneget.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_phoneget.gml deleted file mode 100644 index 78fa6d562..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_phoneget.gml +++ /dev/null @@ -1,18 +0,0 @@ -i = 0 -loop = 1 -global.phone[8] = 999 -while (loop == 1) -{ - if (global.phone[i] == 0) - { - global.phone[i] = argument0 - break - } - if (i == 8) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_phonename) diff --git a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_storageget.gml b/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_storageget.gml deleted file mode 100644 index 1ceb16fbb..000000000 --- a/UndertaleModTool/Corrections/d0822e279464db858682ca99ec4cbbff/Temp/gml_Script_scr_storageget.gml +++ /dev/null @@ -1,20 +0,0 @@ -i = 0 -loop = 1 -noroom = 0 -global.flag[(argument1 + 10)] = 999 -while (loop == 1) -{ - if (global.flag[(i + argument1)] == 0) - { - global.flag[(i + argument1)] = argument0 - break - } - if (i == 10) - { - script_execute(scr_itemnospace) - break - } - i += 1 -} -script_execute(scr_itemnameb) -script_execute(scr_storagename) diff --git a/UndertaleModTool/Editors/UndertaleCodeEditor.xaml.cs b/UndertaleModTool/Editors/UndertaleCodeEditor.xaml.cs index 1946049c9..f0f784518 100644 --- a/UndertaleModTool/Editors/UndertaleCodeEditor.xaml.cs +++ b/UndertaleModTool/Editors/UndertaleCodeEditor.xaml.cs @@ -529,7 +529,7 @@ private void DisassembleCode(UndertaleCode code, bool first) try { var data = mainWindow.Data; - text = code.Disassemble(data.Variables, data.CodeLocals.For(code)); + text = code.Disassemble(data.Variables, data.CodeLocals?.For(code)); CurrentLocals.Clear(); } @@ -559,28 +559,39 @@ private void DisassembleCode(UndertaleCode code, bool first) } public static Dictionary gettext = null; - private void UpdateGettext(UndertaleCode gettextCode) + private void UpdateGettext(UndertaleData data, UndertaleCode gettextCode) { gettext = new Dictionary(); string[] decompilationOutput; + GlobalDecompileContext context = new(data); if (!SettingsWindow.ProfileModeEnabled) - decompilationOutput = Decompiler.Decompile(gettextCode, new GlobalDecompileContext(null, false)).Replace("\r\n", "\n").Split('\n'); + { + decompilationOutput = new Underanalyzer.Decompiler.DecompileContext(context, gettextCode, data.ToolInfo.DecompilerSettings) + .DecompileToString().Split('\n'); + } else { - try + string path = Path.Combine(TempPath, gettextCode.Name.Content + ".gml"); + if (File.Exists(path)) { - string path = Path.Combine(TempPath, gettextCode.Name.Content + ".gml"); - if (File.Exists(path)) + try + { decompilationOutput = File.ReadAllText(path).Replace("\r\n", "\n").Split('\n'); - else - decompilationOutput = Decompiler.Decompile(gettextCode, new GlobalDecompileContext(null, false)).Replace("\r\n", "\n").Split('\n'); + } + catch + { + decompilationOutput = new Underanalyzer.Decompiler.DecompileContext(context, gettextCode, data.ToolInfo.DecompilerSettings) + .DecompileToString().Split('\n'); + } } - catch + else { - decompilationOutput = Decompiler.Decompile(gettextCode, new GlobalDecompileContext(null, false)).Replace("\r\n", "\n").Split('\n'); + decompilationOutput = new Underanalyzer.Decompiler.DecompileContext(context, gettextCode, data.ToolInfo.DecompilerSettings) + .DecompileToString().Split('\n'); } } - Regex textdataRegex = new Regex("^ds_map_add\\(global\\.text_data_en, \\\"(.*)\\\", \\\"(.*)\\\"\\)", RegexOptions.Compiled); + Regex textdataRegex = new("^ds_map_add\\(global\\.text_data_en, \\\"(.*)\\\", \\\"(.*)\\\"\\)", RegexOptions.Compiled); + Regex textdataRegex2 = new("^ds_map_add\\(global\\.text_data_en, \\\"(.*)\\\", '(.*)'\\)", RegexOptions.Compiled); foreach (var line in decompilationOutput) { Match m = textdataRegex.Match(line); @@ -588,7 +599,14 @@ private void UpdateGettext(UndertaleCode gettextCode) { try { - gettext.Add(m.Groups[1].Value, m.Groups[2].Value); + if (!data.IsGameMaker2() && m.Groups[2].Value.Contains("'\"'")) + { + gettext.Add(m.Groups[1].Value, $"\"{m.Groups[2].Value}\""); + } + else + { + gettext.Add(m.Groups[1].Value, m.Groups[2].Value); + } } catch (ArgumentException) { @@ -599,6 +617,32 @@ private void UpdateGettext(UndertaleCode gettextCode) mainWindow.ShowError("Unknown error in textdata_en. This may cause errors in the comment display of text."); } } + else + { + m = textdataRegex2.Match(line); + if (m.Success) + { + try + { + if (!data.IsGameMaker2() && m.Groups[2].Value.Contains("\"'\"")) + { + gettext.Add(m.Groups[1].Value, $"\'{m.Groups[2].Value}\'"); + } + else + { + gettext.Add(m.Groups[1].Value, m.Groups[2].Value); + } + } + catch (ArgumentException) + { + mainWindow.ShowError("There is a duplicate key in textdata_en, being " + m.Groups[1].Value + ". This may cause errors in the comment display of text."); + } + catch + { + mainWindow.ShowError("Unknown error in textdata_en. This may cause errors in the comment display of text."); + } + } + } } } @@ -691,7 +735,7 @@ private async Task DecompileCode(UndertaleCode code, bool first, LoaderDialog ex var dataa = mainWindow.Data; Task t = Task.Run(() => { - GlobalDecompileContext context = new GlobalDecompileContext(dataa, false); + GlobalDecompileContext context = new(dataa); string decompiled = null; Exception e = null; try @@ -699,10 +743,13 @@ private async Task DecompileCode(UndertaleCode code, bool first, LoaderDialog ex string path = Path.Combine(TempPath, code.Name.Content + ".gml"); if (!SettingsWindow.ProfileModeEnabled || !File.Exists(path)) { - decompiled = Decompiler.Decompile(code, context, (msg) => { dialog.Message = msg; }); + decompiled = new Underanalyzer.Decompiler.DecompileContext(context, code, dataa.ToolInfo.DecompilerSettings) + .DecompileToString(); } else + { decompiled = File.ReadAllText(path); + } } catch (Exception ex) { @@ -710,7 +757,7 @@ private async Task DecompileCode(UndertaleCode code, bool first, LoaderDialog ex } if (gettextCode != null) - UpdateGettext(gettextCode); + UpdateGettext(dataa, gettextCode); try { @@ -830,7 +877,7 @@ private void PopulateCurrentLocals(UndertaleData data, UndertaleCode code) CurrentLocals.Clear(); // Look up locals for given code entry's name, for syntax highlighting - var locals = data.CodeLocals.ByName(code.Name.Content); + var locals = data.CodeLocals?.ByName(code.Name.Content); if (locals != null) { foreach (var local in locals.Locals) @@ -1353,6 +1400,7 @@ public override VisualLineElement ConstructElement(int offset) bool func = (offset + nameLength + 1 < CurrentContext.VisualLine.LastDocumentLine.EndOffset) && (doc.GetCharAt(offset + nameLength) == '('); UndertaleNamedResource val = null; + bool nonResourceReference = false; var editor = textEditorInst; @@ -1375,7 +1423,7 @@ public override VisualLineElement ConstructElement(int offset) else { // Resolve 2.3 sub-functions for their parent entry - if (data.KnownSubFunctions?.TryGetValue(nameText, out UndertaleFunction f) == true) + if (data.GlobalFunctions?.TryGetFunction(nameText, out Underanalyzer.IGMFunction f) == true) { ScriptsDict.TryGetValue(f.Name.Content, out val); val = (val as UndertaleScript)?.Code?.ParentEntry; @@ -1397,11 +1445,50 @@ public override VisualLineElement ConstructElement(int offset) else { NamedObjDict.TryGetValue(nameText, out val); - if (data.IsVersionAtLeast(2, 3) & val is UndertaleScript) - val = null; // in GMS2.3 scripts are never referenced directly + if (data.IsVersionAtLeast(2, 3)) + { + if (val is UndertaleScript) + val = null; // in GMS2.3 scripts are never referenced directly + + if (data.GlobalFunctions?.TryGetFunction(nameText, out Underanalyzer.IGMFunction globalFunc) == true && + globalFunc is UndertaleFunction utGlobalFunc) + { + // Try getting script that this function reference belongs to + if (NamedObjDict.TryGetValue("gml_Script_" + nameText, out val) && val is UndertaleScript script) + { + // Highlight like a function as well + val = script.Code; + func = true; + } + } + + if (val == null) + { + // Try to get basic function + if (FunctionsDict.TryGetValue(nameText, out val)) + { + func = true; + } + } + + if (val == null) + { + // Try resolving to room instance ID + string instanceIdPrefix = data.ToolInfo.InstanceIdPrefix(); + if (nameText.StartsWith(instanceIdPrefix) && + int.TryParse(nameText[instanceIdPrefix.Length..], out int id) && id >= 100000) + { + // TODO: We currently mark this as a non-resource reference, but ideally + // we resolve this to the room that this instance ID occurs in. + // However, we should only do this when actually clicking on it. + nonResourceReference = true; + } + } + } } - if (val == null) + if (val == null && !nonResourceReference) { + // Check for variable name colors if (offset >= 7) { if (doc.GetText(offset - 7, 7) == "global.") @@ -1427,19 +1514,26 @@ public override VisualLineElement ConstructElement(int offset) var line = new ClickVisualLineText(nameText, CurrentContext.VisualLine, nameLength, func ? FunctionBrush : ConstantBrush); if (func) + { + // Make function references bold as well as a different color line.Bold = true; - line.Clicked += async (text, button) => + } + if (val is not null) { - await codeEditorInst?.SaveChanges(); - - if (button == Input.MouseButton.Right) + // Add click operation when we have a resource + line.Clicked += async (text, button) => { - contextMenu.DataContext = val; - contextMenu.IsOpen = true; - } - else - mainWindow.ChangeSelection(val, button == Input.MouseButton.Middle); - }; + await codeEditorInst?.SaveChanges(); + + if (button == Input.MouseButton.Right) + { + contextMenu.DataContext = val; + contextMenu.IsOpen = true; + } + else + mainWindow.ChangeSelection(val, button == Input.MouseButton.Middle); + }; + } return line; } diff --git a/UndertaleModTool/Editors/UndertaleRoomEditor/UndertaleRoomEditor.xaml.cs b/UndertaleModTool/Editors/UndertaleRoomEditor/UndertaleRoomEditor.xaml.cs index 37f53e28c..1383c3fdf 100644 --- a/UndertaleModTool/Editors/UndertaleRoomEditor/UndertaleRoomEditor.xaml.cs +++ b/UndertaleModTool/Editors/UndertaleRoomEditor/UndertaleRoomEditor.xaml.cs @@ -790,8 +790,8 @@ private void RectangleTile_MouseDown(object sender, MouseButtonEventArgs e) Point gridMouseCoordinates = GetGridMouseCoordinates(mousePos, room); scaleOriginX = gridMouseCoordinates.X; scaleOriginY = gridMouseCoordinates.Y; - clickedTile.SourceX = (uint)gridMouseCoordinates.X; - clickedTile.SourceY = (uint)gridMouseCoordinates.Y; + clickedTile.SourceX = (int)gridMouseCoordinates.X; + clickedTile.SourceY = (int)gridMouseCoordinates.Y; clickedTile.Width = (uint)room.GridWidth; clickedTile.Height = (uint)room.GridHeight; } @@ -818,19 +818,19 @@ private void RectangleTile_MouseMove(object sender, MouseEventArgs e) clickedTile.Height = (uint)Math.Clamp(Math.Abs(differenceY), 0, clickedTile.Tpag.BoundingHeight) + (uint)room.GridHeight; if (differenceX < 0) - clickedTile.SourceX = (uint)gridMouseCoordinates.X; + clickedTile.SourceX = (int)gridMouseCoordinates.X; else - clickedTile.SourceX = (uint)scaleOriginX; + clickedTile.SourceX = (int)scaleOriginX; if (differenceY < 0) - clickedTile.SourceY = (uint)gridMouseCoordinates.Y; + clickedTile.SourceY = (int)gridMouseCoordinates.Y; else - clickedTile.SourceY = (uint)scaleOriginY; + clickedTile.SourceY = (int)scaleOriginY; } else { - clickedTile.SourceX = (uint)gridMouseCoordinates.X; - clickedTile.SourceY = (uint)gridMouseCoordinates.Y; + clickedTile.SourceX = (int)gridMouseCoordinates.X; + clickedTile.SourceY = (int)gridMouseCoordinates.Y; } } @@ -1723,7 +1723,7 @@ public static void GenerateSpriteCache(UndertaleRoom room) UndertaleCachedImageLoader loader = new(); List tiles = null; - List>>> tileTextures = null; + List>>> tileTextures = null; List allObjects = new(); if (room.Flags.HasFlag(RoomEntryFlags.IsGMS2)) { @@ -1767,9 +1767,9 @@ public static void GenerateSpriteCache(UndertaleRoom room) .Where(x => x.Key != "0") .Select(x => { - return new Tuple>>( + return new Tuple>>( x.First().Tpag, - x.Select(tile => new Tuple(tile.SourceX, tile.SourceY, tile.Width, tile.Height)) + x.Select(tile => new Tuple(tile.SourceX, tile.SourceY, tile.Width, tile.Height)) .Distinct() .ToList()); }) diff --git a/UndertaleModTool/ImportCodeSystem.cs b/UndertaleModTool/ImportCodeSystem.cs index 6a93ff1fe..d7965c38d 100644 --- a/UndertaleModTool/ImportCodeSystem.cs +++ b/UndertaleModTool/ImportCodeSystem.cs @@ -5,6 +5,7 @@ using System.Text.RegularExpressions; using System.Threading; using System.Windows; +using Underanalyzer.Decompiler; using UndertaleModLib; using UndertaleModLib.Decompiler; using UndertaleModLib.Models; @@ -97,15 +98,15 @@ public string GetPassBack(string decompiled_text, string keyword, string replace return passBack; } - public void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null) + public void ReplaceTextInGML(string codeName, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null, IDecompileSettings settings = null) { UndertaleCode code = Data.Code.ByName(codeName); if (code is null) throw new ScriptException($"No code named \"{codeName}\" was found!"); - ReplaceTextInGML(code, keyword, replacement, caseSensitive, isRegex, context); + ReplaceTextInGML(code, keyword, replacement, caseSensitive, isRegex, context, settings); } - public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null) + public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacement, bool caseSensitive = false, bool isRegex = false, GlobalDecompileContext context = null, IDecompileSettings settings = null) { if (code.ParentEntry is not null) return; @@ -114,7 +115,7 @@ public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacem string passBack = ""; string codeName = code.Name.Content; - GlobalDecompileContext DECOMPILE_CONTEXT = context is null ? new(Data, false) : context; + GlobalDecompileContext globalDecompileContext = context is null ? new(Data) : context; if (!Data.ToolInfo.ProfileMode) { @@ -123,7 +124,8 @@ public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacem // It would just be recompiling an empty string and messing with null entries seems bad if (code is null) return; - string originalCode = Decompiler.Decompile(code, DECOMPILE_CONTEXT); + string originalCode = new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, settings ?? Data.ToolInfo.DecompilerSettings) + .DecompileToString(); passBack = GetPassBack(originalCode, keyword, replacement, caseSensitive, isRegex); // No need to compile something unchanged if (passBack == originalCode) @@ -157,7 +159,8 @@ public void ReplaceTextInGML(UndertaleCode code, string keyword, string replacem // It would just be recompiling an empty string and messing with null entries seems bad if (code is null) return; - string originalCode = Decompiler.Decompile(code, DECOMPILE_CONTEXT); + string originalCode = new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, Data.ToolInfo.DecompilerSettings) + .DecompileToString(); passBack = GetPassBack(originalCode, keyword, replacement, caseSensitive, isRegex); // No need to compile something unchanged if (passBack == originalCode) @@ -222,7 +225,7 @@ void ImportCode(string codeName, string gmlCode, bool IsGML = true, bool doParse else if (code.ParentEntry is not null) return; - if (Data?.GeneralInfo.BytecodeVersion > 14 && Data.CodeLocals.ByName(codeName) == null) + if (Data.CodeLocals is not null && Data.CodeLocals.ByName(codeName) is null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = code.Name; diff --git a/UndertaleModTool/MainWindow.xaml.cs b/UndertaleModTool/MainWindow.xaml.cs index 60f0be443..2201d54d6 100644 --- a/UndertaleModTool/MainWindow.xaml.cs +++ b/UndertaleModTool/MainWindow.xaml.cs @@ -253,7 +253,8 @@ public MainWindow() GetType().GetTypeInfo().Assembly, typeof(JsonConvert).GetTypeInfo().Assembly, typeof(System.Text.RegularExpressions.Regex).GetTypeInfo().Assembly, - typeof(ImageMagick.MagickImage).GetTypeInfo().Assembly) + typeof(ImageMagick.MagickImage).GetTypeInfo().Assembly, + typeof(Underanalyzer.Decompiler.DecompileContext).Assembly) .WithEmitDebugInformation(true); //when script throws an exception, add a exception location (line number) }); @@ -695,6 +696,8 @@ public async Task MakeNewDataFile() FilePath = null; Data = UndertaleData.CreateNew(); Data.ToolInfo.AppDataProfiles = ProfilesFolder; + Data.ToolInfo.DecompilerSettings = SettingsWindow.DecompilerSettings; + Data.ToolInfo.InstanceIdPrefix = () => SettingsWindow.InstanceIdPrefix; CloseChildFiles(); OnPropertyChanged("Data"); OnPropertyChanged("FilePath"); @@ -992,6 +995,8 @@ private async Task LoadFile(string filename, bool preventClose = false, bool onl Highlighted = new DescriptionView("Welcome to UndertaleModTool!", "Double click on the items on the left to view them!"); OpenInTab(Highlighted); + GameSpecificResolver.BaseDirectory = ExePath; + Task t = Task.Run(() => { bool hadWarnings = false; @@ -1058,6 +1063,8 @@ private async Task LoadFile(string filename, bool preventClose = false, bool onl if (data != null) { data.ToolInfo.ProfileMode = SettingsWindow.ProfileModeEnabled; + data.ToolInfo.DecompilerSettings = SettingsWindow.DecompilerSettings; + data.ToolInfo.InstanceIdPrefix = () => SettingsWindow.InstanceIdPrefix; data.ToolInfo.CurrentMD5 = BitConverter.ToString(MD5CurrentlyLoaded).Replace("-", "").ToLowerInvariant(); } } @@ -1085,6 +1092,8 @@ private async Task LoadFile(string filename, bool preventClose = false, bool onl CachedTileDataLoader.Reset(); Data.ToolInfo.AppDataProfiles = ProfilesFolder; + Data.ToolInfo.DecompilerSettings = SettingsWindow.DecompilerSettings; + Data.ToolInfo.InstanceIdPrefix = () => SettingsWindow.InstanceIdPrefix; FilePath = filename; OnPropertyChanged("Data"); OnPropertyChanged("FilePath"); @@ -1157,7 +1166,7 @@ private async Task SaveFile(string filename, bool suppressDebug = false) object countLock = new object(); string[] outputs = new string[Data.Code.Count]; UndertaleDebugInfo[] outputsOffsets = new UndertaleDebugInfo[Data.Code.Count]; - GlobalDecompileContext context = new GlobalDecompileContext(Data, false); + GlobalDecompileContext context = new(Data); Parallel.For(0, Data.Code.Count, (i) => { var code = Data.Code[i]; @@ -1168,7 +1177,8 @@ private async Task SaveFile(string filename, bool suppressDebug = false) string output; try { - output = Decompiler.Decompile(code, context); + output = new Underanalyzer.Decompiler.DecompileContext(context, code, Data.ToolInfo.DecompilerSettings) + .DecompileToString(); } catch (Exception e) { @@ -1208,12 +1218,16 @@ private async Task SaveFile(string filename, bool suppressDebug = false) { debugData.SourceCode.Add(new UndertaleScriptSource() { SourceCode = debugData.Strings.MakeString(outputs[i]) }); debugData.DebugInfo.Add(outputsOffsets[i]); - debugData.LocalVars.Add(Data.CodeLocals[i]); - if (debugData.Strings.IndexOf(Data.CodeLocals[i].Name) < 0) - debugData.Strings.Add(Data.CodeLocals[i].Name); - foreach (var local in Data.CodeLocals[i].Locals) - if (debugData.Strings.IndexOf(local.Name) < 0) - debugData.Strings.Add(local.Name); + // FIXME: Probably should write something regardless. + if (Data.CodeLocals is not null) + { + debugData.LocalVars.Add(Data.CodeLocals[i]); + if (debugData.Strings.IndexOf(Data.CodeLocals[i].Name) < 0) + debugData.Strings.Add(Data.CodeLocals[i].Name); + foreach (var local in Data.CodeLocals[i].Locals) + if (debugData.Strings.IndexOf(local.Name) < 0) + debugData.Strings.Add(local.Name); + } } using (UndertaleWriter writer = new UndertaleWriter(new FileStream(Path.ChangeExtension(FilePath, ".yydebug"), FileMode.Create, FileAccess.Write))) @@ -1473,7 +1487,7 @@ await Task.Run(async () => { }); } - public async Task GenerateGMLCache(ThreadLocal decompileContext = null, object dialog = null, bool clearGMLEditedBefore = false) + public async Task GenerateGMLCache(GlobalDecompileContext decompileContext = null, object dialog = null, bool clearGMLEditedBefore = false) { if (!SettingsWindow.UseGMLCache) return false; @@ -1508,13 +1522,12 @@ public async Task GenerateGMLCache(ThreadLocal dec else existedDialog = true; - if (decompileContext is null) - decompileContext = new(() => new GlobalDecompileContext(Data, false)); + decompileContext ??= new(Data); - if (Data.KnownSubFunctions is null) //if we run script before opening any code + if (Data.GlobalFunctions is null) // If we run script before opening any code { - SetProgressBar(null, "Building the cache of all sub-functions...", 0, 0); - await Task.Run(() => Decompiler.BuildSubFunctionCache(Data)); + SetProgressBar(null, "Building a cache of all global functions...", 0, 0); + await Task.Run(() => GlobalDecompileContext.BuildGlobalFunctionCache(Data)); } if (Data.GMLCache.IsEmpty) @@ -1528,7 +1541,9 @@ await Task.Run(() => Parallel.ForEach(Data.Code, (code) => { try { - Data.GMLCache[code.Name.Content] = Decompiler.Decompile(code, decompileContext.Value); + Data.GMLCache[code.Name.Content] = + new Underanalyzer.Decompiler.DecompileContext(decompileContext, code, Data.ToolInfo.DecompilerSettings) + .DecompileToString(); } catch { @@ -1576,7 +1591,9 @@ await Task.Run(() => Parallel.ForEach(codeToUpdate.Select(x => Data.Code.ByName( { try { - Data.GMLCache[code.Name.Content] = Decompiler.Decompile(code, decompileContext.Value); + Data.GMLCache[code.Name.Content] = + new Underanalyzer.Decompiler.DecompileContext(decompileContext, code, Data.ToolInfo.DecompilerSettings) + .DecompileToString(); Data.GMLCacheFailed.Remove(code.Name.Content); //that code compiles now } @@ -2127,7 +2144,7 @@ private void MenuItem_Add_Click(object sender, RoutedEventArgs e) string prefix = Data.IsVersionAtLeast(2, 3) ? "gml_GlobalScript_" : "gml_Script_"; code.Name = Data.Strings.MakeString(prefix + newName); Data.Code.Add(code); - if (Data?.GeneralInfo.BytecodeVersion > 14) + if (Data.CodeLocals is not null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = code.Name; @@ -2140,7 +2157,7 @@ private void MenuItem_Add_Click(object sender, RoutedEventArgs e) } (obj as UndertaleScript).Code = code; } - if ((obj is UndertaleCode) && (Data.GeneralInfo.BytecodeVersion > 14)) + if (obj is UndertaleCode && Data.CodeLocals is not null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = (obj as UndertaleCode).Name; @@ -2707,8 +2724,7 @@ private async Task RunScriptNow(string path) ScriptPath = path; - string compatScriptText = Regex.Replace(scriptText, @"\bDecompileContext(?!\.)\b", "GlobalDecompileContext", RegexOptions.None); - object result = await CSharpScript.EvaluateAsync(compatScriptText, scriptOptions.WithFilePath(path).WithFileEncoding(Encoding.UTF8), this, typeof(IScriptInterface)); + object result = await CSharpScript.EvaluateAsync(scriptText, scriptOptions.WithFilePath(path).WithFileEncoding(Encoding.UTF8), this, typeof(IScriptInterface)); if (FinishedMessageEnabled) { diff --git a/UndertaleModTool/ProfileSystem.cs b/UndertaleModTool/ProfileSystem.cs index ea702a0b3..3bc7cca1c 100644 --- a/UndertaleModTool/ProfileSystem.cs +++ b/UndertaleModTool/ProfileSystem.cs @@ -10,6 +10,7 @@ using UndertaleModLib.Models; using UndertaleModLib.Decompiler; using System.Threading.Tasks; +using Underanalyzer.Decompiler; namespace UndertaleModTool { @@ -17,19 +18,21 @@ namespace UndertaleModTool public partial class MainWindow : Window, INotifyPropertyChanged, IScriptInterface { - public string GetDecompiledText(string codeName, GlobalDecompileContext context = null) + public string GetDecompiledText(string codeName, GlobalDecompileContext context = null, IDecompileSettings settings = null) { - return GetDecompiledText(Data.Code.ByName(codeName), context); + return GetDecompiledText(Data.Code.ByName(codeName), context, settings); } - public string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null) + public string GetDecompiledText(UndertaleCode code, GlobalDecompileContext context = null, IDecompileSettings settings = null) { if (code.ParentEntry is not null) return $"// This code entry is a reference to an anonymous function within \"{code.ParentEntry.Name.Content}\", decompile that instead."; - GlobalDecompileContext DECOMPILE_CONTEXT = context is null ? new(Data, false) : context; + GlobalDecompileContext globalDecompileContext = context is null ? new(Data) : context; try { - return code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT) : ""; + return code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, settings ?? Data.ToolInfo.DecompilerSettings).DecompileToString() + : ""; } catch (Exception e) { @@ -44,7 +47,7 @@ public string GetDisassemblyText(UndertaleCode code) try { - return code != null ? code.Disassemble(Data.Variables, Data.CodeLocals.For(code)) : ""; + return code != null ? code.Disassemble(Data.Variables, Data.CodeLocals?.For(code)) : ""; } catch (Exception e) { diff --git a/UndertaleModTool/Resources/GML.xshd b/UndertaleModTool/Resources/GML.xshd index 348619e4c..b2699a0b5 100644 --- a/UndertaleModTool/Resources/GML.xshd +++ b/UndertaleModTool/Resources/GML.xshd @@ -59,7 +59,12 @@ then mod div - @@this@@ + throw + static + try + catch + finally + enum @@ -77,10 +82,11 @@ \b0x[0-9a-fA-F]+ # hex number - | \$[0-9a-fA-F]+ # alternate hex number + | \$[0-9a-fA-F]+ # alternate hex number + | \#[0-9a-fA-F]{6} # css color hex number | (?: -?\d+(?:\.[0-9]+)? # digits with optional . and - - | -?\.[0-9]+ # start with ., then digits + | -?\.[0-9]+ # start with ., then digits ) \b diff --git a/UndertaleModTool/Scripts/Builtin Scripts/BorderEnabler.csx b/UndertaleModTool/Scripts/Builtin Scripts/BorderEnabler.csx index 5edcfcd88..292f817c8 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/BorderEnabler.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/BorderEnabler.csx @@ -15,44 +15,43 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter return; } - -//ScriptError("Script under reconstruction to use profile system."); -//return; - ScriptMessage("Border enabler (1080p edition)\nby krzys_h"); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + // Change os_type == 14 checks in scr_draw_screen_border to always pass -ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"os_type == os_psvita", "0", true); -ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"os_type == os_ps4", "1", true); +ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"os_type == os_psvita", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"os_type == os_ps4", "1", true, false, globalDecompileContext, decompilerSettings); // Same for the code that calls it -ReplaceTextInGML("gml_Object_obj_time_Draw_77", @"global.osflavor >= 3", "1", true); +ReplaceTextInGML("gml_Object_obj_time_Draw_77", @"global.osflavor >= 3", "1", true, false, globalDecompileContext, decompilerSettings); -//Remove checks from obj_time creation event -ReplaceTextInGML("gml_Object_obj_time_Create_0", @"os_type == os_psvita", "0", true); -ReplaceTextInGML("gml_Object_obj_time_Create_0", @"os_type == os_ps4", "1", true); -ReplaceTextInGML("gml_Object_obj_time_Create_0", @"global.osflavor >= 4", "1", true); -ReplaceTextInGML("gml_Object_obj_time_Create_0", @"global.osflavor >= 3", "1", true); +// Remove checks from obj_time creation event +ReplaceTextInGML("gml_Object_obj_time_Create_0", @"os_type == os_psvita", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Create_0", @"os_type == os_ps4", "1", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Create_0", @"global.osflavor >= 4", "1", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Create_0", @"global.osflavor >= 3", "1", true, false, globalDecompileContext, decompilerSettings); -//Now patch out the check for the window scale, make it always be true -ReplaceTextInGML("gml_Object_obj_time_Draw_76", @"global.osflavor >= 4", "1", true); -ReplaceTextInGML("gml_Object_obj_time_Draw_76", @"os_type == os_switch_beta", "1", true); +// Now patch out the check for the window scale, make it always be true +ReplaceTextInGML("gml_Object_obj_time_Draw_76", @"global.osflavor >= 4", "1", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Draw_76", @"os_type == os_switch_beta", "1", true, false, globalDecompileContext, decompilerSettings); //Attempt border display fix in gml_Object_obj_time_Draw_76 -//Patch out the OS checks for gml_Script_scr_draw_background_ps4, make PS Vita always false, and PS4 always true, simplifying code. -ReplaceTextInGML("gml_Script_scr_draw_background_ps4", @"os_type == os_psvita", "0", true); -ReplaceTextInGML("gml_Script_scr_draw_background_ps4", @"os_type == os_ps4", "1", true); +// Patch out the OS checks for gml_Script_scr_draw_background_ps4, make PS Vita always false, and PS4 always true, simplifying code. +ReplaceTextInGML("gml_Script_scr_draw_background_ps4", @"os_type == os_psvita", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_draw_background_ps4", @"os_type == os_ps4", "1", true, false, globalDecompileContext, decompilerSettings); // Now, patch the settings menu! -ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"obj_time.j_ch > 0", "0", true); -ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"global.osflavor <= 2", "0", true); -ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"global.osflavor >= 4", "1", true); +ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"obj_time.j_ch > 0", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"global.osflavor <= 2", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"global.osflavor >= 4", "1", true, false, globalDecompileContext, decompilerSettings); -//Remove code not applicable (PS Vita, Windows, <=2) and make some code always true (global.osflavor >= 4) -ReplaceTextInGML("gml_Object_obj_time_Step_1", @"os_type == os_psvita", "0", true); -ReplaceTextInGML("gml_Object_obj_time_Step_1", @"global.osflavor <= 2", "0", true); -ReplaceTextInGML("gml_Object_obj_time_Step_1", @"global.osflavor == 1", "0", true); -ReplaceTextInGML("gml_Object_obj_time_Step_1", @"global.osflavor >= 4", "1", true); +// Remove code not applicable (PS Vita, Windows, <=2) and make some code always true (global.osflavor >= 4) +ReplaceTextInGML("gml_Object_obj_time_Step_1", @"os_type == os_psvita", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Step_1", @"global.osflavor <= 2", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Step_1", @"global.osflavor == 1", "0", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Step_1", @"global.osflavor >= 4", "1", true, false, globalDecompileContext, decompilerSettings); // Also resize the window so that the border can be seen without going fullscreen Data.Functions.EnsureDefined("window_set_size", Data.Strings); @@ -61,13 +60,12 @@ Data.Code.ByName("gml_Object_obj_time_Create_0").AppendGML("window_set_size(960, // Load border textures string bordersPath = Path.Combine(Path.GetDirectoryName(ScriptPath), "Borders"); -Dictionary textures = new Dictionary(); +Dictionary textures = new(); if (!Directory.Exists(bordersPath)) { throw new ScriptException("Border textures not found??"); } -// throw new ScriptException(bordersPath); int lastTextPage = Data.EmbeddedTextures.Count - 1; int lastTextPageItem = Data.TexturePageItems.Count - 1; @@ -131,4 +129,4 @@ AssignBorderBackground("bg_border_tundra_1080", textures["bg_border_tundra.p AssignBorderBackground("bg_border_water1_1080", textures["bg_border_water1.png"], 0, 0, 1920, 1080); ChangeSelection(Data.Backgrounds.ByName("bg_border_water1_1080")); -ScriptMessage("Borders loaded and enabled!"); \ No newline at end of file +ScriptMessage("Borders loaded and enabled!"); diff --git a/UndertaleModTool/Scripts/Builtin Scripts/DebugMsg.csx b/UndertaleModTool/Scripts/Builtin Scripts/DebugMsg.csx index fb111c9c7..75f5df784 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/DebugMsg.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/DebugMsg.csx @@ -1,7 +1,7 @@ EnsureDataLoaded(); ScriptMessage("DebugMsg - Displays dialogue messages\nwhile debug mode is enabled.\n\nAuthor: krzys-h, Kneesnap"); -var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data.Strings, Data.Code, Data.CodeLocals); +var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data); code.AppendGML(@" if global.debug diff --git a/UndertaleModTool/Scripts/Builtin Scripts/DebugToggler.csx b/UndertaleModTool/Scripts/Builtin Scripts/DebugToggler.csx index f0550f7fe..00eb4d898 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/DebugToggler.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/DebugToggler.csx @@ -15,7 +15,7 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter ScriptMessage("Toggle debug mode with F1\nby krzys-h, Kneesnap"); -var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f1, Data.Strings, Data.Code, Data.CodeLocals); +var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f1, Data); // Toggle global.debug. code.ReplaceGML(@" diff --git a/UndertaleModTool/Scripts/Builtin Scripts/EnableDebug.csx b/UndertaleModTool/Scripts/Builtin Scripts/EnableDebug.csx index 5e43fe2bb..01b9cdba7 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/EnableDebug.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/EnableDebug.csx @@ -17,15 +17,19 @@ bool enable = ScriptQuestion("Debug Manager by krzys-h and Kneesnap\n\nYes = Ena var scr_debug = Data.Scripts.ByName("scr_debug")?.Code; if (scr_debug != null) // Deltarune debug check script. { - scr_debug.ReplaceGML("global.debug = " + (enable ? "true" : "false") + ";" + "\r\n" + "return global.debug;", Data); + scr_debug.ReplaceGML("global.debug = " + (enable ? "1" : "0") + ";" + "\r\n" + "return global.debug;", Data); ChangeSelection(scr_debug); // Show. ScriptMessage("Debug Mode " + (enable ? "enabled" : "disabled") + "."); return; } + var SCR_GAMESTART = Data.Scripts.ByName("SCR_GAMESTART", true)?.Code; if (SCR_GAMESTART != null) // Undertale debug check script. { - ReplaceTextInGML("gml_Script_SCR_GAMESTART", "global.debug = ", "global.debug = " + (enable ? "true;" : "false;") + "//"); + GlobalDecompileContext globalDecompileContext = new(Data); + Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + + ReplaceTextInGML("gml_Script_SCR_GAMESTART", "global.debug = ", "global.debug = " + (enable ? "1;" : "0;") + "//", false, false, globalDecompileContext, decompilerSettings); ChangeSelection(SCR_GAMESTART); // Show. ScriptMessage("Debug Mode " + (enable ? "enabled" : "disabled") + "."); return; diff --git a/UndertaleModTool/Scripts/Builtin Scripts/FindAndReplace.csx b/UndertaleModTool/Scripts/Builtin Scripts/FindAndReplace.csx index 7e1cf2e69..4555216af 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/FindAndReplace.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/FindAndReplace.csx @@ -32,10 +32,12 @@ SetProgressBar(null, "Code Entries", 0, Data.Code.Count); StartProgressBarUpdater(); SyncBinding("Strings, Variables, Functions", true); -await Task.Run(() => { +await Task.Run(() => +{ + GlobalDecompileContext globalDecompileContext = new(Data); foreach (UndertaleCode code in Data.Code) { - ReplaceTextInGML(code.Name.Content, keyword, replacement, case_sensitive, isRegex); + ReplaceTextInGML(code.Name.Content, keyword, replacement, case_sensitive, isRegex, globalDecompileContext); IncrementProgress(); } }); diff --git a/UndertaleModTool/Scripts/Builtin Scripts/GoToRoom.csx b/UndertaleModTool/Scripts/Builtin Scripts/GoToRoom.csx index f7052aea4..f63bf15ac 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/GoToRoom.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/GoToRoom.csx @@ -15,7 +15,7 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter ScriptMessage("Add 'Go to room' dialog under F3\nby krzys-h, Kneesnap"); -var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f3, Data.Strings, Data.Code, Data.CodeLocals); +var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f3, Data); Data.Functions.EnsureDefined("get_integer", Data.Strings); code.ReplaceGML(@" diff --git a/UndertaleModTool/Scripts/Builtin Scripts/HeCanBeEverywhere.csx b/UndertaleModTool/Scripts/Builtin Scripts/HeCanBeEverywhere.csx index 9bf357eba..678e5e6d7 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/HeCanBeEverywhere.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/HeCanBeEverywhere.csx @@ -38,7 +38,7 @@ Data.Sprites.Add(spr_joker_enemy); var obj_joker = Data.GameObjects.ByName("obj_joker"); var obj_chaseenemy = Data.GameObjects.ByName("obj_chaseenemy"); -obj_chaseenemy.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_chaseenemy.EventHandlerFor(EventType.Create, Data).AppendGML(@" myencounter = 25; // Jevil. touchsprite = spr_joker_enemy; sprite_index = spr_joker_enemy; @@ -46,11 +46,11 @@ chasetype = 0; pacetype = 1;", Data); var obj_testoverworldenemy = Data.GameObjects.ByName("obj_testoverworldenemy"); -var obj_testoverworldenemy_User0 = obj_testoverworldenemy.EventHandlerFor(EventType.Other, EventSubtypeOther.User0, Data.Strings, Data.Code, Data.CodeLocals); +var obj_testoverworldenemy_User0 = obj_testoverworldenemy.EventHandlerFor(EventType.Other, EventSubtypeOther.User0, Data); obj_testoverworldenemy_User0.AppendGML("snd_play(snd_joker_laugh0);", Data); obj_testoverworldenemy_User0.Instructions[3].JumpOffset += 5; // Ugly hack to redirect exit of if() -var obj_joker_User10 = obj_joker.EventHandlerFor(EventType.Other, EventSubtypeOther.User10, Data.Strings, Data.Code, Data.CodeLocals); +var obj_joker_User10 = obj_joker.EventHandlerFor(EventType.Other, EventSubtypeOther.User10, Data); for (int i = 0; i < obj_joker_User10.Instructions.Count; i++) { if (obj_joker_User10.Instructions[i].Kind == UndertaleInstruction.Opcode.Pop && obj_joker_User10.Instructions[i].Destination.Target.Name.Content == "skipvictory") @@ -137,7 +137,7 @@ spr_jokerdoor.Textures[1].Texture = spr_jokerdoor.Textures[2].Texture; var obj_doorX_musfade = Data.GameObjects.ByName("obj_doorX_musfade"); -obj_doorX_musfade.EventHandlerFor(EventType.Other, EventSubtypeOther.User9, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_doorX_musfade.EventHandlerFor(EventType.Other, EventSubtypeOther.User9, Data).ReplaceGML(@" if (room == room_cc_prison_prejoker && global.flag[241] < 6) { global.typer = 666; global.fc = 0; @@ -158,7 +158,7 @@ if (touched == 0) { }", Data); var obj_jokerbattleevent = Data.GameObjects.ByName("obj_jokerbattleevent"); -obj_jokerbattleevent.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_jokerbattleevent.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data).AppendGML(@" if (instance_exists(obj_battlecontroller) && global.jevilizer < 0.15) { __view_set(4, 0, ((__view_get(4, 0) + (sin((global.time / 15)) / 2)) + 1)); __view_set(11, 0, (__view_get(11, 0) + (cos((global.time / 10)) * 1.5))); @@ -210,13 +210,13 @@ if (con == 1345) { con = 15.1; }", Data); -obj_jokerbattleevent.EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_jokerbattleevent.EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data).AppendGML(@" if (global.debug) { draw_set_color(0xFFFF); draw_text(50, 50, global.jevilizer); }", Data); -obj_jokerbattleevent.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_jokerbattleevent.EventHandlerFor(EventType.Create, Data).AppendGML(@" if (!snd_is_playing(global.currentsong[1])) { global.currentsong[0] = snd_init(""prejoker.ogg""); global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 0.85); @@ -231,7 +231,7 @@ if (argument0 == room_cc_joker) return roomname;", Data); var obj_shop1 = Data.GameObjects.ByName("obj_shop1"); -var obj_shop1_Draw = obj_shop1.EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data.Strings, Data.Code, Data.CodeLocals); +var obj_shop1_Draw = obj_shop1.EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data); var obj_shop1_Patches = new Dictionary() { { "obj_shop1_slash_Draw_0_gml_474_0", @"\E3* ... I see^1.&* After all the trouble I went through to lock him up^1, he managed to escape?/" }, @@ -260,23 +260,25 @@ for (int i = 0; i < obj_shop1_Draw.Instructions.Count; i++) } } obj_shop1_Draw.UpdateAddresses(); -obj_shop1_Draw.Replace(Assembler.Assemble(obj_shop1_Draw.Disassemble(Data.Variables, Data.CodeLocals.For(obj_shop1_Draw)), Data)); // TODO: no idea why this is needed +obj_shop1_Draw.Replace(Assembler.Assemble(obj_shop1_Draw.Disassemble(Data.Variables, Data.CodeLocals?.For(obj_shop1_Draw)), Data)); // TODO: no idea why this is needed -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f6, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f6, Data).ReplaceGML(@" if (global.debug == 1) global.flag[241] = 1;", Data); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f7, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f7, Data).ReplaceGML(@" if (global.debug == 1) global.flag[241] = 7;", Data); -Data.GameObjects.ByName("obj_jokerbg_triangle_real").EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_jokerbg_triangle_real").EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data).AppendGML(@" if (room == room_cc_joker) { on = (instance_number(obj_joker) != 0); rotspeed = (instance_number(obj_joker) * instance_number(obj_joker)); }", Data); -ReplaceTextInGML("gml_Object_obj_joker_Draw_0", "global.flag[241] = 6", ""); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); +ReplaceTextInGML("gml_Object_obj_joker_Draw_0", "global.flag[241] = 6", "", false, false, globalDecompileContext, decompilerSettings); ChangeSelection(spr_joker_enemy); diff --git a/UndertaleModTool/Scripts/Builtin Scripts/MixMod.csx b/UndertaleModTool/Scripts/Builtin Scripts/MixMod.csx index 355b2d50f..6fe58c895 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/MixMod.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/MixMod.csx @@ -61,7 +61,7 @@ Data.Variables.EnsureDefined("youtube_song_title", UndertaleInstruction.Instance Data.Variables.EnsureDefined("youtube_last_song", UndertaleInstruction.InstanceType.Self, false, Data.Strings, Data); Data.Variables.EnsureDefined("youtube_cache", UndertaleInstruction.InstanceType.Self, false, Data.Strings, Data); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Create, Data).AppendGML(@" __webextension_set_device(window_device()) my_browser = browser_create(""""); youtube_current_song = """"; @@ -70,14 +70,14 @@ youtube_song_title = """"; youtube_last_song = """"; youtube_cache = ds_map_create();", Data); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.PostDraw, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.PostDraw, Data).AppendGML(@" var w = (window_get_width() / 6.5); var h = ((w / 16) * 9); browser_resize(my_browser, w, h); browser_draw(my_browser, 5, 5); window_set_caption(youtube_current_song);", Data); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data).AppendGML(@" draw_set_font(fnt_maintext); draw_set_color(0xFFFF); draw_text(((((surface_get_width(application_surface) * global.window_scale) - string_width(youtube_song_title)) / 2) + global.window_yofs), 0, youtube_song_title);", Data); @@ -388,7 +388,7 @@ Data.CodeLocals.Add(new UndertaleCodeLocals() { Name = youtube_is_playing.Name } Data.Scripts.Add(new UndertaleScript() { Name = Data.Strings.MakeString("youtube_is_playing"), Code = youtube_is_playing }); Data.Functions.EnsureDefined("youtube_is_playing", Data.Strings); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Other, (uint)62u, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Other, (uint)62u, Data).AppendGML(@" var data; if (ds_map_find_value(async_load, ""id"") == youtube_request && ds_map_find_value(async_load, ""status"") == 0) { data = json_decode(ds_map_find_value(async_load, ""result"")); @@ -397,7 +397,7 @@ if (ds_map_find_value(async_load, ""id"") == youtube_request && ds_map_find_valu youtube_load_song(); }", Data); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Other, (uint)70u, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Other, (uint)70u, Data).AppendGML(@" if (ds_map_find_value(async_load, ""id"") == 103) trophy_handle_load_state(); if (ds_map_find_value(async_load, ""id"") == 1337) { @@ -408,7 +408,7 @@ if (ds_map_find_value(async_load, ""id"") == 1337) { } }", Data); -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, 32, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, 32, Data).AppendGML(@" if (youtube_current_song != """") youtube_load_song();", Data); @@ -439,7 +439,7 @@ if (argument0 != all) { youtube_stop(); }", Data); -Data.GameObjects.ByName("obj_titleimage").EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +Data.GameObjects.ByName("obj_titleimage").EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data).AppendGML(@" draw_set_color(0xFFFF); scr_setfont(fnt_small); scr_drawtext_centered_scaled(160, 150, ""But Every Time A Song Plays\nIts A Random Remix From YouTube Instead"", 1, 1); diff --git a/UndertaleModTool/Scripts/Builtin Scripts/RoomOfDetermination.csx b/UndertaleModTool/Scripts/Builtin Scripts/RoomOfDetermination.csx index 033c8f8d6..1d141e2ec 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/RoomOfDetermination.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/RoomOfDetermination.csx @@ -111,7 +111,7 @@ room_of_determination.GameObjects.Add(new UndertaleRoom.GameObject() }); // Actually link the door -obj_door_ruins13.EventHandlerFor(EventType.Alarm, 2, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_door_ruins13.EventHandlerFor(EventType.Alarm, 2, Data).AppendGML(@" if (room == room_ruins1) room_goto(room_of_determination);", Data); @@ -210,12 +210,12 @@ var obj_something_changed_trigger = new UndertaleGameObject() Visible = false }; -obj_something_changed_trigger.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_something_changed_trigger.EventHandlerFor(EventType.Create, Data).AppendGML(@" con = 0; alarm[0] = 30;", Data); -obj_something_changed_trigger.EventHandlerFor(EventType.Alarm, (uint)0, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_something_changed_trigger.EventHandlerFor(EventType.Alarm, (uint)0, Data).AppendGML(@" global.typer = 5; global.msc = 0; global.facechoice = 0; @@ -231,7 +231,7 @@ instance_create(0, 0, obj_dialoguer); global.interact = 1; con = 1;", Data); -obj_something_changed_trigger.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_something_changed_trigger.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data).AppendGML(@" // Toby, please, why can't you just make the obj_dialoguer block movement automatically // writing this every time will get really painful really fast @@ -267,7 +267,7 @@ var obj_readable_determination = new UndertaleGameObject() ParentId = obj_readable, Visible = false }; -obj_readable_determination.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_readable_determination.EventHandlerFor(EventType.Create, Data).AppendGML(@" myinteract = 0; specialread = 0; cantalk = 1; @@ -275,7 +275,7 @@ mydialoguer = 438274832; image_xscale = 1; image_yscale = 1;", Data); -obj_readable_determination.EventHandlerFor(EventType.Alarm, (uint)0, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_readable_determination.EventHandlerFor(EventType.Alarm, (uint)0, Data).AppendGML(@" myinteract = 3; global.msc = 0; global.typer = 5; @@ -334,14 +334,14 @@ var obj_determined_rarependant = new UndertaleGameObject() Solid = obj_rarependant.Solid, ParentId = obj_rarependant.ParentId }; -obj_determined_rarependant.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_determined_rarependant.EventHandlerFor(EventType.Create, Data).AppendGML(@" myinteract = 0; facing = 0; direction = 270; image_speed = 0; con = 0;", Data); -obj_determined_rarependant.EventHandlerFor(EventType.Alarm, (uint)0, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_determined_rarependant.EventHandlerFor(EventType.Alarm, (uint)0, Data).AppendGML(@" myinteract = 3; global.msc = 11337; global.typer = 5; @@ -350,14 +350,14 @@ global.faceemotion = 0; con = 1; mydialoguer = instance_create(0, 0, obj_dialoguer);", Data); -obj_determined_rarependant.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_determined_rarependant.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data).AppendGML(@" if (con == 1 && instance_exists(OBJ_WRITER) == 0 && global.choice == 0) { alarm[1] = 40; con = 0; } event_inherited();", Data); -obj_determined_rarependant.EventHandlerFor(EventType.Alarm, (uint)1, Data.Strings, Data.Code, Data.CodeLocals).AppendGML("room_goto(room_of_dog);", Data); +obj_determined_rarependant.EventHandlerFor(EventType.Alarm, (uint)1, Data).AppendGML("room_goto(room_of_dog);", Data); Data.GameObjects.Add(obj_determined_rarependant); SCR_TEXT.Code.AppendGML(@" diff --git a/UndertaleModTool/Scripts/Builtin Scripts/SearchLimited.csx b/UndertaleModTool/Scripts/Builtin Scripts/SearchLimited.csx index 2de068b4b..62233005c 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/SearchLimited.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/SearchLimited.csx @@ -17,6 +17,12 @@ using System.Text.RegularExpressions; EnsureDataLoaded(); +if (Data.IsYYC()) +{ + ScriptError("You cannot do a code search on a YYC game! There is no code to search!"); + return; +} + int resultCount = 0; StringBuilder results = new(); string searchNames = ""; @@ -25,12 +31,8 @@ List failedList = new(); List codeToDump = new(); List gameObjectCandidates = new(); -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); -if (Data.IsYYC()) -{ - ScriptError("You cannot do a code search on a YYC game! There is no code to search!"); - return; -} +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = Data.ToolInfo.DecompilerSettings; bool caseSensitive = ScriptQuestion("Case sensitive?"); bool regexCheck = ScriptQuestion("Regex search?"); @@ -123,12 +125,6 @@ await ClickableSearchOutput("Search results.", keyword, resultCount, resultsDict HideProgressBar(); EnableUI(); - -string GetFolder(string path) -{ - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - bool RegexContains(in string s) { return keywordRegex.Match(s).Success; @@ -140,13 +136,18 @@ void DumpCode(UndertaleCode code) if (code.ParentEntry is null) { int lineNumber = 1; - StringReader decompiledText = new(code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : ""); + StringReader decompiledText = new(code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : ""); bool nameWritten = false; string lineInt; while ((lineInt = decompiledText.ReadLine()) is not null) { if (lineInt == string.Empty) + { + lineNumber += 1; continue; + } if (((regexCheck && RegexContains(in lineInt)) || ((!regexCheck && caseSensitive) ? lineInt.Contains(keyword) : lineInt.ToLower().Contains(keyword.ToLower())))) { diff --git a/UndertaleModTool/Scripts/Builtin Scripts/ShowRoomName.csx b/UndertaleModTool/Scripts/Builtin Scripts/ShowRoomName.csx index 0272ff174..c34dba1e7 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/ShowRoomName.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/ShowRoomName.csx @@ -5,7 +5,7 @@ Data.Functions.EnsureDefined("room_get_name", Data.Strings); // required for Del string displayName = Data?.GeneralInfo?.DisplayName?.Content.ToLower(); bool isDeltarune = displayName.StartsWith("deltarune chapter 1"); -var gml_Object_obj_time_Draw_64 = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data.Strings, Data.Code, Data.CodeLocals); +var gml_Object_obj_time_Draw_64 = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Draw, EventSubtypeDraw.DrawGUI, Data); if (isDeltarune) { gml_Object_obj_time_Draw_64.AppendGML(@" diff --git a/UndertaleModTool/Scripts/Builtin Scripts/TTFFonts.csx b/UndertaleModTool/Scripts/Builtin Scripts/TTFFonts.csx index 24a2d6cd3..194595b65 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/TTFFonts.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/TTFFonts.csx @@ -22,7 +22,7 @@ Data.Fonts.Clear(); Data.Functions.EnsureDefined("font_add", Data.Strings); // Allow font_add. -var obj_time_Create_0 = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals); +var obj_time_Create_0 = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Create, Data); obj_time_Create_0.AppendGML(@" // NOTE: According to GMS documentation the font ranges are ignored with ttf fonts, and that seems to be indeed the case font_add(""wingding.ttf"", 12, false, false, 32, 127); diff --git a/UndertaleModTool/Scripts/Builtin Scripts/TheWholeWorldRevolving.csx b/UndertaleModTool/Scripts/Builtin Scripts/TheWholeWorldRevolving.csx index 0aaa30a07..a261dd8e8 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/TheWholeWorldRevolving.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/TheWholeWorldRevolving.csx @@ -17,7 +17,7 @@ if (!Data.IsGameMaker2()) return; } -var gml_Object_obj_time_Step_1 = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Step, EventSubtypeStep.BeginStep, Data.Strings, Data.Code, Data.CodeLocals); +var gml_Object_obj_time_Step_1 = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.Step, EventSubtypeStep.BeginStep, Data); gml_Object_obj_time_Step_1.AppendGML(@" __view_set(4, 0, ((__view_get(4, 0) + (sin((global.time / 15)) / 2)) + 1)); // 4 -> e__VW.Angle diff --git a/UndertaleModTool/Scripts/Builtin Scripts/UndertaleDialogSimulator.csx b/UndertaleModTool/Scripts/Builtin Scripts/UndertaleDialogSimulator.csx index b03e186da..56a6d021c 100644 --- a/UndertaleModTool/Scripts/Builtin Scripts/UndertaleDialogSimulator.csx +++ b/UndertaleModTool/Scripts/Builtin Scripts/UndertaleDialogSimulator.csx @@ -90,12 +90,14 @@ AppendGML("gml_Object_obj_screen_Other_4", @"if (room == room_dialoguer) window_set_caption(""UNDERTALE Dialog Simulator"") "); -ReplaceTextInGML("gml_Object_obj_time_Step_1", "room_goto_next()", "room_goto(room_dialoguer)", true, false); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); +ReplaceTextInGML("gml_Object_obj_time_Step_1", "room_goto_next()", "room_goto(room_dialoguer)", true, false, globalDecompileContext, decompilerSettings); ImportGMLStringEx("gml_Script_scr_msgup", @" if (room != room_dialoguer) { " -+ GetDecompiledText("gml_Script_scr_msgup") ++ GetDecompiledText("gml_Script_scr_msgup", globalDecompileContext, decompilerSettings) + @" } else diff --git a/UndertaleModTool/Scripts/Community Scripts/BetterVaporiserForUT.csx b/UndertaleModTool/Scripts/Community Scripts/BetterVaporiserForUT.csx index fcf26bf96..6fc0440e4 100644 --- a/UndertaleModTool/Scripts/Community Scripts/BetterVaporiserForUT.csx +++ b/UndertaleModTool/Scripts/Community Scripts/BetterVaporiserForUT.csx @@ -155,7 +155,7 @@ if (obj_whtpxlgrav == null) return; } -obj_whtpxlgrav.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_whtpxlgrav.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" image_speed = 0 delay = 0 ", Data); @@ -168,7 +168,7 @@ delay = 0 // // You can also change/copy it to exclude other colours if you need to -obj_whtpxlgrav.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_whtpxlgrav.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data).ReplaceGML(@" if (image_blend == make_color_rgb(0, 0, 0)) instance_destroy() if (delay > 0) @@ -185,32 +185,32 @@ else var obj_vaporized = Data.GameObjects.ByName("obj_vaporized"); -obj_vaporized.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_vaporized.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" sprite_index = global.monstersprite snd_play(snd_vaporized) ", Data); -obj_vaporized.EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(bepisCode, Data); +obj_vaporized.EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data).ReplaceGML(bepisCode, Data); -obj_vaporized.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_vaporized.EventHandlerFor(EventType.Step, EventSubtypeStep.Step, Data).ReplaceGML(@" ", Data); -obj_vaporized.EventHandlerFor(EventType.Alarm, (uint)0u, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_vaporized.EventHandlerFor(EventType.Alarm, (uint)0u, Data).ReplaceGML(@" ", Data); var obj_vaporized_new = Data.GameObjects.ByName("obj_vaporized_new"); -obj_vaporized_new.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_vaporized_new.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" snd_play(snd_vaporized) ", Data); -obj_vaporized_new.EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(bepisCode, Data); +obj_vaporized_new.EventHandlerFor(EventType.Draw, EventSubtypeDraw.Draw, Data).ReplaceGML(bepisCode, Data); var obj_vaporized_old = Data.GameObjects.ByName("obj_vaporized_old"); -obj_vaporized_old.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_vaporized_old.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" sprite_index = global.monstersprite line = 0 finished = 0 @@ -220,7 +220,7 @@ snd_play(snd_vaporized) action_set_alarm(2, 0) ", Data); -obj_vaporized_old.EventHandlerFor(EventType.Alarm, (uint)0u, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(bepisCode, Data); +obj_vaporized_old.EventHandlerFor(EventType.Alarm, (uint)0u, Data).ReplaceGML(bepisCode, Data); ChangeSelection(obj_whtpxlgrav); diff --git a/UndertaleModTool/Scripts/Community Scripts/BorderEnablerv1_11.csx b/UndertaleModTool/Scripts/Community Scripts/BorderEnablerv1_11.csx index d8cc70f21..088893d0f 100644 --- a/UndertaleModTool/Scripts/Community Scripts/BorderEnablerv1_11.csx +++ b/UndertaleModTool/Scripts/Community Scripts/BorderEnablerv1_11.csx @@ -23,26 +23,31 @@ ScriptMessage(@"Enables border for v1.11 by Jockeholm, based off krzys_h's original script. Converted to be more efficient by Grossley."); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + // Show the border settings on PC. ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"if (global.osflavor <= 2) { - menu_max = 2 + menu_max = 2; if (obj_time.j_ch == 0) - menu_max = 1 -}", "", true); -ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"if (global.osflavor >= 4)", "if (global.osflavor >= 1)", true); + { + menu_max = 1; + } +}", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_settingsmenu_Draw_0", @"if (global.osflavor >= 4)", "if (global.osflavor >= 1)", true, false, globalDecompileContext, decompilerSettings); -ReplaceTextInGML("gml_Script_scr_draw_background_ps4", @"if (os_type == os_ps4 || os_type == os_switch_beta)", "if (os_type == os_ps4 || os_type == os_switch_beta || os_type == os_windows)", true); +ReplaceTextInGML("gml_Script_scr_draw_background_ps4", @"if (os_type == os_ps4 || os_type == os_switch_beta)", "if (os_type == os_ps4 || os_type == os_switch_beta || os_type == os_windows)", true, false, globalDecompileContext, decompilerSettings); -ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"if (os_type == os_ps4 || os_type == os_switch_beta)", "if (os_type == os_ps4 || os_type == os_switch_beta || os_type == os_windows)", true); +ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"if (os_type == os_ps4 || os_type == os_switch_beta)", "if (os_type == os_ps4 || os_type == os_switch_beta || os_type == os_windows)", true, false, globalDecompileContext, decompilerSettings); -ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"if (os_type == os_switch_beta)", "if (os_type == os_switch_beta || os_type == os_windows)", true); +ReplaceTextInGML("gml_Script_scr_draw_screen_border", @"if (os_type == os_switch_beta)", "if (os_type == os_switch_beta || os_type == os_windows)", true, false, globalDecompileContext, decompilerSettings); // Enable the dog border unlock -ReplaceTextInGML("gml_Object_obj_rarependant_Step_1", @"if (global.osflavor == 5)", "if (global.osflavor >= 1)", true); +ReplaceTextInGML("gml_Object_obj_rarependant_Step_1", @"if (global.osflavor == 5)", "if (global.osflavor >= 1)", true, false, globalDecompileContext, decompilerSettings); // Load borders -ReplaceTextInGML("gml_Object_obj_time_Step_1", @"scr_enable_screen_border(global.osflavor >= 4)", "scr_enable_screen_border(global.osflavor >= 1)", true); +ReplaceTextInGML("gml_Object_obj_time_Step_1", @"scr_enable_screen_border(global.osflavor >= 4)", "scr_enable_screen_border(global.osflavor >= 1)", true, false, globalDecompileContext, decompilerSettings); // Resize the game window to account for the borders //Data.GeneralInfo.DefaultWindowWidth = 1920; // This setup prevents the game from starting?? @@ -55,8 +60,8 @@ ReplaceTextInGML("gml_Object_obj_time_Draw_77", @"else { global.window_xofs = 0 global.window_yofs = 0 -}", "", true); -ReplaceTextInGML("gml_Object_obj_time_Draw_77", @"if (global.osflavor >= 3)", "if (true)", true); -ReplaceTextInGML("gml_Object_obj_time_Create_0", @"if (global.osflavor >= 3)", "if (global.osflavor >= 1)", true); -ReplaceTextInGML("gml_Object_obj_time_Draw_76", @"else if (global.osflavor >= 4)", "else if (global.osflavor >= 1)", true); +}", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Draw_77", @"if (global.osflavor >= 3)", "if (true)", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Create_0", @"if (global.osflavor >= 3)", "if (global.osflavor >= 1)", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Object_obj_time_Draw_76", @"else if (global.osflavor >= 4)", "else if (global.osflavor >= 1)", true, false, globalDecompileContext, decompilerSettings); ScriptMessage("Finished."); diff --git a/UndertaleModTool/Scripts/Community Scripts/ChangeHomeBattlegroup.csx b/UndertaleModTool/Scripts/Community Scripts/ChangeHomeBattlegroup.csx index b04f3eaf5..60bb8ae56 100644 --- a/UndertaleModTool/Scripts/Community Scripts/ChangeHomeBattlegroup.csx +++ b/UndertaleModTool/Scripts/Community Scripts/ChangeHomeBattlegroup.csx @@ -26,6 +26,9 @@ if (code == null) return; } +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + bool case_sensitive = true; bool multiline = false; bool isRegex = true; @@ -38,7 +41,7 @@ if (!ScriptQuestion("Change the battlegroup in \"gml_Object_obj_mainchara_KeyPre } if (GetPreviousValue() == "None") { - String replacement = SimpleTextInput("Enter new battle group value for when you press \"HOME\"", "New battle group value", GetDecompiledText("gml_Object_obj_mainchara_KeyPress_36"), true); + String replacement = SimpleTextInput("Enter new battle group value for when you press \"HOME\"", "New battle group value", GetDecompiledText("gml_Object_obj_mainchara_KeyPress_36", globalDecompileContext, decompilerSettings), true); ImportGMLString("gml_Object_obj_mainchara_KeyPress_36", replacement); ScriptMessage("Completed"); return; @@ -47,7 +50,7 @@ if (GetPreviousValue() == "None") //Group 1: "global.battlegroup = (" //Group 2: Original value of battlegroup //Group 3: " + nnn)" -String keyword = @"(global\.battlegroup = \()(\d+)( \+ nnn\))"; +const string keyword = @"(global\.battlegroup ?= ?\(?)(\d+)( ?\+ ?nnn\)?);?"; bool success = false; int number; while (!success) @@ -57,16 +60,15 @@ while (!success) //Substitute in group 1, the new value, and group 3 //And the groups are specified using curly brackets to prevent the regex from misinterpreting the request. -ReplaceTextInGML(code.Name.Content, keyword, ("${1}" + number.ToString() + "${3}"), case_sensitive, isRegex); +ReplaceTextInGML(code.Name.Content, keyword, ("${1}" + number.ToString() + "${3}"), case_sensitive, isRegex, globalDecompileContext, decompilerSettings); ScriptMessage("Completed"); string GetPreviousValue() { var line_number = 1; - string decompiled_text = GetDecompiledText("gml_Object_obj_mainchara_KeyPress_36"); + string decompiled_text = GetDecompiledText("gml_Object_obj_mainchara_KeyPress_36", globalDecompileContext, decompilerSettings); string results = ""; - string keyword = @"(global\.battlegroup = \()(\d+)( \+ nnn\))"; string[] splitted = decompiled_text.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); bool exists = false; foreach (string lineInt in splitted) diff --git a/UndertaleModTool/Scripts/Community Scripts/DisableDogcheck.csx b/UndertaleModTool/Scripts/Community Scripts/DisableDogcheck.csx index f8e8787b4..d6b004e08 100644 --- a/UndertaleModTool/Scripts/Community Scripts/DisableDogcheck.csx +++ b/UndertaleModTool/Scripts/Community Scripts/DisableDogcheck.csx @@ -18,16 +18,19 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter ScriptMessage(@"This script disables Dogcheck for all Undertale and Deltarune versions."); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + // Removes the invoking of the dog check script and the actual check itself from "gml_Script_scr_load". var scr_load = "gml_Script_scr_load"; if (Data.GeneralInfo.Name.Content == "NXTALE" || Data.GeneralInfo.Name.Content.StartsWith("UNDERTALE")) { - ReplaceTextInGML(scr_load, @"scr_dogcheck() -if (dogcheck == 1)", ""); + ReplaceTextInGML(scr_load, @"scr_dogcheck(); +if (dogcheck == 1)", "", false, false, globalDecompileContext, decompilerSettings); } else if (Data.GeneralInfo.DisplayName.Content == "SURVEY_PROGRAM" || Data.GeneralInfo.DisplayName.Content == "DELTARUNE Chapter 1") { - ReplaceTextInGML(scr_load, @"scr_dogcheck()", "0"); + ReplaceTextInGML(scr_load, @"scr_dogcheck()", "0", false, false, globalDecompileContext, decompilerSettings); } else { diff --git a/UndertaleModTool/Scripts/Community Scripts/FancyRoomSelect.csx b/UndertaleModTool/Scripts/Community Scripts/FancyRoomSelect.csx index f6b1418f6..a404f4c70 100644 --- a/UndertaleModTool/Scripts/Community Scripts/FancyRoomSelect.csx +++ b/UndertaleModTool/Scripts/Community Scripts/FancyRoomSelect.csx @@ -14,7 +14,7 @@ if(obj == null) { if(Data.GeneralInfo.Name.Content.StartsWith("UNDERTALE")) { // Remove existing F3 handler to avoid accidentally // creating system_information_962 - Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, (uint)114, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML("", Data); + Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, (uint)114, Data).ReplaceGML("", Data); } bool gms2 = Data.IsGameMaker2(); @@ -93,7 +93,7 @@ else { -obj.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" if (instance_number(object_index) > 1) { instance_destroy(id, false) @@ -135,7 +135,7 @@ xx = 0 yy = 0 ", Data); -obj.EventHandlerFor(EventType.Step, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Step, Data).ReplaceGML(@" if selector_active { global.interact = 1 @@ -286,7 +286,7 @@ if selector_active } ", Data); -obj.EventHandlerFor(EventType.Draw, (uint)64, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Draw, (uint)64, Data).ReplaceGML(@" if selector_active { if sprite_exists(ss) @@ -358,23 +358,23 @@ if selector_active } ", Data); -obj.EventHandlerFor(EventType.Destroy, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Destroy, Data).ReplaceGML(@" ds_list_destroy(suggestions) sprite_delete(ss) font_delete(fnt) ", Data); -obj.EventHandlerFor(EventType.Other, (uint)5, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Other, (uint)5, Data).ReplaceGML(@" if selector_active event_user(1) ", Data); -obj.EventHandlerFor(EventType.KeyPress, (uint)114, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.KeyPress, (uint)114, Data).ReplaceGML(@" if (!selector_active) event_user(0) ", Data); -obj.EventHandlerFor(EventType.Other, (uint)10, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Other, (uint)10, Data).ReplaceGML(@" selector_active = 1 if (!selector_initialized) fnt = font_add(""8bitoperator_jve.ttf"", 24, 0, 0, 32, 127) @@ -397,7 +397,7 @@ exiting = 0 update = 1 ", Data); -obj.EventHandlerFor(EventType.Other, (uint)11, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj.EventHandlerFor(EventType.Other, (uint)11, Data).ReplaceGML(@" display_set_gui_size(-1, -1) instance_activate_all() keyboard_clear(vk_f3) diff --git a/UndertaleModTool/Scripts/Community Scripts/FixAlphysLabCrashAndroid.csx b/UndertaleModTool/Scripts/Community Scripts/FixAlphysLabCrashAndroid.csx index 4883e8f4b..00f1c0763 100644 --- a/UndertaleModTool/Scripts/Community Scripts/FixAlphysLabCrashAndroid.csx +++ b/UndertaleModTool/Scripts/Community Scripts/FixAlphysLabCrashAndroid.csx @@ -15,6 +15,10 @@ if (Data.GeneralInfo?.DisplayName?.Content.ToLower() != "undertale") return; } } -ReplaceTextInGML("gml_Object_obj_labdarkness_Create_0", "glowamt = 0.5\nif (global.plot > 125)\n instance_destroy()\nif (scr_murderlv() >= 12)\n instance_destroy()", ""); -ReplaceTextInGML("gml_Object_obj_labdarkness_Draw_0", "x1 = (obj_mainchara.x - 10)\nx2 = (obj_mainchara.x + 30)\ny1 = (obj_mainchara.y - 5)\ny2 = (obj_mainchara.y + 35)\ndraw_sprite_ext(spr_darkhalo_big, 0, x1, y1, 1, 1, 0, c_white, glowamt)\ndraw_set_alpha(1)", ""); -ReplaceTextInGML("gml_Object_obj_labcamera_Create_0", "if (global.osflavor == 2)", "if (global.osflavor == 4)"); + +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + +Data.Code.ByName("gml_Object_obj_labdarkness_Create_0").ReplaceGML("", Data); +Data.Code.ByName("gml_Object_obj_labdarkness_Draw_0").ReplaceGML("", Data); +ReplaceTextInGML("gml_Object_obj_labcamera_Create_0", "if (global.osflavor == 2)", "if (global.osflavor == 4)", false, false, globalDecompileContext, decompilerSettings); diff --git a/UndertaleModTool/Scripts/Community Scripts/ReloadDeltaruneJSON.csx b/UndertaleModTool/Scripts/Community Scripts/ReloadDeltaruneJSON.csx index 959548d3b..ecfce232b 100644 --- a/UndertaleModTool/Scripts/Community Scripts/ReloadDeltaruneJSON.csx +++ b/UndertaleModTool/Scripts/Community Scripts/ReloadDeltaruneJSON.csx @@ -12,7 +12,7 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter } ScriptMessage("Press F12 to reload the current JSON"); -var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f12, Data.Strings, Data.Code, Data.CodeLocals); +var code = Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f12, Data); code.ReplaceGML(@" scr_84_lang_load() ", Data); diff --git a/UndertaleModTool/Scripts/Community Scripts/SafeBlaster.csx b/UndertaleModTool/Scripts/Community Scripts/SafeBlaster.csx index 7452511b0..9fdc0e0a4 100644 --- a/UndertaleModTool/Scripts/Community Scripts/SafeBlaster.csx +++ b/UndertaleModTool/Scripts/Community Scripts/SafeBlaster.csx @@ -18,7 +18,7 @@ if (obj_safeblaster == null) Data.GameObjects.Add(obj_safeblaster); } -obj_safeblaster.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_safeblaster.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" con = 0 idealx = 200 idealy = 200 @@ -44,7 +44,7 @@ beam_up_sfx = caster_load(""music/sfx/sfx_segapower.ogg"") ", Data); -obj_safeblaster.EventHandlerFor(EventType.Draw, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_safeblaster.EventHandlerFor(EventType.Draw, Data).ReplaceGML(@" draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha) if(con == 0) { @@ -199,10 +199,10 @@ if (con == 7) ", Data); -obj_safeblaster.EventHandlerFor(EventType.Alarm, (uint)4, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML("con += 1", Data); +obj_safeblaster.EventHandlerFor(EventType.Alarm, (uint)4, Data).ReplaceGML("con += 1", Data); // Removes unneeded caster_free calls from earlier versions -obj_safeblaster.EventHandlerFor(EventType.Destroy, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML("", Data); +obj_safeblaster.EventHandlerFor(EventType.Destroy, Data).ReplaceGML("", Data); // Generator @@ -217,14 +217,15 @@ if (obj_safebl_gen == null) Data.GameObjects.Add(obj_safebl_gen); } -obj_safebl_gen.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +obj_safebl_gen.EventHandlerFor(EventType.Create, Data).ReplaceGML(@" type = 0 num = 0 ", Data); var obj_gasterbl_gen = Data.GameObjects.ByName("obj_gasterbl_gen"); -var decomp = Decompiler.Decompile(obj_gasterbl_gen.EventHandlerFor(EventType.Alarm, (uint)0, Data.Strings, Data.Code, Data.CodeLocals), new GlobalDecompileContext(Data, false)); -obj_safebl_gen.EventHandlerFor(EventType.Alarm, (uint)0, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(decomp.Replace("obj_gasterblaster", "obj_safeblaster"), Data); +UndertaleCode codeToDecompile = obj_gasterbl_gen.EventHandlerFor(EventType.Alarm, (uint)0, Data); +string decomp = GetDecompiledText(codeToDecompile, null, new Underanalyzer.Decompiler.DecompileSettings()); +obj_safebl_gen.EventHandlerFor(EventType.Alarm, (uint)0, Data).ReplaceGML(decomp.Replace("obj_gasterblaster", "obj_safeblaster"), Data); ScriptMessage("Done! Use obj_safeblaster & obj_safebl_gen where you would normally use obj_gasterblaster & obj_safebl_gen.\nYou can set the amount of damage an individual blaster would do by setting the 'dmg' variable on the blaster instance (defaults to 9)"); diff --git a/UndertaleModTool/Scripts/Community Scripts/SimplifyBattlegroupScript.csx b/UndertaleModTool/Scripts/Community Scripts/SimplifyBattlegroupScript.csx index 02a6133aa..cd58b2435 100644 --- a/UndertaleModTool/Scripts/Community Scripts/SimplifyBattlegroupScript.csx +++ b/UndertaleModTool/Scripts/Community Scripts/SimplifyBattlegroupScript.csx @@ -11,14 +11,17 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter return; } -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.monstertype[0] = 47", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.monstertype[1] = 0", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.monstertype[2] = 0", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.batmusic = caster_load(""music/battle1.ogg"")", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.actfirst = 0", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.extraintro = 0", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.battlelv = 0", "", true, false); -ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.msc = 0", "", true, false); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.monstertype[0] = 47", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.monstertype[1] = 0", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.monstertype[2] = 0", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.batmusic = caster_load(""music/battle1.ogg"")", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.actfirst = 0", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.extraintro = 0", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.battlelv = 0", "", true, false, globalDecompileContext, decompilerSettings); +ReplaceTextInGML("gml_Script_scr_battlegroup", @"global.msc = 0", "", true, false, globalDecompileContext, decompilerSettings); string prepend = @"global.monstertype[0] = 47 global.monstertype[1] = 0 global.monstertype[2] = 0 @@ -28,4 +31,4 @@ global.extraintro = 0 global.battlelv = 0 global.msc = 0 "; -ImportGMLString("gml_Script_scr_battlegroup", prepend + GetDecompiledText("gml_Script_scr_battlegroup")); +ImportGMLString("gml_Script_scr_battlegroup", prepend + GetDecompiledText("gml_Script_scr_battlegroup", globalDecompileContext, decompilerSettings)); diff --git a/UndertaleModTool/Scripts/Community Scripts/TTFFonts_Deltarune.csx b/UndertaleModTool/Scripts/Community Scripts/TTFFonts_Deltarune.csx index 4bc9e4170..f5651abf0 100644 --- a/UndertaleModTool/Scripts/Community Scripts/TTFFonts_Deltarune.csx +++ b/UndertaleModTool/Scripts/Community Scripts/TTFFonts_Deltarune.csx @@ -20,7 +20,7 @@ Data.Fonts.Clear(); var obj_time = Data.GameObjects.ByName("obj_time"); Data.Functions.EnsureDefined("font_add", Data.Strings); -obj_time.EventHandlerFor(EventType.Create, Data.Strings, Data.Code, Data.CodeLocals).AppendGML(@" +obj_time.EventHandlerFor(EventType.Create, Data).AppendGML(@" // NOTE: According to GMS documentation the font ranges are ignored with ttf fonts, and that seems to be indeed the case font_add(""wingding.ttf"", 8, false, false, 32, 127); font_add(""8bitoperator_jve.ttf"", 10, false, false, 32, 127); diff --git a/UndertaleModTool/Scripts/Community Scripts/UndertaleRunButton.csx b/UndertaleModTool/Scripts/Community Scripts/UndertaleRunButton.csx index 2ea0a7985..a502b4216 100644 --- a/UndertaleModTool/Scripts/Community Scripts/UndertaleRunButton.csx +++ b/UndertaleModTool/Scripts/Community Scripts/UndertaleRunButton.csx @@ -18,7 +18,10 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter return; } +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); + ScriptMessage("Add a run button to Undertale (Backspace)"); -ReplaceTextInGML(("gml_Object_obj_mainchara_Step_0"), @"(global.debug == true)", "(true)", true); +ReplaceTextInGML("gml_Object_obj_mainchara_Step_0", @"(global.debug == 1)", "(true)", true, false, globalDecompileContext, decompilerSettings); ScriptMessage("Run button in Undertale enabled!"); \ No newline at end of file diff --git a/UndertaleModTool/Scripts/Community Scripts/UndertaleWithJSONs.csx b/UndertaleModTool/Scripts/Community Scripts/UndertaleWithJSONs.csx index 216b1c34d..b4698ca7d 100644 --- a/UndertaleModTool/Scripts/Community Scripts/UndertaleWithJSONs.csx +++ b/UndertaleModTool/Scripts/Community Scripts/UndertaleWithJSONs.csx @@ -3,8 +3,11 @@ using System; using System.IO; using System.Threading; using System.Threading.Tasks; +using Newtonsoft.Json; +using Underanalyzer.Decompiler; +using Underanalyzer.Decompiler.AST; -//Made by Grossley with the help of Colinator +// Made by Grossley with the help of colinator27 int maxCount = 1; @@ -21,30 +24,28 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter return; } - -string langFolder = GetFolder(FilePath) + "lang" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); - +string langFolder = Path.Combine(Path.GetDirectoryName(FilePath), "lang"); if (Directory.Exists(langFolder)) { - ScriptError("The lang files already exist.", "Error"); + ScriptError("The lang folder already exists.", "Error"); return; } Directory.CreateDirectory(langFolder); +GlobalDecompileContext globalDecompileContext = new(Data); +IDecompileSettings decompilerSettings = new DecompileSettings(); + ScriptMessage("JSONifies Undertale versions 1.05+"); ScriptMessage(@"Switch languages using F11. Reload text for curent language from JSON on command using F12. "); -//this is one of the rare cases when it's better without "ProgressUpdater()" -await Task.Run(() => { - maxCount = 2; - SetProgressBar(null, "Dumping the language files", 0, maxCount); - DumpJSON("en"); - DumpJSON("ja"); + +// this is one of the rare cases when it's better without "ProgressUpdater()" +await Task.Run(() => +{ maxCount = 2; - SetProgressBar(null, "Making the JSONs", 0, maxCount); + SetProgressBar(null, "Decompiling and making the JSONs", 0, maxCount); MakeJSON("en"); MakeJSON("ja"); maxCount = 6; @@ -57,10 +58,6 @@ void IncProgressLocal() IncrementProgress(); } -string GetFolder(string path) { - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ImportGMLString("gml_Script_scr_change_language", @""); @@ -90,39 +87,39 @@ else //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f11, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" -scr_change_language() +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f11, Data).ReplaceGML(@" +scr_change_language(); ", Data); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f12, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML(@" +Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f12, Data).ReplaceGML(@" if (global.language == ""en"") - textdata_en() + textdata_en(); else - textdata_ja() + textdata_ja(); ", Data); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ImportGMLString("gml_Script_scr_change_language", @" -//Read the language from the INI file +// Read the language from the INI file if (global.language == ""en"") - global.language = ""ja"" + global.language = ""ja""; else - global.language = ""en"" -ossafe_ini_open(""config.ini"") -ini_write_string(""General"", ""lang"", global.language) -ossafe_ini_close() + global.language = ""en""; +ossafe_ini_open(""config.ini""); +ini_write_string(""General"", ""lang"", global.language); +ossafe_ini_close(); "); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ImportGMLString("gml_Script_scr_84_load_map_json", @" -var filename = argument0 -var file_buffer = buffer_load(filename) -var json = buffer_read(file_buffer, buffer_string) -buffer_delete(file_buffer) +var filename = argument0; +var file_buffer = buffer_load(filename); +var json = buffer_read(file_buffer, buffer_string); +buffer_delete(file_buffer); return json_decode(json); "); @@ -131,88 +128,26 @@ ScriptMessage("Complete."); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -void DumpJSON(string language) +void MakeJSON(string language) { - var lang_file = Data.Code.ByName("gml_Script_textdata_" + language); - try - { - File.WriteAllText(Path.Combine(langFolder, "lang_" + language + ".json"), (lang_file != null ? Decompiler.Decompile(lang_file, DECOMPILE_CONTEXT.Value) : "")); - } - catch (Exception e) + UndertaleCode code = Data.Code.ByName("gml_Script_textdata_" + language); + Dictionary contents = new(); + + var context = new DecompileContext(globalDecompileContext, code, decompilerSettings); + BlockNode rootBlock = (BlockNode)context.DecompileToAST(); + foreach (IStatementNode stmt in rootBlock.Children) { - throw new ScriptException("gml_Script_textdata_" + language + " has an error that prevents creation of JSONs."); + if (stmt is FunctionCallNode { Function.Name.Content: "ds_map_add" } funcCall) + { + StringNode keyString = (StringNode)funcCall.Arguments[1]; + StringNode valueString = (StringNode)funcCall.Arguments[2]; + contents[keyString.Value.Content] = valueString.Value.Content; + } } + string outputPath = Path.Combine(langFolder, "lang_" + language + ".json"); + File.WriteAllText(outputPath, JsonConvert.SerializeObject(contents, Formatting.Indented)); + IncProgressLocal(); UpdateProgressValue(GetProgress()); } - -//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -void MakeJSON(string language) -{ - if (Data.GeneralInfo.Major < 2) // Undertale PC (GMS1) - { - string input = File.ReadAllText(Path.Combine(langFolder, "lang_" + language + ".json")); - - string pattern = ".*ds_map_create\\(\\)"; - string replacement = "{"; - input = Regex.Replace(input, pattern, replacement); - - pattern = @"\\"; - replacement = @"\\"; - input = Regex.Replace(input, pattern, replacement); - - pattern = @""" \+ '""' \+ """; - replacement = @"\"""; - input = Regex.Replace(input, pattern, replacement); - - pattern = @"'""' \+ """; - replacement = @"""\"""; - input = Regex.Replace(input, pattern, replacement); - - pattern = @""" \+ '""'"; - replacement = @"\"""""; - input = Regex.Replace(input, pattern, replacement); - - pattern = @"'""'"; - replacement = @"\"""; - input = Regex.Replace(input, pattern, replacement); - - input = input.Replace(@"\"",", @"\"""","); - - pattern = @"ds_map_add\(global\.text_data_.., ("".*""), ("".*"")\)"; - replacement = @" $1: $2,"; - input = Regex.Replace(input, pattern, replacement); - - pattern = @",\n\Z"; - replacement = "\n}"; - input = Regex.Replace(input, pattern, replacement); - - File.WriteAllText(Path.Combine(langFolder, "lang_" + language + ".json"), input); - - IncProgressLocal(); - UpdateProgressValue(GetProgress()); - } - else // Undertale Switch/Probs other consoles (GMS2) - { - string input = File.ReadAllText(Path.Combine(langFolder, "lang_" + language + ".json")); - - string pattern = ".*ds_map_create\\(\\)"; - string replacement = "{"; - input = Regex.Replace(input, pattern, replacement); - - pattern = @"ds_map_add\(global\.text_data_.., ("".*""), ("".*"")\)"; - replacement = @" $1: $2,"; - input = Regex.Replace(input, pattern, replacement); - - pattern = @",\n\Z"; - replacement = "\n}"; - input = Regex.Replace(input, pattern, replacement); - - File.WriteAllText(Path.Combine(langFolder, "lang_" + language + ".json"), input); - - IncProgressLocal(); - UpdateProgressValue(GetProgress()); - } -} \ No newline at end of file diff --git a/UndertaleModTool/Scripts/Community Scripts/VariableFixer.csx b/UndertaleModTool/Scripts/Community Scripts/VariableFixer.csx index 40a6b810d..c5c85fe35 100644 --- a/UndertaleModTool/Scripts/Community Scripts/VariableFixer.csx +++ b/UndertaleModTool/Scripts/Community Scripts/VariableFixer.csx @@ -12,7 +12,7 @@ No "".gamelog.txt"" is produced The "".gamelog.txt"" is produced but appears to fail after Steam initialization. The game window appears but is frozen indefinitely "); -Data.GeneralInfo.DisableDebugger = true; +Data.GeneralInfo.IsDebuggerDisabled = true; int globalNum = 0; int selfNum = 0; foreach(var vari in Data.Variables) diff --git a/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopy.csx b/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopy.csx index ce25ca84d..035a08c0a 100644 --- a/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopy.csx +++ b/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopy.csx @@ -29,17 +29,14 @@ if (DonorDataPath == null) throw new ScriptException("The donor data path was not set."); bool compContextState = CompileContext.GMS2_3; -bool decompContextState = DecompileContext.GMS2_3; using (var stream = new FileStream(DonorDataPath, FileMode.Open, FileAccess.Read)) DonorData = UndertaleIO.Read(stream, warning => ScriptMessage("A warning occured while trying to load " + DonorDataPath + ":\n" + warning)); var DonorDataEmbeddedTexturesCount = DonorData.EmbeddedTextures.Count; DonorData.BuiltinList = new BuiltinList(DonorData); -AssetTypeResolver.InitializeTypes(DonorData); - +GameSpecificResolver.Initialize(DonorData); CompileContext.GMS2_3 = compContextState; -DecompileContext.GMS2_3 = decompContextState; bool donorIs2_3 = DonorData.IsVersionAtLeast(2, 3); @@ -134,17 +131,18 @@ for (var j = 0; j < splitStringsList.Count; j++) nativeACT.ActionName = Data.Strings.MakeString(donorACT.ActionName.Content); if (donorACT.CodeId?.Name?.Content != null) { - ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(DonorData, false)); + GlobalDecompileContext globalDecompileContext = new(DonorData); string codeToCopy = ""; try { CompileContext.GMS2_3 = donorIs2_3; - DecompileContext.GMS2_3 = donorIs2_3; - codeToCopy = (donorACT.CodeId != null ? Decompiler.Decompile(donorACT.CodeId, DECOMPILE_CONTEXT.Value) : ""); + codeToCopy = (donorACT.CodeId != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, donorACT.CodeId, Data.ToolInfo.DecompilerSettings) + .DecompileToString() + : ""); CompileContext.GMS2_3 = compContextState; - DecompileContext.GMS2_3 = decompContextState; } catch (Exception e) { @@ -161,10 +159,9 @@ for (var j = 0; j < splitStringsList.Count; j++) nativeACT.CodeId = Data.Code.ByName(donorACT.CodeId?.Name?.Content); nativeACT.CodeId.LocalsCount = donorACT.CodeId.LocalsCount; nativeACT.CodeId.ArgumentsCount = donorACT.CodeId.ArgumentsCount; - nativeACT.CodeId.WeirdLocalsFlag = donorACT.CodeId.WeirdLocalsFlag; nativeACT.CodeId.Offset = donorACT.CodeId.Offset; nativeACT.CodeId.WeirdLocalFlag = donorACT.CodeId.WeirdLocalFlag; - if (Data?.GeneralInfo.BytecodeVersion > 14) + if (Data.CodeLocals is not null) { UndertaleCodeLocals nativelocals = Data.CodeLocals.ByName(donorACT.CodeId?.Name?.Content); UndertaleCodeLocals donorlocals = DonorData.CodeLocals.ByName(donorACT.CodeId?.Name?.Content); diff --git a/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopyInternal.csx b/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopyInternal.csx index 8e5e3b51a..c2fcfee1e 100644 --- a/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopyInternal.csx +++ b/UndertaleModTool/Scripts/Resource Repackers/GameObjectCopyInternal.csx @@ -21,8 +21,6 @@ else if (Data?.GeneralInfo?.DisplayName?.Content.ToLower() == "deltarune chapter ScriptError("Error 1: Most likely incompatible with the new Deltarune Chapter 1 & 2 demo, run at your own risk"); } -ScriptMessage("Enter the object(s) to copy"); - int copiedGameObjectsCount = 0; List splitStringsList = GetSplitStringsList("game object"); for (var j = 0; j < splitStringsList.Count; j++) @@ -36,12 +34,14 @@ for (var j = 0; j < splitStringsList.Count; j++) UndertaleGameObject nativeOBJ = new UndertaleGameObject(); nativeOBJ.Name = Data.Strings.MakeString(obj.Name.Content + "_Copy"); Data.GameObjects.Add(nativeOBJ); - nativeOBJ.Sprite = Data.Sprites.ByName(donorOBJ.Sprite.Name.Content); + if (donorOBJ.Sprite != null) + nativeOBJ.Sprite = Data.Sprites.ByName(donorOBJ.Sprite.Name.Content); nativeOBJ.Visible = donorOBJ.Visible; nativeOBJ.Solid = donorOBJ.Solid; nativeOBJ.Depth = donorOBJ.Depth; nativeOBJ.Persistent = donorOBJ.Persistent; - nativeOBJ.ParentId = Data.GameObjects.ByName(donorOBJ.ParentId.Name.Content); + if (donorOBJ.ParentId != null) + nativeOBJ.ParentId = Data.GameObjects.ByName(donorOBJ.ParentId.Name.Content); if (donorOBJ.TextureMaskId != null) nativeOBJ.TextureMaskId = Data.Sprites.ByName(donorOBJ.TextureMaskId.Name.Content); nativeOBJ.UsesPhysics = donorOBJ.UsesPhysics; @@ -87,11 +87,14 @@ for (var j = 0; j < splitStringsList.Count; j++) nativeACT.ActionName = Data.Strings.MakeString(donorACT.ActionName.Content); if (donorACT.CodeId?.Name?.Content != null) { - ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); + GlobalDecompileContext globalDecompileContext = new(Data); string codeToCopy = ""; try { - codeToCopy = (donorACT.CodeId != null ? Decompiler.Decompile(donorACT.CodeId, DECOMPILE_CONTEXT.Value) : ""); + codeToCopy = (donorACT.CodeId != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, donorACT.CodeId, Data.ToolInfo.DecompilerSettings) + .DecompileToString() + : ""); } catch (Exception e) { @@ -109,10 +112,9 @@ for (var j = 0; j < splitStringsList.Count; j++) nativeACT.CodeId = Data.Code.ByName(NewGMLName); nativeACT.CodeId.LocalsCount = donorACT.CodeId.LocalsCount; nativeACT.CodeId.ArgumentsCount = donorACT.CodeId.ArgumentsCount; - nativeACT.CodeId.WeirdLocalsFlag = donorACT.CodeId.WeirdLocalsFlag; nativeACT.CodeId.Offset = donorACT.CodeId.Offset; nativeACT.CodeId.WeirdLocalFlag = donorACT.CodeId.WeirdLocalFlag; - if (Data?.GeneralInfo.BytecodeVersion > 14) + if (Data.CodeLocals is not null) { UndertaleCodeLocals donorlocals = Data.CodeLocals.ByName(donorACT.CodeId?.Name?.Content); UndertaleCodeLocals nativelocals = new UndertaleCodeLocals(); diff --git a/UndertaleModTool/Scripts/Resource Repackers/ImportASM.csx b/UndertaleModTool/Scripts/Resource Repackers/ImportASM.csx index bbe1c107b..eeedaa81f 100644 --- a/UndertaleModTool/Scripts/Resource Repackers/ImportASM.csx +++ b/UndertaleModTool/Scripts/Resource Repackers/ImportASM.csx @@ -38,7 +38,8 @@ SetProgressBar(null, "Files", 0, dirFiles.Length); StartProgressBarUpdater(); SyncBinding("Strings, Code, CodeLocals, Scripts, GlobalInitScripts, GameObjects, Functions, Variables", true); -await Task.Run(() => { +await Task.Run(() => +{ foreach (string file in dirFiles) { ImportASMFile(file, doParse, true, false, stopOnError); diff --git a/UndertaleModTool/Scripts/Resource Repackers/ImportASM_2_3.csx b/UndertaleModTool/Scripts/Resource Repackers/ImportASM_2_3.csx index 1a78c246c..0429b8490 100644 --- a/UndertaleModTool/Scripts/Resource Repackers/ImportASM_2_3.csx +++ b/UndertaleModTool/Scripts/Resource Repackers/ImportASM_2_3.csx @@ -117,7 +117,7 @@ await Task.Run(() => { code.Name = Data.Strings.MakeString(codeName); Data.Code.Add(code); } - if ((Data?.GeneralInfo.BytecodeVersion > 14) && (Data.CodeLocals.ByName(codeName) == null)) + if (Data.CodeLocals is not null && Data.CodeLocals.ByName(codeName) is null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = code.Name; diff --git a/UndertaleModTool/Scripts/Resource Repackers/ImportGML_2_3.csx b/UndertaleModTool/Scripts/Resource Repackers/ImportGML_2_3.csx index cdb4a1761..a7a2ba660 100644 --- a/UndertaleModTool/Scripts/Resource Repackers/ImportGML_2_3.csx +++ b/UndertaleModTool/Scripts/Resource Repackers/ImportGML_2_3.csx @@ -118,7 +118,7 @@ await Task.Run(() => { code.Name = Data.Strings.MakeString(codeName); Data.Code.Add(code); } - if ((Data?.GeneralInfo.BytecodeVersion > 14) && (Data.CodeLocals.ByName(codeName) == null)) + if (Data.CodeLocals is not null && Data.CodeLocals.ByName(codeName) is null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = code.Name; diff --git a/UndertaleModTool/Scripts/Resource Unpackers/DumpSpecificCode.csx b/UndertaleModTool/Scripts/Resource Unpackers/DumpSpecificCode.csx index 4ac66b5e6..61acb7e4b 100644 --- a/UndertaleModTool/Scripts/Resource Unpackers/DumpSpecificCode.csx +++ b/UndertaleModTool/Scripts/Resource Unpackers/DumpSpecificCode.csx @@ -1,4 +1,4 @@ -//Adapted from original script by Grossley +// Adapted from original script by Grossley using System.Text; using System; using System.IO; @@ -14,7 +14,8 @@ if (Data.IsYYC()) return; } -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = Data.ToolInfo.DecompilerSettings; int failed = 0; @@ -97,7 +98,8 @@ for (var j = 0; j < gameObjectCandidates.Count; j++) SetProgressBar(null, "Code Entries", 0, codeToDump.Count); StartProgressBarUpdater(); -await Task.Run(() => { +await Task.Run(() => +{ for (var j = 0; j < codeToDump.Count; j++) { DumpCode(Data.Code.ByName(codeToDump[j])); @@ -113,7 +115,9 @@ void DumpCode(UndertaleCode code) { try { - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { @@ -128,25 +132,8 @@ void DumpCode(UndertaleCode code) } else { - if (!(Directory.Exists(Path.Combine(codeFolder, "Duplicates")))) - { - Directory.CreateDirectory(Path.Combine(codeFolder, "Duplicates")); - } - try - { - path = Path.Combine(codeFolder, "Duplicates", code.Name.Content + ".gml"); - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value).Replace("@@This@@()", "self/*@@This@@()*/") : "")); - } - catch (Exception e) - { - if (!(Directory.Exists(Path.Combine(codeFolder, "Duplicates", "Failed")))) - { - Directory.CreateDirectory(Path.Combine(codeFolder, "Duplicates", "Failed")); - } - path = Path.Combine(codeFolder, "Duplicates", "Failed", code.Name.Content + ".gml"); - File.WriteAllText(path, "/*\nDECOMPILER FAILED!\n\n" + e.ToString() + "\n*/"); - failed += 1; - } + File.WriteAllText(path, "/*\nDECOMPILER FAILED!\n\nFrom DumpSpecificCode script: cannot decompile sub-code entries individually.\n*/"); + failed += 1; } IncrementProgress(); } \ No newline at end of file diff --git a/UndertaleModTool/Scripts/Resource Unpackers/ExportASM.csx b/UndertaleModTool/Scripts/Resource Unpackers/ExportASM.csx index 67f44170a..d25e605bb 100644 --- a/UndertaleModTool/Scripts/Resource Unpackers/ExportASM.csx +++ b/UndertaleModTool/Scripts/Resource Unpackers/ExportASM.csx @@ -7,8 +7,7 @@ using System.Linq; EnsureDataLoaded(); -string codeFolder = GetFolder(FilePath) + "Export_Assembly" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); +string codeFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Export_Assembly"); if (Directory.Exists(codeFolder)) { ScriptError("An assembly export already exists. Please remove it.", "Error"); @@ -30,12 +29,6 @@ HideProgressBar(); ScriptMessage("Export Complete.\n\nLocation: " + codeFolder); -string GetFolder(string path) -{ - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - - async Task DumpCode() { await Task.Run(() => Parallel.ForEach(toDump, DumpCode)); @@ -46,7 +39,7 @@ void DumpCode(UndertaleCode code) string path = Path.Combine(codeFolder, code.Name.Content + ".asm"); try { - File.WriteAllText(path, (code != null ? code.Disassemble(Data.Variables, Data.CodeLocals.For(code)) : "")); + File.WriteAllText(path, (code != null ? code.Disassemble(Data.Variables, Data.CodeLocals?.For(code)) : "")); } catch (Exception e) { diff --git a/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx b/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx index 101992833..1d075b719 100644 --- a/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx +++ b/UndertaleModTool/Scripts/Resource Unpackers/ExportAllCode.csx @@ -4,11 +4,11 @@ using System.IO; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; +using System.Linq; EnsureDataLoaded(); -string codeFolder = GetFolder(FilePath) + "Export_Code" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); +string codeFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Export_Code"); if (Directory.Exists(codeFolder)) { ScriptError("A code export already exists. Please remove it.", "Error"); @@ -17,6 +17,9 @@ if (Directory.Exists(codeFolder)) Directory.CreateDirectory(codeFolder); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = Data.ToolInfo.DecompilerSettings; + bool exportFromCache = false; if (GMLCacheEnabled && Data.GMLCache is not null) exportFromCache = ScriptQuestion("Export from the cache?"); @@ -24,19 +27,14 @@ if (GMLCacheEnabled && Data.GMLCache is not null) List toDump; if (!exportFromCache) { - toDump = new(); - foreach (UndertaleCode code in Data.Code) - { - if (code.ParentEntry != null) - continue; - toDump.Add(code); - } + toDump = Data.Code.Where(c => c.ParentEntry is null) + .ToList(); } bool cacheGenerated = false; if (exportFromCache) { - cacheGenerated = await GenerateGMLCache(DECOMPILE_CONTEXT); + cacheGenerated = await GenerateGMLCache(globalDecompileContext); await StopProgressBarUpdater(); } @@ -49,13 +47,6 @@ await StopProgressBarUpdater(); HideProgressBar(); ScriptMessage("Export Complete.\n\nLocation: " + codeFolder); - -string GetFolder(string path) -{ - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - - async Task DumpCode() { if (cacheGenerated) @@ -64,10 +55,10 @@ async Task DumpCode() if (Data.GMLCacheFailed.Count > 0) { - if (Data.KnownSubFunctions is null) //if we run script before opening any code + if (Data.GlobalFunctions is null) { - SetProgressBar(null, "Building the cache of all sub-functions...", 0, 0); - await Task.Run(() => Decompiler.BuildSubFunctionCache(Data)); + SetProgressBar(null, "Building the cache of all global functions...", 0, 0); + await Task.Run(() => GlobalDecompileContext.BuildGlobalFunctionCache(Data)); SetProgressBar(null, "Code Entries", 0, Data.GMLCache.Count + Data.GMLCacheFailed.Count); } @@ -76,10 +67,10 @@ async Task DumpCode() } else { - if (Data.KnownSubFunctions is null) //if we run script before opening any code + if (Data.GlobalFunctions is null) { - SetProgressBar(null, "Building the cache of all sub-functions...", 0, 0); - await Task.Run(() => Decompiler.BuildSubFunctionCache(Data)); + SetProgressBar(null, "Building the cache of all global functions...", 0, 0); + await Task.Run(() => GlobalDecompileContext.BuildGlobalFunctionCache(Data)); SetProgressBar(null, "Code Entries", 0, toDump.Count); } @@ -94,7 +85,9 @@ void DumpCode(UndertaleCode code) string path = Path.Combine(codeFolder, code.Name.Content + ".gml"); try { - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { diff --git a/UndertaleModTool/Scripts/Technical Scripts/14_To_16.csx b/UndertaleModTool/Scripts/Technical Scripts/14_To_16.csx index 4f0e719ad..01fa7128e 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/14_To_16.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/14_To_16.csx @@ -35,8 +35,7 @@ If they do, you may file an issue on GitHub, but no warranty is given."); // War // Convert variables int id = 0; UndertaleVariable variable; - BuiltinList list = new BuiltinList(); - list.Initialize(Data); + BuiltinList list = new BuiltinList(Data); foreach (var code in Data.Code) { for (int j = 0; j < code.Instructions.Count; j++) @@ -200,7 +199,7 @@ Data.Variables.Insert(2, arguments); // Fix variables -Data.GeneralInfo.DisableDebugger = true; +Data.GeneralInfo.IsDebuggerDisabled = true; Data.MaxLocalVarCount = 1; int globalNum = 0; int selfNum = 0; @@ -244,7 +243,7 @@ foreach (UndertaleGameObject obj in Data.GameObjects) if (Data.Code.ByName("gml_Script_SCR_TEXTTYPE") != null) { Data.Strings.MakeString("script_execute").Content = "script_execute_wrapper"; - string SCR_TEXTTYPE = GetDecompiledText("gml_Script_SCR_TEXTTYPE"); + string SCR_TEXTTYPE = GetDecompiledText("gml_Script_SCR_TEXTTYPE", null, new Underanalyzer.Decompiler.DecompileSettings()); SCR_TEXTTYPE = SCR_TEXTTYPE.Replace("if (", "else if ("); SCR_TEXTTYPE = SCR_TEXTTYPE.Replace("else if (argument0 != 0)", "if (argument0 != 0)"); SCR_TEXTTYPE = SCR_TEXTTYPE.Replace("else if (global.typer == 1)", "if (global.typer == 1)"); diff --git a/UndertaleModTool/Scripts/Technical Scripts/CheckDecompiler.csx b/UndertaleModTool/Scripts/Technical Scripts/CheckDecompiler.csx index 6775032a3..1c43f9311 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/CheckDecompiler.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/CheckDecompiler.csx @@ -1,9 +1,10 @@ -//Made by Grossley ( Grossley#2869 on Discord ) -//Changes: -//Version 01 (November 13th, 2020): Initial release -//Version 02 (April 21st, 2021): Updated for GMS 2.3, general refactor -//Version 03 (April 29th, 2021): Refactored for the profile system, simplified, removed unnecessary components -//Version 04 (October 1st, 2021): Have CheckDecompiler and CheckDecompiler 2.3 use the same (cleaner) code base and combine them. +// Made by Grossley ( Grossley#2869 on Discord ) +// Changes: +// Version 01 (November 13th, 2020): Initial release +// Version 02 (April 21st, 2021): Updated for GMS 2.3, general refactor +// Version 03 (April 29th, 2021): Refactored for the profile system, simplified, removed unnecessary components +// Version 04 (October 1st, 2021): Have CheckDecompiler and CheckDecompiler 2.3 use the same (cleaner) code base and combine them. +// Version 05 (July 18th, 2024): Updated to Underanalyzer decompiler, and some cleanup. using System; using System.IO; @@ -230,12 +231,13 @@ void ExportCode(string old_path, bool IsGML = true) UpdateProgress(); if (Is_GMS_2_3) SetUpLookUpTable(old_path); + GlobalDecompileContext globalDecompileContext = new(Data); for (var i = 0; i < Data.Code.Count; i++) { UndertaleCode code = Data.Code[i]; string path = Path.Combine(old_path, (Is_GMS_2_3 ? i.ToString() : code.Name.Content) + (IsGML ? ".gml" : ".asm")); if (Data.Code.ByName(code.Name.Content).ParentEntry == null) - File.WriteAllText(path, (IsGML ? GetDecompiledText(code.Name.Content) : GetDisassemblyText(code.Name.Content))); + File.WriteAllText(path, (IsGML ? GetDecompiledText(code.Name.Content, globalDecompileContext) : GetDisassemblyText(code.Name.Content))); UpdateProgressBar(null, "Exporting " + (IsGML ? "GML" : "Disassembly") + " Code", progress++, Data.Code.Count); } progress = 0; @@ -244,7 +246,7 @@ void ExportCode(string old_path, bool IsGML = true) string GetSpecialPath(string FolderName) { - return GetFolder(FilePath) + FolderName + Path.DirectorySeparatorChar; + return Path.Combine(Path.GetDirectoryName(FilePath), FolderName); } void UpdateProgress() @@ -252,11 +254,6 @@ void UpdateProgress() UpdateProgressBar(null, "Code Entries", progress++, Data.Code.Count); } -string GetFolder(string path) -{ - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - List GetCodeList(string importFolder) { List CodeList = new List(); diff --git a/UndertaleModTool/Scripts/Technical Scripts/ConvertFrom17to16_for_2.3.csx b/UndertaleModTool/Scripts/Technical Scripts/ConvertFrom17to16_for_2.3.csx index 792917279..42420b99f 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/ConvertFrom17to16_for_2.3.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/ConvertFrom17to16_for_2.3.csx @@ -77,6 +77,8 @@ applying any changes to the game."; Data.FORM.Chunks.Remove("TAGS"); if (Data.FORM.Chunks.ContainsKey("EMBI")) Data.FORM.Chunks.Remove("EMBI"); + if (Data.FORM.FUNC.CodeLocals is null) + Data.FORM.FUNC.CodeLocals = new UndertaleSimpleList(); Data.SetGMS2Version(2); //Data.IsTPAG4ByteAligned = false; for (int i = 0; i < Data.Code.Count; i++) diff --git a/UndertaleModTool/Scripts/Technical Scripts/ExecutionOrder.csx b/UndertaleModTool/Scripts/Technical Scripts/ExecutionOrder.csx index 121d87e15..d2d98591b 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/ExecutionOrder.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/ExecutionOrder.csx @@ -63,7 +63,7 @@ If it is already invisible, select 'NO' to toggle it back on.")) if (profileChoice) { if (ScriptQuestion(@"This will make changes across all of the code! Are you sure you'd like to continue? -Note: this may break GML code if code corrections aren't present.")) +Note: this may break GML code if decompilation is incorrect.")) { ProfileModeOperations(); } @@ -281,10 +281,12 @@ void ProfileModeOperations() //TODO: reimplement ASM solution w/o hacky asm breaking + GlobalDecompileContext globalDecompileContext = new(Data); + Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); foreach (UndertaleCode c in Data.Code) { UpdateProgressBar(null, "Code entries processed", progress++, Data.Code.Count); - string gmlCode = GetDecompiledText(c.Name.Content); + string gmlCode = GetDecompiledText(c.Name.Content, globalDecompileContext, decompilerSettings); gmlCode = gmlCode.Replace("\r\n", "\n"); gmlCode = Regex.Replace(gmlCode, "global\\.interact = (\\d+)", "__scr_setinteract__($1)"); gmlCode = gmlCode.Replace("global.interact", "__scr_getinteract__()"); diff --git a/UndertaleModTool/Scripts/Technical Scripts/ExportAllCode2_3.csx b/UndertaleModTool/Scripts/Technical Scripts/ExportAllCode2_3.csx index 86f536756..f3ca5f3f4 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/ExportAllCode2_3.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/ExportAllCode2_3.csx @@ -18,8 +18,9 @@ else ScriptError("Use the regular ExportAllCode please!", "Incompatible"); } -string codeFolder = GetFolder(FilePath) + "Export_Code" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); +string codeFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Export_Code"); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = Data.ToolInfo.DecompilerSettings; if (Directory.Exists(codeFolder)) { @@ -37,20 +38,15 @@ SetProgressBar(null, "Code Entries", 0, toDump.Count); StartProgressBarUpdater(); int failed = 0; -await Task.Run(DumpCode); +await DumpCode(); await StopProgressBarUpdater(); HideProgressBar(); ScriptMessage("Export Complete.\n\nLocation: " + codeFolder + "\n" + failed.ToString() + " failed"); -string GetFolder(string path) +async Task DumpCode() { - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - -void DumpCode() -{ - //Because 2.3 code names get way too long, we're gonna convert it to an index based system, starting with a lookup system + // Because 2.3 code names get way too long, we're gonna convert it to an index based system, starting with a lookup system string indexPath = Path.Combine(codeFolder, "LookUpTable.txt"); StringBuilder indexText = new("This is zero indexed, index 0 starts at line 2."); for (var i = 0; i < toDump.Count; i++) @@ -58,36 +54,39 @@ void DumpCode() File.WriteAllText(indexPath, indexText.ToString()); - if (Data.KnownSubFunctions is null) // if we run script before opening any code + if (Data.GlobalFunctions is null) // if we run script before opening any code { - SetProgressBar(null, "Building the cache of all sub-functions...", 0, 0); - await Task.Run(() => Decompiler.BuildSubFunctionCache(Data)); + SetProgressBar(null, "Building the cache of all global functions...", 0, 0); + await Task.Run(() => GlobalDecompileContext.BuildGlobalFunctionCache(Data)); SetProgressBar(null, "Code Entries", 0, toDump.Count); } - Parallel.For(0, toDump.Count - 1, (i, _) => + await Task.Run(() => Parallel.For(0, toDump.Count - 1, (i, _) => { UndertaleCode code = toDump[i]; string path = Path.Combine(codeFolder, i.ToString() + ".gml"); try { - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { + string failedFolder = Path.Combine(codeFolder, "Failed"); lock (lockObj) { - if (!(Directory.Exists(codeFolder + "/Failed/"))) + if (!Directory.Exists(failedFolder)) { - Directory.CreateDirectory(codeFolder + "/Failed/"); + Directory.CreateDirectory(failedFolder); } } - path = Path.Combine(codeFolder + "/Failed/", i.ToString() + ".gml"); + path = Path.Combine(failedFolder, i.ToString() + ".gml"); File.WriteAllText(path, "/*\nDECOMPILER FAILED!\n\n" + e.ToString() + "\n*/"); failed += 1; } IncrementProgressParallel(); - }); + })); } diff --git a/UndertaleModTool/Scripts/Technical Scripts/ExportAllCodeSync.csx b/UndertaleModTool/Scripts/Technical Scripts/ExportAllCodeSync.csx index db8edab4e..bba90180d 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/ExportAllCodeSync.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/ExportAllCodeSync.csx @@ -7,16 +7,17 @@ using System.Linq; EnsureDataLoaded(); -string codeFolder = GetFolder(FilePath) + "Export_Code" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); - +string codeFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Export_Code"); if (Directory.Exists(codeFolder)) { - codeFolder = GetFolder(FilePath) + "Export_Code_2" + Path.DirectorySeparatorChar; + codeFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Export_Code_2"); } Directory.CreateDirectory(codeFolder); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = Data.ToolInfo.DecompilerSettings; + List toDump = Data.Code.Where(c => c.ParentEntry is null) .ToList(); @@ -30,52 +31,54 @@ await StopProgressBarUpdater(); HideProgressBar(); ScriptMessage("Export Complete.\n\nLocation: " + codeFolder + " " + failed.ToString() + " failed"); -string GetFolder(string path) -{ - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} - void DumpCode() { - foreach(UndertaleCode code in toDump) + foreach (UndertaleCode code in toDump) { string path = Path.Combine(codeFolder, code.Name.Content + ".gml"); if (code.ParentEntry == null) { try { - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { - if (!(Directory.Exists(codeFolder + "/Failed/"))) + string failedFolder = Path.Combine(codeFolder, "Failed"); + if (!Directory.Exists(failedFolder)) { - Directory.CreateDirectory(codeFolder + "/Failed/"); + Directory.CreateDirectory(failedFolder); } - path = Path.Combine(codeFolder + "/Failed/", code.Name.Content + ".gml"); + path = Path.Combine(failedFolder, code.Name.Content + ".gml"); File.WriteAllText(path, "/*\nDECOMPILER FAILED!\n\n" + e.ToString() + "\n*/"); failed += 1; } } else { - if (!(Directory.Exists(codeFolder + "/Duplicates/"))) + string duplicatesFolder = Path.Combine(codeFolder, "Duplicates"); + if (!Directory.Exists(duplicatesFolder)) { - Directory.CreateDirectory(codeFolder + "/Duplicates/"); + Directory.CreateDirectory(duplicatesFolder); } try { - path = Path.Combine(codeFolder + "/Duplicates/", code.Name.Content + ".gml"); - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + path = Path.Combine(duplicatesFolder, code.Name.Content + ".gml"); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { - if (!(Directory.Exists(codeFolder + "/Duplicates/Failed/"))) + string duplicatesFailed = Path.Combine(duplicatesFolder, "Failed"); + if (!Directory.Exists(duplicatesFailed)) { - Directory.CreateDirectory(codeFolder + "/Duplicates/Failed/"); + Directory.CreateDirectory(duplicatesFailed); } - path = Path.Combine(codeFolder + "/Duplicates/Failed/", code.Name.Content + ".gml"); + path = Path.Combine(duplicatesFailed, code.Name.Content + ".gml"); File.WriteAllText(path, "/*\nDECOMPILER FAILED!\n\n" + e.ToString() + "\n*/"); failed += 1; } diff --git a/UndertaleModTool/Scripts/Technical Scripts/ExportAndConvert_2_3_ASM.csx b/UndertaleModTool/Scripts/Technical Scripts/ExportAndConvert_2_3_ASM.csx index 239154c69..0009b0503 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/ExportAndConvert_2_3_ASM.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/ExportAndConvert_2_3_ASM.csx @@ -13,7 +13,6 @@ if (Data.ToolInfo.ProfileMode) } string codeFolder = GetFolder(FilePath) + "Export_Assembly2" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); if (Directory.Exists(codeFolder)) { @@ -53,7 +52,7 @@ void DumpCode() foreach (UndertaleCode code_orig in Data.Code) { code_orig.Offset = 0; - if (Data.CodeLocals.ByName(code_orig.Name.Content) == null) + if (Data.CodeLocals is not null && Data.CodeLocals.ByName(code_orig.Name.Content) == null) { UndertaleCodeLocals locals = new UndertaleCodeLocals(); locals.Name = code_orig.Name; @@ -91,7 +90,7 @@ void DumpCode() string x = ""; try { - string disasm_code = code_orig.Disassemble(Data.Variables, Data.CodeLocals.For(code_orig)); + string disasm_code = code_orig.Disassemble(Data.Variables, Data.CodeLocals?.For(code_orig)); //ScriptMessage(code_orig.Name.Content); //ScriptMessage("1 " + disasm_code); int ix = -1; @@ -121,7 +120,7 @@ void DumpCode() string str_path_to_use = Path.Combine(codeFolder, code_orig.Name.Content + ".asm"); string code_output = ""; if (code_orig != null) - code_output = code_orig.Disassemble(Data.Variables, Data.CodeLocals.For(code_orig)); + code_output = code_orig.Disassemble(Data.Variables, Data.CodeLocals?.For(code_orig)); File.WriteAllText(str_path_to_use, code_output); } catch (Exception e) @@ -145,7 +144,7 @@ void DumpCode() string str_path_to_use = Path.Combine(codeFolder, "Duplicates", code_orig.Name.Content + ".asm"); string code_output = ""; if (code_orig != null) - code_output = code_orig.Disassemble(Data.Variables, Data.CodeLocals.For(code_orig)); + code_output = code_orig.Disassemble(Data.Variables, Data.CodeLocals?.For(code_orig)); File.WriteAllText(str_path_to_use, code_output); } catch (Exception e) diff --git a/UndertaleModTool/Scripts/Technical Scripts/GoToRoom_AutoLocatePersistentObj.csx b/UndertaleModTool/Scripts/Technical Scripts/GoToRoom_AutoLocatePersistentObj.csx index 819cb9583..afa1ece75 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/GoToRoom_AutoLocatePersistentObj.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/GoToRoom_AutoLocatePersistentObj.csx @@ -21,7 +21,7 @@ if (!pers) return; } -var code = obj_pers.EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f3, Data.Strings, Data.Code, Data.CodeLocals); +var code = obj_pers.EventHandlerFor(EventType.KeyPress, EventSubtypeKey.vk_f3, Data); Data.Functions.EnsureDefined("get_integer", Data.Strings); code.ReplaceGML(@" diff --git a/UndertaleModTool/Scripts/Technical Scripts/Profiler.csx b/UndertaleModTool/Scripts/Technical Scripts/Profiler.csx index d72288228..a5f810dc9 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/Profiler.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/Profiler.csx @@ -483,10 +483,12 @@ void ProfileModeOperations() //TODO: reimplement ASM solution w/o hacky asm breaking + GlobalDecompileContext globalDecompileContext = new(Data); + Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = new Underanalyzer.Decompiler.DecompileSettings(); foreach (UndertaleCode c in Data.Code) { UpdateProgressBar(null, "Code entries processed", progress++, Data.Code.Count); - string gmlCode = GetDecompiledText(c.Name.Content); + string gmlCode = GetDecompiledText(c.Name.Content, globalDecompileContext, decompilerSettings); gmlCode = gmlCode.Replace("\r\n", "\n"); gmlCode = Regex.Replace(gmlCode, "global\\.interact = (\\d+)", "__scr_setinteract__\\(\\1\\)"); gmlCode = gmlCode.Replace("global.interact", "__scr_getinteract__()"); @@ -647,7 +649,7 @@ void PersistentObjectSetup(string objectName) } if (Data.GeneralInfo.Name.Content.StartsWith("UNDERTALE")) { - Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, (uint)114, Data.Strings, Data.Code, Data.CodeLocals).ReplaceGML("", Data); + Data.GameObjects.ByName("obj_time").EventHandlerFor(EventType.KeyPress, (uint)114, Data).ReplaceGML("", Data); } bool gms2 = Data.IsVersionAtLeast(2, 0, 0, 0); var entry_room = Data.GeneralInfo.RoomOrder[0].Resource; diff --git a/UndertaleModTool/Scripts/Technical Scripts/RestoreMissingCodeLocals.csx b/UndertaleModTool/Scripts/Technical Scripts/RestoreMissingCodeLocals.csx index 1dbb5e1bf..1f00a6672 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/RestoreMissingCodeLocals.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/RestoreMissingCodeLocals.csx @@ -1,6 +1,7 @@ -if (Data?.GeneralInfo.BytecodeVersion < 15) +EnsureDataLoaded(); +if (Data.CodeLocals is null) { - ScriptMessage("Cannot run on this game, bytecode >= 15 required!"); + ScriptMessage("Cannot run on this game, bytecode >= 15 and GM <= 2024.8 required!"); return; } int newCount = 0; diff --git a/UndertaleModTool/Scripts/Technical Scripts/TestExportAllCode.csx b/UndertaleModTool/Scripts/Technical Scripts/TestExportAllCode.csx index 3c745df9c..a4e5dbd0f 100644 --- a/UndertaleModTool/Scripts/Technical Scripts/TestExportAllCode.csx +++ b/UndertaleModTool/Scripts/Technical Scripts/TestExportAllCode.csx @@ -7,10 +7,12 @@ using System.Collections; EnsureDataLoaded(); -string codeFolder = GetFolder(FilePath) + "Export_Code" + Path.DirectorySeparatorChar; -ThreadLocal DECOMPILE_CONTEXT = new ThreadLocal(() => new GlobalDecompileContext(Data, false)); +string codeFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Export_Code"); Directory.CreateDirectory(codeFolder); +GlobalDecompileContext globalDecompileContext = new(Data); +Underanalyzer.Decompiler.IDecompileSettings decompilerSettings = Data.ToolInfo.DecompilerSettings; + string line; string path_error = Path.Combine(codeFolder, "Status.txt"); string path_error2 = Path.Combine(codeFolder, "Errored_Code_Entries.txt"); @@ -82,7 +84,8 @@ if (File.Exists(path_error2)) file.Close(); } -await Task.Run(() => { +await Task.Run(() => +{ foreach (UndertaleCode code in Data.Code) { if (write) @@ -105,12 +108,14 @@ await Task.Run(() => { isErrorCodeEntry = true; } } - if ((!isErrorCodeEntry) || (!skip)) + if (!isErrorCodeEntry || !skip) { string path = Path.Combine(codeFolder, code.Name.Content + ".gml"); try { - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { @@ -124,7 +129,9 @@ await Task.Run(() => { string path = Path.Combine(codeFolder, code.Name.Content + ".gml"); try { - File.WriteAllText(path, (code != null ? Decompiler.Decompile(code, DECOMPILE_CONTEXT.Value) : "")); + File.WriteAllText(path, (code != null + ? new Underanalyzer.Decompiler.DecompileContext(globalDecompileContext, code, decompilerSettings).DecompileToString() + : "")); } catch (Exception e) { @@ -152,7 +159,7 @@ HideProgressBar(); ScriptMessage("Export Complete.\n\nLocation: " + codeFolder); if (File.Exists(path_error2)) { - string asmFolder = GetFolder(FilePath) + "Error_Assembly" + Path.DirectorySeparatorChar; + string asmFolder = Path.Combine(Path.GetDirectoryName(FilePath), "Error_Assembly"); Directory.CreateDirectory(asmFolder); if (errored_code_arr.Count > 0) { @@ -163,7 +170,7 @@ if (File.Exists(path_error2)) string asmPath = Path.Combine(asmFolder, code.Name.Content + ".asm"); try { - File.WriteAllText(asmPath, (code != null ? code.Disassemble(Data.Variables, Data.CodeLocals.For(code)) : "")); + File.WriteAllText(asmPath, (code != null ? code.Disassemble(Data.Variables, Data.CodeLocals?.For(code)) : "")); } catch (Exception e) { @@ -173,8 +180,3 @@ if (File.Exists(path_error2)) } ScriptMessage("Please place the \"Error_Assembly\" folder into a zip file and send it to Grossley#2869 on Discord, along with what game you were playing, where you got it from, and any other pertinent information, so that these errors may be corrected."); } - -string GetFolder(string path) -{ - return Path.GetDirectoryName(path) + Path.DirectorySeparatorChar; -} \ No newline at end of file diff --git a/UndertaleModTool/Settings.cs b/UndertaleModTool/Settings.cs index 9b36925e5..43df39e91 100644 --- a/UndertaleModTool/Settings.cs +++ b/UndertaleModTool/Settings.cs @@ -1,11 +1,14 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Text; using System.Text.Json; +using System.Text.Json.Serialization; using System.Threading.Tasks; using System.Windows; +using Underanalyzer.Decompiler; namespace UndertaleModTool { @@ -56,10 +59,12 @@ public class Settings public bool EnableDarkMode { get; set; } = false; public bool ShowDebuggerOption { get; set; } = false; + public DecompilerSettings DecompilerSettings { get; set; } + public string InstanceIdPrefix { get; set; } = "inst_"; public static Settings Instance; - public static JsonSerializerOptions JsonOptions = new JsonSerializerOptions + public static JsonSerializerOptions JsonOptions = new() { WriteIndented = true, AllowTrailingCommas = true, @@ -74,15 +79,20 @@ public Settings() public static void Load() { + DecompilerSettings existingDecompilerSettings = Instance?.DecompilerSettings; + try { string path = Path.Combine(AppDataFolder, "settings.json"); if (!File.Exists(path)) { - new Settings(); + // No settings JSON exists, so make a new one + _ = new Settings() { DecompilerSettings = existingDecompilerSettings ?? new() }; Save(); return; } + + // Read in data byte[] bytes = File.ReadAllBytes(path); JsonSerializer.Deserialize(bytes, JsonOptions); @@ -91,17 +101,28 @@ public static void Load() if (Instance.Version != MainWindow.Version) { changed = true; - // TODO when it becomes necessary + // TODO: When necessary, account for any version upgrades } + // Use existing decompiler settings (from last settings instance) + if (existingDecompilerSettings is not null) + Instance.DecompilerSettings = existingDecompilerSettings; + + // If no settings were supplied at all, generate a new one (can be caused from downgrading) + Instance.DecompilerSettings ??= new(); + // Update the version to this version Instance.Version = MainWindow.Version; if (changed) + { + // Update settings to new version on disk as well Save(); - } catch (Exception e) + } + } + catch (Exception e) { MessageBox.Show($"Failed to load settings.json! Using default values.\n{e.Message}"); - new Settings(); + new Settings() { DecompilerSettings = existingDecompilerSettings ?? new() }; } } @@ -120,4 +141,81 @@ public static void Save() } } } + + /// + /// GML decompiler settings instance used by the main UndertaleModTool tool. + /// + public class DecompilerSettings : IDecompileSettings + { + /// + /// Types of indents provided for in-tool decompilation. + /// + [JsonConverter(typeof(JsonStringEnumConverter))] + public enum IndentStyleKind + { + FourSpaces, + TwoSpaces, + Tabs + } + + // Inner settings used to store values that we don't have any business reimplementing + [JsonIgnore] + private DecompileSettings InnerSettings { get; } = new DecompileSettings() + { + UnknownArgumentNamePattern = "argument{0}", + RemoveSingleLineBlockBraces = true, + EmptyLineAroundBranchStatements = true, + EmptyLineBeforeSwitchCases = true + }; + + /// + /// Indentation style being used for decompilation. + /// + public IndentStyleKind IndentStyle { get; set; } + + /// + [JsonIgnore] + public string IndentString + { + get => IndentStyle switch + { + IndentStyleKind.FourSpaces => " ", + IndentStyleKind.TwoSpaces => " ", + IndentStyleKind.Tabs => "\t", + _ => throw new Exception("Unknown indent style") + }; + } + + // Interface implementation (passes through to inner settings instance) + public bool UseSemicolon { get => InnerSettings.UseSemicolon; set => InnerSettings.UseSemicolon = value; } + public bool UseCSSColors { get => InnerSettings.UseCSSColors; set => InnerSettings.UseCSSColors = value; } + public bool PrintWarnings { get => InnerSettings.PrintWarnings; set => InnerSettings.PrintWarnings = value; } + public bool MacroDeclarationsAtTop { get => InnerSettings.MacroDeclarationsAtTop; set => InnerSettings.MacroDeclarationsAtTop = value; } + public bool EmptyLineAfterBlockLocals { get => InnerSettings.EmptyLineAfterBlockLocals; set => InnerSettings.EmptyLineAfterBlockLocals = value; } + public bool EmptyLineAroundEnums { get => InnerSettings.EmptyLineAroundEnums; set => InnerSettings.EmptyLineAroundEnums = value; } + public bool EmptyLineAroundBranchStatements { get => InnerSettings.EmptyLineAroundBranchStatements; set => InnerSettings.EmptyLineAroundBranchStatements = value; } + public bool EmptyLineBeforeSwitchCases { get => InnerSettings.EmptyLineBeforeSwitchCases; set => InnerSettings.EmptyLineBeforeSwitchCases = value; } + public bool EmptyLineAfterSwitchCases { get => InnerSettings.EmptyLineAfterSwitchCases; set => InnerSettings.EmptyLineAfterSwitchCases = value; } + public bool EmptyLineAroundFunctionDeclarations { get => InnerSettings.EmptyLineAroundFunctionDeclarations; set => InnerSettings.EmptyLineAroundFunctionDeclarations = value; } + public bool EmptyLineAroundStaticInitialization { get => InnerSettings.EmptyLineAroundStaticInitialization; set => InnerSettings.EmptyLineAroundStaticInitialization = value; } + public bool OpenBlockBraceOnSameLine { get => InnerSettings.OpenBlockBraceOnSameLine; set => InnerSettings.OpenBlockBraceOnSameLine = value; } + public bool RemoveSingleLineBlockBraces { get => InnerSettings.RemoveSingleLineBlockBraces; set => InnerSettings.RemoveSingleLineBlockBraces = value; } + public bool CleanupTry { get => InnerSettings.CleanupTry; set => InnerSettings.CleanupTry = value; } + public bool CleanupElseToContinue { get => InnerSettings.CleanupElseToContinue; set => InnerSettings.CleanupElseToContinue = value; } + public bool CleanupDefaultArgumentValues { get => InnerSettings.CleanupDefaultArgumentValues; set => InnerSettings.CleanupDefaultArgumentValues = value; } + public bool CleanupBuiltinArrayVariables { get => InnerSettings.CleanupBuiltinArrayVariables; set => InnerSettings.CleanupBuiltinArrayVariables = value; } + public bool CleanupLocalVarDeclarations { get => InnerSettings.CleanupLocalVarDeclarations; set => InnerSettings.CleanupLocalVarDeclarations = value; } + public bool CreateEnumDeclarations { get => InnerSettings.CreateEnumDeclarations; set => InnerSettings.CreateEnumDeclarations = value; } + public string UnknownEnumName { get => InnerSettings.UnknownEnumName; set => InnerSettings.UnknownEnumName = value; } + public string UnknownEnumValuePattern { get => InnerSettings.UnknownEnumValuePattern; set => InnerSettings.UnknownEnumValuePattern = value; } + public string UnknownArgumentNamePattern { get => InnerSettings.UnknownArgumentNamePattern; set => InnerSettings.UnknownArgumentNamePattern = value; } + public bool AllowLeftoverDataOnStack { get => InnerSettings.AllowLeftoverDataOnStack; set => InnerSettings.AllowLeftoverDataOnStack = value; } + + /// + public bool TryGetPredefinedDouble(double value, [MaybeNullWhen(false)] out string result, out bool isResultMultiPart) + { + // Pass through to inner settings instance, which has some predefined values already + return InnerSettings.TryGetPredefinedDouble(value, out result, out isResultMultiPart); + } + } } diff --git a/UndertaleModTool/UndertaleModTool.csproj b/UndertaleModTool/UndertaleModTool.csproj index 6b6c47a35..08d4fb330 100644 --- a/UndertaleModTool/UndertaleModTool.csproj +++ b/UndertaleModTool/UndertaleModTool.csproj @@ -22,6 +22,7 @@ app.manifest + @@ -36,6 +37,7 @@ + @@ -151,7 +153,6 @@ PreserveNewest true - PreserveNewest true diff --git a/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMap.cs b/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMap.cs index 7f4a1ddd3..f6190144b 100644 --- a/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMap.cs +++ b/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMap.cs @@ -10,6 +10,7 @@ namespace UndertaleModTool.Windows public class TypesForVersion { public (uint Major, uint Minor, uint Release) Version { get; set; } + public (uint Major, uint Minor, uint Release) BeforeVersion { get; set; } = (uint.MaxValue, uint.MaxValue, uint.MaxValue); public (Type, string)[] Types { get; set; } } @@ -172,6 +173,7 @@ public static class UndertaleResourceReferenceMap { // Bytecode version 15 Version = (15, uint.MaxValue, uint.MaxValue), + BeforeVersion = (2024, 8, 0), Types = new[] { (typeof(UndertaleCodeLocals), "Code locals") @@ -439,7 +441,13 @@ public static (Type, string)[] GetTypeMapForVersion(Type type, UndertaleData dat else isAtLeast = typeForVer.Version.CompareTo(version) <= 0; - if (isAtLeast) + bool isAboveMost = false; + if (typeForVer.BeforeVersion.Minor == uint.MaxValue) + isAboveMost = typeForVer.BeforeVersion.Major <= bytecodeVersion; + else + isAboveMost = typeForVer.BeforeVersion.CompareTo(version) <= 0; + + if (isAtLeast && !isAboveMost) outTypes = typeForVer.Types.UnionBy(outTypes, x => x.Item1); } diff --git a/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMethodsMap.cs b/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMethodsMap.cs index 7f77bf111..e3efc43a7 100644 --- a/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMethodsMap.cs +++ b/UndertaleModTool/Windows/FindReferencesTypesDialog/UndertaleResourceReferenceMethodsMap.cs @@ -32,6 +32,7 @@ public HashSetTypesOverride(bool containsEverything = false, bool isYYC = false) public class PredicateForVersion { public (uint Major, uint Minor, uint Release) Version { get; set; } + public (uint Major, uint Minor, uint Release) BeforeVersion { get; set; } = (uint.MaxValue, uint.MaxValue, uint.MaxValue); public Func> Predicate { get; set; } } @@ -607,6 +608,7 @@ IEnumerable GetExtnFunctions() { // Bytecode version 15 Version = (15, uint.MaxValue, uint.MaxValue), + BeforeVersion = (2024, 8, 0), Predicate = (objSrc, types, checkOne) => { if (!types.Contains(typeof(UndertaleCodeLocals))) @@ -1434,7 +1436,13 @@ public static Dictionary> GetReferencesOfObject(object obj, else isAtLeast = predicateForVer.Version.CompareTo(ver) <= 0; - if (isAtLeast) + bool isAboveMost = false; + if (predicateForVer.BeforeVersion.Minor == uint.MaxValue) + isAboveMost = predicateForVer.BeforeVersion.Major <= data.GeneralInfo.BytecodeVersion; + else + isAboveMost = predicateForVer.BeforeVersion.CompareTo(ver) <= 0; + + if (isAtLeast && !isAboveMost) { var result = predicateForVer.Predicate(obj, types, checkOne); if (result is null) diff --git a/UndertaleModTool/Windows/GMLSettingsWindow.xaml b/UndertaleModTool/Windows/GMLSettingsWindow.xaml new file mode 100644 index 000000000..0fa01b676 --- /dev/null +++ b/UndertaleModTool/Windows/GMLSettingsWindow.xaml @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/UndertaleModTool/Windows/GMLSettingsWindow.xaml.cs b/UndertaleModTool/Windows/GMLSettingsWindow.xaml.cs new file mode 100644 index 000000000..02800919d --- /dev/null +++ b/UndertaleModTool/Windows/GMLSettingsWindow.xaml.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Shapes; + +namespace UndertaleModTool +{ + /// + /// Interaction logic for GMLSettingsWindow.xaml + /// + public partial class GMLSettingsWindow : Window + { + public GMLSettingsWindow(Settings settings) + { + DataContext = settings; + InitializeComponent(); + } + + private void Window_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) + { + if (!IsVisible || IsLoaded) + return; + + if (Settings.Instance.EnableDarkMode) + MainWindow.SetDarkTitleBarForWindow(this, true, false); + } + } + + [ValueConversion(typeof(DecompilerSettings.IndentStyleKind), typeof(string))] + public class IndentStyleConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + switch ((DecompilerSettings.IndentStyleKind)value) + { + case DecompilerSettings.IndentStyleKind.FourSpaces: + return "4 spaces"; + case DecompilerSettings.IndentStyleKind.TwoSpaces: + return "2 spaces"; + case DecompilerSettings.IndentStyleKind.Tabs: + return "Tabs"; + } + throw new Exception("Unknown indent style kind"); + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + return value; + } + } +} diff --git a/UndertaleModTool/Windows/SearchInCodeWindow.xaml.cs b/UndertaleModTool/Windows/SearchInCodeWindow.xaml.cs index a937e23f7..4f2c71f22 100644 --- a/UndertaleModTool/Windows/SearchInCodeWindow.xaml.cs +++ b/UndertaleModTool/Windows/SearchInCodeWindow.xaml.cs @@ -47,7 +47,7 @@ public partial class SearchInCodeWindow : Window Regex keywordRegex; - ThreadLocal decompileContext; + GlobalDecompileContext decompileContext; LoaderDialog loaderDialog; @@ -130,18 +130,18 @@ async Task Search() if (!isInAssembly) { - decompileContext = new ThreadLocal(() => new GlobalDecompileContext(mainWindow.Data, false)); + decompileContext = new GlobalDecompileContext(mainWindow.Data); // HACK: This could be problematic usingGMLCache = await mainWindow.GenerateGMLCache(decompileContext, loaderDialog); // If we run script before opening any code - if (!usingGMLCache && mainWindow.Data.KnownSubFunctions is null) + if (!usingGMLCache && mainWindow.Data.GlobalFunctions is null) { loaderDialog.Maximum = null; - loaderDialog.Update("Building the cache of all sub-functions..."); + loaderDialog.Update("Building the cache of all global functions..."); - await Task.Run(() => Decompiler.BuildSubFunctionCache(mainWindow.Data)); + await Task.Run(() => GlobalDecompileContext.BuildGlobalFunctionCache(mainWindow.Data)); } } @@ -193,7 +193,7 @@ void SearchInUndertaleCode(UndertaleCode code) var codeText = isInAssembly ? code.Disassemble(mainWindow.Data.Variables, mainWindow.Data.CodeLocals.For(code)) : TryGetProfileModeGML(code.Name.Content) - ?? Decompiler.Decompile(code, decompileContext.Value); + ?? new Underanalyzer.Decompiler.DecompileContext(decompileContext, code, mainWindow.Data.ToolInfo.DecompilerSettings).DecompileToString(); SearchInCodeText(code.Name.Content, codeText); } diff --git a/UndertaleModTool/Windows/SettingsWindow.xaml b/UndertaleModTool/Windows/SettingsWindow.xaml index bc0b3e3a3..e85124c39 100644 --- a/UndertaleModTool/Windows/SettingsWindow.xaml +++ b/UndertaleModTool/Windows/SettingsWindow.xaml @@ -73,6 +73,8 @@ + GML compiler/decompiler settings + diff --git a/UndertaleModTool/Windows/SettingsWindow.xaml.cs b/UndertaleModTool/Windows/SettingsWindow.xaml.cs index 9970e5cbe..64e4f67a1 100644 --- a/UndertaleModTool/Windows/SettingsWindow.xaml.cs +++ b/UndertaleModTool/Windows/SettingsWindow.xaml.cs @@ -241,6 +241,18 @@ public static bool ShowDebuggerOption } } + public static DecompilerSettings DecompilerSettings => Settings.Instance.DecompilerSettings; + + public static string InstanceIdPrefix + { + get => Settings.Instance.InstanceIdPrefix; + set + { + Settings.Instance.InstanceIdPrefix = value; + Settings.Save(); + } + } + public bool UpdateButtonEnabled { get => UpdateAppButton.IsEnabled; @@ -259,6 +271,7 @@ public SettingsWindow() this.DataContext = this; Settings.Load(); } + private void Window_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (!IsVisible || IsLoaded) @@ -277,5 +290,13 @@ private void UpdateAppButton_Click(object sender, RoutedEventArgs e) { ((MainWindow)Owner).UpdateApp(this); } + + private void GMLSettingsButton_Click(object sender, RoutedEventArgs e) + { + GMLSettingsWindow settings = new(Settings.Instance); + settings.Owner = this; + settings.ShowDialog(); + Settings.Save(); + } } }